
Solana Dev | Live Looper | Video Blogger supporting @solana_devs | co-founder of @sol_recovery | member of @superteamDE https://xitter.cf/t.co/unYtcmvz4Y
Austria
Joined December 2010
- Tweets9.1K
- Following851
- Followers8.9K
- Likes11K
Sometimes I wish I had an @anza_xyz T-shirt that I could wear...
hey @bw_solana , could you get me one?
I'm livestreaming the Alpenswitch...
join my watch party here:
youtube.com/live/-IOJ5sG7tSw…
if you are watching my videos, you should also read @lorismatic 's comments on them! ;)
Replying to @HeyAndyS
Thanks for the deep dive Andy! Some feedback as usual. ☺️
☞ There was some unnecessary `await` before instructions like `client.memo.instructions.addMemo`. Only some of these need to await because they do thing like computing the minimum balance for you (e.g. the `createMint` plan). Also best to use Promise.all to run these in parallel when possible.
☞ If you want to mix `Instructions` and `InstructionPlans` outside the `sendTransaction()` function, you can always combine them in one bigger `InstructionPlan` yourself. Something like `sequentialInstructionPlan([ixA, ixPlanB, ixC])`.
☞ Note on treeshakability: program plugins bring lots of convenience but the tradeoff is it may bundle code your app don’t actually need. If that’s a concern for your app then it’s best to import these standalone helpers explicitly. Alternatively, you can use the program plugin for development/discovery and convert them into standalone imports before shipping to prod.
☞ There is a generated `package.json` file when you run `codama run js` for the first time that contains all the required dependencies so a `pnpm i` on the `clients/js` folder should have been enough.
Your final warning: make sure your apps don't break when @solana web3.js is going from v1->v3
Main things to fix:
- Numbers -> bigints
- Buffers -> Uint8Arrays
- sync stuff -> await async
plus you get compatibility with other solana program and codama packages 👇
🤖 Made with AI
This is an actual problem that I encountered myself too.
Instead of in 2min, a blockhash now expires in 1min.
Alpenglow next week will ease it a little because everyone querying for finalized commitment don't loose 10sec anymore.
still, even with the full 1min, its not enough
Solandy 🎓 retweeted
Get ready for Alpenglow with @HeyAndyS
video on alpenglow genesis certificate pda
youtu.be/wXimpa4tMtM















