@lifi/types 1.4.0 → 1.5.1
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 +16 -0
- package/dist/api.js +6 -15
- package/dist/apiErrors.js +1 -2
- package/dist/base.js +6 -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 +251 -254
- 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 +204 -0
- package/dist/cjs/base.js +174 -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 +1172 -0
- package/dist/cjs/coins.d.ts +9 -0
- package/dist/cjs/coins.js +1403 -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 +66 -0
- package/dist/cjs/step.d.ts +115 -0
- package/dist/cjs/step.js +23 -0
- package/dist/coins.js +384 -391
- package/dist/exchanges.js +210 -214
- package/dist/index.js +8 -24
- package/dist/multicall.js +43 -41
- package/dist/step.js +5 -12
- package/package.json +26 -3
package/dist/exchanges.js
CHANGED
|
@@ -1,24 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getExchangeByKey = exports.supportedExchanges = exports.supportedExchangeAggregators = exports.ExchangeTool = void 0;
|
|
4
|
-
var _1 = require(".");
|
|
1
|
+
import { ChainId, CoinKey, findDefaultToken, findWrappedGasOnChain, } from '.';
|
|
5
2
|
/**
|
|
6
3
|
* @deprecated
|
|
7
4
|
* These values are now obtainable from the LI.FI API
|
|
8
5
|
*/
|
|
9
|
-
var ExchangeTool;
|
|
6
|
+
export var ExchangeTool;
|
|
10
7
|
(function (ExchangeTool) {
|
|
11
8
|
ExchangeTool["oneinch"] = "1inch";
|
|
12
9
|
ExchangeTool["paraswap"] = "paraswap";
|
|
13
10
|
ExchangeTool["openocean"] = "openocean";
|
|
14
11
|
ExchangeTool["zerox"] = "0x";
|
|
15
12
|
ExchangeTool["dodo"] = "dodo";
|
|
16
|
-
})(ExchangeTool
|
|
13
|
+
})(ExchangeTool || (ExchangeTool = {}));
|
|
17
14
|
/**
|
|
18
15
|
* @deprecated
|
|
19
16
|
* These values are now obtainable from the LI.FI API
|
|
20
17
|
*/
|
|
21
|
-
|
|
18
|
+
export const supportedExchangeAggregators = [
|
|
22
19
|
{
|
|
23
20
|
key: ExchangeTool.oneinch,
|
|
24
21
|
name: '1inch',
|
|
@@ -54,12 +51,12 @@ exports.supportedExchangeAggregators = [
|
|
|
54
51
|
* @deprecated
|
|
55
52
|
* These values are now obtainable from the LI.FI API
|
|
56
53
|
*/
|
|
57
|
-
|
|
54
|
+
export const supportedExchanges = [
|
|
58
55
|
// 1 - Ethereum
|
|
59
56
|
{
|
|
60
57
|
key: 'uniswap-eth',
|
|
61
58
|
name: 'UniswapV2',
|
|
62
|
-
chainId:
|
|
59
|
+
chainId: ChainId.ETH,
|
|
63
60
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/uniswap.png',
|
|
64
61
|
webUrl: 'https://app.uniswap.org/#/swap',
|
|
65
62
|
graph: 'https://api.thegraph.com/subgraphs/name/uniswap/uniswap-v2',
|
|
@@ -68,17 +65,17 @@ exports.supportedExchanges = [
|
|
|
68
65
|
factoryAddress: '0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f',
|
|
69
66
|
initCodeHash: '0x96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f',
|
|
70
67
|
baseTokens: [
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
68
|
+
findWrappedGasOnChain(ChainId.ETH),
|
|
69
|
+
findDefaultToken(CoinKey.DAI, ChainId.ETH),
|
|
70
|
+
findDefaultToken(CoinKey.USDC, ChainId.ETH),
|
|
71
|
+
findDefaultToken(CoinKey.USDT, ChainId.ETH),
|
|
72
|
+
findDefaultToken(CoinKey.WBTC, ChainId.ETH),
|
|
76
73
|
],
|
|
77
74
|
},
|
|
78
75
|
{
|
|
79
76
|
key: 'sushiswap-eth',
|
|
80
77
|
name: 'SushiSwap',
|
|
81
|
-
chainId:
|
|
78
|
+
chainId: ChainId.ETH,
|
|
82
79
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/sushi.png',
|
|
83
80
|
webUrl: 'https://app.sushi.com/swap',
|
|
84
81
|
graph: 'https://api.thegraph.com/subgraphs/name/sushiswap/exchange',
|
|
@@ -87,25 +84,25 @@ exports.supportedExchanges = [
|
|
|
87
84
|
factoryAddress: '0xC0AEe478e3658e2610c5F7A4A2E1777cE9e4f2Ac',
|
|
88
85
|
initCodeHash: '0xe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303',
|
|
89
86
|
baseTokens: [
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
87
|
+
findWrappedGasOnChain(ChainId.ETH),
|
|
88
|
+
findDefaultToken(CoinKey.DAI, ChainId.ETH),
|
|
89
|
+
findDefaultToken(CoinKey.USDC, ChainId.ETH),
|
|
90
|
+
findDefaultToken(CoinKey.USDT, ChainId.ETH),
|
|
91
|
+
findDefaultToken(CoinKey.WBTC, ChainId.ETH),
|
|
95
92
|
{
|
|
96
93
|
address: '0x383518188c0c6d7730d91b2c03a03c837814a899',
|
|
97
94
|
symbol: 'OHM',
|
|
98
95
|
decimals: 9,
|
|
99
|
-
chainId:
|
|
96
|
+
chainId: ChainId.ETH,
|
|
100
97
|
},
|
|
101
|
-
|
|
98
|
+
findDefaultToken(CoinKey.SUSHI, ChainId.ETH),
|
|
102
99
|
],
|
|
103
100
|
},
|
|
104
101
|
// 137 - Polygon
|
|
105
102
|
{
|
|
106
103
|
key: 'quickswap-pol',
|
|
107
104
|
name: 'Quickswap',
|
|
108
|
-
chainId:
|
|
105
|
+
chainId: ChainId.POL,
|
|
109
106
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/quick.png',
|
|
110
107
|
webUrl: 'https://quickswap.exchange/',
|
|
111
108
|
graph: 'https://api.thegraph.com/subgraphs/name/sameepsi/quickswap06',
|
|
@@ -114,24 +111,24 @@ exports.supportedExchanges = [
|
|
|
114
111
|
factoryAddress: '0x5757371414417b8C6CAad45bAeF941aBc7d3Ab32',
|
|
115
112
|
initCodeHash: '0x96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f',
|
|
116
113
|
baseTokens: [
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
114
|
+
findWrappedGasOnChain(ChainId.POL),
|
|
115
|
+
findDefaultToken(CoinKey.DAI, ChainId.POL),
|
|
116
|
+
findDefaultToken(CoinKey.USDC, ChainId.POL),
|
|
117
|
+
findDefaultToken(CoinKey.USDT, ChainId.POL),
|
|
118
|
+
findDefaultToken(CoinKey.ETH, ChainId.POL),
|
|
119
|
+
findDefaultToken(CoinKey.WBTC, ChainId.POL),
|
|
123
120
|
{
|
|
124
121
|
address: '0x831753dd7087cac61ab5644b308642cc1c33dc13',
|
|
125
122
|
symbol: 'QUICK',
|
|
126
123
|
decimals: 18,
|
|
127
|
-
chainId:
|
|
124
|
+
chainId: ChainId.POL,
|
|
128
125
|
},
|
|
129
126
|
],
|
|
130
127
|
},
|
|
131
128
|
{
|
|
132
129
|
key: 'honeyswap-pol',
|
|
133
130
|
name: 'Honeyswap',
|
|
134
|
-
chainId:
|
|
131
|
+
chainId: ChainId.POL,
|
|
135
132
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/honey.png',
|
|
136
133
|
webUrl: 'https://app.honeyswap.org/',
|
|
137
134
|
graph: 'https://api.thegraph.com/subgraphs/name/1hive/honeyswap-polygon',
|
|
@@ -140,20 +137,20 @@ exports.supportedExchanges = [
|
|
|
140
137
|
factoryAddress: '0x03daa61d8007443a6584e3d8f85105096543c19c',
|
|
141
138
|
initCodeHash: '0xae81bbc68f315fbbf7617eb881349af83b1e95241f616966e1e0583ecd0793fe',
|
|
142
139
|
baseTokens: [
|
|
143
|
-
|
|
144
|
-
|
|
140
|
+
findWrappedGasOnChain(ChainId.POL),
|
|
141
|
+
findDefaultToken(CoinKey.ETH, ChainId.POL),
|
|
145
142
|
{
|
|
146
143
|
address: '0xb371248dd0f9e4061ccf8850e9223ca48aa7ca4b',
|
|
147
144
|
symbol: 'HNY',
|
|
148
145
|
decimals: 18,
|
|
149
|
-
chainId:
|
|
146
|
+
chainId: ChainId.POL,
|
|
150
147
|
},
|
|
151
148
|
],
|
|
152
149
|
},
|
|
153
150
|
{
|
|
154
151
|
key: 'sushiswap-pol',
|
|
155
152
|
name: 'SushiSwap',
|
|
156
|
-
chainId:
|
|
153
|
+
chainId: ChainId.POL,
|
|
157
154
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/sushi.png',
|
|
158
155
|
webUrl: 'https://app.sushi.com/swap',
|
|
159
156
|
graph: 'https://api.thegraph.com/subgraphs/name/sushiswap/matic-exchange',
|
|
@@ -162,20 +159,20 @@ exports.supportedExchanges = [
|
|
|
162
159
|
factoryAddress: '0xc35DADB65012eC5796536bD9864eD8773aBc74C4',
|
|
163
160
|
initCodeHash: '0xe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303',
|
|
164
161
|
baseTokens: [
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
162
|
+
findWrappedGasOnChain(ChainId.POL),
|
|
163
|
+
findDefaultToken(CoinKey.USDC, ChainId.POL),
|
|
164
|
+
findDefaultToken(CoinKey.DAI, ChainId.POL),
|
|
165
|
+
findDefaultToken(CoinKey.USDT, ChainId.POL),
|
|
166
|
+
findDefaultToken(CoinKey.ETH, ChainId.POL),
|
|
167
|
+
findDefaultToken(CoinKey.WBTC, ChainId.POL),
|
|
168
|
+
findDefaultToken(CoinKey.SUSHI, ChainId.POL),
|
|
172
169
|
],
|
|
173
170
|
},
|
|
174
171
|
// 56 - Binance Smart Chain
|
|
175
172
|
{
|
|
176
173
|
key: 'pancakeswap-bsc',
|
|
177
174
|
name: 'Pancake',
|
|
178
|
-
chainId:
|
|
175
|
+
chainId: ChainId.BSC,
|
|
179
176
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/pancake.png',
|
|
180
177
|
webUrl: 'https://exchange.pancakeswap.finance/',
|
|
181
178
|
graph: 'https://api.thegraph.com/subgraphs/name/bscnodes/pancakeswap',
|
|
@@ -184,31 +181,31 @@ exports.supportedExchanges = [
|
|
|
184
181
|
factoryAddress: '0xcA143Ce32Fe78f1f7019d7d551a6402fC5350c73',
|
|
185
182
|
initCodeHash: '0x00fb7f630766e6a796048ea87d01acd3068e8ff67d078148a3fa3f4a84f69bd5',
|
|
186
183
|
baseTokens: [
|
|
187
|
-
|
|
184
|
+
findWrappedGasOnChain(ChainId.BSC),
|
|
188
185
|
{
|
|
189
186
|
address: '0xe9e7cea3dedca5984780bafc599bd69add087d56',
|
|
190
187
|
symbol: 'BUSD',
|
|
191
188
|
decimals: 18,
|
|
192
|
-
chainId:
|
|
189
|
+
chainId: ChainId.BSC,
|
|
193
190
|
},
|
|
194
191
|
{
|
|
195
192
|
address: '0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82',
|
|
196
193
|
symbol: 'CAKE',
|
|
197
194
|
decimals: 18,
|
|
198
|
-
chainId:
|
|
195
|
+
chainId: ChainId.BSC,
|
|
199
196
|
},
|
|
200
197
|
{
|
|
201
198
|
address: '0x7130d2a12b9bcbfae4f2634d864a1ee1ce3ead9c',
|
|
202
199
|
symbol: 'BTCB',
|
|
203
200
|
decimals: 18,
|
|
204
|
-
chainId:
|
|
201
|
+
chainId: ChainId.BSC,
|
|
205
202
|
},
|
|
206
203
|
],
|
|
207
204
|
},
|
|
208
205
|
{
|
|
209
206
|
key: 'sushiswap-bsc',
|
|
210
207
|
name: 'SushiSwap',
|
|
211
|
-
chainId:
|
|
208
|
+
chainId: ChainId.BSC,
|
|
212
209
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/sushi.png',
|
|
213
210
|
webUrl: 'https://app.sushi.com/swap',
|
|
214
211
|
graph: 'https://api.thegraph.com/subgraphs/name/sushiswap/bsc-exchange',
|
|
@@ -217,31 +214,31 @@ exports.supportedExchanges = [
|
|
|
217
214
|
factoryAddress: '0xc35DADB65012eC5796536bD9864eD8773aBc74C4',
|
|
218
215
|
initCodeHash: '0xe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303',
|
|
219
216
|
baseTokens: [
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
217
|
+
findWrappedGasOnChain(ChainId.BSC),
|
|
218
|
+
findDefaultToken(CoinKey.ETH, ChainId.BSC),
|
|
219
|
+
findDefaultToken(CoinKey.DAI, ChainId.BSC),
|
|
220
|
+
findDefaultToken(CoinKey.USDC, ChainId.BSC),
|
|
221
|
+
findDefaultToken(CoinKey.USDT, ChainId.BSC),
|
|
225
222
|
{
|
|
226
223
|
address: '0xe9e7cea3dedca5984780bafc599bd69add087d56',
|
|
227
224
|
symbol: 'BUSD',
|
|
228
225
|
decimals: 18,
|
|
229
|
-
chainId:
|
|
226
|
+
chainId: ChainId.BSC,
|
|
230
227
|
},
|
|
231
228
|
{
|
|
232
229
|
address: '0x7130d2a12b9bcbfae4f2634d864a1ee1ce3ead9c',
|
|
233
230
|
symbol: 'BTCB',
|
|
234
231
|
decimals: 18,
|
|
235
|
-
chainId:
|
|
232
|
+
chainId: ChainId.BSC,
|
|
236
233
|
},
|
|
237
|
-
|
|
234
|
+
findDefaultToken(CoinKey.SUSHI, ChainId.BSC),
|
|
238
235
|
],
|
|
239
236
|
},
|
|
240
237
|
// 100 - Gnosis
|
|
241
238
|
{
|
|
242
239
|
key: 'honeyswap-dai',
|
|
243
240
|
name: 'Honeyswap',
|
|
244
|
-
chainId:
|
|
241
|
+
chainId: ChainId.DAI,
|
|
245
242
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/honey.png',
|
|
246
243
|
webUrl: 'https://app.honeyswap.org/',
|
|
247
244
|
graph: 'https://api.thegraph.com/subgraphs/name/1hive/honeyswap-xdai',
|
|
@@ -250,21 +247,21 @@ exports.supportedExchanges = [
|
|
|
250
247
|
factoryAddress: '0xA818b4F111Ccac7AA31D0BCc0806d64F2E0737D7',
|
|
251
248
|
initCodeHash: '0x3f88503e8580ab941773b59034fb4b2a63e86dbc031b3633a925533ad3ed2b93',
|
|
252
249
|
baseTokens: [
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
250
|
+
findWrappedGasOnChain(ChainId.DAI),
|
|
251
|
+
findDefaultToken(CoinKey.WETH, ChainId.DAI),
|
|
252
|
+
findDefaultToken(CoinKey.USDC, ChainId.DAI),
|
|
256
253
|
{
|
|
257
254
|
address: '0x71850b7e9ee3f13ab46d67167341e4bdc905eef9',
|
|
258
255
|
symbol: 'HNY',
|
|
259
256
|
decimals: 18,
|
|
260
|
-
chainId:
|
|
257
|
+
chainId: ChainId.DAI,
|
|
261
258
|
},
|
|
262
259
|
],
|
|
263
260
|
},
|
|
264
261
|
{
|
|
265
262
|
key: 'sushiswap-dai',
|
|
266
263
|
name: 'SushiSwap',
|
|
267
|
-
chainId:
|
|
264
|
+
chainId: ChainId.DAI,
|
|
268
265
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/sushi.png',
|
|
269
266
|
webUrl: 'https://app.sushi.com/swap',
|
|
270
267
|
graph: 'https://api.thegraph.com/subgraphs/name/sushiswap/xdai-exchange',
|
|
@@ -273,19 +270,19 @@ exports.supportedExchanges = [
|
|
|
273
270
|
factoryAddress: '0xc35DADB65012eC5796536bD9864eD8773aBc74C4',
|
|
274
271
|
initCodeHash: '0xe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303',
|
|
275
272
|
baseTokens: [
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
273
|
+
findWrappedGasOnChain(ChainId.DAI),
|
|
274
|
+
findDefaultToken(CoinKey.USDC, ChainId.DAI),
|
|
275
|
+
findDefaultToken(CoinKey.USDT, ChainId.DAI),
|
|
276
|
+
findDefaultToken(CoinKey.WBTC, ChainId.DAI),
|
|
277
|
+
findDefaultToken(CoinKey.WETH, ChainId.DAI),
|
|
278
|
+
findDefaultToken(CoinKey.SUSHI, ChainId.DAI),
|
|
282
279
|
],
|
|
283
280
|
},
|
|
284
281
|
// 250 - Fantom
|
|
285
282
|
{
|
|
286
283
|
key: 'spookyswap-ftm',
|
|
287
284
|
name: 'SpookySwap',
|
|
288
|
-
chainId:
|
|
285
|
+
chainId: ChainId.FTM,
|
|
289
286
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/spooky.png',
|
|
290
287
|
webUrl: 'https://spookyswap.finance/swap',
|
|
291
288
|
tokenlistUrl: 'https://raw.githubusercontent.com/SpookySwap/spooky-info/master/src/constants/token/spookyswap.json',
|
|
@@ -293,16 +290,16 @@ exports.supportedExchanges = [
|
|
|
293
290
|
factoryAddress: '0x152eE697f2E276fA89E96742e9bB9aB1F2E61bE3',
|
|
294
291
|
initCodeHash: '0xcdf2deca40a0bd56de8e3ce5c7df6727e5b1bf2ac96f283fa9c4b3e6b42ea9d2',
|
|
295
292
|
baseTokens: [
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
293
|
+
findWrappedGasOnChain(ChainId.FTM),
|
|
294
|
+
findDefaultToken(CoinKey.USDC, ChainId.FTM),
|
|
295
|
+
findDefaultToken(CoinKey.USDT, ChainId.FTM),
|
|
296
|
+
findDefaultToken(CoinKey.DAI, ChainId.FTM),
|
|
300
297
|
],
|
|
301
298
|
},
|
|
302
299
|
{
|
|
303
300
|
key: 'sushiswap-ftm',
|
|
304
301
|
name: 'SushiSwap',
|
|
305
|
-
chainId:
|
|
302
|
+
chainId: ChainId.FTM,
|
|
306
303
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/sushi.png',
|
|
307
304
|
webUrl: 'https://app.sushi.com/swap',
|
|
308
305
|
graph: 'https://api.thegraph.com/subgraphs/name/sushiswap/fantom-exchange',
|
|
@@ -311,18 +308,18 @@ exports.supportedExchanges = [
|
|
|
311
308
|
factoryAddress: '0xc35DADB65012eC5796536bD9864eD8773aBc74C4',
|
|
312
309
|
initCodeHash: '0xe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303',
|
|
313
310
|
baseTokens: [
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
311
|
+
findWrappedGasOnChain(ChainId.FTM),
|
|
312
|
+
findDefaultToken(CoinKey.DAI, ChainId.FTM),
|
|
313
|
+
findDefaultToken(CoinKey.USDC, ChainId.FTM),
|
|
314
|
+
findDefaultToken(CoinKey.WBTC, ChainId.FTM),
|
|
315
|
+
findDefaultToken(CoinKey.WETH, ChainId.FTM),
|
|
316
|
+
findDefaultToken(CoinKey.SUSHI, ChainId.FTM),
|
|
320
317
|
],
|
|
321
318
|
},
|
|
322
319
|
{
|
|
323
320
|
key: 'spiritswap',
|
|
324
321
|
name: 'SpiritSwap',
|
|
325
|
-
chainId:
|
|
322
|
+
chainId: ChainId.FTM,
|
|
326
323
|
logoURI: 'https://github.com/Layer3Org/spiritswap-tokens-list-icon/blob/master/token-list/images/inspirit.png?raw=true',
|
|
327
324
|
webUrl: 'https://app.spiritswap.finance/#/',
|
|
328
325
|
tokenlistUrl: 'https://gist.githubusercontent.com/mathiasmoeller/493b1ed01c2a789b2e785e51a2808412/raw/b157b697c72e8f3a6d5ef4851ceeb59bd4b64cd6/spiritswap_tokenlist.json',
|
|
@@ -330,18 +327,18 @@ exports.supportedExchanges = [
|
|
|
330
327
|
factoryAddress: '0xEF45d134b73241eDa7703fa787148D9C9F4950b0',
|
|
331
328
|
initCodeHash: '0xe242e798f6cee26a9cb0bbf24653bf066e5356ffeac160907fe2cc108e238617',
|
|
332
329
|
baseTokens: [
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
330
|
+
findWrappedGasOnChain(ChainId.FTM),
|
|
331
|
+
findDefaultToken(CoinKey.WBTC, ChainId.FTM),
|
|
332
|
+
findDefaultToken(CoinKey.WETH, ChainId.FTM),
|
|
333
|
+
findDefaultToken(CoinKey.USDC, ChainId.FTM),
|
|
334
|
+
findDefaultToken(CoinKey.DAI, ChainId.FTM),
|
|
338
335
|
],
|
|
339
336
|
},
|
|
340
337
|
// 1666600000 - Harmony Mainnet Shard 0
|
|
341
338
|
{
|
|
342
339
|
key: 'viperswap-one',
|
|
343
340
|
name: 'ViperSwap',
|
|
344
|
-
chainId:
|
|
341
|
+
chainId: ChainId.ONE,
|
|
345
342
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/viper.png',
|
|
346
343
|
webUrl: 'https://viper.exchange/#/swap',
|
|
347
344
|
tokenlistUrl: 'https://d1xrz6ki9z98vb.cloudfront.net/venomswap/lists/venomswap-default.tokenlist.json',
|
|
@@ -349,44 +346,44 @@ exports.supportedExchanges = [
|
|
|
349
346
|
factoryAddress: '0x7D02c116b98d0965ba7B642ace0183ad8b8D2196',
|
|
350
347
|
initCodeHash: '0x162f79e638367cd45a118c778971dfd8d96c625d2798d3b71994b035cfe9b6dc',
|
|
351
348
|
baseTokens: [
|
|
352
|
-
|
|
353
|
-
|
|
349
|
+
findDefaultToken(CoinKey.ONE, ChainId.ONE),
|
|
350
|
+
findWrappedGasOnChain(ChainId.ONE),
|
|
354
351
|
{
|
|
355
352
|
address: '0xEf977d2f931C1978Db5F6747666fa1eACB0d0339',
|
|
356
353
|
symbol: '1DAI',
|
|
357
354
|
decimals: 18,
|
|
358
|
-
chainId:
|
|
355
|
+
chainId: ChainId.ONE,
|
|
359
356
|
},
|
|
360
357
|
{
|
|
361
358
|
address: '0xE176EBE47d621b984a73036B9DA5d834411ef734',
|
|
362
359
|
symbol: 'BUSD',
|
|
363
360
|
decimals: 18,
|
|
364
|
-
chainId:
|
|
361
|
+
chainId: ChainId.ONE,
|
|
365
362
|
},
|
|
366
363
|
{
|
|
367
364
|
address: '0x985458E523dB3d53125813eD68c274899e9DfAb4',
|
|
368
365
|
symbol: '1USDC',
|
|
369
366
|
decimals: 6,
|
|
370
|
-
chainId:
|
|
367
|
+
chainId: ChainId.ONE,
|
|
371
368
|
},
|
|
372
369
|
{
|
|
373
370
|
address: '0xEa589E93Ff18b1a1F1e9BaC7EF3E86Ab62addc79',
|
|
374
371
|
symbol: 'VIPER',
|
|
375
372
|
decimals: 18,
|
|
376
|
-
chainId:
|
|
373
|
+
chainId: ChainId.ONE,
|
|
377
374
|
},
|
|
378
375
|
{
|
|
379
376
|
address: '0x0dc78c79B4eB080eaD5C1d16559225a46b580694',
|
|
380
377
|
symbol: 'WAGMI',
|
|
381
378
|
decimals: 9,
|
|
382
|
-
chainId:
|
|
379
|
+
chainId: ChainId.ONE,
|
|
383
380
|
},
|
|
384
381
|
],
|
|
385
382
|
},
|
|
386
383
|
{
|
|
387
384
|
key: 'sushiswap-one',
|
|
388
385
|
name: 'SushiSwap',
|
|
389
|
-
chainId:
|
|
386
|
+
chainId: ChainId.ONE,
|
|
390
387
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/sushi.png',
|
|
391
388
|
webUrl: 'https://app.sushi.com/swap',
|
|
392
389
|
tokenlistUrl: 'https://raw.githubusercontent.com/sushiswap/list/master/lists/token-lists/default-token-list/tokens/harmony.json',
|
|
@@ -394,20 +391,20 @@ exports.supportedExchanges = [
|
|
|
394
391
|
factoryAddress: '0xc35DADB65012eC5796536bD9864eD8773aBc74C4',
|
|
395
392
|
initCodeHash: '0xe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303',
|
|
396
393
|
baseTokens: [
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
394
|
+
findWrappedGasOnChain(ChainId.ONE),
|
|
395
|
+
findDefaultToken(CoinKey.DAI, ChainId.ONE),
|
|
396
|
+
findDefaultToken(CoinKey.USDC, ChainId.ONE),
|
|
397
|
+
findDefaultToken(CoinKey.USDT, ChainId.ONE),
|
|
398
|
+
findDefaultToken(CoinKey.ETH, ChainId.ONE),
|
|
399
|
+
findDefaultToken(CoinKey.WBTC, ChainId.ONE),
|
|
400
|
+
findDefaultToken(CoinKey.SUSHI, ChainId.ONE),
|
|
404
401
|
],
|
|
405
402
|
},
|
|
406
403
|
// 43114 - Avalanche
|
|
407
404
|
{
|
|
408
405
|
key: 'sushiswap-ava',
|
|
409
406
|
name: 'SushiSwap',
|
|
410
|
-
chainId:
|
|
407
|
+
chainId: ChainId.AVA,
|
|
411
408
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/sushi.png',
|
|
412
409
|
webUrl: 'https://app.sushi.com/swap',
|
|
413
410
|
tokenlistUrl: 'https://raw.githubusercontent.com/sushiswap/list/master/lists/token-lists/default-token-list/tokens/avalanche.json',
|
|
@@ -415,20 +412,20 @@ exports.supportedExchanges = [
|
|
|
415
412
|
factoryAddress: '0xc35DADB65012eC5796536bD9864eD8773aBc74C4',
|
|
416
413
|
initCodeHash: '0xe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303',
|
|
417
414
|
baseTokens: [
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
415
|
+
findWrappedGasOnChain(ChainId.AVA),
|
|
416
|
+
findDefaultToken(CoinKey.USDC, ChainId.AVA),
|
|
417
|
+
findDefaultToken(CoinKey.USDT, ChainId.AVA),
|
|
418
|
+
findDefaultToken(CoinKey.DAI, ChainId.AVA),
|
|
419
|
+
findDefaultToken(CoinKey.WBTC, ChainId.AVA),
|
|
420
|
+
findDefaultToken(CoinKey.WETH, ChainId.AVA),
|
|
421
|
+
findDefaultToken(CoinKey.SUSHI, ChainId.AVA),
|
|
425
422
|
],
|
|
426
423
|
},
|
|
427
424
|
// 42161 - Arbitrum One
|
|
428
425
|
{
|
|
429
426
|
key: 'sushiswap-arb',
|
|
430
427
|
name: 'SushiSwap',
|
|
431
|
-
chainId:
|
|
428
|
+
chainId: ChainId.ARB,
|
|
432
429
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/sushi.png',
|
|
433
430
|
webUrl: 'https://app.sushi.com/swap',
|
|
434
431
|
tokenlistUrl: 'https://raw.githubusercontent.com/sushiswap/list/master/lists/token-lists/default-token-list/tokens/arbitrum.json',
|
|
@@ -436,16 +433,16 @@ exports.supportedExchanges = [
|
|
|
436
433
|
factoryAddress: '0xc35DADB65012eC5796536bD9864eD8773aBc74C4',
|
|
437
434
|
initCodeHash: '0xe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303',
|
|
438
435
|
baseTokens: [
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
436
|
+
findDefaultToken(CoinKey.WETH, ChainId.ARB),
|
|
437
|
+
findDefaultToken(CoinKey.WBTC, ChainId.ARB),
|
|
438
|
+
findDefaultToken(CoinKey.USDC, ChainId.ARB),
|
|
439
|
+
findDefaultToken(CoinKey.USDT, ChainId.ARB),
|
|
440
|
+
findDefaultToken(CoinKey.SUSHI, ChainId.ARB),
|
|
444
441
|
{
|
|
445
442
|
address: '0x3e6648c5a70a150a88bce65f4ad4d506fe15d2af',
|
|
446
443
|
symbol: 'SPELL',
|
|
447
444
|
decimals: 18,
|
|
448
|
-
chainId:
|
|
445
|
+
chainId: ChainId.ARB,
|
|
449
446
|
},
|
|
450
447
|
],
|
|
451
448
|
},
|
|
@@ -474,7 +471,7 @@ exports.supportedExchanges = [
|
|
|
474
471
|
{
|
|
475
472
|
key: 'sushiswap-mor',
|
|
476
473
|
name: 'SushiSwap',
|
|
477
|
-
chainId:
|
|
474
|
+
chainId: ChainId.MOR,
|
|
478
475
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/sushi.png',
|
|
479
476
|
webUrl: 'https://app.sushi.com/swap',
|
|
480
477
|
tokenlistUrl: 'https://raw.githubusercontent.com/sushiswap/list/master/lists/token-lists/default-token-list/tokens/moonriver.json',
|
|
@@ -482,36 +479,36 @@ exports.supportedExchanges = [
|
|
|
482
479
|
factoryAddress: '0xc35DADB65012eC5796536bD9864eD8773aBc74C4',
|
|
483
480
|
initCodeHash: '0xe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303',
|
|
484
481
|
baseTokens: [
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
482
|
+
findWrappedGasOnChain(ChainId.MOR),
|
|
483
|
+
findDefaultToken(CoinKey.WETH, ChainId.MOR),
|
|
484
|
+
findDefaultToken(CoinKey.WBTC, ChainId.MOR),
|
|
485
|
+
findDefaultToken(CoinKey.USDC, ChainId.MOR),
|
|
486
|
+
findDefaultToken(CoinKey.USDT, ChainId.MOR),
|
|
487
|
+
findDefaultToken(CoinKey.SUSHI, ChainId.MOR),
|
|
491
488
|
{
|
|
492
489
|
address: '0x1a93b23281cc1cde4c4741353f3064709a16197d',
|
|
493
490
|
symbol: 'FRAX',
|
|
494
491
|
decimals: 18,
|
|
495
|
-
chainId:
|
|
492
|
+
chainId: ChainId.MOR,
|
|
496
493
|
},
|
|
497
494
|
{
|
|
498
495
|
address: '0x0cae51e1032e8461f4806e26332c030e34de3adb',
|
|
499
496
|
symbol: 'MIM',
|
|
500
497
|
decimals: 18,
|
|
501
|
-
chainId:
|
|
498
|
+
chainId: ChainId.MOR,
|
|
502
499
|
},
|
|
503
500
|
{
|
|
504
501
|
address: '0x3d2d044e8c6dad46b4f7896418d3d4dfaad902be',
|
|
505
502
|
symbol: 'aROME',
|
|
506
503
|
decimals: 9,
|
|
507
|
-
chainId:
|
|
504
|
+
chainId: ChainId.MOR,
|
|
508
505
|
},
|
|
509
506
|
],
|
|
510
507
|
},
|
|
511
508
|
{
|
|
512
509
|
key: 'solarbeam-mor',
|
|
513
510
|
name: 'Solarbeam',
|
|
514
|
-
chainId:
|
|
511
|
+
chainId: ChainId.MOR,
|
|
515
512
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/solarbeam.png',
|
|
516
513
|
webUrl: 'https://app.solarbeam.io/exchange/swap',
|
|
517
514
|
tokenlistUrl: 'https://raw.githubusercontent.com/solarbeamio/solarbeam-tokenlist/main/solarbeam.tokenlist.json',
|
|
@@ -519,19 +516,19 @@ exports.supportedExchanges = [
|
|
|
519
516
|
factoryAddress: '0x049581aEB6Fe262727f290165C29BDAB065a1B68',
|
|
520
517
|
initCodeHash: '0x9a100ded5f254443fbd264cb7e87831e398a8b642e061670a9bc35ba27293dbf',
|
|
521
518
|
baseTokens: [
|
|
522
|
-
|
|
523
|
-
|
|
519
|
+
findWrappedGasOnChain(ChainId.MOR),
|
|
520
|
+
findDefaultToken(CoinKey.USDC, ChainId.MOR),
|
|
524
521
|
{
|
|
525
522
|
address: '0x1a93b23281cc1cde4c4741353f3064709a16197d',
|
|
526
523
|
symbol: 'FRAX',
|
|
527
524
|
decimals: 18,
|
|
528
|
-
chainId:
|
|
525
|
+
chainId: ChainId.MOR,
|
|
529
526
|
},
|
|
530
527
|
{
|
|
531
528
|
address: '0x6bd193ee6d2104f14f94e2ca6efefae561a4334b',
|
|
532
529
|
symbol: 'SOLAR',
|
|
533
530
|
decimals: 18,
|
|
534
|
-
chainId:
|
|
531
|
+
chainId: ChainId.MOR,
|
|
535
532
|
},
|
|
536
533
|
],
|
|
537
534
|
},
|
|
@@ -539,7 +536,7 @@ exports.supportedExchanges = [
|
|
|
539
536
|
{
|
|
540
537
|
key: 'sushiswap-hec',
|
|
541
538
|
name: 'SushiSwap',
|
|
542
|
-
chainId:
|
|
539
|
+
chainId: ChainId.HEC,
|
|
543
540
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/sushi.png',
|
|
544
541
|
webUrl: 'https://app.sushi.com/swap',
|
|
545
542
|
tokenlistUrl: 'https://raw.githubusercontent.com/sushiswap/list/master/lists/token-lists/default-token-list/tokens/heco.json',
|
|
@@ -547,22 +544,22 @@ exports.supportedExchanges = [
|
|
|
547
544
|
factoryAddress: '0xc35DADB65012eC5796536bD9864eD8773aBc74C4',
|
|
548
545
|
initCodeHash: '0xe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303',
|
|
549
546
|
baseTokens: [
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
547
|
+
findWrappedGasOnChain(ChainId.HEC),
|
|
548
|
+
findDefaultToken(CoinKey.ETH, ChainId.HEC),
|
|
549
|
+
findDefaultToken(CoinKey.USDC, ChainId.HEC),
|
|
550
|
+
findDefaultToken(CoinKey.USDT, ChainId.HEC),
|
|
551
|
+
findDefaultToken(CoinKey.SUSHI, ChainId.HEC),
|
|
555
552
|
{
|
|
556
553
|
address: '0x66a79d23e58475d2738179ca52cd0b41d73f0bea',
|
|
557
554
|
symbol: 'HBTC',
|
|
558
555
|
decimals: 18,
|
|
559
|
-
chainId:
|
|
556
|
+
chainId: ChainId.HEC,
|
|
560
557
|
},
|
|
561
558
|
{
|
|
562
559
|
address: '0x3d760a45d0887dfd89a2f5385a236b29cb46ed2a',
|
|
563
560
|
symbol: 'DAIHECO',
|
|
564
561
|
decimals: 18,
|
|
565
|
-
chainId:
|
|
562
|
+
chainId: ChainId.HEC,
|
|
566
563
|
},
|
|
567
564
|
],
|
|
568
565
|
},
|
|
@@ -570,7 +567,7 @@ exports.supportedExchanges = [
|
|
|
570
567
|
{
|
|
571
568
|
key: 'sushiswap-okt',
|
|
572
569
|
name: 'SushiSwap',
|
|
573
|
-
chainId:
|
|
570
|
+
chainId: ChainId.OKT,
|
|
574
571
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/sushi.png',
|
|
575
572
|
webUrl: 'https://app.sushi.com/swap',
|
|
576
573
|
tokenlistUrl: 'https://raw.githubusercontent.com/sushiswap/list/master/lists/token-lists/default-token-list/tokens/okex.json',
|
|
@@ -578,19 +575,19 @@ exports.supportedExchanges = [
|
|
|
578
575
|
factoryAddress: '0xc35DADB65012eC5796536bD9864eD8773aBc74C4',
|
|
579
576
|
initCodeHash: '0xe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303',
|
|
580
577
|
baseTokens: [
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
578
|
+
findWrappedGasOnChain(ChainId.OKT),
|
|
579
|
+
findDefaultToken(CoinKey.ETH, ChainId.OKT),
|
|
580
|
+
findDefaultToken(CoinKey.WBTC, ChainId.OKT),
|
|
581
|
+
findDefaultToken(CoinKey.DAI, ChainId.OKT),
|
|
582
|
+
findDefaultToken(CoinKey.USDC, ChainId.OKT),
|
|
583
|
+
findDefaultToken(CoinKey.USDT, ChainId.OKT),
|
|
584
|
+
findDefaultToken(CoinKey.SUSHI, ChainId.OKT),
|
|
588
585
|
],
|
|
589
586
|
},
|
|
590
587
|
{
|
|
591
588
|
key: 'jswap-okt',
|
|
592
589
|
name: 'JSwap',
|
|
593
|
-
chainId:
|
|
590
|
+
chainId: ChainId.OKT,
|
|
594
591
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/jswap.png',
|
|
595
592
|
webUrl: 'https://app.jswap.finance/#/swap',
|
|
596
593
|
tokenlistUrl: 'https://resources.jswap.finance/token-list/oec/extended.tokenlist.json',
|
|
@@ -598,26 +595,26 @@ exports.supportedExchanges = [
|
|
|
598
595
|
factoryAddress: '0xd654CbF99F2907F06c88399AE123606121247D5C',
|
|
599
596
|
initCodeHash: '0xf6608394468275c0df88a8568e9fbf7295a0aebddd5ae966ce6dbf5bb4ee68a0',
|
|
600
597
|
baseTokens: [
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
598
|
+
findDefaultToken(CoinKey.OKT, ChainId.OKT),
|
|
599
|
+
findDefaultToken(CoinKey.ETH, ChainId.OKT),
|
|
600
|
+
findDefaultToken(CoinKey.USDT, ChainId.OKT),
|
|
604
601
|
{
|
|
605
602
|
address: '0x54e4622dc504176b3bb432dccaf504569699a7ff',
|
|
606
603
|
symbol: 'BTCK',
|
|
607
604
|
decimals: 18,
|
|
608
|
-
chainId:
|
|
605
|
+
chainId: ChainId.OKT,
|
|
609
606
|
},
|
|
610
607
|
{
|
|
611
608
|
address: '0xdf54b6c6195ea4d948d03bfd818d365cf175cfc2',
|
|
612
609
|
symbol: 'OKB',
|
|
613
610
|
decimals: 18,
|
|
614
|
-
chainId:
|
|
611
|
+
chainId: ChainId.OKT,
|
|
615
612
|
},
|
|
616
613
|
{
|
|
617
614
|
address: '0x5fac926bf1e638944bb16fb5b787b5ba4bc85b0a',
|
|
618
615
|
symbol: 'JF',
|
|
619
616
|
decimals: 18,
|
|
620
|
-
chainId:
|
|
617
|
+
chainId: ChainId.OKT,
|
|
621
618
|
},
|
|
622
619
|
],
|
|
623
620
|
},
|
|
@@ -625,7 +622,7 @@ exports.supportedExchanges = [
|
|
|
625
622
|
{
|
|
626
623
|
key: 'cronaswap-cro',
|
|
627
624
|
name: 'CronaSwap',
|
|
628
|
-
chainId:
|
|
625
|
+
chainId: ChainId.CRO,
|
|
629
626
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/cronaswap.png',
|
|
630
627
|
webUrl: 'https://app.cronaswap.org/swap',
|
|
631
628
|
tokenlistUrl: 'https://raw.githubusercontent.com/cronaswap/default-token-list/main/assets/tokens/cronos.json',
|
|
@@ -633,13 +630,13 @@ exports.supportedExchanges = [
|
|
|
633
630
|
factoryAddress: '0x73A48f8f521EB31c55c0e1274dB0898dE599Cb11',
|
|
634
631
|
initCodeHash: '0xc93158cffa5b575e32566e81e847754ce517f8fa988d3e25cf346d916216e06f',
|
|
635
632
|
baseTokens: [
|
|
636
|
-
|
|
637
|
-
|
|
633
|
+
findDefaultToken(CoinKey.CRO, ChainId.CRO),
|
|
634
|
+
findDefaultToken(CoinKey.USDC, ChainId.CRO),
|
|
638
635
|
{
|
|
639
636
|
address: '0xadbd1231fb360047525bedf962581f3eee7b49fe',
|
|
640
637
|
symbol: 'CRONA',
|
|
641
638
|
decimals: 18,
|
|
642
|
-
chainId:
|
|
639
|
+
chainId: ChainId.CRO,
|
|
643
640
|
},
|
|
644
641
|
],
|
|
645
642
|
},
|
|
@@ -648,7 +645,7 @@ exports.supportedExchanges = [
|
|
|
648
645
|
{
|
|
649
646
|
key: 'stellaswap-moo',
|
|
650
647
|
name: 'StellaSwap',
|
|
651
|
-
chainId:
|
|
648
|
+
chainId: ChainId.MOO,
|
|
652
649
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/stellaswap.png',
|
|
653
650
|
webUrl: 'https://app.stellaswap.com/',
|
|
654
651
|
tokenlistUrl: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/tokens/stellaswap.json',
|
|
@@ -660,26 +657,26 @@ exports.supportedExchanges = [
|
|
|
660
657
|
address: '0x0E358838ce72d5e61E0018a2ffaC4bEC5F4c88d2',
|
|
661
658
|
symbol: 'STELLA',
|
|
662
659
|
decimals: 18,
|
|
663
|
-
chainId:
|
|
660
|
+
chainId: ChainId.MOO,
|
|
664
661
|
},
|
|
665
662
|
{
|
|
666
663
|
address: '0x818ec0A7Fe18Ff94269904fCED6AE3DaE6d6dC0b',
|
|
667
664
|
symbol: 'USDC',
|
|
668
665
|
decimals: 6,
|
|
669
|
-
chainId:
|
|
666
|
+
chainId: ChainId.MOO,
|
|
670
667
|
},
|
|
671
668
|
{
|
|
672
669
|
address: '0xAcc15dC74880C9944775448304B263D191c6077F',
|
|
673
670
|
symbol: 'WGLMR',
|
|
674
671
|
decimals: 18,
|
|
675
|
-
chainId:
|
|
672
|
+
chainId: ChainId.MOO,
|
|
676
673
|
},
|
|
677
674
|
],
|
|
678
675
|
},
|
|
679
676
|
{
|
|
680
677
|
key: 'beamswap-moo',
|
|
681
678
|
name: 'BeamSwap',
|
|
682
|
-
chainId:
|
|
679
|
+
chainId: ChainId.MOO,
|
|
683
680
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/beamswap.png',
|
|
684
681
|
webUrl: 'https://app.beamswap.io/',
|
|
685
682
|
tokenlistUrl: 'https://raw.githubusercontent.com/BeamSwap/beamswap-tokenlist/main/tokenlist.json',
|
|
@@ -687,9 +684,9 @@ exports.supportedExchanges = [
|
|
|
687
684
|
factoryAddress: '0x985BcA32293A7A496300a48081947321177a86FD',
|
|
688
685
|
initCodeHash: '0xe31da4209ffcce713230a74b5287fa8ec84797c9e77e1f7cfeccea015cdc97ea',
|
|
689
686
|
baseTokens: [
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
687
|
+
findWrappedGasOnChain(ChainId.MOO),
|
|
688
|
+
findDefaultToken(CoinKey.BNB, ChainId.MOO),
|
|
689
|
+
findDefaultToken(CoinKey.ETH, ChainId.MOO),
|
|
693
690
|
{
|
|
694
691
|
chainId: 1284,
|
|
695
692
|
address: '0xeFAeeE334F0Fd1712f9a8cc375f427D9Cdd40d73',
|
|
@@ -746,7 +743,7 @@ exports.supportedExchanges = [
|
|
|
746
743
|
{
|
|
747
744
|
key: 'sushiswap-fus',
|
|
748
745
|
name: 'SushiSwap',
|
|
749
|
-
chainId:
|
|
746
|
+
chainId: ChainId.FUS,
|
|
750
747
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/sushi.png',
|
|
751
748
|
webUrl: 'https://app.sushi.com/swap',
|
|
752
749
|
tokenlistUrl: 'https://raw.githubusercontent.com/sushiswap/list/master/lists/token-lists/default-token-list/tokens/fuse.json',
|
|
@@ -754,20 +751,20 @@ exports.supportedExchanges = [
|
|
|
754
751
|
factoryAddress: '0x43eA90e2b786728520e4f930d2A71a477BF2737C',
|
|
755
752
|
initCodeHash: '0x1901958ef8b470f2c0a3875a79ee0bd303866d85102c0f1ea820d317024d50b5',
|
|
756
753
|
baseTokens: [
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
754
|
+
findWrappedGasOnChain(ChainId.FUS),
|
|
755
|
+
findDefaultToken(CoinKey.USDC, ChainId.FUS),
|
|
756
|
+
findDefaultToken(CoinKey.USDT, ChainId.FUS),
|
|
757
|
+
findDefaultToken(CoinKey.WBTC, ChainId.FUS),
|
|
758
|
+
findDefaultToken(CoinKey.WETH, ChainId.FUS),
|
|
759
|
+
findDefaultToken(CoinKey.DAI, ChainId.FUS),
|
|
760
|
+
findDefaultToken(CoinKey.SUSHI, ChainId.FUS),
|
|
764
761
|
],
|
|
765
762
|
},
|
|
766
763
|
// 42220 Celo Mainnet
|
|
767
764
|
{
|
|
768
765
|
key: 'ubeswap-cel',
|
|
769
766
|
name: 'UbeSwap',
|
|
770
|
-
chainId:
|
|
767
|
+
chainId: ChainId.CEL,
|
|
771
768
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/ubeswap.png',
|
|
772
769
|
webUrl: 'https://app.ubeswap.org/#/swap',
|
|
773
770
|
graph: 'https://api.thegraph.com/subgraphs/name/ubeswap/ubeswap',
|
|
@@ -776,25 +773,25 @@ exports.supportedExchanges = [
|
|
|
776
773
|
factoryAddress: '0x62d5b84bE28a183aBB507E125B384122D2C25fAE',
|
|
777
774
|
initCodeHash: '0xb3b8ff62960acea3a88039ebcf80699f15786f1b17cebd82802f7375827a339c',
|
|
778
775
|
baseTokens: [
|
|
779
|
-
|
|
776
|
+
findWrappedGasOnChain(ChainId.CEL),
|
|
780
777
|
{
|
|
781
778
|
address: '0x918146359264c492bd6934071c6bd31c854edbc3',
|
|
782
779
|
symbol: 'mCUSD',
|
|
783
780
|
decimals: 18,
|
|
784
|
-
chainId:
|
|
781
|
+
chainId: ChainId.CEL,
|
|
785
782
|
},
|
|
786
783
|
{
|
|
787
784
|
address: '0xe273ad7ee11dcfaa87383ad5977ee1504ac07568',
|
|
788
785
|
symbol: 'mCEUR',
|
|
789
786
|
decimals: 18,
|
|
790
|
-
chainId:
|
|
787
|
+
chainId: ChainId.CEL,
|
|
791
788
|
},
|
|
792
789
|
],
|
|
793
790
|
},
|
|
794
791
|
{
|
|
795
792
|
key: 'sushiswap-cel',
|
|
796
793
|
name: 'SushiSwap',
|
|
797
|
-
chainId:
|
|
794
|
+
chainId: ChainId.CEL,
|
|
798
795
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/sushi.png',
|
|
799
796
|
webUrl: 'https://app.sushi.com/swap',
|
|
800
797
|
tokenlistUrl: 'https://raw.githubusercontent.com/sushiswap/list/master/lists/token-lists/default-token-list/tokens/celo.json',
|
|
@@ -802,22 +799,22 @@ exports.supportedExchanges = [
|
|
|
802
799
|
factoryAddress: '0xc35DADB65012eC5796536bD9864eD8773aBc74C4',
|
|
803
800
|
initCodeHash: '0xe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303',
|
|
804
801
|
baseTokens: [
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
802
|
+
findWrappedGasOnChain(ChainId.CEL),
|
|
803
|
+
findDefaultToken(CoinKey.USDC, ChainId.CEL),
|
|
804
|
+
findDefaultToken(CoinKey.WBTC, ChainId.CEL),
|
|
805
|
+
findDefaultToken(CoinKey.WETH, ChainId.CEL),
|
|
806
|
+
findDefaultToken(CoinKey.SUSHI, ChainId.CEL),
|
|
810
807
|
{
|
|
811
808
|
address: '0x765de816845861e75a25fca122bb6898b8b1282a',
|
|
812
809
|
symbol: 'cUSD',
|
|
813
810
|
decimals: 18,
|
|
814
|
-
chainId:
|
|
811
|
+
chainId: ChainId.CEL,
|
|
815
812
|
},
|
|
816
813
|
{
|
|
817
814
|
address: '0xd8763cba276a3738e6de85b4b3bf5fded6d6ca73',
|
|
818
815
|
symbol: 'cEUR',
|
|
819
816
|
decimals: 18,
|
|
820
|
-
chainId:
|
|
817
|
+
chainId: ChainId.CEL,
|
|
821
818
|
},
|
|
822
819
|
],
|
|
823
820
|
},
|
|
@@ -861,7 +858,7 @@ exports.supportedExchanges = [
|
|
|
861
858
|
{
|
|
862
859
|
key: 'oolongswap-bob',
|
|
863
860
|
name: 'OolongSwap',
|
|
864
|
-
chainId:
|
|
861
|
+
chainId: ChainId.BOB,
|
|
865
862
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/oolongswap.png',
|
|
866
863
|
webUrl: 'https://oolongswap.com/#/swap',
|
|
867
864
|
tokenlistUrl: 'https://raw.githubusercontent.com/OolongSwap/boba-community-token-list/main/build/boba.tokenlist.json',
|
|
@@ -869,23 +866,23 @@ exports.supportedExchanges = [
|
|
|
869
866
|
factoryAddress: '0x7DDaF116889D655D1c486bEB95017a8211265d29',
|
|
870
867
|
initCodeHash: '0x1db9efb13a1398e31bb71895c392fa1217130f78dc65080174491adcec5da9b9',
|
|
871
868
|
baseTokens: [
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
869
|
+
findDefaultToken(CoinKey.ETH, ChainId.BOB),
|
|
870
|
+
findWrappedGasOnChain(ChainId.BOB),
|
|
871
|
+
findDefaultToken(CoinKey.WBTC, ChainId.BOB),
|
|
872
|
+
findDefaultToken(CoinKey.DAI, ChainId.BOB),
|
|
873
|
+
findDefaultToken(CoinKey.USDC, ChainId.BOB),
|
|
874
|
+
findDefaultToken(CoinKey.USDT, ChainId.BOB),
|
|
878
875
|
{
|
|
879
876
|
address: '0xa18bf3994c0cc6e3b63ac420308e5383f53120d7',
|
|
880
877
|
symbol: 'BOBA',
|
|
881
878
|
decimals: 18,
|
|
882
|
-
chainId:
|
|
879
|
+
chainId: ChainId.BOB,
|
|
883
880
|
},
|
|
884
881
|
{
|
|
885
882
|
address: '0x5008f837883ea9a07271a1b5eb0658404f5a9610',
|
|
886
883
|
symbol: 'OLO',
|
|
887
884
|
decimals: 18,
|
|
888
|
-
chainId:
|
|
885
|
+
chainId: ChainId.BOB,
|
|
889
886
|
},
|
|
890
887
|
],
|
|
891
888
|
},
|
|
@@ -894,7 +891,7 @@ exports.supportedExchanges = [
|
|
|
894
891
|
{
|
|
895
892
|
key: 'uniswap-rop',
|
|
896
893
|
name: 'Uniswap',
|
|
897
|
-
chainId:
|
|
894
|
+
chainId: ChainId.ROP,
|
|
898
895
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/uniswap.png',
|
|
899
896
|
webUrl: 'https://app.uniswap.org/',
|
|
900
897
|
tokenlistUrl: 'https://raw.githubusercontent.com/compound-finance/token-list/master/compound.tokenlist.json',
|
|
@@ -902,8 +899,8 @@ exports.supportedExchanges = [
|
|
|
902
899
|
factoryAddress: '0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f',
|
|
903
900
|
initCodeHash: '0x96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f',
|
|
904
901
|
baseTokens: [
|
|
905
|
-
|
|
906
|
-
|
|
902
|
+
findDefaultToken(CoinKey.ETH, ChainId.ROP),
|
|
903
|
+
findDefaultToken(CoinKey.WETH, ChainId.ROP),
|
|
907
904
|
],
|
|
908
905
|
},
|
|
909
906
|
// TODO: sushiswap does not work properly
|
|
@@ -922,7 +919,7 @@ exports.supportedExchanges = [
|
|
|
922
919
|
{
|
|
923
920
|
key: 'uniswap-rin',
|
|
924
921
|
name: 'Uniswap',
|
|
925
|
-
chainId:
|
|
922
|
+
chainId: ChainId.RIN,
|
|
926
923
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/uniswap.png',
|
|
927
924
|
webUrl: 'https://app.uniswap.org/',
|
|
928
925
|
tokenlistUrl: 'https://raw.githubusercontent.com/compound-finance/token-list/master/compound.tokenlist.json',
|
|
@@ -930,8 +927,8 @@ exports.supportedExchanges = [
|
|
|
930
927
|
factoryAddress: '0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f',
|
|
931
928
|
initCodeHash: '0x96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f',
|
|
932
929
|
baseTokens: [
|
|
933
|
-
|
|
934
|
-
|
|
930
|
+
findDefaultToken(CoinKey.ETH, ChainId.RIN),
|
|
931
|
+
findDefaultToken(CoinKey.WETH, ChainId.RIN),
|
|
935
932
|
],
|
|
936
933
|
},
|
|
937
934
|
// TODO: sushiswap does not work properly
|
|
@@ -950,7 +947,7 @@ exports.supportedExchanges = [
|
|
|
950
947
|
{
|
|
951
948
|
key: 'uniswap-gor',
|
|
952
949
|
name: 'Uniswap',
|
|
953
|
-
chainId:
|
|
950
|
+
chainId: ChainId.GOR,
|
|
954
951
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/uniswap.png',
|
|
955
952
|
webUrl: 'https://app.uniswap.org/',
|
|
956
953
|
tokenlistUrl: 'https://raw.githubusercontent.com/compound-finance/token-list/master/compound.tokenlist.json',
|
|
@@ -958,8 +955,8 @@ exports.supportedExchanges = [
|
|
|
958
955
|
factoryAddress: '0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f',
|
|
959
956
|
initCodeHash: '0x96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f',
|
|
960
957
|
baseTokens: [
|
|
961
|
-
|
|
962
|
-
|
|
958
|
+
findDefaultToken(CoinKey.ETH, ChainId.GOR),
|
|
959
|
+
findDefaultToken(CoinKey.WETH, ChainId.GOR),
|
|
963
960
|
],
|
|
964
961
|
},
|
|
965
962
|
// TODO: sushiswap does not work properly
|
|
@@ -979,7 +976,7 @@ exports.supportedExchanges = [
|
|
|
979
976
|
{
|
|
980
977
|
key: 'uniswap-kov',
|
|
981
978
|
name: 'Uniswap',
|
|
982
|
-
chainId:
|
|
979
|
+
chainId: ChainId.KOV,
|
|
983
980
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/uniswap.png',
|
|
984
981
|
webUrl: 'https://app.uniswap.org/',
|
|
985
982
|
tokenlistUrl: 'https://raw.githubusercontent.com/compound-finance/token-list/master/compound.tokenlist.json',
|
|
@@ -987,8 +984,8 @@ exports.supportedExchanges = [
|
|
|
987
984
|
factoryAddress: '0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f',
|
|
988
985
|
initCodeHash: '0x96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f',
|
|
989
986
|
baseTokens: [
|
|
990
|
-
|
|
991
|
-
|
|
987
|
+
findDefaultToken(CoinKey.ETH, ChainId.KOV),
|
|
988
|
+
findDefaultToken(CoinKey.WETH, ChainId.KOV),
|
|
992
989
|
],
|
|
993
990
|
},
|
|
994
991
|
// TODO: sushiswap does not work properly
|
|
@@ -1009,7 +1006,7 @@ exports.supportedExchanges = [
|
|
|
1009
1006
|
{
|
|
1010
1007
|
key: 'sushiswap-onet',
|
|
1011
1008
|
name: 'SushiSwap',
|
|
1012
|
-
chainId:
|
|
1009
|
+
chainId: ChainId.ONET,
|
|
1013
1010
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/sushi.png',
|
|
1014
1011
|
webUrl: 'https://app.sushi.com/swap',
|
|
1015
1012
|
tokenlistUrl: 'https://raw.githubusercontent.com/sushiswap/list/master/lists/token-lists/default-token-list/tokens/harmony-testnet.json',
|
|
@@ -1023,25 +1020,24 @@ exports.supportedExchanges = [
|
|
|
1023
1020
|
{
|
|
1024
1021
|
key: 'sushiswap-bsct',
|
|
1025
1022
|
name: 'SushiSwap',
|
|
1026
|
-
chainId:
|
|
1023
|
+
chainId: ChainId.BSCT,
|
|
1027
1024
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/sushi.png',
|
|
1028
1025
|
webUrl: 'https://app.sushi.com/swap',
|
|
1029
1026
|
tokenlistUrl: 'https://raw.githubusercontent.com/sushiswap/list/master/lists/token-lists/default-token-list/tokens/harmony-testnet.json',
|
|
1030
1027
|
routerAddress: '0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506',
|
|
1031
1028
|
factoryAddress: '0xc35DADB65012eC5796536bD9864eD8773aBc74C4',
|
|
1032
1029
|
initCodeHash: '0xe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303',
|
|
1033
|
-
baseTokens: [
|
|
1030
|
+
baseTokens: [findWrappedGasOnChain(ChainId.ONET)],
|
|
1034
1031
|
},
|
|
1035
1032
|
];
|
|
1036
1033
|
/**
|
|
1037
1034
|
* @deprecated
|
|
1038
1035
|
* Available exchanges should be queried from the API
|
|
1039
1036
|
*/
|
|
1040
|
-
|
|
1041
|
-
|
|
1037
|
+
export const getExchangeByKey = (key) => {
|
|
1038
|
+
const exchange = supportedExchanges.find((exchange) => exchange.key === key);
|
|
1042
1039
|
if (!exchange) {
|
|
1043
1040
|
throw new Error('Invalid key');
|
|
1044
1041
|
}
|
|
1045
1042
|
return exchange;
|
|
1046
1043
|
};
|
|
1047
|
-
exports.getExchangeByKey = getExchangeByKey;
|