blocto / solana-go-sdk

Solana Golang SDK
https://blocto.github.io/solana-go-sdk/
MIT License
366 stars 95 forks source link

Support for transactions v2 #82

Closed holykol closed 2 years ago

holykol commented 2 years ago

description: add support for sending and parsing versioned messages that already exist on devnet

docs: Solana proposal: https://docs.solana.com/proposals/transactions-v2#versioned-transactions Rust SDK reference type: https://docs.rs/solana-sdk/latest/solana_sdk/message/enum.VersionedMessage.html

abstract implementation steps:

  1. understand when new message version is encoded (if most upper bit of num_required_signatures is set afaik)
  2. parse new message fields
  3. serialize new version

backwards compatibility concerns:

holykol commented 2 years ago

@yihau willing to work on this, if no one else is interested

yihau commented 2 years ago

thank you! I just added a PR for this #86 will merge and release soon. maybe you can take a look and give me some feedback? I'm happy to make this SDK more easy to use.

yihau commented 2 years ago

v1.20.0 has included v0 transaction/message serialize/deserialized. feel free to report any bugs you found!