Skip to content

Conversation

@lcovar
Copy link
Contributor

@lcovar lcovar commented Jan 21, 2026

Add comprehensive WASM-based transaction parsing and instruction combining:

  • Integrate @bitgo/wasm-solana for transaction deserialization
  • Add wasmInstructionCombiner.ts as single source of truth for combining patterns:
    • CreateAccount + NonceInitialize → WalletInit
    • CreateAccount + StakeInitialize + StakingDelegate → StakingActivate (NATIVE)
    • CreateAccount + StakeInitialize (no Delegate) → StakingActivate (MARINADE)
    • Jito stake pool deposit/withdraw detection
    • Marinade deactivate pattern detection
  • Update Transaction class to use WASM parsing with instruction combining
  • Update Sol.explainTransactionWithWasm to use shared combining logic
  • Add programId and decimalPlaces to TokenTransfer output
  • Add Jito WASM verification tests
  • Export InstructionBuilderTypes from lib/index.ts

WASM parsing provides:

  • Full instruction decoding for System, Stake, SPL Token, SPL ATA programs
  • Jito SPL Stake Pool instruction support
  • Unknown instruction passthrough with account metadata

@lcovar lcovar force-pushed the BTC-0-draft-example-sol-decoding branch 15 times, most recently from c84080a to 60b4553 Compare January 24, 2026 05:50
…m-solana

Add comprehensive WASM-based transaction parsing and instruction combining:

- Integrate @bitgo/wasm-solana for transaction deserialization
- Add wasmInstructionCombiner.ts as single source of truth for combining patterns:
  - CreateAccount + NonceInitialize → WalletInit
  - CreateAccount + StakeInitialize + StakingDelegate → StakingActivate (NATIVE)
  - CreateAccount + StakeInitialize (no Delegate) → StakingActivate (MARINADE)
  - Jito stake pool deposit/withdraw detection
  - Marinade deactivate pattern detection
- Update Transaction class to use WASM parsing with instruction combining
- Update Sol.explainTransactionWithWasm to use shared combining logic
- Add programId and decimalPlaces to TokenTransfer output
- Add Jito WASM verification tests
- Export InstructionBuilderTypes from lib/index.ts

WASM parsing provides:
- Full instruction decoding for System, Stake, SPL Token, SPL ATA programs
- Jito SPL Stake Pool instruction support
- Unknown instruction passthrough with account metadata

TICKET: BTC-0
@lcovar lcovar force-pushed the BTC-0-draft-example-sol-decoding branch from 60b4553 to 36ef49d Compare January 24, 2026 06:29
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.

2 participants