Skip to content

Conversation

@lcovar
Copy link
Contributor

@lcovar lcovar commented Jan 21, 2026

This PR introduces WASM-based transaction parsing as an alternative to
the legacy @solana/web3.js approach. The WASM implementation provides
cleaner parsing with zero web3.js dependencies for transaction decoding.

Key changes:

  • Add WasmTransaction class (~150 lines vs 800+ in legacy Transaction)
  • Add wasmInstructionMapper to convert WASM parsed instructions to SDK format
  • Add wasmInstructionCombiner to derive transaction types from instructions
  • Update sol.ts to extract transaction IDs using WASM parsing
  • Add comprehensive tests including Jito staking verification

Dependencies:

  • @bitgo/wasm-solana@2.0.0
  • Webpack alias added for browser builds

@lcovar lcovar force-pushed the BTC-0-draft-example-sol-decoding branch 27 times, most recently from d32c089 to bb885ad Compare January 28, 2026 18:16
@lcovar lcovar force-pushed the BTC-0-draft-example-sol-decoding branch 2 times, most recently from f5732ce to 97c511d Compare January 28, 2026 18:36
@lcovar lcovar changed the title temp: wasm-sol example feat(sdk-coin-sol): add WASM-based transaction parsing via @bitgo/wasm-solana Jan 28, 2026
@lcovar lcovar force-pushed the BTC-0-draft-example-sol-decoding branch 10 times, most recently from c2bcda3 to c03ea63 Compare February 3, 2026 23:10
@lcovar lcovar force-pushed the BTC-0-draft-example-sol-decoding branch 3 times, most recently from cfd03be to c0e8e7f Compare February 5, 2026 00:19
…m-solana

This PR introduces WASM-based transaction parsing as an alternative to
the legacy @solana/web3.js approach. The WASM implementation provides
cleaner parsing with zero web3.js dependencies for transaction decoding.

Key changes:
- Add WasmTransaction class (~150 lines vs 800+ in legacy Transaction)
- Add wasmInstructionMapper to convert WASM parsed instructions to SDK format
- Add wasmInstructionCombiner to derive transaction types from instructions
- Update sol.ts to extract transaction IDs using WASM parsing
- Add comprehensive tests including Jito staking verification

Dependencies:
- @bitgo/wasm-solana@1.6.0 (from npm)
- Webpack alias added for browser builds

TICKET: BTC-0
@lcovar lcovar force-pushed the BTC-0-draft-example-sol-decoding branch from c0e8e7f to 63284b8 Compare February 9, 2026 22:02
@lcovar lcovar marked this pull request as ready for review February 10, 2026 19:39
@lcovar lcovar requested review from a team as code owners February 10, 2026 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant