Skip to content

Commit 4abdddc

Browse files
authored
Merge pull request #4 from lmcmz/main
Add Flow EVM into the list
2 parents 560af59 + f9a464e commit 4abdddc

2 files changed

Lines changed: 15 additions & 5 deletions

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ All services are exposed through a consistent interface of MCP tools and resourc
113113
- Zora
114114
- Aurora
115115
- Canto
116+
- Flow
116117
- Lumia
117118

118119
### Testnets
@@ -137,6 +138,7 @@ All services are exposed through a consistent interface of MCP tools and resourc
137138
- Celo Alfajores
138139
- Goerli
139140
- Holesky
141+
- Flow Testnet
140142
- Lumia Testnet
141143

142144
## 🛠️ Prerequisites

src/core/chains.ts

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ import {
3131
zora,
3232
aurora,
3333
canto,
34+
flowMainnet,
3435

3536
// Testnets
3637
sepolia,
@@ -54,7 +55,8 @@ import {
5455
zoraSepolia,
5556
celoAlfajores,
5657
goerli,
57-
holesky
58+
holesky,
59+
flowTestnet
5860
} from 'viem/chains';
5961

6062
// Default configuration values
@@ -94,6 +96,7 @@ export const chainMap: Record<number, Chain> = {
9496
7777777: zora,
9597
1313161554: aurora,
9698
7700: canto,
99+
747: flowMainnet,
97100

98101
// Testnets
99102
11155111: sepolia,
@@ -117,7 +120,8 @@ export const chainMap: Record<number, Chain> = {
117120
999999999: zoraSepolia,
118121
44787: celoAlfajores,
119122
5: goerli,
120-
17000: holesky
123+
17000: holesky,
124+
545: flowTestnet,
121125
};
122126

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

169174
// Testnets
170175
'sepolia': 11155111,
@@ -208,7 +213,8 @@ export const networkNameMap: Record<string, number> = {
208213
'celoalfajores': 44787,
209214
'alfajores': 44787,
210215
'goerli': 5,
211-
'holesky': 17000
216+
'holesky': 17000,
217+
'flow-testnet': 545,
212218
};
213219

214220
// Map chain IDs to RPC URLs
@@ -244,6 +250,7 @@ export const rpcUrlMap: Record<number, string> = {
244250
7777777: 'https://rpc.zora.energy',
245251
1313161554: 'https://mainnet.aurora.dev',
246252
7700: 'https://canto.gravitychain.io',
253+
747: 'https://mainnet.evm.nodes.onflow.org',
247254

248255
// Testnets
249256
11155111: 'https://sepolia.drpc.org',
@@ -267,7 +274,8 @@ export const rpcUrlMap: Record<number, string> = {
267274
999999999: 'https://sepolia.rpc.zora.energy',
268275
44787: 'https://alfajores-forno.celo-testnet.org',
269276
5: 'https://rpc.ankr.com/eth_goerli',
270-
17000: 'https://ethereum-holesky.publicnode.com'
277+
17000: 'https://ethereum-holesky.publicnode.com',
278+
545: 'https://testnet.evm.nodes.onflow.org',
271279
};
272280

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

0 commit comments

Comments
 (0)