forked from clrfund/monorepo
-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathchains.ts
111 lines (109 loc) · 2.79 KB
/
chains.ts
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
export enum ChainId {
MAINNET = 1,
RINKEBY = 4,
HARDHAT = 31337,
ARBITRUM_ONE = 42161,
ARBITRUM_RINKEBY = 421611,
OPTIMISM = 10,
GNOSIS = 100,
POLYGON = 137,
}
export interface ChainInfo {
[chainId: number]: {
label: string
currency: string
logo: string
isLayer2: boolean
explorer: string
explorerLogo: string
explorerLabel: string
rpcUrl?: string
bridge?: string
}
}
export const CHAIN_INFO: ChainInfo = {
[ChainId.MAINNET]: {
label: 'Mainnet',
currency: 'ETH',
logo: 'eth.svg',
isLayer2: false,
explorer: 'https://etherscan.io',
explorerLogo: 'etherscan.svg',
explorerLabel: 'Etherscan',
},
[ChainId.RINKEBY]: {
label: 'Rinkeby',
currency: 'ETH',
logo: 'eth.svg',
isLayer2: false,
explorer: 'https://rinkeby.etherscan.io',
explorerLogo: 'etherscan.svg',
explorerLabel: 'Etherscan',
},
[ChainId.HARDHAT]: {
label: 'Arbitrum Hardhat',
currency: 'AETH',
logo: 'arbitrum.svg',
isLayer2: true,
explorer: 'https://testnet.arbiscan.io',
explorerLogo: 'arbitrum.svg',
explorerLabel: 'Arbiscan',
rpcUrl: 'https://rinkeby.arbitrum.io/rpc',
bridge: 'https://bridge.arbitrum.io',
},
[ChainId.ARBITRUM_ONE]: {
label: 'Arbitrum',
currency: 'AETH',
logo: 'arbitrum.svg',
isLayer2: true,
explorer: 'https://arbiscan.io',
explorerLogo: 'arbitrum.svg',
explorerLabel: 'Arbiscan',
rpcUrl: 'https://arb1.arbitrum.io/rpc',
bridge: 'https://bridge.arbitrum.io',
},
[ChainId.ARBITRUM_RINKEBY]: {
label: 'Arbitrum Rinkeby',
currency: 'AETH',
logo: 'arbitrum.svg',
isLayer2: true,
explorer: 'https://testnet.arbiscan.io',
explorerLogo: 'arbitrum.svg',
explorerLabel: 'Arbiscan',
rpcUrl: 'https://rinkeby.arbitrum.io/rpc',
bridge: 'https://bridge.arbitrum.io',
},
[ChainId.OPTIMISM]: {
label: 'Optimism',
currency: 'OETH',
logo: 'optimism.svg',
isLayer2: true,
explorer: 'https://optimistic.etherscan.io',
explorerLogo: 'optimism.svg',
explorerLabel: 'Etherscan',
rpcUrl: 'https://mainnet.optimism.io',
bridge: 'https://gateway.optimism.io',
},
[ChainId.GNOSIS]: {
label: 'Gnosis Chain',
currency: 'xDai',
logo: 'xdai.svg',
isLayer2: false,
explorer: 'https://blockscout.com/xdai/mainnet/',
explorerLogo: 'gnosis-chain.svg',
explorerLabel: 'Blockscout',
rpcUrl: 'https://rpc.xdaichain.com',
bridge: 'https://bridge.xdaichain.com',
},
[ChainId.POLYGON]: {
label: 'Polygon',
currency: 'MATIC',
logo: 'polygon.svg',
isLayer2: false,
explorer: 'https://polygonscan.com/',
explorerLogo: 'polygon.svg',
explorerLabel: 'Polygonscan',
rpcUrl: 'https://rpc-mainnet.matic.network',
bridge: 'https://wallet.polygon.technology',
},
}