docs: move verify to read-only docs and add agent guides
Created by: ihsraham
Summary
This PR standardizes the API reference documentation across all wallet modules and updates the Bitcoin, TON Gasless, and Tron Gas-Free modules to their latest beta versions (beta.5 and beta.4 respectively). It ensures consistent method signatures, return types (bigint), and properly documented inheritance for "Convenience Mode".
Changes
1. Bitcoin Module (wdk-wallet-btc) Updates (beta.5)
-
Pluggable Transport: Added documentation and configuration support for injecting custom Electrum clients (e.g.,
ElectrumWsfor browser support). -
New Classes: Added
ElectrumWsandIElectrumClientto API Reference. -
Verify Method: Moved
verify()toWalletAccountReadOnlyBtcwhile keeping it accessible in the main account class for convenience. -
Strict Typing: Updated all balance-related methods to return
Promise<bigint>. -
Documentation Refinement: Improved API reference navigation by linking all major type definitions (e.g.,
BtcWalletConfig,IElectrumClient).
2. Gasless Modules Updates (beta.4)
-
TON Gasless (
wdk-wallet-ton-gasless):- Moved
verifytoWalletAccountTonGaslessReadOnly. - Updated return types to
bigint.
- Moved
-
Tron Gas-Free (
wdk-wallet-tron-gasfree):- Moved
verifytoWalletAccountTronGasfreeReadOnly. - Updated return types to
bigint.
- Moved
3. API Standardization & Fixes
-
EVM Module:
- Added
approve()toWalletAccountEvm. - Added
getAllowance()toWalletAccountReadOnlyEvm. - Restored duplicated inherited methods in api-reference.md for better developer experience ("Convenience Mode").
- Updated configuration to use
vieminstead of outdatedethersv6 provider.
- Added
-
Solana Module:
- Added
getTransactionReceipt()andverify()to proper classes. - Updated method signatures to match SDK.
- Added
-
TON & Tron Modules:
- Standardized
verify,getTransactionReceipt, andbigintreturn types across documentation.
- Standardized
-
Global Documentation:
- Type Linking: Improved navigation in api-reference.md for all modules (EVM, Solana, TON, Tron, BTC, Gasless, Spark) by linking argument/return types to their definitions.
Verification
- Runtime Verification: Created verification environments for BTC, Gasless, and other chains to inspect .d.ts files and confirm method signatures/locations.
-
Type Checking: Verified that
numberreturn types were updated tobigintwhere appropriate.
Also has changes of #78