Skip to content

Commit cc5c42f

Browse files
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 compatibility
1 parent 397599a commit cc5c42f

31 files changed

Lines changed: 5068 additions & 0 deletions

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ node_modules/
33
*.iml
44
*.tsbuildinfo
55
.cursor/
6+
scratch/

packages/wasm-ton/.gitignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
target/
2+
node_modules/
3+
# we actually only track the .ts files
4+
dist/
5+
test/*.js
6+
test/*.d.ts
7+
js/*.js
8+
js/*.d.ts
9+
js/wasm
10+
.vscode
11+
.onboarding/

packages/wasm-ton/.mocharc.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"extensions": ["ts", "tsx", "js", "jsx"],
3+
"spec": ["test/**/*.ts"],
4+
"node-option": ["import=tsx/esm", "experimental-wasm-modules"]
5+
}

0 commit comments

Comments
 (0)