Jonas Hahn

9.2K posts

Jonas Hahn banner
Jonas Hahn

Jonas Hahn

@SolPlay_jonas

DevRel at Solana Foundation I love tinkering and games https://t.co/qIFMrp258k

Hamburg, Germany Katılım Nisan 2016
1.6K Takip Edilen9.5K Takipçiler
Sabitlenmiş Tweet
Jonas Hahn
Jonas Hahn@SolPlay_jonas·
Some cool new @solana explorer features! - Payment Receipts - Account data overview and download - More Idl features (+ 1 surprise feature) What other features do you want to have?
English
15
18
94
9.1K
Jonas Hahn retweetledi
Alex Kahn
Alex Kahn@alex_n_kahn·
.@Solana SBPF assembly pro tip #19: relative offset immediates Using the `relative_offset!` macro in Dropset Beta (WIP), you can derive relative offsets *between* fields, enabling pointer walks across the input buffer or the stack to cut `mov64/add64` load patterns in half!
Alex Kahn tweet mediaAlex Kahn tweet mediaAlex Kahn tweet mediaAlex Kahn tweet media
English
1
2
9
384
Jonas Hahn
Jonas Hahn@SolPlay_jonas·
IDLs solved forever \o/
Noah 🎈@redacted_noah

Ok so I think we've solved the IDL problem forever™ 1. Anchor 1.1 will add back legacy IDL support, so you can leave the legacy IDL up (and old clients functioning) until everyone has upgraded. 2. Anchor 1.1 client will check the major version of the IDL it receives from Program Metadata. If the major version is higher than what is supported by the client, it will search for the now legacy IDL at seed "ANCHOR_IDL_V1". Any future breaking changes to Anchor IDL will not break old clients because they will be coded to find their compatible version. Backwards compatibility ftw!! 3. A tool will be released to crawl IDL history through time, for anyone who needs to index historical changes. 4. Codama and Blueshift people are going to work together on a unified IDL that works for all of Anchor, Quasar, and Codama. No more IDL sprawl! And we'll get extra information like account types and PDAs that explorers can leverage. Worth noting that while this fixes a lot of backwards compatibility issues, we mostly agreed that best practice for modern Solana dev is likely to put all of you instruction building logic behind an API. While the IDL can get you flexibility to make program changes without breaking consuming clients, an API provides maximum flexibility. Your API to interact with your program should be open source, so anyone can trustlessly run that API themselves and not have to trust your centralized implementation to build instructions. And obviously people can still just used an IDL based client. But when you're thinking about building user-facing applications, an API is a very useful layer.

English
0
0
9
617
Jonas Hahn retweetledi
joey
joey@joeymeere·
Over the last few days I've been working on a C framework for Solana programs Meet Caravel 🚢 (repo below)
joey tweet media
English
33
24
148
58.4K
Jonas Hahn retweetledi
tiago.oak
tiago.oak@qtmoses·
Are you afraid of migrating anchor programs from v0.31.x and v0.32.x to the future v1.0.0? Agents to the rescue. Not only can they one shot it, they turn an awful chore into something bearable and possibly fun! github.com/solana-foundat… Here's a few examples:
English
6
9
37
3.8K
WhiteMoon D.
WhiteMoon D.@WhiteMoonDev·
A Solana transaction is not being signed. The API provides a base58-encoded transaction that is ready to use (sign). Developers can sign it directly using a wallet sdk. Try it on “Let Me Buy” program — you’ll understand when you check the API; a simple curl request is enough. And also there is PDA Finder api too so you don’t need to code tha just call api with proper parameter 🫶🏻
English
1
0
2
33
Jonas Hahn
Jonas Hahn@SolPlay_jonas·
@WhiteMoonDev Does this actually work? How does it sign the transactions?
English
1
0
0
37
Noah 🎈
Noah 🎈@redacted_noah·
Backward and forward compatibility also becomes a huge issue. You add an account to an endpoint, how does the explorer know you did that? How do existing clients know you did that? You add a field to an account. How does the guy indexing data from you know you did that? And that you changed the tx signature?
English
1
0
1
48