fix: align wallet docs with canonical mainnet config - #38
Conversation
📝 WalkthroughWalkthroughThis pull request updates Treasurenet network endpoints across documentation and configuration files. The RPC URL, Chain ID, and Block Explorer URL are changed to new Mainnet values, with the testnet explorer URL corrected. Changes are synchronized across JSON configuration, English documentation, and Chinese translations. ChangesTreasurenet Network Endpoints Update
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
i18n/zh-Hans/docusaurus-plugin-content-docs/current/fundamentals/wallets/coinbase.md (1)
38-38:⚠️ Potential issue | 🟡 Minor | ⚡ Quick winUpdate screenshot to reflect Chain ID 5570.
The screenshot filename
addnetwork35002little.pngcontains the old chain ID (5002), but the documentation specifies Chain ID5570for the Treasurenet mainnet. Either replace this screenshot with an updated image showing the new configuration (Chain ID 5570, RPC URL: https://rpc.treasurenet.io, Explorer: https://scan.treasurenet.io/), or if the image already displays the updated values, rename it to match the new chain ID (e.g.,addnetwork35570little.png) for consistency.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@i18n/zh-Hans/docusaurus-plugin-content-docs/current/fundamentals/wallets/coinbase.md` at line 38, The referenced screenshot filename addnetwork35002little.png in the Coinbase doc should be updated to reflect Chain ID 5570: either replace the image with a new screenshot that shows Chain ID 5570, RPC URL https://rpc.treasurenet.io and Explorer https://scan.treasurenet.io/, or if the current image already shows those values, rename the file to something like addnetwork35570little.png and update the image reference in coinbase.md accordingly so the filename and displayed Chain ID are consistent.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In
`@i18n/zh-Hans/docusaurus-plugin-content-docs/current/fundamentals/wallets/metamask.md`:
- Line 34: The screenshot reference in the markdown uses addmainnet5002.png but
the doc text expects Chain ID 5570; update the image reference to
addmainnet5570.png (or replace the file contents) and verify that the image
referenced by addmainnet5570.png clearly shows Chain ID 5570 and the correct
mainnet values (RPC URL, chain name, symbol, decimals) so the screenshot matches
the written instructions in metamask.md.
---
Outside diff comments:
In
`@i18n/zh-Hans/docusaurus-plugin-content-docs/current/fundamentals/wallets/coinbase.md`:
- Line 38: The referenced screenshot filename addnetwork35002little.png in the
Coinbase doc should be updated to reflect Chain ID 5570: either replace the
image with a new screenshot that shows Chain ID 5570, RPC URL
https://rpc.treasurenet.io and Explorer https://scan.treasurenet.io/, or if the
current image already shows those values, rename the file to something like
addnetwork35570little.png and update the image reference in coinbase.md
accordingly so the filename and displayed Chain ID are consistent.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 200d1a65-e37f-44dd-9d24-b1e7fb1914de
📒 Files selected for processing (7)
docs/fundamentals/wallets/coinbase.mddocs/fundamentals/wallets/metamask.mdi18n/zh-Hans/docusaurus-plugin-content-docs/current/blockExplorers/intro.mdi18n/zh-Hans/docusaurus-plugin-content-docs/current/fundamentals/wallets/coinbase.mdi18n/zh-Hans/docusaurus-plugin-content-docs/current/fundamentals/wallets/metamask.mdstatic/img/featuredNetworks.jsonstatic/img/featuredNetworks_testnet.json
| - Block Explorer URL (optional):https://evmexplorer.treasurenet.io/ | ||
| - Block Explorer URL (optional):https://scan.treasurenet.io/ | ||
|
|
||
|  |
There was a problem hiding this comment.
🧩 Analysis chain
🏁 Script executed:
fd -t f "addmainnet.*\.png" -iRepository: treasurenetprotocol/docs
Length of output: 134
🏁 Script executed:
find . -name "*5570*" -o -name "*addmainnet*" | grep -i pngRepository: treasurenetprotocol/docs
Length of output: 138
🏁 Script executed:
git ls-files | grep -E "(addmainnet|img/docs)" | head -20Repository: treasurenetprotocol/docs
Length of output: 865
🏁 Script executed:
cat -n i18n/zh-Hans/docusaurus-plugin-content-docs/current/fundamentals/wallets/metamask.md | head -50Repository: treasurenetprotocol/docs
Length of output: 1745
🏁 Script executed:
file static/img/docs/addmainnet.png static/img/docs/addmainnet5002.pngRepository: treasurenetprotocol/docs
Length of output: 113
🏁 Script executed:
ls -lh static/img/docs/addmainnet*.pngRepository: treasurenetprotocol/docs
Length of output: 232
🏁 Script executed:
git log --oneline -10 -- i18n/zh-Hans/docusaurus-plugin-content-docs/current/fundamentals/wallets/metamask.mdRepository: treasurenetprotocol/docs
Length of output: 129
🏁 Script executed:
git log --oneline -10 -- static/img/docs/addmainnet*.pngRepository: treasurenetprotocol/docs
Length of output: 129
🏁 Script executed:
git diff HEAD~5..HEAD -- i18n/zh-Hans/docusaurus-plugin-content-docs/current/fundamentals/wallets/metamask.md | grep -A 5 -B 5 "addmainnet"Repository: treasurenetprotocol/docs
Length of output: 103
🏁 Script executed:
git show 4e64eb9 --statRepository: treasurenetprotocol/docs
Length of output: 34735
🏁 Script executed:
git show 4e64eb9 -- i18n/zh-Hans/docusaurus-plugin-content-docs/current/fundamentals/wallets/metamask.mdRepository: treasurenetprotocol/docs
Length of output: 2643
Update the screenshot reference to match Chain ID 5570.
The image filename addmainnet5002.png references the old chain ID (5002), but the instructions specify Chain ID 5570. Either the screenshot filename should be updated to addmainnet5570.png, or the referenced image needs to be verified to ensure it displays the correct Chain ID and mainnet values (5570, RPC URL, etc.) to avoid confusing users.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In
`@i18n/zh-Hans/docusaurus-plugin-content-docs/current/fundamentals/wallets/metamask.md`
at line 34, The screenshot reference in the markdown uses addmainnet5002.png but
the doc text expects Chain ID 5570; update the image reference to
addmainnet5570.png (or replace the file contents) and verify that the image
referenced by addmainnet5570.png clearly shows Chain ID 5570 and the correct
mainnet values (RPC URL, chain name, symbol, decimals) so the screenshot matches
the written instructions in metamask.md.
Summary
Context
Validation
Summary by CodeRabbit
Documentation
Chores