Commit 3be05b1
committed
feat: add wasm-dot package for Polkadot transaction building and decoding
WASM-based Polkadot/Substrate transaction builder, parser, and explainer
for use by sdk-coin-dot (tdot). Supports transfers, staking operations,
proxy management, and batched calls.
Key capabilities:
- Build unsigned extrinsics from high-level intents (transfer, stake, batch, proxy)
- Parse signed/unsigned extrinsics with metadata-aware signed extension decoding
- Explain transactions: derive type, extract outputs/inputs, attach DOT-specific metadata
- Proxy type resolution from chain metadata (works across Polkadot, Kusama, Westend)
- parseTransaction returns DotTransaction with .parse() method (PSBT pattern)
BTC-01 parent fac868d commit 3be05b1
35 files changed
Lines changed: 6735 additions & 3 deletions
File tree
- packages/wasm-dot
- js
- src
- builder
- wasm
- test
- resources
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| 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 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
0 commit comments