From 97901181139a8574f688179864331777c7fda422 Mon Sep 17 00:00:00 2001 From: Shashank Trivedi Date: Thu, 8 May 2025 00:16:01 +0530 Subject: [PATCH] feat: add Filecoin Calibration network to chains and update mappings --- README.md | 1 + src/core/chains.ts | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6f4f47a..bf74039 100644 --- a/README.md +++ b/README.md @@ -139,6 +139,7 @@ All services are exposed through a consistent interface of MCP tools and resourc - Goerli - Holesky - Flow Testnet +- Filecoin Calibration - Lumia Testnet ## 🛠️ Prerequisites diff --git a/src/core/chains.ts b/src/core/chains.ts index 43bac2c..c5c5dda 100644 --- a/src/core/chains.ts +++ b/src/core/chains.ts @@ -56,7 +56,8 @@ import { celoAlfajores, goerli, holesky, - flowTestnet + flowTestnet, + filecoinCalibration } from 'viem/chains'; // Default configuration values @@ -122,6 +123,7 @@ export const chainMap: Record = { 5: goerli, 17000: holesky, 545: flowTestnet, + 314159: filecoinCalibration, }; // Map network names to chain IDs for easier reference @@ -215,6 +217,7 @@ export const networkNameMap: Record = { 'goerli': 5, 'holesky': 17000, 'flow-testnet': 545, + 'filecoin-calibration': 314159, }; // Map chain IDs to RPC URLs @@ -276,6 +279,7 @@ export const rpcUrlMap: Record = { 5: 'https://rpc.ankr.com/eth_goerli', 17000: 'https://ethereum-holesky.publicnode.com', 545: 'https://testnet.evm.nodes.onflow.org', + 314159: 'https://api.calibration.node.glif.io/rpc/v1', }; /**