Skip to content

Commit 0d82607

Browse files
committed
Add flow into chains.ts
1 parent 27e89fb commit 0d82607

1 file changed

Lines changed: 13 additions & 5 deletions

File tree

src/core/chains.ts

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ import {
3030
zora,
3131
aurora,
3232
canto,
33+
flowMainnet
3334

3435
// Testnets
3536
sepolia,
@@ -52,7 +53,8 @@ import {
5253
zoraSepolia,
5354
celoAlfajores,
5455
goerli,
55-
holesky
56+
holesky,
57+
flowTestnet
5658
} from 'viem/chains';
5759

5860
// Default configuration values
@@ -91,6 +93,7 @@ export const chainMap: Record<number, Chain> = {
9193
7777777: zora,
9294
1313161554: aurora,
9395
7700: canto,
96+
747: flowMainnet
9497

9598
// Testnets
9699
11155111: sepolia,
@@ -113,7 +116,8 @@ export const chainMap: Record<number, Chain> = {
113116
999999999: zoraSepolia,
114117
44787: celoAlfajores,
115118
5: goerli,
116-
17000: holesky
119+
17000: holesky,
120+
545: flowTestnet
117121
};
118122

119123
// Map network names to chain IDs for easier reference
@@ -160,6 +164,7 @@ export const networkNameMap: Record<string, number> = {
160164
'zora': 7777777,
161165
'aurora': 1313161554,
162166
'canto': 7700,
167+
'flow': 747
163168

164169
// Testnets
165170
'sepolia': 11155111,
@@ -202,7 +207,8 @@ export const networkNameMap: Record<string, number> = {
202207
'celoalfajores': 44787,
203208
'alfajores': 44787,
204209
'goerli': 5,
205-
'holesky': 17000
210+
'holesky': 17000,
211+
'flow-testnet': 545
206212
};
207213

208214
// Map chain IDs to RPC URLs
@@ -237,6 +243,7 @@ export const rpcUrlMap: Record<number, string> = {
237243
7777777: 'https://rpc.zora.energy',
238244
1313161554: 'https://mainnet.aurora.dev',
239245
7700: 'https://canto.gravitychain.io',
246+
747: 'https://mainnet.evm.nodes.onflow.org'
240247

241248
// Testnets
242249
11155111: 'https://sepolia.drpc.org',
@@ -259,7 +266,8 @@ export const rpcUrlMap: Record<number, string> = {
259266
999999999: 'https://sepolia.rpc.zora.energy',
260267
44787: 'https://alfajores-forno.celo-testnet.org',
261268
5: 'https://rpc.ankr.com/eth_goerli',
262-
17000: 'https://ethereum-holesky.publicnode.com'
269+
17000: 'https://ethereum-holesky.publicnode.com',
270+
545: 'https://testnet.evm.nodes.onflow.org'
263271
};
264272

265273
/**
@@ -333,4 +341,4 @@ export function getSupportedNetworks(): string[] {
333341
return Object.keys(networkNameMap)
334342
.filter(name => name.length > 2) // Filter out short aliases
335343
.sort();
336-
}
344+
}

0 commit comments

Comments
 (0)