@lifi/data-types 1.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +201 -0
- package/README.md +31 -0
- package/dist/chains/index.d.ts +2 -0
- package/dist/chains/index.js +2 -0
- package/dist/chains/supportedChains.d.ts +6 -0
- package/dist/chains/supportedChains.js +1174 -0
- package/dist/chains/supportedChains.unit.spec.d.ts +1 -0
- package/dist/chains/supportedChains.unit.spec.js +79 -0
- package/dist/chains/utils.d.ts +1 -0
- package/dist/chains/utils.js +4 -0
- package/dist/cjs/chains/index.d.ts +2 -0
- package/dist/cjs/chains/index.js +18 -0
- package/dist/cjs/chains/supportedChains.d.ts +6 -0
- package/dist/cjs/chains/supportedChains.js +1179 -0
- package/dist/cjs/chains/supportedChains.unit.spec.d.ts +1 -0
- package/dist/cjs/chains/supportedChains.unit.spec.js +81 -0
- package/dist/cjs/chains/utils.d.ts +1 -0
- package/dist/cjs/chains/utils.js +8 -0
- package/dist/cjs/coins/coins.d.ts +26 -0
- package/dist/cjs/coins/coins.int.spec.d.ts +1 -0
- package/dist/cjs/coins/coins.int.spec.js +31 -0
- package/dist/cjs/coins/coins.js +1842 -0
- package/dist/cjs/coins/index.d.ts +1 -0
- package/dist/cjs/coins/index.js +17 -0
- package/dist/cjs/index.d.ts +3 -0
- package/dist/cjs/index.js +19 -0
- package/dist/cjs/multicall.d.ts +3 -0
- package/dist/cjs/multicall.js +79 -0
- package/dist/coins/coins.d.ts +26 -0
- package/dist/coins/coins.int.spec.d.ts +1 -0
- package/dist/coins/coins.int.spec.js +29 -0
- package/dist/coins/coins.js +1835 -0
- package/dist/coins/index.d.ts +1 -0
- package/dist/coins/index.js +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -0
- package/dist/multicall.d.ts +3 -0
- package/dist/multicall.js +76 -0
- package/package.json +90 -0
|
@@ -0,0 +1,1179 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getChainById = exports.getChainByKey = exports.supportedChains = exports.supportedSolanaChains = exports.supportedEVMChains = void 0;
|
|
4
|
+
const types_1 = require("@lifi/types");
|
|
5
|
+
const multicall_1 = require("../multicall");
|
|
6
|
+
const utils_1 = require("./utils");
|
|
7
|
+
// chainNames aligned with https://github.com/ethereum-lists/chains/tree/master/_data/chains
|
|
8
|
+
exports.supportedEVMChains = [
|
|
9
|
+
// 1 - Ethereum
|
|
10
|
+
{
|
|
11
|
+
key: types_1.ChainKey.ETH,
|
|
12
|
+
chainType: types_1.ChainType.EVM,
|
|
13
|
+
name: 'Ethereum',
|
|
14
|
+
coin: types_1.CoinKey.ETH,
|
|
15
|
+
id: 1,
|
|
16
|
+
mainnet: true,
|
|
17
|
+
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/ethereum.svg',
|
|
18
|
+
tokenlistUrl: 'https://gateway.ipfs.io/ipns/tokens.uniswap.org',
|
|
19
|
+
multicallAddress: multicall_1.multicallAddresses[types_1.ChainId.ETH],
|
|
20
|
+
metamask: {
|
|
21
|
+
chainId: (0, utils_1.prefixChainId)(1),
|
|
22
|
+
blockExplorerUrls: ['https://etherscan.io/'],
|
|
23
|
+
chainName: 'Ethereum Mainnet',
|
|
24
|
+
nativeCurrency: {
|
|
25
|
+
name: 'ETH',
|
|
26
|
+
symbol: 'ETH',
|
|
27
|
+
decimals: 18,
|
|
28
|
+
},
|
|
29
|
+
rpcUrls: [
|
|
30
|
+
'https://mainnet.infura.io/v3/9aa3d95b3bc440fa88ea12eaa4456161',
|
|
31
|
+
],
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
// 137 - Polygon
|
|
35
|
+
{
|
|
36
|
+
key: types_1.ChainKey.POL,
|
|
37
|
+
chainType: types_1.ChainType.EVM,
|
|
38
|
+
name: 'Polygon',
|
|
39
|
+
coin: types_1.CoinKey.MATIC,
|
|
40
|
+
id: 137,
|
|
41
|
+
mainnet: true,
|
|
42
|
+
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/polygon.svg',
|
|
43
|
+
tokenlistUrl: 'https://unpkg.com/quickswap-default-token-list@1.0.71/build/quickswap-default.tokenlist.json',
|
|
44
|
+
faucetUrls: ['https://stakely.io/faucet/polygon-matic'],
|
|
45
|
+
multicallAddress: multicall_1.multicallAddresses[types_1.ChainId.POL],
|
|
46
|
+
// https://docs.matic.network/docs/develop/metamask/config-matic/
|
|
47
|
+
metamask: {
|
|
48
|
+
chainId: (0, utils_1.prefixChainId)(137),
|
|
49
|
+
blockExplorerUrls: [
|
|
50
|
+
'https://polygonscan.com/',
|
|
51
|
+
'https://explorer-mainnet.maticvigil.com/',
|
|
52
|
+
],
|
|
53
|
+
chainName: 'Matic(Polygon) Mainnet',
|
|
54
|
+
nativeCurrency: {
|
|
55
|
+
name: 'MATIC',
|
|
56
|
+
symbol: 'MATIC',
|
|
57
|
+
decimals: 18,
|
|
58
|
+
},
|
|
59
|
+
rpcUrls: [
|
|
60
|
+
'https://polygon-rpc.com/',
|
|
61
|
+
'https://rpc-mainnet.maticvigil.com/',
|
|
62
|
+
],
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
// 56 - Binance Smart Chain
|
|
66
|
+
{
|
|
67
|
+
key: types_1.ChainKey.BSC,
|
|
68
|
+
chainType: types_1.ChainType.EVM,
|
|
69
|
+
name: 'BSC',
|
|
70
|
+
coin: types_1.CoinKey.BNB,
|
|
71
|
+
id: 56,
|
|
72
|
+
mainnet: true,
|
|
73
|
+
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/bsc.svg',
|
|
74
|
+
tokenlistUrl: 'https://tokens.pancakeswap.finance/pancakeswap-extended.json',
|
|
75
|
+
faucetUrls: ['https://stakely.io/faucet/bsc-chain-bnb'],
|
|
76
|
+
multicallAddress: multicall_1.multicallAddresses[types_1.ChainId.BSC],
|
|
77
|
+
// https://docs.binance.org/smart-chain/wallet/metamask.html
|
|
78
|
+
metamask: {
|
|
79
|
+
chainId: (0, utils_1.prefixChainId)(56),
|
|
80
|
+
blockExplorerUrls: ['https://bscscan.com/'],
|
|
81
|
+
chainName: 'Binance Smart Chain Mainnet',
|
|
82
|
+
nativeCurrency: {
|
|
83
|
+
name: 'BNB',
|
|
84
|
+
symbol: 'BNB',
|
|
85
|
+
decimals: 18,
|
|
86
|
+
},
|
|
87
|
+
rpcUrls: [
|
|
88
|
+
'https://bsc-dataseed.binance.org/',
|
|
89
|
+
'https://bsc-dataseed1.defibit.io/',
|
|
90
|
+
'https://bsc-dataseed1.ninicoin.io/',
|
|
91
|
+
],
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
// 100 - Gnosis
|
|
95
|
+
{
|
|
96
|
+
key: types_1.ChainKey.DAI,
|
|
97
|
+
chainType: types_1.ChainType.EVM,
|
|
98
|
+
name: 'Gnosis',
|
|
99
|
+
coin: types_1.CoinKey.DAI,
|
|
100
|
+
id: 100,
|
|
101
|
+
mainnet: true,
|
|
102
|
+
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/gnosis.svg',
|
|
103
|
+
tokenlistUrl: 'https://tokens.honeyswap.org/',
|
|
104
|
+
faucetUrls: ['https://stakely.io/faucet/xdai-chain'],
|
|
105
|
+
multicallAddress: multicall_1.multicallAddresses[types_1.ChainId.DAI],
|
|
106
|
+
// https://www.xdaichain.com/for-users/wallets/metamask/metamask-setup
|
|
107
|
+
metamask: {
|
|
108
|
+
chainId: (0, utils_1.prefixChainId)(100),
|
|
109
|
+
blockExplorerUrls: ['https://blockscout.com/xdai/mainnet/'],
|
|
110
|
+
chainName: 'Gnosis Chain',
|
|
111
|
+
nativeCurrency: {
|
|
112
|
+
name: 'xDai',
|
|
113
|
+
symbol: 'xDai',
|
|
114
|
+
decimals: 18,
|
|
115
|
+
},
|
|
116
|
+
rpcUrls: [
|
|
117
|
+
'https://rpc.gnosischain.com/',
|
|
118
|
+
'https://rpc.ankr.com/gnosis',
|
|
119
|
+
'https://xdai-rpc.gateway.pokt.network',
|
|
120
|
+
],
|
|
121
|
+
},
|
|
122
|
+
},
|
|
123
|
+
// 250 - Fantom
|
|
124
|
+
{
|
|
125
|
+
key: types_1.ChainKey.FTM,
|
|
126
|
+
chainType: types_1.ChainType.EVM,
|
|
127
|
+
name: 'Fantom',
|
|
128
|
+
coin: types_1.CoinKey.FTM,
|
|
129
|
+
id: 250,
|
|
130
|
+
mainnet: true,
|
|
131
|
+
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/fantom.svg',
|
|
132
|
+
tokenlistUrl: 'https://raw.githubusercontent.com/SpookySwap/spooky-info/master/src/constants/token/spookyswap.json',
|
|
133
|
+
faucetUrls: [
|
|
134
|
+
'https://stakely.io/faucet/fantom-blockchain-ftm',
|
|
135
|
+
'https://docs.spookyswap.finance/getting-started/how-to-get-fantom-gas',
|
|
136
|
+
],
|
|
137
|
+
multicallAddress: multicall_1.multicallAddresses[types_1.ChainId.FTM],
|
|
138
|
+
// https://docs.fantom.foundation/tutorials/set-up-metamask
|
|
139
|
+
metamask: {
|
|
140
|
+
chainId: (0, utils_1.prefixChainId)(250),
|
|
141
|
+
blockExplorerUrls: ['https://ftmscan.com/'],
|
|
142
|
+
chainName: 'Fantom Opera',
|
|
143
|
+
nativeCurrency: {
|
|
144
|
+
name: 'FTM',
|
|
145
|
+
symbol: 'FTM',
|
|
146
|
+
decimals: 18,
|
|
147
|
+
},
|
|
148
|
+
rpcUrls: ['https://rpc.ftm.tools/', 'https://rpcapi.fantom.network'],
|
|
149
|
+
},
|
|
150
|
+
},
|
|
151
|
+
// 66 - OKXChain
|
|
152
|
+
{
|
|
153
|
+
key: types_1.ChainKey.OKT,
|
|
154
|
+
chainType: types_1.ChainType.EVM,
|
|
155
|
+
name: 'OKXChain',
|
|
156
|
+
coin: types_1.CoinKey.OKT,
|
|
157
|
+
id: 66,
|
|
158
|
+
mainnet: true,
|
|
159
|
+
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/okx.svg',
|
|
160
|
+
tokenlistUrl: 'https://raw.githubusercontent.com/sushiswap/default-token-list/master/tokens/okex.json',
|
|
161
|
+
multicallAddress: multicall_1.multicallAddresses[types_1.ChainId.OKT],
|
|
162
|
+
// https://okc-docs.readthedocs.io/en/latest/developers/quick-start-for-mainnet.html
|
|
163
|
+
metamask: {
|
|
164
|
+
chainId: (0, utils_1.prefixChainId)(66),
|
|
165
|
+
blockExplorerUrls: ['https://www.oklink.com/en/okc/'],
|
|
166
|
+
chainName: 'OKXChain Mainnet',
|
|
167
|
+
nativeCurrency: {
|
|
168
|
+
name: 'OKT',
|
|
169
|
+
symbol: 'OKT',
|
|
170
|
+
decimals: 18,
|
|
171
|
+
},
|
|
172
|
+
rpcUrls: ['https://exchainrpc.okex.org'],
|
|
173
|
+
},
|
|
174
|
+
},
|
|
175
|
+
// 43114 - Avalanche
|
|
176
|
+
{
|
|
177
|
+
key: types_1.ChainKey.AVA,
|
|
178
|
+
chainType: types_1.ChainType.EVM,
|
|
179
|
+
name: 'Avalanche',
|
|
180
|
+
coin: types_1.CoinKey.AVAX,
|
|
181
|
+
id: 43114,
|
|
182
|
+
mainnet: true,
|
|
183
|
+
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/avalanche.svg',
|
|
184
|
+
tokenlistUrl: 'https://raw.githubusercontent.com/sushiswap/default-token-list/master/tokens/avalanche.json',
|
|
185
|
+
multicallAddress: multicall_1.multicallAddresses[types_1.ChainId.AVA],
|
|
186
|
+
// https://support.avax.network/en/articles/4626956-how-do-i-set-up-metamask-on-avalanche
|
|
187
|
+
metamask: {
|
|
188
|
+
chainId: (0, utils_1.prefixChainId)(43114),
|
|
189
|
+
blockExplorerUrls: ['https://cchain.explorer.avax.network/'],
|
|
190
|
+
chainName: 'Avalanche Mainnet',
|
|
191
|
+
nativeCurrency: {
|
|
192
|
+
name: 'AVAX',
|
|
193
|
+
symbol: 'AVAX',
|
|
194
|
+
decimals: 18,
|
|
195
|
+
},
|
|
196
|
+
rpcUrls: ['https://api.avax.network/ext/bc/C/rpc'],
|
|
197
|
+
},
|
|
198
|
+
},
|
|
199
|
+
// 42161 - Arbitrum
|
|
200
|
+
{
|
|
201
|
+
key: types_1.ChainKey.ARB,
|
|
202
|
+
chainType: types_1.ChainType.EVM,
|
|
203
|
+
name: 'Arbitrum',
|
|
204
|
+
coin: types_1.CoinKey.ETH,
|
|
205
|
+
id: 42161,
|
|
206
|
+
mainnet: true,
|
|
207
|
+
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/arbitrum.svg',
|
|
208
|
+
tokenlistUrl: 'https://raw.githubusercontent.com/sushiswap/default-token-list/master/tokens/arbitrum.json',
|
|
209
|
+
faucetUrls: ['https://bridge.arbitrum.io/'],
|
|
210
|
+
multicallAddress: multicall_1.multicallAddresses[types_1.ChainId.ARB],
|
|
211
|
+
metamask: {
|
|
212
|
+
chainId: (0, utils_1.prefixChainId)(42161),
|
|
213
|
+
blockExplorerUrls: ['https://arbiscan.io/'],
|
|
214
|
+
chainName: 'Arbitrum',
|
|
215
|
+
nativeCurrency: {
|
|
216
|
+
name: 'AETH',
|
|
217
|
+
symbol: 'AETH',
|
|
218
|
+
decimals: 18, // check
|
|
219
|
+
},
|
|
220
|
+
rpcUrls: ['https://arb1.arbitrum.io/rpc'],
|
|
221
|
+
},
|
|
222
|
+
},
|
|
223
|
+
// 128 - Huobi ECO Chain Mainnet
|
|
224
|
+
{
|
|
225
|
+
key: types_1.ChainKey.HEC,
|
|
226
|
+
chainType: types_1.ChainType.EVM,
|
|
227
|
+
name: 'Huobi ECO Chain Mainnet',
|
|
228
|
+
coin: types_1.CoinKey.HT,
|
|
229
|
+
id: 128,
|
|
230
|
+
mainnet: true,
|
|
231
|
+
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/heco.png',
|
|
232
|
+
tokenlistUrl: 'https://raw.githubusercontent.com/sushiswap/default-token-list/master/tokens/heco.json',
|
|
233
|
+
multicallAddress: multicall_1.multicallAddresses[types_1.ChainId.HEC],
|
|
234
|
+
metamask: {
|
|
235
|
+
chainId: (0, utils_1.prefixChainId)(128),
|
|
236
|
+
blockExplorerUrls: ['https://hecoinfo.com/'],
|
|
237
|
+
chainName: 'Huobi ECO Chain Mainnet',
|
|
238
|
+
nativeCurrency: {
|
|
239
|
+
name: 'HT',
|
|
240
|
+
symbol: 'HT',
|
|
241
|
+
decimals: 18,
|
|
242
|
+
},
|
|
243
|
+
rpcUrls: ['https://http-mainnet.hecochain.com'],
|
|
244
|
+
},
|
|
245
|
+
},
|
|
246
|
+
// 10 - Optimism
|
|
247
|
+
{
|
|
248
|
+
key: types_1.ChainKey.OPT,
|
|
249
|
+
chainType: types_1.ChainType.EVM,
|
|
250
|
+
name: 'Optimism',
|
|
251
|
+
coin: types_1.CoinKey.ETH,
|
|
252
|
+
id: 10,
|
|
253
|
+
mainnet: true,
|
|
254
|
+
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/optimism.svg',
|
|
255
|
+
tokenlistUrl: 'https://static.optimism.io/optimism.tokenlist.json',
|
|
256
|
+
faucetUrls: ['https://gateway.optimism.io/'],
|
|
257
|
+
multicallAddress: multicall_1.multicallAddresses[types_1.ChainId.OPT],
|
|
258
|
+
metamask: {
|
|
259
|
+
chainId: (0, utils_1.prefixChainId)(10),
|
|
260
|
+
blockExplorerUrls: ['https://optimistic.etherscan.io/'],
|
|
261
|
+
chainName: 'Optimism',
|
|
262
|
+
nativeCurrency: {
|
|
263
|
+
name: 'ETH',
|
|
264
|
+
symbol: 'ETH',
|
|
265
|
+
decimals: 18,
|
|
266
|
+
},
|
|
267
|
+
rpcUrls: ['https://mainnet.optimism.io/'],
|
|
268
|
+
},
|
|
269
|
+
},
|
|
270
|
+
// 32659 - Fusion (anyswap)
|
|
271
|
+
{
|
|
272
|
+
key: types_1.ChainKey.FSN,
|
|
273
|
+
chainType: types_1.ChainType.EVM,
|
|
274
|
+
name: 'Fusion Mainnet',
|
|
275
|
+
coin: types_1.CoinKey.FSN,
|
|
276
|
+
id: 32659,
|
|
277
|
+
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/fusion.png',
|
|
278
|
+
mainnet: true,
|
|
279
|
+
multicallAddress: multicall_1.multicallAddresses[types_1.ChainId.FSN],
|
|
280
|
+
// https://support.avax.network/en/articles/4626956-how-do-i-set-up-metamask-on-avalanche
|
|
281
|
+
metamask: {
|
|
282
|
+
chainId: (0, utils_1.prefixChainId)(32659),
|
|
283
|
+
blockExplorerUrls: ['https://fsnex.com/'],
|
|
284
|
+
chainName: 'Fusion Mainnet',
|
|
285
|
+
nativeCurrency: {
|
|
286
|
+
name: 'FSN',
|
|
287
|
+
symbol: 'FSN',
|
|
288
|
+
decimals: 18,
|
|
289
|
+
},
|
|
290
|
+
rpcUrls: ['https://fsnmainnet2.anyswap.exchange'],
|
|
291
|
+
},
|
|
292
|
+
},
|
|
293
|
+
// 1666600000 - Harmony Mainnet Shard 0
|
|
294
|
+
{
|
|
295
|
+
key: types_1.ChainKey.ONE,
|
|
296
|
+
chainType: types_1.ChainType.EVM,
|
|
297
|
+
name: 'Harmony',
|
|
298
|
+
coin: types_1.CoinKey.ONE,
|
|
299
|
+
id: 1666600000,
|
|
300
|
+
mainnet: true,
|
|
301
|
+
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/harmony.svg',
|
|
302
|
+
tokenlistUrl: 'https://d1xrz6ki9z98vb.cloudfront.net/venomswap/lists/venomswap-default.tokenlist.json',
|
|
303
|
+
faucetUrls: ['https://stakely.io/faucet/harmony-one'],
|
|
304
|
+
multicallAddress: multicall_1.multicallAddresses[types_1.ChainId.ONE],
|
|
305
|
+
// https://docs.harmony.one/home/developers/wallets/metamask/connect-metamask-to-the-harmony-chain
|
|
306
|
+
metamask: {
|
|
307
|
+
chainId: (0, utils_1.prefixChainId)(1666600000),
|
|
308
|
+
blockExplorerUrls: ['https://explorer.harmony.one/'],
|
|
309
|
+
chainName: 'Harmony Mainnet Shard 0',
|
|
310
|
+
nativeCurrency: {
|
|
311
|
+
name: 'ONE',
|
|
312
|
+
symbol: 'ONE',
|
|
313
|
+
decimals: 18,
|
|
314
|
+
},
|
|
315
|
+
rpcUrls: ['https://api.harmony.one'],
|
|
316
|
+
},
|
|
317
|
+
},
|
|
318
|
+
// 1285 - Moonriver
|
|
319
|
+
{
|
|
320
|
+
key: types_1.ChainKey.MOR,
|
|
321
|
+
chainType: types_1.ChainType.EVM,
|
|
322
|
+
name: 'Moonriver',
|
|
323
|
+
coin: types_1.CoinKey.MOVR,
|
|
324
|
+
id: 1285,
|
|
325
|
+
mainnet: true,
|
|
326
|
+
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/moonriver.svg',
|
|
327
|
+
tokenlistUrl: 'https://raw.githubusercontent.com/sushiswap/default-token-list/master/tokens/moonriver.json',
|
|
328
|
+
multicallAddress: multicall_1.multicallAddresses[types_1.ChainId.MOR],
|
|
329
|
+
metamask: {
|
|
330
|
+
chainId: (0, utils_1.prefixChainId)(1285),
|
|
331
|
+
blockExplorerUrls: ['https://blockscout.moonriver.moonbeam.network/'],
|
|
332
|
+
chainName: 'Moonriver',
|
|
333
|
+
nativeCurrency: {
|
|
334
|
+
name: 'Moonriver',
|
|
335
|
+
symbol: 'MOVR',
|
|
336
|
+
decimals: 18,
|
|
337
|
+
},
|
|
338
|
+
rpcUrls: ['https://rpc.api.moonriver.moonbeam.network'],
|
|
339
|
+
},
|
|
340
|
+
},
|
|
341
|
+
// 1284 Moonbeam
|
|
342
|
+
{
|
|
343
|
+
key: types_1.ChainKey.MOO,
|
|
344
|
+
chainType: types_1.ChainType.EVM,
|
|
345
|
+
name: 'Moonbeam',
|
|
346
|
+
coin: types_1.CoinKey.GLMR,
|
|
347
|
+
id: 1284,
|
|
348
|
+
mainnet: true,
|
|
349
|
+
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/moonbeam.svg',
|
|
350
|
+
tokenlistUrl: 'https://raw.githubusercontent.com/BeamSwap/beamswap-tokenlist/main/tokenlist.json',
|
|
351
|
+
multicallAddress: multicall_1.multicallAddresses[types_1.ChainId.MOO],
|
|
352
|
+
metamask: {
|
|
353
|
+
chainId: (0, utils_1.prefixChainId)(1284),
|
|
354
|
+
blockExplorerUrls: ['https://blockscout.moonbeam.network/'],
|
|
355
|
+
chainName: 'Moonbeam',
|
|
356
|
+
nativeCurrency: {
|
|
357
|
+
name: 'GLMR',
|
|
358
|
+
symbol: 'GLMR',
|
|
359
|
+
decimals: 18,
|
|
360
|
+
},
|
|
361
|
+
rpcUrls: ['https://rpc.api.moonbeam.network'],
|
|
362
|
+
},
|
|
363
|
+
},
|
|
364
|
+
// 2 - Expanse Network
|
|
365
|
+
{
|
|
366
|
+
key: types_1.ChainKey.EXP,
|
|
367
|
+
chainType: types_1.ChainType.EVM,
|
|
368
|
+
name: 'Expanse Network',
|
|
369
|
+
coin: types_1.CoinKey.EXP,
|
|
370
|
+
id: 2,
|
|
371
|
+
mainnet: true,
|
|
372
|
+
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/expanse.png',
|
|
373
|
+
multicallAddress: multicall_1.multicallAddresses[types_1.ChainId.EXP],
|
|
374
|
+
metamask: {
|
|
375
|
+
chainId: (0, utils_1.prefixChainId)(2),
|
|
376
|
+
blockExplorerUrls: ['https://expanse.tech/'],
|
|
377
|
+
chainName: 'Expanse Network',
|
|
378
|
+
nativeCurrency: {
|
|
379
|
+
name: 'EXP',
|
|
380
|
+
symbol: 'EXP',
|
|
381
|
+
decimals: 18,
|
|
382
|
+
},
|
|
383
|
+
rpcUrls: ['https://node.expanse.tech'],
|
|
384
|
+
},
|
|
385
|
+
},
|
|
386
|
+
// 7 - ThaiChain
|
|
387
|
+
{
|
|
388
|
+
key: types_1.ChainKey.TCH,
|
|
389
|
+
chainType: types_1.ChainType.EVM,
|
|
390
|
+
name: 'ThaiChain',
|
|
391
|
+
coin: types_1.CoinKey.TCH,
|
|
392
|
+
id: 7,
|
|
393
|
+
mainnet: true,
|
|
394
|
+
multicallAddress: multicall_1.multicallAddresses[types_1.ChainId.TCH],
|
|
395
|
+
metamask: {
|
|
396
|
+
chainId: (0, utils_1.prefixChainId)(7),
|
|
397
|
+
blockExplorerUrls: ['https://thaichain.io/'],
|
|
398
|
+
chainName: 'ThaiChain',
|
|
399
|
+
nativeCurrency: {
|
|
400
|
+
name: 'TCH',
|
|
401
|
+
symbol: 'TCH',
|
|
402
|
+
decimals: 18,
|
|
403
|
+
},
|
|
404
|
+
rpcUrls: ['https://rpc.dome.cloud/'],
|
|
405
|
+
},
|
|
406
|
+
},
|
|
407
|
+
// 8 - Ubiq
|
|
408
|
+
{
|
|
409
|
+
key: types_1.ChainKey.UBQ,
|
|
410
|
+
chainType: types_1.ChainType.EVM,
|
|
411
|
+
name: 'Ubiq',
|
|
412
|
+
coin: types_1.CoinKey.UBQ,
|
|
413
|
+
id: 8,
|
|
414
|
+
mainnet: true,
|
|
415
|
+
multicallAddress: multicall_1.multicallAddresses[types_1.ChainId.UBQ],
|
|
416
|
+
metamask: {
|
|
417
|
+
chainId: (0, utils_1.prefixChainId)(8),
|
|
418
|
+
blockExplorerUrls: ['https://ubiqscan.io/'],
|
|
419
|
+
chainName: 'Ubiq',
|
|
420
|
+
nativeCurrency: {
|
|
421
|
+
name: 'UBQ',
|
|
422
|
+
symbol: 'UBQ',
|
|
423
|
+
decimals: 18,
|
|
424
|
+
},
|
|
425
|
+
rpcUrls: ['https://rpc.octano.dev/'],
|
|
426
|
+
},
|
|
427
|
+
},
|
|
428
|
+
// 11 - Metadium Mainnet
|
|
429
|
+
{
|
|
430
|
+
key: types_1.ChainKey.MET,
|
|
431
|
+
chainType: types_1.ChainType.EVM,
|
|
432
|
+
name: 'Metadium Mainnet',
|
|
433
|
+
coin: types_1.CoinKey.META,
|
|
434
|
+
id: 11,
|
|
435
|
+
mainnet: true,
|
|
436
|
+
multicallAddress: multicall_1.multicallAddresses[types_1.ChainId.MET],
|
|
437
|
+
metamask: {
|
|
438
|
+
chainId: (0, utils_1.prefixChainId)(11),
|
|
439
|
+
blockExplorerUrls: ['https://metadium.com/'],
|
|
440
|
+
chainName: 'Metadium Mainnet',
|
|
441
|
+
nativeCurrency: {
|
|
442
|
+
name: 'META',
|
|
443
|
+
symbol: 'META',
|
|
444
|
+
decimals: 18,
|
|
445
|
+
},
|
|
446
|
+
rpcUrls: ['https://api.metadium.com/prod'],
|
|
447
|
+
},
|
|
448
|
+
},
|
|
449
|
+
// 15 - Diode Prenet
|
|
450
|
+
{
|
|
451
|
+
key: types_1.ChainKey.DIO,
|
|
452
|
+
chainType: types_1.ChainType.EVM,
|
|
453
|
+
name: 'DIODE',
|
|
454
|
+
coin: types_1.CoinKey.DIODE,
|
|
455
|
+
id: 15,
|
|
456
|
+
mainnet: true,
|
|
457
|
+
multicallAddress: multicall_1.multicallAddresses[types_1.ChainId.DIO],
|
|
458
|
+
metamask: {
|
|
459
|
+
chainId: (0, utils_1.prefixChainId)(15),
|
|
460
|
+
blockExplorerUrls: ['https://diode.io/prenet/'],
|
|
461
|
+
chainName: 'Diode Prenet',
|
|
462
|
+
nativeCurrency: {
|
|
463
|
+
name: 'Diodes',
|
|
464
|
+
symbol: 'DIODE',
|
|
465
|
+
decimals: 18,
|
|
466
|
+
},
|
|
467
|
+
rpcUrls: ['https://prenet.diode.io:8443/'],
|
|
468
|
+
},
|
|
469
|
+
},
|
|
470
|
+
// 42220 Celo Mainnet
|
|
471
|
+
{
|
|
472
|
+
key: types_1.ChainKey.CEL,
|
|
473
|
+
chainType: types_1.ChainType.EVM,
|
|
474
|
+
name: 'CELO',
|
|
475
|
+
coin: types_1.CoinKey.CELO,
|
|
476
|
+
id: 42220,
|
|
477
|
+
mainnet: true,
|
|
478
|
+
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/celo.svg',
|
|
479
|
+
tokenlistUrl: 'https://raw.githubusercontent.com/sushiswap/default-token-list/master/tokens/celo.json',
|
|
480
|
+
faucetUrls: [
|
|
481
|
+
'https://stakely.io/faucet/celo-platform',
|
|
482
|
+
'https://free-online-app.com/faucet-for-eth-evm-chains/',
|
|
483
|
+
],
|
|
484
|
+
multicallAddress: multicall_1.multicallAddresses[types_1.ChainId.CEL],
|
|
485
|
+
metamask: {
|
|
486
|
+
chainId: (0, utils_1.prefixChainId)(42220),
|
|
487
|
+
blockExplorerUrls: ['https://explorer.celo.org/'],
|
|
488
|
+
chainName: 'Celo Mainnet',
|
|
489
|
+
nativeCurrency: {
|
|
490
|
+
name: 'CELO',
|
|
491
|
+
symbol: 'CELO',
|
|
492
|
+
decimals: 18,
|
|
493
|
+
},
|
|
494
|
+
rpcUrls: ['https://forno.celo.org'],
|
|
495
|
+
},
|
|
496
|
+
},
|
|
497
|
+
// 122 Fuse Mainnet
|
|
498
|
+
{
|
|
499
|
+
key: types_1.ChainKey.FUS,
|
|
500
|
+
chainType: types_1.ChainType.EVM,
|
|
501
|
+
name: 'FUSE',
|
|
502
|
+
coin: types_1.CoinKey.FUSE,
|
|
503
|
+
id: 122,
|
|
504
|
+
mainnet: true,
|
|
505
|
+
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/fuse.svg',
|
|
506
|
+
tokenlistUrl: 'https://raw.githubusercontent.com/sushiswap/default-token-list/master/tokens/fuse.json',
|
|
507
|
+
multicallAddress: multicall_1.multicallAddresses[types_1.ChainId.FUS],
|
|
508
|
+
metamask: {
|
|
509
|
+
chainId: (0, utils_1.prefixChainId)(122),
|
|
510
|
+
blockExplorerUrls: ['https://explorer.fuse.io/'],
|
|
511
|
+
chainName: 'Fuse Mainnet',
|
|
512
|
+
nativeCurrency: {
|
|
513
|
+
name: 'FUSE',
|
|
514
|
+
symbol: 'FUSE',
|
|
515
|
+
decimals: 18,
|
|
516
|
+
},
|
|
517
|
+
rpcUrls: ['https://rpc.fuse.io'],
|
|
518
|
+
},
|
|
519
|
+
},
|
|
520
|
+
// 40 Telos EVM Mainnet
|
|
521
|
+
{
|
|
522
|
+
key: types_1.ChainKey.TLO,
|
|
523
|
+
chainType: types_1.ChainType.EVM,
|
|
524
|
+
name: 'Telos',
|
|
525
|
+
coin: types_1.CoinKey.TLOS,
|
|
526
|
+
id: 40,
|
|
527
|
+
mainnet: true,
|
|
528
|
+
tokenlistUrl: 'https://raw.githubusercontent.com/sushiswap/default-token-list/master/tokens/telos.json',
|
|
529
|
+
multicallAddress: multicall_1.multicallAddresses[types_1.ChainId.TLO],
|
|
530
|
+
metamask: {
|
|
531
|
+
chainId: (0, utils_1.prefixChainId)(40),
|
|
532
|
+
blockExplorerUrls: ['https://telos.net/'],
|
|
533
|
+
chainName: 'Telos EVM Mainnet',
|
|
534
|
+
nativeCurrency: {
|
|
535
|
+
name: 'Telos',
|
|
536
|
+
symbol: 'TLOS',
|
|
537
|
+
decimals: 18,
|
|
538
|
+
},
|
|
539
|
+
rpcUrls: ['https://mainnet.telos.net/evm'],
|
|
540
|
+
},
|
|
541
|
+
},
|
|
542
|
+
// 25 Cronos Mainnet Beta
|
|
543
|
+
{
|
|
544
|
+
key: types_1.ChainKey.CRO,
|
|
545
|
+
chainType: types_1.ChainType.EVM,
|
|
546
|
+
name: 'Cronos',
|
|
547
|
+
coin: types_1.CoinKey.CRO,
|
|
548
|
+
id: 25,
|
|
549
|
+
mainnet: true,
|
|
550
|
+
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/cronos.svg',
|
|
551
|
+
tokenlistUrl: 'https://raw.githubusercontent.com/cronaswap/cronaswap-tokenlists/main/cronaswap-default.tokenlist.json',
|
|
552
|
+
multicallAddress: multicall_1.multicallAddresses[types_1.ChainId.CRO],
|
|
553
|
+
metamask: {
|
|
554
|
+
chainId: (0, utils_1.prefixChainId)(25),
|
|
555
|
+
blockExplorerUrls: ['https://cronos.crypto.org/explorer/'],
|
|
556
|
+
chainName: 'Cronos',
|
|
557
|
+
nativeCurrency: {
|
|
558
|
+
name: 'Crypto.org Coin',
|
|
559
|
+
symbol: 'CRO',
|
|
560
|
+
decimals: 18,
|
|
561
|
+
},
|
|
562
|
+
rpcUrls: ['https://evm-cronos.crypto.org'],
|
|
563
|
+
},
|
|
564
|
+
},
|
|
565
|
+
// 288 Boba Network
|
|
566
|
+
{
|
|
567
|
+
key: types_1.ChainKey.BOB,
|
|
568
|
+
chainType: types_1.ChainType.EVM,
|
|
569
|
+
name: 'Boba',
|
|
570
|
+
coin: types_1.CoinKey.ETH,
|
|
571
|
+
id: 288,
|
|
572
|
+
mainnet: true,
|
|
573
|
+
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/boba.png',
|
|
574
|
+
// TODO: we should update token list url to latest one
|
|
575
|
+
tokenlistUrl: 'https://raw.githubusercontent.com/OolongSwap/boba-community-token-list/main/build/boba.tokenlist.json',
|
|
576
|
+
multicallAddress: multicall_1.multicallAddresses[types_1.ChainId.BOB],
|
|
577
|
+
metamask: {
|
|
578
|
+
chainId: (0, utils_1.prefixChainId)(288),
|
|
579
|
+
blockExplorerUrls: ['https://blockexplorer.boba.network/'],
|
|
580
|
+
chainName: 'Boba',
|
|
581
|
+
nativeCurrency: {
|
|
582
|
+
name: 'ETH',
|
|
583
|
+
symbol: 'ETH',
|
|
584
|
+
decimals: 18,
|
|
585
|
+
},
|
|
586
|
+
rpcUrls: ['https://mainnet.boba.network/'],
|
|
587
|
+
},
|
|
588
|
+
},
|
|
589
|
+
// 27 ShibaChain
|
|
590
|
+
{
|
|
591
|
+
key: types_1.ChainKey.SHI,
|
|
592
|
+
chainType: types_1.ChainType.EVM,
|
|
593
|
+
name: 'Shiba',
|
|
594
|
+
coin: types_1.CoinKey.SHIB,
|
|
595
|
+
id: 27,
|
|
596
|
+
mainnet: true,
|
|
597
|
+
multicallAddress: multicall_1.multicallAddresses[types_1.ChainId.SHI],
|
|
598
|
+
metamask: {
|
|
599
|
+
chainId: (0, utils_1.prefixChainId)(27),
|
|
600
|
+
blockExplorerUrls: ['https://exp.shibachain.net/'],
|
|
601
|
+
chainName: 'Shiba',
|
|
602
|
+
nativeCurrency: {
|
|
603
|
+
name: 'SHIB',
|
|
604
|
+
symbol: 'SHIB',
|
|
605
|
+
decimals: 18,
|
|
606
|
+
},
|
|
607
|
+
rpcUrls: ['https://rpc.shibachain.net'],
|
|
608
|
+
},
|
|
609
|
+
},
|
|
610
|
+
// 29 Genesis L1
|
|
611
|
+
{
|
|
612
|
+
key: types_1.ChainKey.GL1,
|
|
613
|
+
chainType: types_1.ChainType.EVM,
|
|
614
|
+
name: 'Genesis L1',
|
|
615
|
+
coin: types_1.CoinKey.L1,
|
|
616
|
+
id: 29,
|
|
617
|
+
mainnet: true,
|
|
618
|
+
multicallAddress: multicall_1.multicallAddresses[types_1.ChainId.GL1],
|
|
619
|
+
metamask: {
|
|
620
|
+
chainId: (0, utils_1.prefixChainId)(29),
|
|
621
|
+
blockExplorerUrls: ['https://explorer.genesisl1.org/'],
|
|
622
|
+
chainName: 'Genesis L1',
|
|
623
|
+
nativeCurrency: {
|
|
624
|
+
name: 'L1',
|
|
625
|
+
symbol: 'L1',
|
|
626
|
+
decimals: 18,
|
|
627
|
+
},
|
|
628
|
+
rpcUrls: ['https://rpc.genesisl1.org'],
|
|
629
|
+
},
|
|
630
|
+
},
|
|
631
|
+
// 30 RSK Mainnet
|
|
632
|
+
{
|
|
633
|
+
key: types_1.ChainKey.RSK,
|
|
634
|
+
chainType: types_1.ChainType.EVM,
|
|
635
|
+
name: 'RSK Mainnet',
|
|
636
|
+
coin: types_1.CoinKey.RBTC,
|
|
637
|
+
id: 30,
|
|
638
|
+
mainnet: true,
|
|
639
|
+
multicallAddress: multicall_1.multicallAddresses[types_1.ChainId.RSK],
|
|
640
|
+
metamask: {
|
|
641
|
+
chainId: (0, utils_1.prefixChainId)(30),
|
|
642
|
+
blockExplorerUrls: ['https://explorer.rsk.co/'],
|
|
643
|
+
chainName: 'RSK Mainnet',
|
|
644
|
+
nativeCurrency: {
|
|
645
|
+
name: 'RBTC',
|
|
646
|
+
symbol: 'RBTC',
|
|
647
|
+
decimals: 18,
|
|
648
|
+
},
|
|
649
|
+
rpcUrls: ['https://public-node.rsk.co'],
|
|
650
|
+
},
|
|
651
|
+
},
|
|
652
|
+
// 35 TBWG Chain
|
|
653
|
+
{
|
|
654
|
+
key: types_1.ChainKey.TBW,
|
|
655
|
+
chainType: types_1.ChainType.EVM,
|
|
656
|
+
name: 'TBWG',
|
|
657
|
+
coin: types_1.CoinKey.TBG,
|
|
658
|
+
id: 35,
|
|
659
|
+
mainnet: true,
|
|
660
|
+
multicallAddress: multicall_1.multicallAddresses[types_1.ChainId.TBW],
|
|
661
|
+
metamask: {
|
|
662
|
+
chainId: (0, utils_1.prefixChainId)(35),
|
|
663
|
+
blockExplorerUrls: ['https://tbwg.io/'],
|
|
664
|
+
chainName: 'TBWG',
|
|
665
|
+
nativeCurrency: {
|
|
666
|
+
name: 'TBG',
|
|
667
|
+
symbol: 'TBG',
|
|
668
|
+
decimals: 18,
|
|
669
|
+
},
|
|
670
|
+
rpcUrls: ['https://rpc.tbwg.io'],
|
|
671
|
+
},
|
|
672
|
+
},
|
|
673
|
+
// 106 Velas EVM Mainnet
|
|
674
|
+
{
|
|
675
|
+
key: types_1.ChainKey.VEL,
|
|
676
|
+
chainType: types_1.ChainType.EVM,
|
|
677
|
+
name: 'Velas',
|
|
678
|
+
coin: types_1.CoinKey.VLX,
|
|
679
|
+
id: 106,
|
|
680
|
+
mainnet: true,
|
|
681
|
+
multicallAddress: multicall_1.multicallAddresses[types_1.ChainId.VEL],
|
|
682
|
+
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/velas.png',
|
|
683
|
+
faucetUrls: ['https://stakely.io/faucet/velas-vlx'],
|
|
684
|
+
metamask: {
|
|
685
|
+
chainId: (0, utils_1.prefixChainId)(106),
|
|
686
|
+
blockExplorerUrls: ['https://evmexplorer.velas.com/'],
|
|
687
|
+
chainName: 'Velas',
|
|
688
|
+
nativeCurrency: {
|
|
689
|
+
name: 'VLX',
|
|
690
|
+
symbol: 'VLX',
|
|
691
|
+
decimals: 18,
|
|
692
|
+
},
|
|
693
|
+
rpcUrls: ['https://evmexplorer.velas.com/rpc'],
|
|
694
|
+
},
|
|
695
|
+
},
|
|
696
|
+
// 1088 Metis Andromeda Mainnet
|
|
697
|
+
{
|
|
698
|
+
key: types_1.ChainKey.MAM,
|
|
699
|
+
chainType: types_1.ChainType.EVM,
|
|
700
|
+
name: 'Metis',
|
|
701
|
+
coin: types_1.CoinKey.METIS,
|
|
702
|
+
id: 1088,
|
|
703
|
+
mainnet: true,
|
|
704
|
+
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/metis.png',
|
|
705
|
+
tokenlistUrl: 'https://raw.githubusercontent.com/digitalnativeinc/default-token-list/dnf/tokens/metis.json',
|
|
706
|
+
multicallAddress: multicall_1.multicallAddresses[types_1.ChainId.MAM],
|
|
707
|
+
metamask: {
|
|
708
|
+
chainId: (0, utils_1.prefixChainId)(1088),
|
|
709
|
+
blockExplorerUrls: ['https://andromeda-explorer.metis.io/'],
|
|
710
|
+
chainName: 'Metis',
|
|
711
|
+
nativeCurrency: {
|
|
712
|
+
name: 'METIS',
|
|
713
|
+
symbol: 'METIS',
|
|
714
|
+
decimals: 18,
|
|
715
|
+
},
|
|
716
|
+
rpcUrls: ['https://andromeda.metis.io/?owner=1088'],
|
|
717
|
+
},
|
|
718
|
+
},
|
|
719
|
+
// 1313161554 Aurora Mainnet
|
|
720
|
+
{
|
|
721
|
+
key: types_1.ChainKey.AUR,
|
|
722
|
+
chainType: types_1.ChainType.EVM,
|
|
723
|
+
name: 'Aurora',
|
|
724
|
+
coin: types_1.CoinKey.ETH,
|
|
725
|
+
id: 1313161554,
|
|
726
|
+
mainnet: true,
|
|
727
|
+
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/aurora.png',
|
|
728
|
+
tokenlistUrl: 'https://aurora.dev/tokens.json',
|
|
729
|
+
multicallAddress: multicall_1.multicallAddresses[types_1.ChainId.AUR],
|
|
730
|
+
metamask: {
|
|
731
|
+
chainId: (0, utils_1.prefixChainId)(1313161554),
|
|
732
|
+
blockExplorerUrls: ['https://aurorascan.dev/'],
|
|
733
|
+
chainName: 'Aurora',
|
|
734
|
+
nativeCurrency: {
|
|
735
|
+
name: 'ETH',
|
|
736
|
+
symbol: 'ETH',
|
|
737
|
+
decimals: 18,
|
|
738
|
+
},
|
|
739
|
+
rpcUrls: ['https://mainnet.aurora.dev'],
|
|
740
|
+
},
|
|
741
|
+
},
|
|
742
|
+
// EVM = 9001,
|
|
743
|
+
{
|
|
744
|
+
key: types_1.ChainKey.EVM,
|
|
745
|
+
chainType: types_1.ChainType.EVM,
|
|
746
|
+
name: 'Evmos',
|
|
747
|
+
coin: types_1.CoinKey.EVM,
|
|
748
|
+
id: 9001,
|
|
749
|
+
mainnet: true,
|
|
750
|
+
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/evmos.svg',
|
|
751
|
+
multicallAddress: multicall_1.multicallAddresses[types_1.ChainId.EVM],
|
|
752
|
+
metamask: {
|
|
753
|
+
chainId: (0, utils_1.prefixChainId)(9001),
|
|
754
|
+
blockExplorerUrls: ['https://evm.evmos.org/'],
|
|
755
|
+
chainName: 'Evmos',
|
|
756
|
+
nativeCurrency: {
|
|
757
|
+
name: 'EVMOS',
|
|
758
|
+
symbol: 'EVMOS',
|
|
759
|
+
decimals: 18,
|
|
760
|
+
},
|
|
761
|
+
rpcUrls: ['https://eth.bd.evmos.org:8545'],
|
|
762
|
+
},
|
|
763
|
+
},
|
|
764
|
+
// 324 - zksync ERA
|
|
765
|
+
{
|
|
766
|
+
key: types_1.ChainKey.ERA,
|
|
767
|
+
chainType: types_1.ChainType.EVM,
|
|
768
|
+
name: 'zkSync Era',
|
|
769
|
+
coin: types_1.CoinKey.ETH,
|
|
770
|
+
id: 324,
|
|
771
|
+
mainnet: true,
|
|
772
|
+
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/zksync.png',
|
|
773
|
+
multicallAddress: multicall_1.multicallAddresses[types_1.ChainId.ERA],
|
|
774
|
+
metamask: {
|
|
775
|
+
chainId: (0, utils_1.prefixChainId)(324),
|
|
776
|
+
blockExplorerUrls: ['https://zkscan.io/'],
|
|
777
|
+
chainName: 'zkSync Era Mainnet',
|
|
778
|
+
nativeCurrency: {
|
|
779
|
+
name: 'ETH',
|
|
780
|
+
symbol: 'ETH',
|
|
781
|
+
decimals: 18,
|
|
782
|
+
},
|
|
783
|
+
rpcUrls: ['https://mainnet.era.zksync.io'],
|
|
784
|
+
},
|
|
785
|
+
},
|
|
786
|
+
// 1101 - Polygon zkEVM
|
|
787
|
+
{
|
|
788
|
+
key: types_1.ChainKey.PZE,
|
|
789
|
+
chainType: types_1.ChainType.EVM,
|
|
790
|
+
name: 'Polygon zkEVM',
|
|
791
|
+
coin: types_1.CoinKey.ETH,
|
|
792
|
+
id: 1101,
|
|
793
|
+
mainnet: true,
|
|
794
|
+
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/zkevm.png',
|
|
795
|
+
multicallAddress: multicall_1.multicallAddresses[types_1.ChainId.PZE],
|
|
796
|
+
metamask: {
|
|
797
|
+
chainId: (0, utils_1.prefixChainId)(1101),
|
|
798
|
+
blockExplorerUrls: ['https://zkevm.polygonscan.com/'],
|
|
799
|
+
chainName: 'Polygon zkEVM',
|
|
800
|
+
nativeCurrency: {
|
|
801
|
+
name: 'ETH',
|
|
802
|
+
symbol: 'ETH',
|
|
803
|
+
decimals: 18,
|
|
804
|
+
},
|
|
805
|
+
rpcUrls: ['https://zkevm-rpc.com'],
|
|
806
|
+
},
|
|
807
|
+
},
|
|
808
|
+
// TESTNETS
|
|
809
|
+
// 5 - Goerli
|
|
810
|
+
{
|
|
811
|
+
key: types_1.ChainKey.GOR,
|
|
812
|
+
chainType: types_1.ChainType.EVM,
|
|
813
|
+
name: 'Goerli',
|
|
814
|
+
coin: types_1.CoinKey.ETH,
|
|
815
|
+
id: 5,
|
|
816
|
+
mainnet: false,
|
|
817
|
+
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/ethereum_goerli.png',
|
|
818
|
+
tokenlistUrl: 'https://raw.githubusercontent.com/compound-finance/token-list/master/compound.tokenlist.json',
|
|
819
|
+
faucetUrls: ['https://goerli-faucet.slock.it/'],
|
|
820
|
+
multicallAddress: multicall_1.multicallAddresses[types_1.ChainId.GOR],
|
|
821
|
+
metamask: {
|
|
822
|
+
chainId: (0, utils_1.prefixChainId)(5),
|
|
823
|
+
blockExplorerUrls: ['https://goerli.etherscan.io/'],
|
|
824
|
+
chainName: 'Ethereum Testnet Görli',
|
|
825
|
+
nativeCurrency: {
|
|
826
|
+
name: 'ETH',
|
|
827
|
+
symbol: 'ETH',
|
|
828
|
+
decimals: 18,
|
|
829
|
+
},
|
|
830
|
+
rpcUrls: ['https://rpc.ankr.com/eth_goerli'],
|
|
831
|
+
},
|
|
832
|
+
},
|
|
833
|
+
// 12 - Metadium Testnet
|
|
834
|
+
{
|
|
835
|
+
key: types_1.ChainKey.METT,
|
|
836
|
+
chainType: types_1.ChainType.EVM,
|
|
837
|
+
name: 'Metadium Testnet',
|
|
838
|
+
coin: types_1.CoinKey.KAL,
|
|
839
|
+
id: 12,
|
|
840
|
+
mainnet: false,
|
|
841
|
+
multicallAddress: multicall_1.multicallAddresses[types_1.ChainId.METT],
|
|
842
|
+
metamask: {
|
|
843
|
+
chainId: (0, utils_1.prefixChainId)(12),
|
|
844
|
+
blockExplorerUrls: ['https://metadium.com/'],
|
|
845
|
+
chainName: 'Metadium Testnet',
|
|
846
|
+
nativeCurrency: {
|
|
847
|
+
name: 'KAL',
|
|
848
|
+
symbol: 'KAL',
|
|
849
|
+
decimals: 18,
|
|
850
|
+
},
|
|
851
|
+
rpcUrls: ['https://api.metadium.com/dev'],
|
|
852
|
+
},
|
|
853
|
+
},
|
|
854
|
+
// 13 - Diode Testnet Staging
|
|
855
|
+
{
|
|
856
|
+
key: types_1.ChainKey.DIOT,
|
|
857
|
+
chainType: types_1.ChainType.EVM,
|
|
858
|
+
name: 'DIODE',
|
|
859
|
+
coin: types_1.CoinKey.SDIODE,
|
|
860
|
+
id: 13,
|
|
861
|
+
mainnet: false,
|
|
862
|
+
multicallAddress: multicall_1.multicallAddresses[types_1.ChainId.DIOT],
|
|
863
|
+
metamask: {
|
|
864
|
+
chainId: (0, utils_1.prefixChainId)(13),
|
|
865
|
+
blockExplorerUrls: ['https://diode.io/staging/'],
|
|
866
|
+
chainName: 'Diode Testnet Staging',
|
|
867
|
+
nativeCurrency: {
|
|
868
|
+
name: 'Staging Diodes',
|
|
869
|
+
symbol: 'sDIODE',
|
|
870
|
+
decimals: 18,
|
|
871
|
+
},
|
|
872
|
+
rpcUrls: ['https://staging.diode.io:8443/'],
|
|
873
|
+
},
|
|
874
|
+
},
|
|
875
|
+
// 80001 - Mumbai Polygon Testnet
|
|
876
|
+
{
|
|
877
|
+
key: types_1.ChainKey.MUM,
|
|
878
|
+
chainType: types_1.ChainType.EVM,
|
|
879
|
+
name: 'Polygon Testnet',
|
|
880
|
+
coin: types_1.CoinKey.MATIC,
|
|
881
|
+
id: 80001,
|
|
882
|
+
mainnet: false,
|
|
883
|
+
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/polygon_test.png',
|
|
884
|
+
tokenlistUrl: 'https://raw.githubusercontent.com/elkfinance/tokens/main/mumbai.tokenlist.json',
|
|
885
|
+
faucetUrls: ['https://faucet.matic.network/'],
|
|
886
|
+
multicallAddress: multicall_1.multicallAddresses[types_1.ChainId.MUM],
|
|
887
|
+
metamask: {
|
|
888
|
+
chainId: (0, utils_1.prefixChainId)(80001),
|
|
889
|
+
blockExplorerUrls: ['https://explorer-mumbai.maticvigil.com/'],
|
|
890
|
+
chainName: 'Matic(Polygon) Testnet Mumbai',
|
|
891
|
+
nativeCurrency: {
|
|
892
|
+
name: 'MATIC',
|
|
893
|
+
symbol: 'tMATIC',
|
|
894
|
+
decimals: 18,
|
|
895
|
+
},
|
|
896
|
+
rpcUrls: ['https://rpc-mumbai.matic.today'],
|
|
897
|
+
},
|
|
898
|
+
},
|
|
899
|
+
{
|
|
900
|
+
key: types_1.ChainKey.ARBG,
|
|
901
|
+
chainType: types_1.ChainType.EVM,
|
|
902
|
+
name: 'Arbitrum Görli',
|
|
903
|
+
coin: types_1.CoinKey.ETH,
|
|
904
|
+
id: 421613,
|
|
905
|
+
mainnet: false,
|
|
906
|
+
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/arbitrum_test.png',
|
|
907
|
+
faucetUrls: ['https://bridge.arbitrum.io/'],
|
|
908
|
+
multicallAddress: multicall_1.multicallAddresses[types_1.ChainId.ARBG],
|
|
909
|
+
metamask: {
|
|
910
|
+
chainId: (0, utils_1.prefixChainId)(421613),
|
|
911
|
+
blockExplorerUrls: ['https://goerli-rollup-explorer.arbitrum.io/'],
|
|
912
|
+
chainName: 'Arbitrum Görli',
|
|
913
|
+
nativeCurrency: {
|
|
914
|
+
name: 'AGOR',
|
|
915
|
+
symbol: 'AGOR',
|
|
916
|
+
decimals: 18,
|
|
917
|
+
},
|
|
918
|
+
rpcUrls: ['https://goerli-rollup.arbitrum.io/rpc/ '],
|
|
919
|
+
},
|
|
920
|
+
},
|
|
921
|
+
// 420 - Optimistic Ethereum (Goerli)
|
|
922
|
+
{
|
|
923
|
+
key: types_1.ChainKey.OPTG,
|
|
924
|
+
chainType: types_1.ChainType.EVM,
|
|
925
|
+
name: 'Optimistic Ethereum Testnet Goerli',
|
|
926
|
+
coin: types_1.CoinKey.ETH,
|
|
927
|
+
id: 420,
|
|
928
|
+
mainnet: false,
|
|
929
|
+
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/optimism_test.png',
|
|
930
|
+
faucetUrls: ['https://gateway.optimism.io/'],
|
|
931
|
+
multicallAddress: multicall_1.multicallAddresses[types_1.ChainId.OPTG],
|
|
932
|
+
metamask: {
|
|
933
|
+
chainId: (0, utils_1.prefixChainId)(420),
|
|
934
|
+
blockExplorerUrls: ['https://blockscout.com/optimism/goerli/'],
|
|
935
|
+
chainName: 'Optimistic Ethereum Testnet Goerli',
|
|
936
|
+
nativeCurrency: {
|
|
937
|
+
name: 'tETH',
|
|
938
|
+
symbol: 'tETH',
|
|
939
|
+
decimals: 18,
|
|
940
|
+
},
|
|
941
|
+
rpcUrls: ['https://goerli.optimism.io/'],
|
|
942
|
+
},
|
|
943
|
+
},
|
|
944
|
+
// 97 - Binance Smart Chain Testnet
|
|
945
|
+
{
|
|
946
|
+
key: types_1.ChainKey.BSCT,
|
|
947
|
+
chainType: types_1.ChainType.EVM,
|
|
948
|
+
name: 'Binance Smart Chain Testnet',
|
|
949
|
+
coin: types_1.CoinKey.BNB,
|
|
950
|
+
id: 97,
|
|
951
|
+
mainnet: false,
|
|
952
|
+
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/bsc_test.png',
|
|
953
|
+
faucetUrls: ['https://testnet.binance.org/faucet-smart'],
|
|
954
|
+
multicallAddress: multicall_1.multicallAddresses[types_1.ChainId.BSCT],
|
|
955
|
+
metamask: {
|
|
956
|
+
chainId: (0, utils_1.prefixChainId)(97),
|
|
957
|
+
blockExplorerUrls: ['https://testnet.bscscan.com/'],
|
|
958
|
+
chainName: 'Binance Smart Chain Testnet',
|
|
959
|
+
nativeCurrency: {
|
|
960
|
+
name: 'tBNB',
|
|
961
|
+
symbol: 'tBNB',
|
|
962
|
+
decimals: 18,
|
|
963
|
+
},
|
|
964
|
+
rpcUrls: ['https://data-seed-prebsc-1-s1.binance.org:8545/'],
|
|
965
|
+
},
|
|
966
|
+
},
|
|
967
|
+
// 256 - Huobi ECO Chain Testnet
|
|
968
|
+
{
|
|
969
|
+
key: types_1.ChainKey.HECT,
|
|
970
|
+
chainType: types_1.ChainType.EVM,
|
|
971
|
+
name: 'Huobi ECO Chain Testnet',
|
|
972
|
+
coin: 'HTT',
|
|
973
|
+
id: 256,
|
|
974
|
+
mainnet: false,
|
|
975
|
+
faucetUrls: ['https://scan-testnet.hecochain.com/faucet'],
|
|
976
|
+
multicallAddress: multicall_1.multicallAddresses[types_1.ChainId.HECT],
|
|
977
|
+
metamask: {
|
|
978
|
+
chainId: (0, utils_1.prefixChainId)(256),
|
|
979
|
+
blockExplorerUrls: ['https://scan-testnet.hecochain.com/'],
|
|
980
|
+
chainName: 'Huobi ECO Chain Testnet',
|
|
981
|
+
nativeCurrency: {
|
|
982
|
+
name: 'HT',
|
|
983
|
+
symbol: 'HT',
|
|
984
|
+
decimals: 18,
|
|
985
|
+
},
|
|
986
|
+
rpcUrls: ['https://http-testnet.hecochain.com'],
|
|
987
|
+
},
|
|
988
|
+
},
|
|
989
|
+
// 1666700000 - Harmony Testnet 0
|
|
990
|
+
{
|
|
991
|
+
key: types_1.ChainKey.ONET,
|
|
992
|
+
chainType: types_1.ChainType.EVM,
|
|
993
|
+
name: 'Harmony Testnet',
|
|
994
|
+
coin: types_1.CoinKey.ONE,
|
|
995
|
+
id: 1666700000,
|
|
996
|
+
mainnet: false,
|
|
997
|
+
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/harmony_test.png',
|
|
998
|
+
// https://docs.harmony.one/home/developers/wallets/metamask/connect-metamask-to-the-harmony-chain
|
|
999
|
+
multicallAddress: multicall_1.multicallAddresses[types_1.ChainId.ONET],
|
|
1000
|
+
metamask: {
|
|
1001
|
+
chainId: (0, utils_1.prefixChainId)(1666700000),
|
|
1002
|
+
blockExplorerUrls: [
|
|
1003
|
+
'https://explorer.pops.one/',
|
|
1004
|
+
'https://explorer.testnet.harmony.one/',
|
|
1005
|
+
],
|
|
1006
|
+
chainName: 'Harmony Testnet Shard 0',
|
|
1007
|
+
nativeCurrency: {
|
|
1008
|
+
name: 'ONE',
|
|
1009
|
+
symbol: 'ONE',
|
|
1010
|
+
decimals: 18,
|
|
1011
|
+
},
|
|
1012
|
+
rpcUrls: ['https://api.s0.b.hmny.io'],
|
|
1013
|
+
},
|
|
1014
|
+
},
|
|
1015
|
+
// 123 Fuse Sparknet
|
|
1016
|
+
{
|
|
1017
|
+
key: types_1.ChainKey.FUST,
|
|
1018
|
+
chainType: types_1.ChainType.EVM,
|
|
1019
|
+
name: 'SPARK',
|
|
1020
|
+
coin: types_1.CoinKey.SPARK,
|
|
1021
|
+
id: 123,
|
|
1022
|
+
mainnet: false,
|
|
1023
|
+
multicallAddress: multicall_1.multicallAddresses[types_1.ChainId.FUST],
|
|
1024
|
+
metamask: {
|
|
1025
|
+
chainId: (0, utils_1.prefixChainId)(123),
|
|
1026
|
+
blockExplorerUrls: ['https://explorer.fusespark.io/'],
|
|
1027
|
+
chainName: 'Fuse Sparknet',
|
|
1028
|
+
nativeCurrency: {
|
|
1029
|
+
name: 'Spark',
|
|
1030
|
+
symbol: 'SPARK',
|
|
1031
|
+
decimals: 18,
|
|
1032
|
+
},
|
|
1033
|
+
rpcUrls: ['https://rpc.fusespark.io'],
|
|
1034
|
+
},
|
|
1035
|
+
},
|
|
1036
|
+
// 41 Telos EVM Testnet
|
|
1037
|
+
{
|
|
1038
|
+
key: types_1.ChainKey.TLOT,
|
|
1039
|
+
chainType: types_1.ChainType.EVM,
|
|
1040
|
+
name: 'Telos Testnet',
|
|
1041
|
+
coin: types_1.CoinKey.TLOS,
|
|
1042
|
+
id: 41,
|
|
1043
|
+
mainnet: false,
|
|
1044
|
+
faucetUrls: ['https://app.telos.net/testnet/developers'],
|
|
1045
|
+
multicallAddress: multicall_1.multicallAddresses[types_1.ChainId.TLOT],
|
|
1046
|
+
metamask: {
|
|
1047
|
+
chainId: (0, utils_1.prefixChainId)(41),
|
|
1048
|
+
blockExplorerUrls: ['https://telos.net/'],
|
|
1049
|
+
chainName: 'Telos EVM Mainnet',
|
|
1050
|
+
nativeCurrency: {
|
|
1051
|
+
name: 'Telos',
|
|
1052
|
+
symbol: 'TLOS',
|
|
1053
|
+
decimals: 18,
|
|
1054
|
+
},
|
|
1055
|
+
rpcUrls: ['https://testnet.telos.net/evm'],
|
|
1056
|
+
},
|
|
1057
|
+
},
|
|
1058
|
+
// 31 RSK Testnet
|
|
1059
|
+
{
|
|
1060
|
+
key: types_1.ChainKey.RSKT,
|
|
1061
|
+
chainType: types_1.ChainType.EVM,
|
|
1062
|
+
name: 'RSK Testnet',
|
|
1063
|
+
coin: types_1.CoinKey.TRBTC,
|
|
1064
|
+
id: 31,
|
|
1065
|
+
mainnet: true,
|
|
1066
|
+
multicallAddress: multicall_1.multicallAddresses[types_1.ChainId.RSKT],
|
|
1067
|
+
metamask: {
|
|
1068
|
+
chainId: (0, utils_1.prefixChainId)(31),
|
|
1069
|
+
blockExplorerUrls: ['https://rsk.co/'],
|
|
1070
|
+
chainName: 'RSK Testnet',
|
|
1071
|
+
nativeCurrency: {
|
|
1072
|
+
name: 'tRBTC',
|
|
1073
|
+
symbol: 'TRBTC',
|
|
1074
|
+
decimals: 18,
|
|
1075
|
+
},
|
|
1076
|
+
rpcUrls: ['https://public-node.testnet.rsk.co'],
|
|
1077
|
+
},
|
|
1078
|
+
},
|
|
1079
|
+
// 43113 - Avalanche Fuji Testnet
|
|
1080
|
+
{
|
|
1081
|
+
key: types_1.ChainKey.AVAT,
|
|
1082
|
+
chainType: types_1.ChainType.EVM,
|
|
1083
|
+
name: 'Avalanche Fuji Testnet',
|
|
1084
|
+
coin: types_1.CoinKey.AVAX,
|
|
1085
|
+
id: 43113,
|
|
1086
|
+
mainnet: false,
|
|
1087
|
+
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/avalanche_test.png',
|
|
1088
|
+
multicallAddress: multicall_1.multicallAddresses[types_1.ChainId.AVAT],
|
|
1089
|
+
faucetUrls: ['https://faucet.avax-test.network/'],
|
|
1090
|
+
// https://github.com/ethereum-lists/chains/blob/master/_data/chains/eip155-43113.json
|
|
1091
|
+
metamask: {
|
|
1092
|
+
chainId: (0, utils_1.prefixChainId)(43113),
|
|
1093
|
+
blockExplorerUrls: ['https://testnet.snowtrace.io/'],
|
|
1094
|
+
chainName: 'Avalanche Fuji Testnet',
|
|
1095
|
+
nativeCurrency: {
|
|
1096
|
+
name: 'AVAX',
|
|
1097
|
+
symbol: 'AVAX',
|
|
1098
|
+
decimals: 18,
|
|
1099
|
+
},
|
|
1100
|
+
rpcUrls: ['https://api.avax-test.network/ext/bc/C/rpc'],
|
|
1101
|
+
},
|
|
1102
|
+
},
|
|
1103
|
+
// 59140 - Linea (formerly ConsenSys zkEVM) Testnet
|
|
1104
|
+
{
|
|
1105
|
+
key: types_1.ChainKey.LNAT,
|
|
1106
|
+
chainType: types_1.ChainType.EVM,
|
|
1107
|
+
name: 'Linea Testnet',
|
|
1108
|
+
coin: types_1.CoinKey.ETH,
|
|
1109
|
+
id: 59140,
|
|
1110
|
+
mainnet: false,
|
|
1111
|
+
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/linea.svg',
|
|
1112
|
+
multicallAddress: multicall_1.multicallAddresses[types_1.ChainId.LNAT],
|
|
1113
|
+
faucetUrls: ['https://faucetlink.to/goerli'],
|
|
1114
|
+
metamask: {
|
|
1115
|
+
chainId: (0, utils_1.prefixChainId)(59140),
|
|
1116
|
+
blockExplorerUrls: ['https://explorer.goerli.linea.build/'],
|
|
1117
|
+
chainName: 'Linea Testnet',
|
|
1118
|
+
nativeCurrency: {
|
|
1119
|
+
name: 'crETH',
|
|
1120
|
+
symbol: 'crETH',
|
|
1121
|
+
decimals: 18,
|
|
1122
|
+
},
|
|
1123
|
+
rpcUrls: ['https://rpc.goerli.linea.build'],
|
|
1124
|
+
},
|
|
1125
|
+
},
|
|
1126
|
+
// TODO: Add
|
|
1127
|
+
// EVMT = 9000,
|
|
1128
|
+
// MORT = 1287,
|
|
1129
|
+
// FTMT = 4002,
|
|
1130
|
+
// https://faucet.buni.finance/
|
|
1131
|
+
// kucoin faucet: https://stakely.io/faucet/kucoin-kcc-kcs
|
|
1132
|
+
];
|
|
1133
|
+
exports.supportedSolanaChains = [
|
|
1134
|
+
{
|
|
1135
|
+
key: types_1.ChainKey.SOL,
|
|
1136
|
+
chainType: types_1.ChainType.Solana,
|
|
1137
|
+
name: 'Solana',
|
|
1138
|
+
coin: types_1.CoinKey.SOL,
|
|
1139
|
+
id: types_1.ChainId.SOL,
|
|
1140
|
+
mainnet: true,
|
|
1141
|
+
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/solana.svg',
|
|
1142
|
+
faucetUrls: ['https://stakely.io/faucet/solana-sol'],
|
|
1143
|
+
metamask: {
|
|
1144
|
+
chainId: types_1.ChainId.SOL.toString(),
|
|
1145
|
+
blockExplorerUrls: [
|
|
1146
|
+
'https://explorer.solana.com/',
|
|
1147
|
+
'https://solscan.io/',
|
|
1148
|
+
'https://solana.fm/',
|
|
1149
|
+
],
|
|
1150
|
+
chainName: 'Solana',
|
|
1151
|
+
nativeCurrency: {
|
|
1152
|
+
name: 'SOL',
|
|
1153
|
+
symbol: 'SOL',
|
|
1154
|
+
decimals: 9,
|
|
1155
|
+
},
|
|
1156
|
+
rpcUrls: ['https://api.mainnet-beta.solana.com'],
|
|
1157
|
+
},
|
|
1158
|
+
},
|
|
1159
|
+
];
|
|
1160
|
+
// This assignment is required to avoid breaking
|
|
1161
|
+
// changes with the new non EVM support types release
|
|
1162
|
+
// This will be removed in the future
|
|
1163
|
+
exports.supportedChains = [...exports.supportedEVMChains, ...exports.supportedSolanaChains];
|
|
1164
|
+
const getChainByKey = (chainKey) => {
|
|
1165
|
+
const chain = exports.supportedChains.find((c) => c.key === chainKey);
|
|
1166
|
+
if (!chain) {
|
|
1167
|
+
throw new Error('Invalid chainKey');
|
|
1168
|
+
}
|
|
1169
|
+
return chain;
|
|
1170
|
+
};
|
|
1171
|
+
exports.getChainByKey = getChainByKey;
|
|
1172
|
+
const getChainById = (chainId) => {
|
|
1173
|
+
const chain = exports.supportedChains.find((c) => c.id === chainId);
|
|
1174
|
+
if (!chain) {
|
|
1175
|
+
throw new Error('Invalid chainId');
|
|
1176
|
+
}
|
|
1177
|
+
return chain;
|
|
1178
|
+
};
|
|
1179
|
+
exports.getChainById = getChainById;
|