docs: convert remaining monolithic usage.md files into how-to guides
Created by: ihsraham
Summary
- Split 7 remaining monolithic
usage.mdfiles into 36 focused how-to guides across wallet, bridge, swap, lending, and fiat modules - Converted each original
usage.mdinto a card table hub page linking to its guides - Updated
SUMMARY.mdwith all 36 new guide entries nested under their respective module Usage pages -
Updated wallet-spark docs for v1.0.0-beta.12: aligned API reference, configuration, guides, and README with
.d.tstype definitions from the new release
Modules Converted
| Module | Guides | Lines (old) | Lines (new total) |
|---|---|---|---|
| wallet-btc | 7 | 659 | ~612 |
| wallet-evm-erc-4337 | 7 | 522 | ~601 |
| wallet-spark | 7 | 571 | ~707 |
| bridge-usdt0-evm | 5 | 434 | ~535 |
| swap-velora-evm | 4 | 292 | ~378 |
| lending-aave-evm | 3 | 210 | ~326 |
| fiat-moonpay | 3 | 202 | ~326 |
wallet-spark v1.0.0-beta.12 Documentation Fixes
Verified against .d.ts from @tetherto/wdk-wallet-spark@1.0.0-beta.12.
API Reference (api-reference.md):
- Removed
SparkTransactionReceipttype section (@sparkscan/api-node-sdk-clientdependency dropped) -
getTransactionReceipt()return type corrected fromSparkTransactionReceipt | nulltoSparkTransfer | null -
getUnusedDepositAddresses()signature updated: accepts optionalQueryDepositAddressesParams, returns{ depositAddresses: DepositAddressQueryResult[], offset: number } -
getSparkInvoices()signature updated: acceptsQuerySparkInvoicesParams, returns{ invoiceStatuses: InvoiceResponse[], offset: number } - Added
getStaticDepositAddresses()andgetUtxosForDepositAddress()to bothWalletAccountSparkandWalletAccountReadOnlySpark - Moved
getTransfers()toWalletAccountReadOnlySpark(available on full account via inheritance) - Removed
verify()fromWalletAccountReadOnlySpark(no longer declared in.d.ts) - Documented
getAccountByPath()onWalletManagerSpark(was incorrectly marked as unsupported) - Added
SIGNETtoSparkWalletConfignetwork options - Fixed
WithdrawOptions: documented asOmit<WithdrawParams, 'feeQuote'>, removedfeeQuotefrom example - Fixed
TransferOptionsvsGetTransfersOptionstype confusion (these are distinct types) - Added new exported types:
DepositAddressQueryResult,InvoiceResponse,QueryDepositAddressesParams,GetUtxosParams,QuerySparkInvoicesParams - Removed
sparkScanApiKeyfromSparkWalletConfigtype
Configuration (configuration.md):
- Removed
SparkScan API Keysection (config option no longer exists) - Updated code comment to show
SIGNETas valid network option
README (README.md):
- Added "Spark Signet" to supported networks list
Guides:
-
deposits-and-withdrawals.md: removedfeeQuotefromwithdraw()example, addedgetStaticDepositAddresses()andgetUtxosForDepositAddress()sections, updated intro anchors -
manage-accounts.md: replaced "getAccountByPath not supported" warning with documented usage and code example -
get-started.md: addedSIGNETto network options hint
Changelog (overview/changelog.md):
- Added wallet-spark v1.0.0-beta.12 entry with all public API changes
Guide Structure (per module)
Each guide follows the pattern established in PRs #64, #105, and #111:
- YAML frontmatter with title, description, and layout block
- Intro paragraph linking to all
##sections - API reference cross-links on every method/class in prose
- Descriptive lead-in before every code block
-
{% code %}wrappers with line numbers -
{% hint %}callouts for warnings/tips - Next Steps linking to the next logical guide
-
handle-errors.mdseparates error handling from Best Practices (fee management, dispose)
Flagged Tasks (from original task list)
- swap-stonfi-ton: Module does not exist (404 on npm, no directory in repo). Cancelled.
-
UI KITS: Already well-structured with no monolithic
usage.mdto convert. Cancelled.
Compliance
- Token naming: USD₮ in prose, USDT in code (T1)
- Real contract addresses from api-reference.md (T3)
- Realistic values achievable with testnet faucets (T4)
- GitBook render safety verified: balanced code fences, hint/endhint, code/endcode, HTML tables
- No filler words (W4)
- All wallet-spark fixes verified against
wallet-account-spark.d.ts,wallet-account-read-only-spark.d.ts, andindex.d.tsfrom beta.12