Skip to content

btc ton tron protocols audit + wdk-spark beta.10 release

Created by: ihsraham

Summary

Documentation audit against .d.ts type definitions. Fixes type errors, adds missing methods/params, corrects code examples, removes unwanted token references, and deletes unpublished module docs.


Wallet Modules

wallet-btc - Fix duplicate ToC entry, remove always-throws methods, add missing ReadOnly method explanations, fix KeyPair.privateKey type

wallet-ton - Fix number to bigint for fees/balances, Buffer to Uint8Array for KeyPair, add toReadOnlyAccount() and getTransactionReceipt(), add WalletAccountReadOnlyTon section, fix TonTransaction.body

wallet-ton-gasless - Remove quoteSendTransaction (always throws), fix method table ordering, fix fee type to bigint, update read-only constructor config

wallet-tron - Fix fee/balance types to bigint, Buffer to Uint8Array for KeyPair, fix TronTransaction.value and transferMaxFee to number | bigint, add missing getTransactionReceipt()

wallet-tron-gasfree - Fix inheritance (WalletManagerTron to WalletManager), fix chainId type (string to number), add missing methods, fix transfer() second config parameter

wallet-spark - Add getIdentityKey() method to WalletAccountSpark and WalletAccountReadOnlySpark (v1.0.0-beta.10), add changelog entry

Protocol Modules

bridge-usdt0-evm - Fix amount/bridgeMaxFee types to number | bigint, fix broken WalletAccountEvm constructors (missing path param), correct quoteBridge return type

swap-velora-evm - Fix swapMaxFee/tokenInAmount/tokenOutAmount types to number | bigint

lending-aave-evm - Fix amount types across supply/withdraw/borrow/repay, add prerequisites note with testnet funding links

Fiat Modules

fiat-moonpay - Fix cryptoAmount/fiatAmount input types from bigint to number | bigint. Complete MoonPayBuyParams with missing fields. Add separate MoonPaySellParams type definition. Add sell widget options table.

Deleted Unpublished Modules

Removed folders and all references:

  • bridge-usdt0-ton (not published on npm)
  • swap-stonfi-ton (not published on npm)

Other

  • Remove other stable coin references from docs and examples
  • Add Aave testnet faucet info to resources/concepts.md

Merge request reports