Skip to content

feat(sdk-coin-sol): add WASM-based transaction parsing via @bitgo/wasm-solana#7957

Draft
lcovar wants to merge 1 commit intomasterfrom
BTC-0-draft-example-sol-decoding
Draft

feat(sdk-coin-sol): add WASM-based transaction parsing via @bitgo/wasm-solana#7957
lcovar wants to merge 1 commit intomasterfrom
BTC-0-draft-example-sol-decoding

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@1.6.0 (from npm)
  • 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 2 times, most recently from 7623733 to cfd03be 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 cfd03be to c0e8e7f Compare February 5, 2026 00:19
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