Configure Filecoin Calibration testnet - #11
Conversation
WalkthroughThe changes introduce support for the Filecoin Calibration testnet by updating both the codebase and documentation. The Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant App
participant ChainsModule
User->>App: Select "Filecoin Calibration" network
App->>ChainsModule: Lookup network by name or ID
ChainsModule-->>App: Return chain config and RPC URL for Filecoin Calibration
App-->>User: Connects and interacts with Filecoin Calibration testnet
Possibly related PRs
Poem
✨ Finishing Touches
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
src/core/chains.ts (1)
220-220: Suggest adding aliases for Filecoin Calibration
You’ve added'filecoin-calibration': 314159, but for consistency with other entries, consider also supporting the concatenated and short aliases.Example diff:
@@ networkNameMap 'filecoin-calibration': 314159, + 'filecoincalibration': 314159, + 'fil-calibration': 314159, + 'filcalibration': 314159,
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
README.md(1 hunks)src/core/chains.ts(4 hunks)
🔇 Additional comments (4)
README.md (1)
142-142: Documentation updated to include Filecoin Calibration
The new testnet is correctly added under the “Testnets” section, matching the placement by network family order.src/core/chains.ts (3)
59-60: Import Filecoin Calibration chain
ThefilecoinCalibrationchain is correctly imported alongsideflowTestnet. Ensure yourviemdependency version includes this export.
126-126: Add Filecoin Calibration to chainMap
Mapping chain ID314159tofilecoinCalibrationaligns with the new network support.
282-282: Add RPC URL for Filecoin Calibration
The RPC URL'https://api.calibration.node.glif.io/rpc/v1'is correctly mapped to314159.
This pull request introduces support for the Filecoin Calibration network by updating documentation and extending the chain configuration in the codebase. The most important changes include adding the Filecoin Calibration network to the list of supported networks and updating various mappings in the chain configuration file to include its details.
Documentation Update:
README.mdfile.Chain Configuration Updates:
filecoinCalibrationto the list of imported chains insrc/core/chains.ts.chainMapto include the chain ID and configuration for Filecoin Calibration (314159).networkNameMapto map the network namefilecoin-calibrationto its chain ID (314159).rpcUrlMapto include the RPC URL for Filecoin Calibration (https://api.calibration.node.glif.io/rpc/v1).Summary by CodeRabbit