diff --git a/README.md b/README.md index 5bbc83f..6f4f47a 100644 --- a/README.md +++ b/README.md @@ -113,6 +113,7 @@ All services are exposed through a consistent interface of MCP tools and resourc - Zora - Aurora - Canto +- Flow - Lumia ### Testnets @@ -137,6 +138,7 @@ All services are exposed through a consistent interface of MCP tools and resourc - Celo Alfajores - Goerli - Holesky +- Flow Testnet - Lumia Testnet ## 🛠️ Prerequisites diff --git a/src/core/chains.ts b/src/core/chains.ts index e89b275..43bac2c 100644 --- a/src/core/chains.ts +++ b/src/core/chains.ts @@ -31,6 +31,7 @@ import { zora, aurora, canto, + flowMainnet, // Testnets sepolia, @@ -54,7 +55,8 @@ import { zoraSepolia, celoAlfajores, goerli, - holesky + holesky, + flowTestnet } from 'viem/chains'; // Default configuration values @@ -94,6 +96,7 @@ export const chainMap: Record = { 7777777: zora, 1313161554: aurora, 7700: canto, + 747: flowMainnet, // Testnets 11155111: sepolia, @@ -117,7 +120,8 @@ export const chainMap: Record = { 999999999: zoraSepolia, 44787: celoAlfajores, 5: goerli, - 17000: holesky + 17000: holesky, + 545: flowTestnet, }; // Map network names to chain IDs for easier reference @@ -165,6 +169,7 @@ export const networkNameMap: Record = { 'zora': 7777777, 'aurora': 1313161554, 'canto': 7700, + 'flow': 747, // Testnets 'sepolia': 11155111, @@ -208,7 +213,8 @@ export const networkNameMap: Record = { 'celoalfajores': 44787, 'alfajores': 44787, 'goerli': 5, - 'holesky': 17000 + 'holesky': 17000, + 'flow-testnet': 545, }; // Map chain IDs to RPC URLs @@ -244,6 +250,7 @@ export const rpcUrlMap: Record = { 7777777: 'https://rpc.zora.energy', 1313161554: 'https://mainnet.aurora.dev', 7700: 'https://canto.gravitychain.io', + 747: 'https://mainnet.evm.nodes.onflow.org', // Testnets 11155111: 'https://sepolia.drpc.org', @@ -267,7 +274,8 @@ export const rpcUrlMap: Record = { 999999999: 'https://sepolia.rpc.zora.energy', 44787: 'https://alfajores-forno.celo-testnet.org', 5: 'https://rpc.ankr.com/eth_goerli', - 17000: 'https://ethereum-holesky.publicnode.com' + 17000: 'https://ethereum-holesky.publicnode.com', + 545: 'https://testnet.evm.nodes.onflow.org', }; /** @@ -341,4 +349,4 @@ export function getSupportedNetworks(): string[] { return Object.keys(networkNameMap) .filter(name => name.length > 2) // Filter out short aliases .sort(); -} \ No newline at end of file +}