Commit cc5c42f
committed
feat: add wasm-ton package
Implements @bitgo/wasm-ton — a Rust/WASM package for TON blockchain transaction
building, parsing, and address creation.
- Address encoding/decoding/validation using tonlib-core (V3R2, V4R2, V5R1)
- Transaction deserialization from BOC, signable payload extraction, signature placement
- parseTransaction: extracts recipient, amount, memo, Jetton transfers, staking opcodes
- buildTransaction for 5 intents: payment, fillNonce, consolidate, delegate, undelegate
- delegate/undelegate support 3 staking types: TON_WHALES, SINGLE_NOMINATOR, MULTI_NOMINATOR
- 45 Rust unit tests, 38 TypeScript tests, BitGoJS fixture compatibility1 parent 397599a commit cc5c42f
31 files changed
Lines changed: 5068 additions & 0 deletions
File tree
- packages/wasm-ton
- js
- src
- builder
- wasm
- test
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
0 commit comments