Commit f2fdf57
committed
feat(wasm-solana): add transaction building support
Add comprehensive transaction building capabilities to wasm-solana,
enabling construction of various Solana transaction types via WASM.
- TransactionIntent type for specifying transaction parameters
- Support for blockhash and durable nonce sources
- Automatic nonce advance prepending for durable nonce transactions
- System Program: Transfer, CreateAccount, NonceAdvance, NonceInitialize,
Allocate, Assign
- Stake Program: Initialize, Delegate, Deactivate, Withdraw, Authorize
- SPL Token: Transfer (via TransferChecked), CreateATA, CloseATA
- SPL Stake Pool (Jito): DepositSol, WithdrawStake
- Compute Budget: SetComputeUnitLimit, SetComputeUnitPrice
- Memo Program
- buildTransaction(intent: TransactionIntent): Uint8Array
- Full TypeScript types for all instruction variants
- Builder types prefixed to avoid conflicts with parser types
Ticket: BTC-2955
Ticket: BTC-2956
Ticket: BTC-2957
Ticket: BTC-2958
Ticket: BTC-29591 parent dd88831 commit f2fdf57
File tree
13 files changed
+3389
-77
lines changed- packages/wasm-solana
- js
- src
- builder
- wasm
- test
13 files changed
+3389
-77
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments