-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathChain.ts
More file actions
77 lines (75 loc) · 1.87 KB
/
Chain.ts
File metadata and controls
77 lines (75 loc) · 1.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
export enum Chain {
// Mainnets
Ethereum = 1,
Abstract = 2741,
ApeChain = 33139,
ArbitrumOne = 42161,
AvalancheCChain = 43114, // Etherscan paid tier only
Base = 8453, // Etherscan paid tier only
Berachain = 80094,
BitTorrentChain = 199,
Blast = 81457,
BNBSmartChain = 56, // Etherscan paid tier only
Celo = 42220,
Fraxtal = 252,
Gnosis = 100,
HyperEVM = 999,
Katana = 747474,
Linea = 59144,
Mantle = 5000,
MegaETH = 4326,
Memecore = 4352,
Monad = 143,
Moonbeam = 1284,
Moonriver = 1285,
OpBNB = 204,
Optimism = 10, // Etherscan paid tier only
Plasma = 9745,
Polygon = 137,
Scroll = 534352,
Sei = 1329,
Sonic = 146,
Stable = 988,
Swellchain = 1923,
Taiko = 167000,
Unichain = 130,
World = 480,
XDC = 50,
// Testnets
EthereumSepolia = 11155111,
EthereumHoodi = 560048,
AbstractSepolia = 11124,
ApeChainCurtis = 33111,
ArbitrumSepolia = 421614,
AvalancheFuji = 43113, // Etherscan paid tier only
BaseSepolia = 84532, // Etherscan paid tier only
BerachainBepolia = 80069,
BitTorrentChainTestnet = 1029,
BlastSepolia = 168587773,
BNBSmartChainTestnet = 97, // Etherscan paid tier only
CeloSepolia = 11142220,
FraxtalHoodi = 2523,
LineaSepolia = 59141,
MantleSepolia = 5003,
MegaETHTestnet = 6342,
MemecoreTestnet = 43521,
MonadTestnet = 10143,
MoonbaseAlpha = 1287,
OpBNBTestnet = 5611,
OptimismSepolia = 11155420, // Etherscan paid tier only
PlasmaTestnet = 9746,
PolygonAmoy = 80002,
SeiTestnet = 1328,
ScrollSepolia = 534351,
SonicTestnet = 14601,
StableTestnet = 2201,
SwellchainTestnet = 1924,
TaikoHoodi = 167013,
UnichainSepolia = 1301,
WorldSepolia = 4801,
XDCApothem = 51,
}
export type ChainName = keyof typeof Chain;
const chainNames_ = new Map<number, ChainName>();
Object.entries(Chain).forEach(([name, id]) => chainNames_.set(id as Chain, name as ChainName));
export const chainNames = chainNames_ as ReadonlyMap<number, ChainName>;