Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ All services are exposed through a consistent interface of MCP tools and resourc
- Zora
- Aurora
- Canto
- Flow
- Lumia

### Testnets
Expand All @@ -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
Expand Down
18 changes: 13 additions & 5 deletions src/core/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import {
zora,
aurora,
canto,
flowMainnet,

// Testnets
sepolia,
Expand All @@ -54,7 +55,8 @@ import {
zoraSepolia,
celoAlfajores,
goerli,
holesky
holesky,
flowTestnet
} from 'viem/chains';

// Default configuration values
Expand Down Expand Up @@ -94,6 +96,7 @@ export const chainMap: Record<number, Chain> = {
7777777: zora,
1313161554: aurora,
7700: canto,
747: flowMainnet,

// Testnets
11155111: sepolia,
Expand All @@ -117,7 +120,8 @@ export const chainMap: Record<number, Chain> = {
999999999: zoraSepolia,
44787: celoAlfajores,
5: goerli,
17000: holesky
17000: holesky,
545: flowTestnet,
};

// Map network names to chain IDs for easier reference
Expand Down Expand Up @@ -165,6 +169,7 @@ export const networkNameMap: Record<string, number> = {
'zora': 7777777,
'aurora': 1313161554,
'canto': 7700,
'flow': 747,

// Testnets
'sepolia': 11155111,
Expand Down Expand Up @@ -208,7 +213,8 @@ export const networkNameMap: Record<string, number> = {
'celoalfajores': 44787,
'alfajores': 44787,
'goerli': 5,
'holesky': 17000
'holesky': 17000,
'flow-testnet': 545,
};

// Map chain IDs to RPC URLs
Expand Down Expand Up @@ -244,6 +250,7 @@ export const rpcUrlMap: Record<number, string> = {
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',
Expand All @@ -267,7 +274,8 @@ export const rpcUrlMap: Record<number, string> = {
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',
};

/**
Expand Down Expand Up @@ -341,4 +349,4 @@ export function getSupportedNetworks(): string[] {
return Object.keys(networkNameMap)
.filter(name => name.length > 2) // Filter out short aliases
.sort();
}
}