Skip to content

Commit 408bdd8

Browse files
authored
Merge pull request #11 from lordshashank/feat/filecoin-calibration
Configure Filecoin Calibration testnet
2 parents e06c90c + 9790118 commit 408bdd8

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ All services are exposed through a consistent interface of MCP tools and resourc
139139
- Goerli
140140
- Holesky
141141
- Flow Testnet
142+
- Filecoin Calibration
142143
- Lumia Testnet
143144

144145
## 🛠️ Prerequisites

src/core/chains.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ import {
5656
celoAlfajores,
5757
goerli,
5858
holesky,
59-
flowTestnet
59+
flowTestnet,
60+
filecoinCalibration
6061
} from 'viem/chains';
6162

6263
// Default configuration values
@@ -122,6 +123,7 @@ export const chainMap: Record<number, Chain> = {
122123
5: goerli,
123124
17000: holesky,
124125
545: flowTestnet,
126+
314159: filecoinCalibration,
125127
};
126128

127129
// Map network names to chain IDs for easier reference
@@ -215,6 +217,7 @@ export const networkNameMap: Record<string, number> = {
215217
'goerli': 5,
216218
'holesky': 17000,
217219
'flow-testnet': 545,
220+
'filecoin-calibration': 314159,
218221
};
219222

220223
// Map chain IDs to RPC URLs
@@ -276,6 +279,7 @@ export const rpcUrlMap: Record<number, string> = {
276279
5: 'https://rpc.ankr.com/eth_goerli',
277280
17000: 'https://ethereum-holesky.publicnode.com',
278281
545: 'https://testnet.evm.nodes.onflow.org',
282+
314159: 'https://api.calibration.node.glif.io/rpc/v1',
279283
};
280284

281285
/**

0 commit comments

Comments
 (0)