Updates the `wdk-wallet-spark` docs to align with release `beta.7` + Audit
Created by: ihsraham
Description
Updates the wdk-wallet-spark documentation to align with release v1.0.0-beta.7 and addresses existing quality issues.
Release Based Changes (v1.0.0-beta.7)
Updates reflecting changes in the SDK source code:
-
Moved
verifymethod: Moved fromWalletAccountSparktoWalletAccountReadOnlySparkto match SDK refactor.- Commit: 0a44f1a
-
Updated
exitSpeeddefault: Updated documentation (types) to reflect thatCoopExitRequest.exitSpeeddefaults to'MEDIUM'.- Commit: 3958a2c
General Documentation Improvements
Fixes for issues found during verification (correcting previous documentation state):
-
API Reference (
api-reference.md):-
Added
WalletAccountReadOnlySparkSection: Added dedicated section for read-only account methods (e.g.,verify,getTransactionReceipt), aligning with EVM documentation style.
-
Added
-
Usage Guide (
usage.md):- Added ESM Hint: Added warning about ES Module syntax requirements.
-
Fixed Invalid Seed Phrases: Replaced placeholder phrases (
'your twelve word seed phrase here') with valid BIP-39 test mnemonics. -
Fixed Syntax Errors: Resolved duplicate
const walletvariable declaration in the "Quick Start" example. -
Fixed Type Errors: Corrected
BigIntvsNumberdivision in balance calculation examples.
-
Configuration (
configuration.md):-
Fixed Missing Definitions: Added missing
seedPhrasedefinition to the "Complete Configuration Example".
-
Fixed Missing Definitions: Added missing
-
README (
README.md):-
Added Installation Instructions: Added
npm installcommand (previously missing).
-
Added Installation Instructions: Added
Verification
-
Manual Verification: All code examples in usage.mdandconfiguration.mdverified to work successfully with blind copy-paste. -
API Coverage: Verified documentation against @tetherto/wdk-wallet-sparkSDK types via runtime inspection to ensure all exported methods are documented.