Conversation
OttoAllmendinger
requested changes
Mar 27, 2026
Contributor
OttoAllmendinger
left a comment
There was a problem hiding this comment.
let's get rid of the enums
not super happy about the base conversion bloat but so far it's not out of control
deb8e6e to
7d326d0
Compare
OttoAllmendinger
approved these changes
Mar 31, 2026
Comment on lines
+81
to
+86
| /** | ||
| * Convenience function to create a Transaction from bytes. | ||
| */ | ||
| export function transactionFromBytes(bytes: Uint8Array): Transaction { | ||
| return Transaction.fromBytes(bytes); | ||
| } |
Contributor
There was a problem hiding this comment.
not that much more convenient
Rust/WASM package for TON (The Open Network) transaction building, parsing, and signing. Uses toner v0.7.3 (pure Rust TON SDK) compiled to wasm32-unknown-unknown. Supports all wallet-platform intent types: - payment (native TON + jetton token transfers) - fillNonce (nonce hole filling via self-send) - consolidate (native + token, 7-day expiry) - delegate (TonWhales, SingleNominator, MultiNominator) - undelegate (TonWhales, SingleNominator, MultiNominator) - vesting contract variants for Whales deposit/withdraw Architecture follows wasm-solana/wasm-dot patterns: - Two-layer rule: core Rust logic in src/, thin WASM bindings in src/wasm/ - TypeScript wrappers in js/ with bigint for all monetary amounts - Transaction signing via signablePayload() + addSignature() - Standalone parseTransaction() for all 7 transaction shapes - Intent-based buildTransaction() with BuildContext for offline building 32 TypeScript tests + Rust unit tests. BTC-3211
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
@bitgo/wasm-tonWASM package for offline TON transaction building, parsing, and signing supporttoner(tlb-ton 0.7.3) Rust crate, compiles to wasm32-unknown-unknownsrc/, thin#[wasm_bindgen]wrappers insrc/wasm/, TypeScript wrappers injs/signablePayload()andaddSignature()for TSS integrationprivate: truein package.json until npm package is created by velocity teamTicket: BTC-3212