@lifi/types 1.4.1 → 1.6.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/CHANGELOG.md +17 -0
- package/dist/api.js +6 -15
- package/dist/apiErrors.js +1 -2
- package/dist/base.d.ts +2 -0
- package/dist/base.js +8 -9
- package/dist/bridges.js +4 -7
- package/dist/chains/Chain.js +2 -5
- package/dist/chains/EVMChain.js +3 -7
- package/dist/chains/SolanaChain.js +1 -2
- package/dist/chains/chain.utils.js +10 -20
- package/dist/chains/index.js +5 -21
- package/dist/chains/supported.chains.js +273 -253
- package/dist/cjs/api.d.ts +218 -0
- package/dist/cjs/api.js +46 -0
- package/dist/cjs/apiErrors.d.ts +9 -0
- package/dist/cjs/apiErrors.js +2 -0
- package/dist/cjs/base.d.ts +206 -0
- package/dist/cjs/base.js +176 -0
- package/dist/cjs/bridges.d.ts +34 -0
- package/dist/cjs/bridges.js +170 -0
- package/dist/cjs/chains/Chain.d.ts +15 -0
- package/dist/cjs/chains/Chain.js +8 -0
- package/dist/cjs/chains/EVMChain.d.ts +19 -0
- package/dist/cjs/chains/EVMChain.js +8 -0
- package/dist/cjs/chains/SolanaChain.d.ts +2 -0
- package/dist/cjs/chains/SolanaChain.js +2 -0
- package/dist/cjs/chains/chain.utils.d.ts +4 -0
- package/dist/cjs/chains/chain.utils.js +25 -0
- package/dist/cjs/chains/index.d.ts +5 -0
- package/dist/cjs/chains/index.js +21 -0
- package/dist/cjs/chains/supported.chains.d.ts +5 -0
- package/dist/cjs/chains/supported.chains.js +1195 -0
- package/dist/cjs/coins.d.ts +9 -0
- package/dist/cjs/coins.js +1421 -0
- package/dist/cjs/exchanges.d.ts +51 -0
- package/dist/cjs/exchanges.js +1047 -0
- package/dist/cjs/index.d.ts +8 -0
- package/dist/cjs/index.js +24 -0
- package/dist/cjs/multicall.d.ts +3 -0
- package/dist/cjs/multicall.js +67 -0
- package/dist/cjs/step.d.ts +117 -0
- package/dist/cjs/step.js +23 -0
- package/dist/coins.js +402 -391
- package/dist/exchanges.js +210 -214
- package/dist/index.js +8 -24
- package/dist/multicall.js +44 -41
- package/dist/step.d.ts +2 -0
- package/dist/step.js +5 -12
- package/package.json +26 -3
|
@@ -1,30 +1,27 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/*
|
|
3
2
|
This file is for legacy compatibility only.
|
|
4
3
|
Data regarding supported chains *should* be fetched from the API.
|
|
5
4
|
This file is only used to provide legacy compatibility for existing tools.
|
|
6
5
|
*/
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var Chain_1 = require("./Chain");
|
|
12
|
-
var EVMChain_1 = require("./EVMChain");
|
|
6
|
+
import { ChainId, ChainKey, CoinKey } from '../base';
|
|
7
|
+
import { multicallAddresses } from '../multicall';
|
|
8
|
+
import { ChainType } from './Chain';
|
|
9
|
+
import { prefixChainId } from './EVMChain';
|
|
13
10
|
// chainNames aligned with https://github.com/ethereum-lists/chains/tree/master/_data/chains
|
|
14
|
-
|
|
11
|
+
export const supportedEVMChains = [
|
|
15
12
|
// 1 - Ethereum
|
|
16
13
|
{
|
|
17
|
-
key:
|
|
18
|
-
chainType:
|
|
14
|
+
key: ChainKey.ETH,
|
|
15
|
+
chainType: ChainType.EVM,
|
|
19
16
|
name: 'Ethereum',
|
|
20
|
-
coin:
|
|
17
|
+
coin: CoinKey.ETH,
|
|
21
18
|
id: 1,
|
|
22
19
|
mainnet: true,
|
|
23
20
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/ethereum.svg',
|
|
24
21
|
tokenlistUrl: 'https://gateway.ipfs.io/ipns/tokens.uniswap.org',
|
|
25
|
-
multicallAddress:
|
|
22
|
+
multicallAddress: multicallAddresses[ChainId.ETH],
|
|
26
23
|
metamask: {
|
|
27
|
-
chainId:
|
|
24
|
+
chainId: prefixChainId(1),
|
|
28
25
|
blockExplorerUrls: ['https://etherscan.io/'],
|
|
29
26
|
chainName: 'Ethereum Mainnet',
|
|
30
27
|
nativeCurrency: {
|
|
@@ -39,19 +36,19 @@ exports.supportedEVMChains = [
|
|
|
39
36
|
},
|
|
40
37
|
// 137 - Polygon
|
|
41
38
|
{
|
|
42
|
-
key:
|
|
43
|
-
chainType:
|
|
39
|
+
key: ChainKey.POL,
|
|
40
|
+
chainType: ChainType.EVM,
|
|
44
41
|
name: 'Polygon',
|
|
45
|
-
coin:
|
|
42
|
+
coin: CoinKey.MATIC,
|
|
46
43
|
id: 137,
|
|
47
44
|
mainnet: true,
|
|
48
45
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/polygon.svg',
|
|
49
46
|
tokenlistUrl: 'https://unpkg.com/quickswap-default-token-list@1.0.71/build/quickswap-default.tokenlist.json',
|
|
50
47
|
faucetUrls: ['https://stakely.io/faucet/polygon-matic'],
|
|
51
|
-
multicallAddress:
|
|
48
|
+
multicallAddress: multicallAddresses[ChainId.POL],
|
|
52
49
|
// https://docs.matic.network/docs/develop/metamask/config-matic/
|
|
53
50
|
metamask: {
|
|
54
|
-
chainId:
|
|
51
|
+
chainId: prefixChainId(137),
|
|
55
52
|
blockExplorerUrls: [
|
|
56
53
|
'https://polygonscan.com/',
|
|
57
54
|
'https://explorer-mainnet.maticvigil.com/',
|
|
@@ -70,19 +67,19 @@ exports.supportedEVMChains = [
|
|
|
70
67
|
},
|
|
71
68
|
// 56 - Binance Smart Chain
|
|
72
69
|
{
|
|
73
|
-
key:
|
|
74
|
-
chainType:
|
|
70
|
+
key: ChainKey.BSC,
|
|
71
|
+
chainType: ChainType.EVM,
|
|
75
72
|
name: 'BSC',
|
|
76
|
-
coin:
|
|
73
|
+
coin: CoinKey.BNB,
|
|
77
74
|
id: 56,
|
|
78
75
|
mainnet: true,
|
|
79
76
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/bsc.svg',
|
|
80
77
|
tokenlistUrl: 'https://tokens.pancakeswap.finance/pancakeswap-extended.json',
|
|
81
78
|
faucetUrls: ['https://stakely.io/faucet/bsc-chain-bnb'],
|
|
82
|
-
multicallAddress:
|
|
79
|
+
multicallAddress: multicallAddresses[ChainId.BSC],
|
|
83
80
|
// https://docs.binance.org/smart-chain/wallet/metamask.html
|
|
84
81
|
metamask: {
|
|
85
|
-
chainId:
|
|
82
|
+
chainId: prefixChainId(56),
|
|
86
83
|
blockExplorerUrls: ['https://bscscan.com/'],
|
|
87
84
|
chainName: 'Binance Smart Chain Mainnet',
|
|
88
85
|
nativeCurrency: {
|
|
@@ -99,19 +96,19 @@ exports.supportedEVMChains = [
|
|
|
99
96
|
},
|
|
100
97
|
// 100 - Gnosis
|
|
101
98
|
{
|
|
102
|
-
key:
|
|
103
|
-
chainType:
|
|
99
|
+
key: ChainKey.DAI,
|
|
100
|
+
chainType: ChainType.EVM,
|
|
104
101
|
name: 'Gnosis',
|
|
105
|
-
coin:
|
|
102
|
+
coin: CoinKey.DAI,
|
|
106
103
|
id: 100,
|
|
107
104
|
mainnet: true,
|
|
108
105
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/gnosis.svg',
|
|
109
106
|
tokenlistUrl: 'https://tokens.honeyswap.org/',
|
|
110
107
|
faucetUrls: ['https://stakely.io/faucet/xdai-chain'],
|
|
111
|
-
multicallAddress:
|
|
108
|
+
multicallAddress: multicallAddresses[ChainId.DAI],
|
|
112
109
|
// https://www.xdaichain.com/for-users/wallets/metamask/metamask-setup
|
|
113
110
|
metamask: {
|
|
114
|
-
chainId:
|
|
111
|
+
chainId: prefixChainId(100),
|
|
115
112
|
blockExplorerUrls: ['https://blockscout.com/xdai/mainnet/'],
|
|
116
113
|
chainName: 'Gnosis Chain',
|
|
117
114
|
nativeCurrency: {
|
|
@@ -128,10 +125,10 @@ exports.supportedEVMChains = [
|
|
|
128
125
|
},
|
|
129
126
|
// 250 - Fantom
|
|
130
127
|
{
|
|
131
|
-
key:
|
|
132
|
-
chainType:
|
|
128
|
+
key: ChainKey.FTM,
|
|
129
|
+
chainType: ChainType.EVM,
|
|
133
130
|
name: 'Fantom',
|
|
134
|
-
coin:
|
|
131
|
+
coin: CoinKey.FTM,
|
|
135
132
|
id: 250,
|
|
136
133
|
mainnet: true,
|
|
137
134
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/fantom.svg',
|
|
@@ -140,10 +137,10 @@ exports.supportedEVMChains = [
|
|
|
140
137
|
'https://stakely.io/faucet/fantom-blockchain-ftm',
|
|
141
138
|
'https://docs.spookyswap.finance/getting-started/how-to-get-fantom-gas',
|
|
142
139
|
],
|
|
143
|
-
multicallAddress:
|
|
140
|
+
multicallAddress: multicallAddresses[ChainId.FTM],
|
|
144
141
|
// https://docs.fantom.foundation/tutorials/set-up-metamask
|
|
145
142
|
metamask: {
|
|
146
|
-
chainId:
|
|
143
|
+
chainId: prefixChainId(250),
|
|
147
144
|
blockExplorerUrls: ['https://ftmscan.com/'],
|
|
148
145
|
chainName: 'Fantom Opera',
|
|
149
146
|
nativeCurrency: {
|
|
@@ -156,18 +153,18 @@ exports.supportedEVMChains = [
|
|
|
156
153
|
},
|
|
157
154
|
// 66 - OKXChain
|
|
158
155
|
{
|
|
159
|
-
key:
|
|
160
|
-
chainType:
|
|
156
|
+
key: ChainKey.OKT,
|
|
157
|
+
chainType: ChainType.EVM,
|
|
161
158
|
name: 'OKXChain',
|
|
162
|
-
coin:
|
|
159
|
+
coin: CoinKey.OKT,
|
|
163
160
|
id: 66,
|
|
164
161
|
mainnet: true,
|
|
165
162
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/okx.svg',
|
|
166
163
|
tokenlistUrl: 'https://raw.githubusercontent.com/sushiswap/default-token-list/master/tokens/okex.json',
|
|
167
|
-
multicallAddress:
|
|
164
|
+
multicallAddress: multicallAddresses[ChainId.OKT],
|
|
168
165
|
// https://okc-docs.readthedocs.io/en/latest/developers/quick-start-for-mainnet.html
|
|
169
166
|
metamask: {
|
|
170
|
-
chainId:
|
|
167
|
+
chainId: prefixChainId(66),
|
|
171
168
|
blockExplorerUrls: ['https://www.oklink.com/en/okc/'],
|
|
172
169
|
chainName: 'OKXChain Mainnet',
|
|
173
170
|
nativeCurrency: {
|
|
@@ -180,18 +177,18 @@ exports.supportedEVMChains = [
|
|
|
180
177
|
},
|
|
181
178
|
// 43114 - Avalanche
|
|
182
179
|
{
|
|
183
|
-
key:
|
|
184
|
-
chainType:
|
|
180
|
+
key: ChainKey.AVA,
|
|
181
|
+
chainType: ChainType.EVM,
|
|
185
182
|
name: 'Avalanche',
|
|
186
|
-
coin:
|
|
183
|
+
coin: CoinKey.AVAX,
|
|
187
184
|
id: 43114,
|
|
188
185
|
mainnet: true,
|
|
189
186
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/avalanche.svg',
|
|
190
187
|
tokenlistUrl: 'https://raw.githubusercontent.com/sushiswap/default-token-list/master/tokens/avalanche.json',
|
|
191
|
-
multicallAddress:
|
|
188
|
+
multicallAddress: multicallAddresses[ChainId.AVA],
|
|
192
189
|
// https://support.avax.network/en/articles/4626956-how-do-i-set-up-metamask-on-avalanche
|
|
193
190
|
metamask: {
|
|
194
|
-
chainId:
|
|
191
|
+
chainId: prefixChainId(43114),
|
|
195
192
|
blockExplorerUrls: ['https://cchain.explorer.avax.network/'],
|
|
196
193
|
chainName: 'Avalanche Mainnet',
|
|
197
194
|
nativeCurrency: {
|
|
@@ -204,18 +201,18 @@ exports.supportedEVMChains = [
|
|
|
204
201
|
},
|
|
205
202
|
// 42161 - Arbitrum One
|
|
206
203
|
{
|
|
207
|
-
key:
|
|
208
|
-
chainType:
|
|
204
|
+
key: ChainKey.ARB,
|
|
205
|
+
chainType: ChainType.EVM,
|
|
209
206
|
name: 'Arbitrum One',
|
|
210
|
-
coin:
|
|
207
|
+
coin: CoinKey.ETH,
|
|
211
208
|
id: 42161,
|
|
212
209
|
mainnet: true,
|
|
213
210
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/arbitrum.svg',
|
|
214
211
|
tokenlistUrl: 'https://raw.githubusercontent.com/sushiswap/default-token-list/master/tokens/arbitrum.json',
|
|
215
212
|
faucetUrls: ['https://bridge.arbitrum.io/'],
|
|
216
|
-
multicallAddress:
|
|
213
|
+
multicallAddress: multicallAddresses[ChainId.ARB],
|
|
217
214
|
metamask: {
|
|
218
|
-
chainId:
|
|
215
|
+
chainId: prefixChainId(42161),
|
|
219
216
|
blockExplorerUrls: ['https://arbiscan.io/'],
|
|
220
217
|
chainName: 'Arbitrum One',
|
|
221
218
|
nativeCurrency: {
|
|
@@ -228,17 +225,17 @@ exports.supportedEVMChains = [
|
|
|
228
225
|
},
|
|
229
226
|
// 128 - Huobi ECO Chain Mainnet
|
|
230
227
|
{
|
|
231
|
-
key:
|
|
232
|
-
chainType:
|
|
228
|
+
key: ChainKey.HEC,
|
|
229
|
+
chainType: ChainType.EVM,
|
|
233
230
|
name: 'Huobi ECO Chain Mainnet',
|
|
234
|
-
coin:
|
|
231
|
+
coin: CoinKey.HT,
|
|
235
232
|
id: 128,
|
|
236
233
|
mainnet: true,
|
|
237
234
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/heco.png',
|
|
238
235
|
tokenlistUrl: 'https://raw.githubusercontent.com/sushiswap/default-token-list/master/tokens/heco.json',
|
|
239
|
-
multicallAddress:
|
|
236
|
+
multicallAddress: multicallAddresses[ChainId.HEC],
|
|
240
237
|
metamask: {
|
|
241
|
-
chainId:
|
|
238
|
+
chainId: prefixChainId(128),
|
|
242
239
|
blockExplorerUrls: ['https://hecoinfo.com/'],
|
|
243
240
|
chainName: 'Huobi ECO Chain Mainnet',
|
|
244
241
|
nativeCurrency: {
|
|
@@ -251,18 +248,18 @@ exports.supportedEVMChains = [
|
|
|
251
248
|
},
|
|
252
249
|
// 10 - Optimism
|
|
253
250
|
{
|
|
254
|
-
key:
|
|
255
|
-
chainType:
|
|
251
|
+
key: ChainKey.OPT,
|
|
252
|
+
chainType: ChainType.EVM,
|
|
256
253
|
name: 'Optimism',
|
|
257
|
-
coin:
|
|
254
|
+
coin: CoinKey.ETH,
|
|
258
255
|
id: 10,
|
|
259
256
|
mainnet: true,
|
|
260
257
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/optimism.svg',
|
|
261
258
|
tokenlistUrl: 'https://static.optimism.io/optimism.tokenlist.json',
|
|
262
259
|
faucetUrls: ['https://gateway.optimism.io/'],
|
|
263
|
-
multicallAddress:
|
|
260
|
+
multicallAddress: multicallAddresses[ChainId.OPT],
|
|
264
261
|
metamask: {
|
|
265
|
-
chainId:
|
|
262
|
+
chainId: prefixChainId(10),
|
|
266
263
|
blockExplorerUrls: ['https://optimistic.etherscan.io/'],
|
|
267
264
|
chainName: 'Optimism',
|
|
268
265
|
nativeCurrency: {
|
|
@@ -275,17 +272,17 @@ exports.supportedEVMChains = [
|
|
|
275
272
|
},
|
|
276
273
|
// 32659 - Fusion (anyswap)
|
|
277
274
|
{
|
|
278
|
-
key:
|
|
279
|
-
chainType:
|
|
275
|
+
key: ChainKey.FSN,
|
|
276
|
+
chainType: ChainType.EVM,
|
|
280
277
|
name: 'Fusion Mainnet',
|
|
281
|
-
coin:
|
|
278
|
+
coin: CoinKey.FSN,
|
|
282
279
|
id: 32659,
|
|
283
280
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/fusion.png',
|
|
284
281
|
mainnet: true,
|
|
285
|
-
multicallAddress:
|
|
282
|
+
multicallAddress: multicallAddresses[ChainId.FSN],
|
|
286
283
|
// https://support.avax.network/en/articles/4626956-how-do-i-set-up-metamask-on-avalanche
|
|
287
284
|
metamask: {
|
|
288
|
-
chainId:
|
|
285
|
+
chainId: prefixChainId(32659),
|
|
289
286
|
blockExplorerUrls: ['https://fsnex.com/'],
|
|
290
287
|
chainName: 'Fusion Mainnet',
|
|
291
288
|
nativeCurrency: {
|
|
@@ -298,19 +295,19 @@ exports.supportedEVMChains = [
|
|
|
298
295
|
},
|
|
299
296
|
// 1666600000 - Harmony Mainnet Shard 0
|
|
300
297
|
{
|
|
301
|
-
key:
|
|
302
|
-
chainType:
|
|
298
|
+
key: ChainKey.ONE,
|
|
299
|
+
chainType: ChainType.EVM,
|
|
303
300
|
name: 'Harmony',
|
|
304
|
-
coin:
|
|
301
|
+
coin: CoinKey.ONE,
|
|
305
302
|
id: 1666600000,
|
|
306
303
|
mainnet: true,
|
|
307
304
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/harmony.svg',
|
|
308
305
|
tokenlistUrl: 'https://d1xrz6ki9z98vb.cloudfront.net/venomswap/lists/venomswap-default.tokenlist.json',
|
|
309
306
|
faucetUrls: ['https://stakely.io/faucet/harmony-one'],
|
|
310
|
-
multicallAddress:
|
|
307
|
+
multicallAddress: multicallAddresses[ChainId.ONE],
|
|
311
308
|
// https://docs.harmony.one/home/developers/wallets/metamask/connect-metamask-to-the-harmony-chain
|
|
312
309
|
metamask: {
|
|
313
|
-
chainId:
|
|
310
|
+
chainId: prefixChainId(1666600000),
|
|
314
311
|
blockExplorerUrls: ['https://explorer.harmony.one/'],
|
|
315
312
|
chainName: 'Harmony Mainnet Shard 0',
|
|
316
313
|
nativeCurrency: {
|
|
@@ -323,17 +320,17 @@ exports.supportedEVMChains = [
|
|
|
323
320
|
},
|
|
324
321
|
// 1285 - Moonriver
|
|
325
322
|
{
|
|
326
|
-
key:
|
|
327
|
-
chainType:
|
|
323
|
+
key: ChainKey.MOR,
|
|
324
|
+
chainType: ChainType.EVM,
|
|
328
325
|
name: 'Moonriver',
|
|
329
|
-
coin:
|
|
326
|
+
coin: CoinKey.MOVR,
|
|
330
327
|
id: 1285,
|
|
331
328
|
mainnet: true,
|
|
332
329
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/moonriver.svg',
|
|
333
330
|
tokenlistUrl: 'https://raw.githubusercontent.com/sushiswap/default-token-list/master/tokens/moonriver.json',
|
|
334
|
-
multicallAddress:
|
|
331
|
+
multicallAddress: multicallAddresses[ChainId.MOR],
|
|
335
332
|
metamask: {
|
|
336
|
-
chainId:
|
|
333
|
+
chainId: prefixChainId(1285),
|
|
337
334
|
blockExplorerUrls: ['https://blockscout.moonriver.moonbeam.network/'],
|
|
338
335
|
chainName: 'Moonriver',
|
|
339
336
|
nativeCurrency: {
|
|
@@ -346,17 +343,17 @@ exports.supportedEVMChains = [
|
|
|
346
343
|
},
|
|
347
344
|
// 1284 Moonbeam
|
|
348
345
|
{
|
|
349
|
-
key:
|
|
350
|
-
chainType:
|
|
346
|
+
key: ChainKey.MOO,
|
|
347
|
+
chainType: ChainType.EVM,
|
|
351
348
|
name: 'Moonbeam',
|
|
352
|
-
coin:
|
|
349
|
+
coin: CoinKey.GLMR,
|
|
353
350
|
id: 1284,
|
|
354
351
|
mainnet: true,
|
|
355
352
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/moonbeam.svg',
|
|
356
353
|
tokenlistUrl: 'https://raw.githubusercontent.com/BeamSwap/beamswap-tokenlist/main/tokenlist.json',
|
|
357
|
-
multicallAddress:
|
|
354
|
+
multicallAddress: multicallAddresses[ChainId.MOO],
|
|
358
355
|
metamask: {
|
|
359
|
-
chainId:
|
|
356
|
+
chainId: prefixChainId(1284),
|
|
360
357
|
blockExplorerUrls: ['https://blockscout.moonbeam.network/'],
|
|
361
358
|
chainName: 'Moonbeam',
|
|
362
359
|
nativeCurrency: {
|
|
@@ -369,16 +366,16 @@ exports.supportedEVMChains = [
|
|
|
369
366
|
},
|
|
370
367
|
// 2 - Expanse Network
|
|
371
368
|
{
|
|
372
|
-
key:
|
|
373
|
-
chainType:
|
|
369
|
+
key: ChainKey.EXP,
|
|
370
|
+
chainType: ChainType.EVM,
|
|
374
371
|
name: 'Expanse Network',
|
|
375
|
-
coin:
|
|
372
|
+
coin: CoinKey.EXP,
|
|
376
373
|
id: 2,
|
|
377
374
|
mainnet: true,
|
|
378
375
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/expanse.png',
|
|
379
|
-
multicallAddress:
|
|
376
|
+
multicallAddress: multicallAddresses[ChainId.EXP],
|
|
380
377
|
metamask: {
|
|
381
|
-
chainId:
|
|
378
|
+
chainId: prefixChainId(2),
|
|
382
379
|
blockExplorerUrls: ['https://expanse.tech/'],
|
|
383
380
|
chainName: 'Expanse Network',
|
|
384
381
|
nativeCurrency: {
|
|
@@ -391,15 +388,15 @@ exports.supportedEVMChains = [
|
|
|
391
388
|
},
|
|
392
389
|
// 7 - ThaiChain
|
|
393
390
|
{
|
|
394
|
-
key:
|
|
395
|
-
chainType:
|
|
391
|
+
key: ChainKey.TCH,
|
|
392
|
+
chainType: ChainType.EVM,
|
|
396
393
|
name: 'ThaiChain',
|
|
397
|
-
coin:
|
|
394
|
+
coin: CoinKey.TCH,
|
|
398
395
|
id: 7,
|
|
399
396
|
mainnet: true,
|
|
400
|
-
multicallAddress:
|
|
397
|
+
multicallAddress: multicallAddresses[ChainId.TCH],
|
|
401
398
|
metamask: {
|
|
402
|
-
chainId:
|
|
399
|
+
chainId: prefixChainId(7),
|
|
403
400
|
blockExplorerUrls: ['https://thaichain.io/'],
|
|
404
401
|
chainName: 'ThaiChain',
|
|
405
402
|
nativeCurrency: {
|
|
@@ -412,15 +409,15 @@ exports.supportedEVMChains = [
|
|
|
412
409
|
},
|
|
413
410
|
// 8 - Ubiq
|
|
414
411
|
{
|
|
415
|
-
key:
|
|
416
|
-
chainType:
|
|
412
|
+
key: ChainKey.UBQ,
|
|
413
|
+
chainType: ChainType.EVM,
|
|
417
414
|
name: 'Ubiq',
|
|
418
|
-
coin:
|
|
415
|
+
coin: CoinKey.UBQ,
|
|
419
416
|
id: 8,
|
|
420
417
|
mainnet: true,
|
|
421
|
-
multicallAddress:
|
|
418
|
+
multicallAddress: multicallAddresses[ChainId.UBQ],
|
|
422
419
|
metamask: {
|
|
423
|
-
chainId:
|
|
420
|
+
chainId: prefixChainId(8),
|
|
424
421
|
blockExplorerUrls: ['https://ubiqscan.io/'],
|
|
425
422
|
chainName: 'Ubiq',
|
|
426
423
|
nativeCurrency: {
|
|
@@ -433,15 +430,15 @@ exports.supportedEVMChains = [
|
|
|
433
430
|
},
|
|
434
431
|
// 11 - Metadium Mainnet
|
|
435
432
|
{
|
|
436
|
-
key:
|
|
437
|
-
chainType:
|
|
433
|
+
key: ChainKey.MET,
|
|
434
|
+
chainType: ChainType.EVM,
|
|
438
435
|
name: 'Metadium Mainnet',
|
|
439
|
-
coin:
|
|
436
|
+
coin: CoinKey.META,
|
|
440
437
|
id: 11,
|
|
441
438
|
mainnet: true,
|
|
442
|
-
multicallAddress:
|
|
439
|
+
multicallAddress: multicallAddresses[ChainId.MET],
|
|
443
440
|
metamask: {
|
|
444
|
-
chainId:
|
|
441
|
+
chainId: prefixChainId(11),
|
|
445
442
|
blockExplorerUrls: ['https://metadium.com/'],
|
|
446
443
|
chainName: 'Metadium Mainnet',
|
|
447
444
|
nativeCurrency: {
|
|
@@ -454,15 +451,15 @@ exports.supportedEVMChains = [
|
|
|
454
451
|
},
|
|
455
452
|
// 15 - Diode Prenet
|
|
456
453
|
{
|
|
457
|
-
key:
|
|
458
|
-
chainType:
|
|
454
|
+
key: ChainKey.DIO,
|
|
455
|
+
chainType: ChainType.EVM,
|
|
459
456
|
name: 'DIODE',
|
|
460
|
-
coin:
|
|
457
|
+
coin: CoinKey.DIODE,
|
|
461
458
|
id: 15,
|
|
462
459
|
mainnet: true,
|
|
463
|
-
multicallAddress:
|
|
460
|
+
multicallAddress: multicallAddresses[ChainId.DIO],
|
|
464
461
|
metamask: {
|
|
465
|
-
chainId:
|
|
462
|
+
chainId: prefixChainId(15),
|
|
466
463
|
blockExplorerUrls: ['https://diode.io/prenet/'],
|
|
467
464
|
chainName: 'Diode Prenet',
|
|
468
465
|
nativeCurrency: {
|
|
@@ -475,10 +472,10 @@ exports.supportedEVMChains = [
|
|
|
475
472
|
},
|
|
476
473
|
// 42220 Celo Mainnet
|
|
477
474
|
{
|
|
478
|
-
key:
|
|
479
|
-
chainType:
|
|
475
|
+
key: ChainKey.CEL,
|
|
476
|
+
chainType: ChainType.EVM,
|
|
480
477
|
name: 'CELO',
|
|
481
|
-
coin:
|
|
478
|
+
coin: CoinKey.CELO,
|
|
482
479
|
id: 42220,
|
|
483
480
|
mainnet: true,
|
|
484
481
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/celo.svg',
|
|
@@ -487,9 +484,9 @@ exports.supportedEVMChains = [
|
|
|
487
484
|
'https://stakely.io/faucet/celo-platform',
|
|
488
485
|
'https://free-online-app.com/faucet-for-eth-evm-chains/',
|
|
489
486
|
],
|
|
490
|
-
multicallAddress:
|
|
487
|
+
multicallAddress: multicallAddresses[ChainId.CEL],
|
|
491
488
|
metamask: {
|
|
492
|
-
chainId:
|
|
489
|
+
chainId: prefixChainId(42220),
|
|
493
490
|
blockExplorerUrls: ['https://explorer.celo.org/'],
|
|
494
491
|
chainName: 'Celo Mainnet',
|
|
495
492
|
nativeCurrency: {
|
|
@@ -502,17 +499,17 @@ exports.supportedEVMChains = [
|
|
|
502
499
|
},
|
|
503
500
|
// 122 Fuse Mainnet
|
|
504
501
|
{
|
|
505
|
-
key:
|
|
506
|
-
chainType:
|
|
502
|
+
key: ChainKey.FUS,
|
|
503
|
+
chainType: ChainType.EVM,
|
|
507
504
|
name: 'FUSE',
|
|
508
|
-
coin:
|
|
505
|
+
coin: CoinKey.FUSE,
|
|
509
506
|
id: 122,
|
|
510
507
|
mainnet: true,
|
|
511
508
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/fuse.svg',
|
|
512
509
|
tokenlistUrl: 'https://raw.githubusercontent.com/sushiswap/default-token-list/master/tokens/fuse.json',
|
|
513
|
-
multicallAddress:
|
|
510
|
+
multicallAddress: multicallAddresses[ChainId.FUS],
|
|
514
511
|
metamask: {
|
|
515
|
-
chainId:
|
|
512
|
+
chainId: prefixChainId(122),
|
|
516
513
|
blockExplorerUrls: ['https://explorer.fuse.io/'],
|
|
517
514
|
chainName: 'Fuse Mainnet',
|
|
518
515
|
nativeCurrency: {
|
|
@@ -525,16 +522,16 @@ exports.supportedEVMChains = [
|
|
|
525
522
|
},
|
|
526
523
|
// 40 Telos EVM Mainnet
|
|
527
524
|
{
|
|
528
|
-
key:
|
|
529
|
-
chainType:
|
|
525
|
+
key: ChainKey.TLO,
|
|
526
|
+
chainType: ChainType.EVM,
|
|
530
527
|
name: 'Telos',
|
|
531
|
-
coin:
|
|
528
|
+
coin: CoinKey.TLOS,
|
|
532
529
|
id: 40,
|
|
533
530
|
mainnet: true,
|
|
534
531
|
tokenlistUrl: 'https://raw.githubusercontent.com/sushiswap/default-token-list/master/tokens/telos.json',
|
|
535
|
-
multicallAddress:
|
|
532
|
+
multicallAddress: multicallAddresses[ChainId.TLO],
|
|
536
533
|
metamask: {
|
|
537
|
-
chainId:
|
|
534
|
+
chainId: prefixChainId(40),
|
|
538
535
|
blockExplorerUrls: ['https://telos.net/'],
|
|
539
536
|
chainName: 'Telos EVM Mainnet',
|
|
540
537
|
nativeCurrency: {
|
|
@@ -547,17 +544,17 @@ exports.supportedEVMChains = [
|
|
|
547
544
|
},
|
|
548
545
|
// 25 Cronos Mainnet Beta
|
|
549
546
|
{
|
|
550
|
-
key:
|
|
551
|
-
chainType:
|
|
547
|
+
key: ChainKey.CRO,
|
|
548
|
+
chainType: ChainType.EVM,
|
|
552
549
|
name: 'Cronos',
|
|
553
|
-
coin:
|
|
550
|
+
coin: CoinKey.CRO,
|
|
554
551
|
id: 25,
|
|
555
552
|
mainnet: true,
|
|
556
553
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/cronos.svg',
|
|
557
554
|
tokenlistUrl: 'https://raw.githubusercontent.com/cronaswap/cronaswap-tokenlists/main/cronaswap-default.tokenlist.json',
|
|
558
|
-
multicallAddress:
|
|
555
|
+
multicallAddress: multicallAddresses[ChainId.CRO],
|
|
559
556
|
metamask: {
|
|
560
|
-
chainId:
|
|
557
|
+
chainId: prefixChainId(25),
|
|
561
558
|
blockExplorerUrls: ['https://cronos.crypto.org/explorer/'],
|
|
562
559
|
chainName: 'Cronos',
|
|
563
560
|
nativeCurrency: {
|
|
@@ -570,18 +567,18 @@ exports.supportedEVMChains = [
|
|
|
570
567
|
},
|
|
571
568
|
// 288 Boba Network
|
|
572
569
|
{
|
|
573
|
-
key:
|
|
574
|
-
chainType:
|
|
570
|
+
key: ChainKey.BOB,
|
|
571
|
+
chainType: ChainType.EVM,
|
|
575
572
|
name: 'Boba',
|
|
576
|
-
coin:
|
|
573
|
+
coin: CoinKey.ETH,
|
|
577
574
|
id: 288,
|
|
578
575
|
mainnet: true,
|
|
579
576
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/boba.png',
|
|
580
577
|
// TODO: we should update token list url to latest one
|
|
581
578
|
tokenlistUrl: 'https://raw.githubusercontent.com/OolongSwap/boba-community-token-list/main/build/boba.tokenlist.json',
|
|
582
|
-
multicallAddress:
|
|
579
|
+
multicallAddress: multicallAddresses[ChainId.BOB],
|
|
583
580
|
metamask: {
|
|
584
|
-
chainId:
|
|
581
|
+
chainId: prefixChainId(288),
|
|
585
582
|
blockExplorerUrls: ['https://blockexplorer.boba.network/'],
|
|
586
583
|
chainName: 'Boba',
|
|
587
584
|
nativeCurrency: {
|
|
@@ -594,15 +591,15 @@ exports.supportedEVMChains = [
|
|
|
594
591
|
},
|
|
595
592
|
// 27 ShibaChain
|
|
596
593
|
{
|
|
597
|
-
key:
|
|
598
|
-
chainType:
|
|
594
|
+
key: ChainKey.SHI,
|
|
595
|
+
chainType: ChainType.EVM,
|
|
599
596
|
name: 'Shiba',
|
|
600
|
-
coin:
|
|
597
|
+
coin: CoinKey.SHIB,
|
|
601
598
|
id: 27,
|
|
602
599
|
mainnet: true,
|
|
603
|
-
multicallAddress:
|
|
600
|
+
multicallAddress: multicallAddresses[ChainId.SHI],
|
|
604
601
|
metamask: {
|
|
605
|
-
chainId:
|
|
602
|
+
chainId: prefixChainId(27),
|
|
606
603
|
blockExplorerUrls: ['https://exp.shibachain.net/'],
|
|
607
604
|
chainName: 'Shiba',
|
|
608
605
|
nativeCurrency: {
|
|
@@ -615,15 +612,15 @@ exports.supportedEVMChains = [
|
|
|
615
612
|
},
|
|
616
613
|
// 29 Genesis L1
|
|
617
614
|
{
|
|
618
|
-
key:
|
|
619
|
-
chainType:
|
|
615
|
+
key: ChainKey.GL1,
|
|
616
|
+
chainType: ChainType.EVM,
|
|
620
617
|
name: 'Genesis L1',
|
|
621
|
-
coin:
|
|
618
|
+
coin: CoinKey.L1,
|
|
622
619
|
id: 29,
|
|
623
620
|
mainnet: true,
|
|
624
|
-
multicallAddress:
|
|
621
|
+
multicallAddress: multicallAddresses[ChainId.GL1],
|
|
625
622
|
metamask: {
|
|
626
|
-
chainId:
|
|
623
|
+
chainId: prefixChainId(29),
|
|
627
624
|
blockExplorerUrls: ['https://explorer.genesisl1.org/'],
|
|
628
625
|
chainName: 'Genesis L1',
|
|
629
626
|
nativeCurrency: {
|
|
@@ -636,15 +633,15 @@ exports.supportedEVMChains = [
|
|
|
636
633
|
},
|
|
637
634
|
// 30 RSK Mainnet
|
|
638
635
|
{
|
|
639
|
-
key:
|
|
640
|
-
chainType:
|
|
636
|
+
key: ChainKey.RSK,
|
|
637
|
+
chainType: ChainType.EVM,
|
|
641
638
|
name: 'RSK Mainnet',
|
|
642
|
-
coin:
|
|
639
|
+
coin: CoinKey.RBTC,
|
|
643
640
|
id: 30,
|
|
644
641
|
mainnet: true,
|
|
645
|
-
multicallAddress:
|
|
642
|
+
multicallAddress: multicallAddresses[ChainId.RSK],
|
|
646
643
|
metamask: {
|
|
647
|
-
chainId:
|
|
644
|
+
chainId: prefixChainId(30),
|
|
648
645
|
blockExplorerUrls: ['https://explorer.rsk.co/'],
|
|
649
646
|
chainName: 'RSK Mainnet',
|
|
650
647
|
nativeCurrency: {
|
|
@@ -657,15 +654,15 @@ exports.supportedEVMChains = [
|
|
|
657
654
|
},
|
|
658
655
|
// 35 TBWG Chain
|
|
659
656
|
{
|
|
660
|
-
key:
|
|
661
|
-
chainType:
|
|
657
|
+
key: ChainKey.TBW,
|
|
658
|
+
chainType: ChainType.EVM,
|
|
662
659
|
name: 'TBWG',
|
|
663
|
-
coin:
|
|
660
|
+
coin: CoinKey.TBG,
|
|
664
661
|
id: 35,
|
|
665
662
|
mainnet: true,
|
|
666
|
-
multicallAddress:
|
|
663
|
+
multicallAddress: multicallAddresses[ChainId.TBW],
|
|
667
664
|
metamask: {
|
|
668
|
-
chainId:
|
|
665
|
+
chainId: prefixChainId(35),
|
|
669
666
|
blockExplorerUrls: ['https://tbwg.io/'],
|
|
670
667
|
chainName: 'TBWG',
|
|
671
668
|
nativeCurrency: {
|
|
@@ -678,15 +675,15 @@ exports.supportedEVMChains = [
|
|
|
678
675
|
},
|
|
679
676
|
// 106 Velas EVM Mainnet
|
|
680
677
|
{
|
|
681
|
-
key:
|
|
682
|
-
chainType:
|
|
678
|
+
key: ChainKey.VEL,
|
|
679
|
+
chainType: ChainType.EVM,
|
|
683
680
|
name: 'Velas',
|
|
684
|
-
coin:
|
|
681
|
+
coin: CoinKey.VLX,
|
|
685
682
|
id: 106,
|
|
686
683
|
mainnet: true,
|
|
687
|
-
multicallAddress:
|
|
684
|
+
multicallAddress: multicallAddresses[ChainId.VEL],
|
|
688
685
|
metamask: {
|
|
689
|
-
chainId:
|
|
686
|
+
chainId: prefixChainId(106),
|
|
690
687
|
blockExplorerUrls: ['https://evmexplorer.velas.com/'],
|
|
691
688
|
chainName: 'Velas',
|
|
692
689
|
nativeCurrency: {
|
|
@@ -699,17 +696,17 @@ exports.supportedEVMChains = [
|
|
|
699
696
|
},
|
|
700
697
|
// 1088 Metis Andromeda Mainnet
|
|
701
698
|
{
|
|
702
|
-
key:
|
|
703
|
-
chainType:
|
|
699
|
+
key: ChainKey.MAM,
|
|
700
|
+
chainType: ChainType.EVM,
|
|
704
701
|
name: 'Metis',
|
|
705
|
-
coin:
|
|
702
|
+
coin: CoinKey.METIS,
|
|
706
703
|
id: 1088,
|
|
707
704
|
mainnet: true,
|
|
708
705
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/metis.png',
|
|
709
706
|
tokenlistUrl: 'https://raw.githubusercontent.com/digitalnativeinc/default-token-list/dnf/tokens/metis.json',
|
|
710
|
-
multicallAddress:
|
|
707
|
+
multicallAddress: multicallAddresses[ChainId.MAM],
|
|
711
708
|
metamask: {
|
|
712
|
-
chainId:
|
|
709
|
+
chainId: prefixChainId(1088),
|
|
713
710
|
blockExplorerUrls: ['https://andromeda-explorer.metis.io/'],
|
|
714
711
|
chainName: 'Metis',
|
|
715
712
|
nativeCurrency: {
|
|
@@ -722,17 +719,17 @@ exports.supportedEVMChains = [
|
|
|
722
719
|
},
|
|
723
720
|
// 1313161554 Aurora Mainnet
|
|
724
721
|
{
|
|
725
|
-
key:
|
|
726
|
-
chainType:
|
|
722
|
+
key: ChainKey.AUR,
|
|
723
|
+
chainType: ChainType.EVM,
|
|
727
724
|
name: 'Aurora',
|
|
728
|
-
coin:
|
|
725
|
+
coin: CoinKey.ETH,
|
|
729
726
|
id: 1313161554,
|
|
730
727
|
mainnet: true,
|
|
731
728
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/aurora.png',
|
|
732
729
|
tokenlistUrl: 'https://aurora.dev/tokens.json',
|
|
733
|
-
multicallAddress:
|
|
730
|
+
multicallAddress: multicallAddresses[ChainId.AUR],
|
|
734
731
|
metamask: {
|
|
735
|
-
chainId:
|
|
732
|
+
chainId: prefixChainId(1313161554),
|
|
736
733
|
blockExplorerUrls: ['https://aurorascan.dev/'],
|
|
737
734
|
chainName: 'Aurora',
|
|
738
735
|
nativeCurrency: {
|
|
@@ -745,16 +742,16 @@ exports.supportedEVMChains = [
|
|
|
745
742
|
},
|
|
746
743
|
// EVM = 9001,
|
|
747
744
|
{
|
|
748
|
-
key:
|
|
749
|
-
chainType:
|
|
745
|
+
key: ChainKey.EVM,
|
|
746
|
+
chainType: ChainType.EVM,
|
|
750
747
|
name: 'Evmos',
|
|
751
|
-
coin:
|
|
748
|
+
coin: CoinKey.EVM,
|
|
752
749
|
id: 9001,
|
|
753
750
|
mainnet: true,
|
|
754
751
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/evmos.svg',
|
|
755
|
-
multicallAddress:
|
|
752
|
+
multicallAddress: multicallAddresses[ChainId.EVM],
|
|
756
753
|
metamask: {
|
|
757
|
-
chainId:
|
|
754
|
+
chainId: prefixChainId(9001),
|
|
758
755
|
blockExplorerUrls: ['https://evm.evmos.org/'],
|
|
759
756
|
chainName: 'Evmos',
|
|
760
757
|
nativeCurrency: {
|
|
@@ -768,10 +765,10 @@ exports.supportedEVMChains = [
|
|
|
768
765
|
// TESTNETS
|
|
769
766
|
// 3 - Ropsten
|
|
770
767
|
{
|
|
771
|
-
key:
|
|
772
|
-
chainType:
|
|
768
|
+
key: ChainKey.ROP,
|
|
769
|
+
chainType: ChainType.EVM,
|
|
773
770
|
name: 'Ropsten',
|
|
774
|
-
coin:
|
|
771
|
+
coin: CoinKey.ETH,
|
|
775
772
|
id: 3,
|
|
776
773
|
mainnet: false,
|
|
777
774
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/ethereum_ropsten.png',
|
|
@@ -780,9 +777,9 @@ exports.supportedEVMChains = [
|
|
|
780
777
|
'https://faucet.ropsten.be/',
|
|
781
778
|
'https://app.compound.finance/', // https://teller.gitbook.io/teller-1/testing-guide/getting-testnet-tokens-ropsten-1
|
|
782
779
|
],
|
|
783
|
-
multicallAddress:
|
|
780
|
+
multicallAddress: multicallAddresses[ChainId.ROP],
|
|
784
781
|
metamask: {
|
|
785
|
-
chainId:
|
|
782
|
+
chainId: prefixChainId(3),
|
|
786
783
|
blockExplorerUrls: ['https://ropsten.etherscan.io/'],
|
|
787
784
|
chainName: 'Ethereum Testnet Ropsten',
|
|
788
785
|
nativeCurrency: {
|
|
@@ -797,18 +794,18 @@ exports.supportedEVMChains = [
|
|
|
797
794
|
},
|
|
798
795
|
// 4 - Rinkeby
|
|
799
796
|
{
|
|
800
|
-
key:
|
|
801
|
-
chainType:
|
|
797
|
+
key: ChainKey.RIN,
|
|
798
|
+
chainType: ChainType.EVM,
|
|
802
799
|
name: 'Rinkeby',
|
|
803
|
-
coin:
|
|
800
|
+
coin: CoinKey.ETH,
|
|
804
801
|
id: 4,
|
|
805
802
|
mainnet: false,
|
|
806
803
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/ethereum_rinkeby.png',
|
|
807
804
|
tokenlistUrl: 'https://raw.githubusercontent.com/compound-finance/token-list/master/compound.tokenlist.json',
|
|
808
805
|
faucetUrls: ['https://faucet.rinkeby.io/'],
|
|
809
|
-
multicallAddress:
|
|
806
|
+
multicallAddress: multicallAddresses[ChainId.RIN],
|
|
810
807
|
metamask: {
|
|
811
|
-
chainId:
|
|
808
|
+
chainId: prefixChainId(4),
|
|
812
809
|
blockExplorerUrls: ['https://rinkeby.etherscan.io/'],
|
|
813
810
|
chainName: 'Ethereum Testnet Rinkeby',
|
|
814
811
|
nativeCurrency: {
|
|
@@ -823,18 +820,18 @@ exports.supportedEVMChains = [
|
|
|
823
820
|
},
|
|
824
821
|
// 5 - Goerli
|
|
825
822
|
{
|
|
826
|
-
key:
|
|
827
|
-
chainType:
|
|
823
|
+
key: ChainKey.GOR,
|
|
824
|
+
chainType: ChainType.EVM,
|
|
828
825
|
name: 'Goerli',
|
|
829
|
-
coin:
|
|
826
|
+
coin: CoinKey.ETH,
|
|
830
827
|
id: 5,
|
|
831
828
|
mainnet: false,
|
|
832
829
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/ethereum_goerli.png',
|
|
833
830
|
tokenlistUrl: 'https://raw.githubusercontent.com/compound-finance/token-list/master/compound.tokenlist.json',
|
|
834
831
|
faucetUrls: ['https://goerli-faucet.slock.it/'],
|
|
835
|
-
multicallAddress:
|
|
832
|
+
multicallAddress: multicallAddresses[ChainId.GOR],
|
|
836
833
|
metamask: {
|
|
837
|
-
chainId:
|
|
834
|
+
chainId: prefixChainId(5),
|
|
838
835
|
blockExplorerUrls: ['https://goerli.etherscan.io/'],
|
|
839
836
|
chainName: 'Ethereum Testnet Görli',
|
|
840
837
|
nativeCurrency: {
|
|
@@ -847,15 +844,15 @@ exports.supportedEVMChains = [
|
|
|
847
844
|
},
|
|
848
845
|
// 12 - Metadium Testnet
|
|
849
846
|
{
|
|
850
|
-
key:
|
|
851
|
-
chainType:
|
|
847
|
+
key: ChainKey.METT,
|
|
848
|
+
chainType: ChainType.EVM,
|
|
852
849
|
name: 'Metadium Testnet',
|
|
853
|
-
coin:
|
|
850
|
+
coin: CoinKey.KAL,
|
|
854
851
|
id: 12,
|
|
855
852
|
mainnet: false,
|
|
856
|
-
multicallAddress:
|
|
853
|
+
multicallAddress: multicallAddresses[ChainId.METT],
|
|
857
854
|
metamask: {
|
|
858
|
-
chainId:
|
|
855
|
+
chainId: prefixChainId(12),
|
|
859
856
|
blockExplorerUrls: ['https://metadium.com/'],
|
|
860
857
|
chainName: 'Metadium Testnet',
|
|
861
858
|
nativeCurrency: {
|
|
@@ -868,15 +865,15 @@ exports.supportedEVMChains = [
|
|
|
868
865
|
},
|
|
869
866
|
// 13 - Diode Testnet Staging
|
|
870
867
|
{
|
|
871
|
-
key:
|
|
872
|
-
chainType:
|
|
868
|
+
key: ChainKey.DIOT,
|
|
869
|
+
chainType: ChainType.EVM,
|
|
873
870
|
name: 'DIODE',
|
|
874
|
-
coin:
|
|
871
|
+
coin: CoinKey.SDIODE,
|
|
875
872
|
id: 13,
|
|
876
873
|
mainnet: false,
|
|
877
|
-
multicallAddress:
|
|
874
|
+
multicallAddress: multicallAddresses[ChainId.DIOT],
|
|
878
875
|
metamask: {
|
|
879
|
-
chainId:
|
|
876
|
+
chainId: prefixChainId(13),
|
|
880
877
|
blockExplorerUrls: ['https://diode.io/staging/'],
|
|
881
878
|
chainName: 'Diode Testnet Staging',
|
|
882
879
|
nativeCurrency: {
|
|
@@ -889,10 +886,10 @@ exports.supportedEVMChains = [
|
|
|
889
886
|
},
|
|
890
887
|
// 42 - Kovan
|
|
891
888
|
{
|
|
892
|
-
key:
|
|
893
|
-
chainType:
|
|
889
|
+
key: ChainKey.KOV,
|
|
890
|
+
chainType: ChainType.EVM,
|
|
894
891
|
name: 'Kovan',
|
|
895
|
-
coin:
|
|
892
|
+
coin: CoinKey.ETH,
|
|
896
893
|
id: 42,
|
|
897
894
|
mainnet: false,
|
|
898
895
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/ethereum_kovan.png',
|
|
@@ -901,9 +898,9 @@ exports.supportedEVMChains = [
|
|
|
901
898
|
'https://ethdrop.dev/',
|
|
902
899
|
'https://gitter.im/kovan-testnet/faucet',
|
|
903
900
|
],
|
|
904
|
-
multicallAddress:
|
|
901
|
+
multicallAddress: multicallAddresses[ChainId.KOV],
|
|
905
902
|
metamask: {
|
|
906
|
-
chainId:
|
|
903
|
+
chainId: prefixChainId(42),
|
|
907
904
|
blockExplorerUrls: ['https://kovan.etherscan.io/'],
|
|
908
905
|
chainName: 'Ethereum Testnet Kovan',
|
|
909
906
|
nativeCurrency: {
|
|
@@ -916,18 +913,18 @@ exports.supportedEVMChains = [
|
|
|
916
913
|
},
|
|
917
914
|
// 80001 - Mumbai Polygon Testnet
|
|
918
915
|
{
|
|
919
|
-
key:
|
|
920
|
-
chainType:
|
|
916
|
+
key: ChainKey.MUM,
|
|
917
|
+
chainType: ChainType.EVM,
|
|
921
918
|
name: 'Polygon Testnet',
|
|
922
|
-
coin:
|
|
919
|
+
coin: CoinKey.MATIC,
|
|
923
920
|
id: 80001,
|
|
924
921
|
mainnet: false,
|
|
925
922
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/polygon_test.png',
|
|
926
923
|
tokenlistUrl: 'https://raw.githubusercontent.com/elkfinance/tokens/main/mumbai.tokenlist.json',
|
|
927
924
|
faucetUrls: ['https://faucet.matic.network/'],
|
|
928
|
-
multicallAddress:
|
|
925
|
+
multicallAddress: multicallAddresses[ChainId.MUM],
|
|
929
926
|
metamask: {
|
|
930
|
-
chainId:
|
|
927
|
+
chainId: prefixChainId(80001),
|
|
931
928
|
blockExplorerUrls: ['https://explorer-mumbai.maticvigil.com/'],
|
|
932
929
|
chainName: 'Matic(Polygon) Testnet Mumbai',
|
|
933
930
|
nativeCurrency: {
|
|
@@ -940,17 +937,17 @@ exports.supportedEVMChains = [
|
|
|
940
937
|
},
|
|
941
938
|
// 421611 - Arbitrum Testnet
|
|
942
939
|
{
|
|
943
|
-
key:
|
|
944
|
-
chainType:
|
|
940
|
+
key: ChainKey.ARBT,
|
|
941
|
+
chainType: ChainType.EVM,
|
|
945
942
|
name: 'Arbitrum Testnet',
|
|
946
|
-
coin:
|
|
943
|
+
coin: CoinKey.ETH,
|
|
947
944
|
id: 421611,
|
|
948
945
|
mainnet: false,
|
|
949
946
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/arbitrum_test.png',
|
|
950
947
|
faucetUrls: ['https://bridge.arbitrum.io/'],
|
|
951
|
-
multicallAddress:
|
|
948
|
+
multicallAddress: multicallAddresses[ChainId.ARBT],
|
|
952
949
|
metamask: {
|
|
953
|
-
chainId:
|
|
950
|
+
chainId: prefixChainId(421611),
|
|
954
951
|
blockExplorerUrls: ['https://rinkeby-explorer.arbitrum.io/#/'],
|
|
955
952
|
chainName: 'Arbitrum Testnet Rinkeby',
|
|
956
953
|
nativeCurrency: {
|
|
@@ -963,17 +960,17 @@ exports.supportedEVMChains = [
|
|
|
963
960
|
},
|
|
964
961
|
// 69 - Optimistic Ethereum (Kovan)
|
|
965
962
|
{
|
|
966
|
-
key:
|
|
967
|
-
chainType:
|
|
963
|
+
key: ChainKey.OPTT,
|
|
964
|
+
chainType: ChainType.EVM,
|
|
968
965
|
name: 'Optimism Testnet',
|
|
969
|
-
coin:
|
|
966
|
+
coin: CoinKey.ETH,
|
|
970
967
|
id: 69,
|
|
971
968
|
mainnet: false,
|
|
972
969
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/optimism_test.png',
|
|
973
970
|
faucetUrls: ['https://gateway.optimism.io/'],
|
|
974
|
-
multicallAddress:
|
|
971
|
+
multicallAddress: multicallAddresses[ChainId.OPTT],
|
|
975
972
|
metamask: {
|
|
976
|
-
chainId:
|
|
973
|
+
chainId: prefixChainId(69),
|
|
977
974
|
blockExplorerUrls: ['https://kovan-optimistic.etherscan.io/'],
|
|
978
975
|
chainName: 'Optimistic Ethereum Testnet Kovan',
|
|
979
976
|
nativeCurrency: {
|
|
@@ -984,19 +981,42 @@ exports.supportedEVMChains = [
|
|
|
984
981
|
rpcUrls: ['https://kovan.optimism.io'],
|
|
985
982
|
},
|
|
986
983
|
},
|
|
984
|
+
// 420 - Optimistic Ethereum (Kovan)
|
|
985
|
+
{
|
|
986
|
+
key: ChainKey.OPTG,
|
|
987
|
+
chainType: ChainType.EVM,
|
|
988
|
+
name: 'Optimistic Ethereum Testnet Goerli',
|
|
989
|
+
coin: CoinKey.ETH,
|
|
990
|
+
id: 420,
|
|
991
|
+
mainnet: false,
|
|
992
|
+
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/optimism_test.png',
|
|
993
|
+
faucetUrls: ['https://gateway.optimism.io/'],
|
|
994
|
+
multicallAddress: multicallAddresses[ChainId.OPTG],
|
|
995
|
+
metamask: {
|
|
996
|
+
chainId: prefixChainId(69),
|
|
997
|
+
blockExplorerUrls: ['https://blockscout.com/optimism/goerli/'],
|
|
998
|
+
chainName: 'Optimistic Ethereum Testnet Goerli',
|
|
999
|
+
nativeCurrency: {
|
|
1000
|
+
name: 'tETH',
|
|
1001
|
+
symbol: 'tETH',
|
|
1002
|
+
decimals: 18,
|
|
1003
|
+
},
|
|
1004
|
+
rpcUrls: ['https://goerli.optimism.io/'],
|
|
1005
|
+
},
|
|
1006
|
+
},
|
|
987
1007
|
// 97 - Binance Smart Chain Testnet
|
|
988
1008
|
{
|
|
989
|
-
key:
|
|
990
|
-
chainType:
|
|
1009
|
+
key: ChainKey.BSCT,
|
|
1010
|
+
chainType: ChainType.EVM,
|
|
991
1011
|
name: 'Binance Smart Chain Testnet',
|
|
992
|
-
coin:
|
|
1012
|
+
coin: CoinKey.BNB,
|
|
993
1013
|
id: 97,
|
|
994
1014
|
mainnet: false,
|
|
995
1015
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/bsc_test.png',
|
|
996
1016
|
faucetUrls: ['https://testnet.binance.org/faucet-smart'],
|
|
997
|
-
multicallAddress:
|
|
1017
|
+
multicallAddress: multicallAddresses[ChainId.BSCT],
|
|
998
1018
|
metamask: {
|
|
999
|
-
chainId:
|
|
1019
|
+
chainId: prefixChainId(97),
|
|
1000
1020
|
blockExplorerUrls: ['https://testnet.bscscan.com/'],
|
|
1001
1021
|
chainName: 'Binance Smart Chain Testnet',
|
|
1002
1022
|
nativeCurrency: {
|
|
@@ -1009,16 +1029,16 @@ exports.supportedEVMChains = [
|
|
|
1009
1029
|
},
|
|
1010
1030
|
// 256 - Huobi ECO Chain Testnet
|
|
1011
1031
|
{
|
|
1012
|
-
key:
|
|
1013
|
-
chainType:
|
|
1032
|
+
key: ChainKey.HECT,
|
|
1033
|
+
chainType: ChainType.EVM,
|
|
1014
1034
|
name: 'Huobi ECO Chain Testnet',
|
|
1015
1035
|
coin: 'HTT',
|
|
1016
1036
|
id: 256,
|
|
1017
1037
|
mainnet: false,
|
|
1018
1038
|
faucetUrls: ['https://scan-testnet.hecochain.com/faucet'],
|
|
1019
|
-
multicallAddress:
|
|
1039
|
+
multicallAddress: multicallAddresses[ChainId.HECT],
|
|
1020
1040
|
metamask: {
|
|
1021
|
-
chainId:
|
|
1041
|
+
chainId: prefixChainId(256),
|
|
1022
1042
|
blockExplorerUrls: ['https://scan-testnet.hecochain.com/'],
|
|
1023
1043
|
chainName: 'Huobi ECO Chain Testnet',
|
|
1024
1044
|
nativeCurrency: {
|
|
@@ -1034,17 +1054,17 @@ exports.supportedEVMChains = [
|
|
|
1034
1054
|
},
|
|
1035
1055
|
// 1666700000 - Harmony Testnet 0
|
|
1036
1056
|
{
|
|
1037
|
-
key:
|
|
1038
|
-
chainType:
|
|
1057
|
+
key: ChainKey.ONET,
|
|
1058
|
+
chainType: ChainType.EVM,
|
|
1039
1059
|
name: 'Harmony Testnet',
|
|
1040
|
-
coin:
|
|
1060
|
+
coin: CoinKey.ONE,
|
|
1041
1061
|
id: 1666700000,
|
|
1042
1062
|
mainnet: false,
|
|
1043
1063
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/harmony_test.png',
|
|
1044
1064
|
// https://docs.harmony.one/home/developers/wallets/metamask/connect-metamask-to-the-harmony-chain
|
|
1045
|
-
multicallAddress:
|
|
1065
|
+
multicallAddress: multicallAddresses[ChainId.ONET],
|
|
1046
1066
|
metamask: {
|
|
1047
|
-
chainId:
|
|
1067
|
+
chainId: prefixChainId(1666700000),
|
|
1048
1068
|
blockExplorerUrls: [
|
|
1049
1069
|
'https://explorer.pops.one/',
|
|
1050
1070
|
'https://explorer.testnet.harmony.one/',
|
|
@@ -1060,15 +1080,15 @@ exports.supportedEVMChains = [
|
|
|
1060
1080
|
},
|
|
1061
1081
|
// 123 Fuse Sparknet
|
|
1062
1082
|
{
|
|
1063
|
-
key:
|
|
1064
|
-
chainType:
|
|
1083
|
+
key: ChainKey.FUST,
|
|
1084
|
+
chainType: ChainType.EVM,
|
|
1065
1085
|
name: 'SPARK',
|
|
1066
|
-
coin:
|
|
1086
|
+
coin: CoinKey.SPARK,
|
|
1067
1087
|
id: 123,
|
|
1068
1088
|
mainnet: false,
|
|
1069
|
-
multicallAddress:
|
|
1089
|
+
multicallAddress: multicallAddresses[ChainId.FUST],
|
|
1070
1090
|
metamask: {
|
|
1071
|
-
chainId:
|
|
1091
|
+
chainId: prefixChainId(123),
|
|
1072
1092
|
blockExplorerUrls: ['https://explorer.fusespark.io/'],
|
|
1073
1093
|
chainName: 'Fuse Sparknet',
|
|
1074
1094
|
nativeCurrency: {
|
|
@@ -1081,16 +1101,16 @@ exports.supportedEVMChains = [
|
|
|
1081
1101
|
},
|
|
1082
1102
|
// 41 Telos EVM Testnet
|
|
1083
1103
|
{
|
|
1084
|
-
key:
|
|
1085
|
-
chainType:
|
|
1104
|
+
key: ChainKey.TLOT,
|
|
1105
|
+
chainType: ChainType.EVM,
|
|
1086
1106
|
name: 'Telos Testnet',
|
|
1087
|
-
coin:
|
|
1107
|
+
coin: CoinKey.TLOS,
|
|
1088
1108
|
id: 41,
|
|
1089
1109
|
mainnet: false,
|
|
1090
1110
|
faucetUrls: ['https://app.telos.net/testnet/developers'],
|
|
1091
|
-
multicallAddress:
|
|
1111
|
+
multicallAddress: multicallAddresses[ChainId.TLOT],
|
|
1092
1112
|
metamask: {
|
|
1093
|
-
chainId:
|
|
1113
|
+
chainId: prefixChainId(41),
|
|
1094
1114
|
blockExplorerUrls: ['https://telos.net/'],
|
|
1095
1115
|
chainName: 'Telos EVM Mainnet',
|
|
1096
1116
|
nativeCurrency: {
|
|
@@ -1103,15 +1123,15 @@ exports.supportedEVMChains = [
|
|
|
1103
1123
|
},
|
|
1104
1124
|
// 31 RSK Testnet
|
|
1105
1125
|
{
|
|
1106
|
-
key:
|
|
1107
|
-
chainType:
|
|
1126
|
+
key: ChainKey.RSKT,
|
|
1127
|
+
chainType: ChainType.EVM,
|
|
1108
1128
|
name: 'RSK Testnet',
|
|
1109
|
-
coin:
|
|
1129
|
+
coin: CoinKey.TRBTC,
|
|
1110
1130
|
id: 31,
|
|
1111
1131
|
mainnet: true,
|
|
1112
|
-
multicallAddress:
|
|
1132
|
+
multicallAddress: multicallAddresses[ChainId.RSKT],
|
|
1113
1133
|
metamask: {
|
|
1114
|
-
chainId:
|
|
1134
|
+
chainId: prefixChainId(31),
|
|
1115
1135
|
blockExplorerUrls: ['https://rsk.co/'],
|
|
1116
1136
|
chainName: 'RSK Testnet',
|
|
1117
1137
|
nativeCurrency: {
|
|
@@ -1124,18 +1144,18 @@ exports.supportedEVMChains = [
|
|
|
1124
1144
|
},
|
|
1125
1145
|
// 43113 - Avalanche Fuji Testnet
|
|
1126
1146
|
{
|
|
1127
|
-
key:
|
|
1128
|
-
chainType:
|
|
1147
|
+
key: ChainKey.AVAT,
|
|
1148
|
+
chainType: ChainType.EVM,
|
|
1129
1149
|
name: 'Avalanche Fuji Testnet',
|
|
1130
|
-
coin:
|
|
1150
|
+
coin: CoinKey.AVAX,
|
|
1131
1151
|
id: 43113,
|
|
1132
1152
|
mainnet: false,
|
|
1133
1153
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/avalanche_test.png',
|
|
1134
|
-
multicallAddress:
|
|
1154
|
+
multicallAddress: multicallAddresses[ChainId.AVAT],
|
|
1135
1155
|
faucetUrls: ['https://faucet.avax-test.network/'],
|
|
1136
1156
|
// https://github.com/ethereum-lists/chains/blob/master/_data/chains/eip155-43113.json
|
|
1137
1157
|
metamask: {
|
|
1138
|
-
chainId:
|
|
1158
|
+
chainId: prefixChainId(43113),
|
|
1139
1159
|
blockExplorerUrls: ['https://testnet.snowtrace.io'],
|
|
1140
1160
|
chainName: 'Avalanche Fuji Testnet',
|
|
1141
1161
|
nativeCurrency: {
|
|
@@ -1154,13 +1174,13 @@ exports.supportedEVMChains = [
|
|
|
1154
1174
|
// kucoin faucet: https://stakely.io/faucet/kucoin-kcc-kcs
|
|
1155
1175
|
// Velas faucet: https://stakely.io/faucet/velas-vlx
|
|
1156
1176
|
];
|
|
1157
|
-
|
|
1177
|
+
export const supportedSolanaChains = [
|
|
1158
1178
|
{
|
|
1159
|
-
key:
|
|
1160
|
-
chainType:
|
|
1179
|
+
key: ChainKey.SOL,
|
|
1180
|
+
chainType: ChainType.Solana,
|
|
1161
1181
|
name: 'Solana',
|
|
1162
|
-
coin:
|
|
1163
|
-
id:
|
|
1182
|
+
coin: CoinKey.SOL,
|
|
1183
|
+
id: ChainId.SOL,
|
|
1164
1184
|
mainnet: true,
|
|
1165
1185
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/solana.svg',
|
|
1166
1186
|
faucetUrls: ['https://stakely.io/faucet/solana-sol'],
|
|
@@ -1169,4 +1189,4 @@ exports.supportedSolanaChains = [
|
|
|
1169
1189
|
// This assignment is required to avoid breaking
|
|
1170
1190
|
// changes with the new non EVM support types release
|
|
1171
1191
|
// This will be removed in the future
|
|
1172
|
-
|
|
1192
|
+
export const supportedChains = supportedEVMChains;
|