Skip to content

docs: add wallet core guides and apply PRD doc corrections - #36

Merged
bbsyaya merged 17 commits into
TronLink:mainfrom
YukiXue1:docs/wallet-core-guides
Nov 26, 2026
Merged

bbsyaya merged 17 commits into
TronLink:mainfrom
YukiXue1:docs/wallet-core-guides

Conversation

@leon9665

@leon9665 leon9665 commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Adds open-source wallet core guides for Android, iOS and the browser extension (en/zh).
  • Applies the doc-corrections PRD (DOC-01–30) and fixes discrepancies found by checking claims against upstream source.
  • Docs, examples and the generator script only; no runtime behavior changes.

Changes

New pages: mobile/android-core, mobile/ios-core, plugin-wallet/extension-core. They are added to nav, llms.txt, AGENTS.md and gen_llms_full.py. Source links are pinned to tags.

DApp / extension

  • Examples handle authorization, signing and broadcast separately, and distinguish user rejection from other failures.
  • Multi-sig example:
    • queries the owner's permission;
    • checks cumulative weight via getSignWeight before broadcasting;
    • has co-signers verify raw_data against txID before signing.
  • The legacy tron_requestAccounts schema and types cover the empty-string response.

Mobile

  • DeepLink: encoded sample links match their requests; per-asset transfer fields; original 10025 message.
  • DApp Support scope clarified.

AI support

  • MCP Server:
    • manual and auto wallet creation are separated, and the password no longer goes in .mcp.json;
    • 24 flows;
    • slippage drives the minimum output.
  • MCP Core:
    • the response envelope matches 0.1.0;
    • ErrorCodes export name;
    • tl_chain_resource retry caveat.
  • Signer: Quick Start defines tx; calling patterns split; TRX/SUN units noted.
  • CLI: withdraw/reward prechecks; the payer and network are consistent in the transfer example.
  • Skills:
    • real repo URL, plus corrected token-price/swap-quote flags;
    • routing names the owning package, and voting replaces existing votes;
    • 39/40 MCP tools at b12b5868;
    • the reward claim interval is 24h.

Links and site

  • No page URL removed. zh CLI and multi-sig headings get stable English ids, and the old auto ids (#_N) and renamed anchors are kept. All 880 upstream anchors still resolve to the same sections.
  • gen_llms_full.py strips site-only anchor markup.
  • mkdocs.yml: attr_list enabled, extra.generator: false. The footer shows only the copyright.
  • gh-pages.yml is unchanged from main.

Verification

  • gen_llms_full.py --check and check_doc_schema_parity.py pass; mkdocs build h
  • 3,765 internal refs, no broken links or anchors. A full crawl under a /docs/ subpath is clean.
  • Multi-sig branch tests pass, 9/9 in en and zh.

Follow-ups

  • To confirm:
    • mobile in-app browser reuse scope and DeepLink omitted-key handling (App team);
    • whether the injected tronWeb exposes utils.transaction.txCheck (extension team);
    • the recommended Android version.
  • Separate PR: list the 10 missing Core error codes, document TL_WALLET_ERROR, and set the CLI example's default network.
  • After merge: spot-check the live site. Verify deployed links should pass once thion.

🤖 Generated with Claude Code

YukiXue1 and others added 17 commits November 25, 2026 17:11
Addresses OPT-TL-002 (D44) and OPT-TL-003 (D45).
- Handle rejections and other failures in every active-requests example
  (connect, sign, switch chain, legacy sendTrx/watchAsset; await watchAsset)
- Multi-sig co-signers verify raw_data against txID with txCheck and confirm
  owner, recipient, amount and expiry before signing
- DeepLink: placeholder DApp URL in samples; document keeping both transfer
  asset keys present
- Keep the mobile DApp support note conservative pending App confirmation
- Android core: state that the page documents 1.0.2 and what to review
  before using later tags
- Render passive-message screenshots via attr_list; add explicit anchors for
  zh networks and Android version sections
- Fix CLI transfer step numbering, zh unlock wording, stray spaces, and
  minOut wording in the MCP swap safety note

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Give zh CLI and multi-sig headings stable English ids and keep the old
  positional ids as inline anchors; keep renamed flow-recipe and #example
  anchors on the MCP server and multi-sig pages
- Strip site-only anchor markup from llms-full bundles
- Hide the "Made with Material for MkDocs" footer line (extra.generator)
- Android core: correct message-signing and reporting-module statements,
  drop version-specific wording outside the install snippet
- Skills: fix token-price/swap-quote flags, note that a vote replaces
  existing votes, document 39 of 40 MCP tools at b12b5868, and correct the
  reward claim interval to 24 hours
- MCP core/server: ErrorCodes export name, tl_chain_resource retry caveat,
  slippage-based minimum output, consistent example sessionId

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Link examples, privacy, license and manifests to main instead of tags
- Install the latest release: unpinned npm and CocoaPods, <VERSION>
  placeholder for the Android AAR with a link to releases
- Refer to upstream prerequisites/podspec/build config for runtime versions
- Android: describe reporting as opt-in via DataUploader.init/upload

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@bbsyaya
bbsyaya merged commit 808efa3 into TronLink:main Nov 26, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants