@lifi/types 1.5.0 → 1.7.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 +18 -0
- package/dist/api.d.ts +1 -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 +3 -6
- 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 +219 -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 +1067 -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 +230 -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
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,38 @@ 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),
|
|
335
|
+
],
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
key: 'soulswap-ftm',
|
|
339
|
+
name: 'SoulSwap',
|
|
340
|
+
chainId: ChainId.FTM,
|
|
341
|
+
webUrl: 'https://app.soulswap.finance/',
|
|
342
|
+
logoURI: 'https://raw.githubusercontent.com/soulswapfinance/assets/prod/blockchains/fantom/assets/0xe2fb177009FF39F52C0134E8007FA0e4BaAcBd07/logo.png',
|
|
343
|
+
tokenlistUrl: 'https://raw.githubusercontent.com/soulswapfinance/default-token-list/master/soulswap.tokenlist.json',
|
|
344
|
+
routerAddress: '0x6b3d631B87FE27aF29efeC61d2ab8CE4d621cCBF',
|
|
345
|
+
factoryAddress: '0x1120e150dA9def6Fe930f4fEDeD18ef57c0CA7eF',
|
|
346
|
+
initCodeHash: '0xf3dcc3c6c6e34d3981dd429ac942301b9ebdd05de1be17f646b55476c44dc951',
|
|
347
|
+
baseTokens: [
|
|
348
|
+
findWrappedGasOnChain(ChainId.FTM),
|
|
349
|
+
{
|
|
350
|
+
address: '0xe2fb177009FF39F52C0134E8007FA0e4BaAcBd07',
|
|
351
|
+
symbol: 'SOUL',
|
|
352
|
+
decimals: 18,
|
|
353
|
+
chainId: ChainId.FTM,
|
|
354
|
+
},
|
|
338
355
|
],
|
|
339
356
|
},
|
|
340
357
|
// 1666600000 - Harmony Mainnet Shard 0
|
|
341
358
|
{
|
|
342
359
|
key: 'viperswap-one',
|
|
343
360
|
name: 'ViperSwap',
|
|
344
|
-
chainId:
|
|
361
|
+
chainId: ChainId.ONE,
|
|
345
362
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/viper.png',
|
|
346
363
|
webUrl: 'https://viper.exchange/#/swap',
|
|
347
364
|
tokenlistUrl: 'https://d1xrz6ki9z98vb.cloudfront.net/venomswap/lists/venomswap-default.tokenlist.json',
|
|
@@ -349,44 +366,44 @@ exports.supportedExchanges = [
|
|
|
349
366
|
factoryAddress: '0x7D02c116b98d0965ba7B642ace0183ad8b8D2196',
|
|
350
367
|
initCodeHash: '0x162f79e638367cd45a118c778971dfd8d96c625d2798d3b71994b035cfe9b6dc',
|
|
351
368
|
baseTokens: [
|
|
352
|
-
|
|
353
|
-
|
|
369
|
+
findDefaultToken(CoinKey.ONE, ChainId.ONE),
|
|
370
|
+
findWrappedGasOnChain(ChainId.ONE),
|
|
354
371
|
{
|
|
355
372
|
address: '0xEf977d2f931C1978Db5F6747666fa1eACB0d0339',
|
|
356
373
|
symbol: '1DAI',
|
|
357
374
|
decimals: 18,
|
|
358
|
-
chainId:
|
|
375
|
+
chainId: ChainId.ONE,
|
|
359
376
|
},
|
|
360
377
|
{
|
|
361
378
|
address: '0xE176EBE47d621b984a73036B9DA5d834411ef734',
|
|
362
379
|
symbol: 'BUSD',
|
|
363
380
|
decimals: 18,
|
|
364
|
-
chainId:
|
|
381
|
+
chainId: ChainId.ONE,
|
|
365
382
|
},
|
|
366
383
|
{
|
|
367
384
|
address: '0x985458E523dB3d53125813eD68c274899e9DfAb4',
|
|
368
385
|
symbol: '1USDC',
|
|
369
386
|
decimals: 6,
|
|
370
|
-
chainId:
|
|
387
|
+
chainId: ChainId.ONE,
|
|
371
388
|
},
|
|
372
389
|
{
|
|
373
390
|
address: '0xEa589E93Ff18b1a1F1e9BaC7EF3E86Ab62addc79',
|
|
374
391
|
symbol: 'VIPER',
|
|
375
392
|
decimals: 18,
|
|
376
|
-
chainId:
|
|
393
|
+
chainId: ChainId.ONE,
|
|
377
394
|
},
|
|
378
395
|
{
|
|
379
396
|
address: '0x0dc78c79B4eB080eaD5C1d16559225a46b580694',
|
|
380
397
|
symbol: 'WAGMI',
|
|
381
398
|
decimals: 9,
|
|
382
|
-
chainId:
|
|
399
|
+
chainId: ChainId.ONE,
|
|
383
400
|
},
|
|
384
401
|
],
|
|
385
402
|
},
|
|
386
403
|
{
|
|
387
404
|
key: 'sushiswap-one',
|
|
388
405
|
name: 'SushiSwap',
|
|
389
|
-
chainId:
|
|
406
|
+
chainId: ChainId.ONE,
|
|
390
407
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/sushi.png',
|
|
391
408
|
webUrl: 'https://app.sushi.com/swap',
|
|
392
409
|
tokenlistUrl: 'https://raw.githubusercontent.com/sushiswap/list/master/lists/token-lists/default-token-list/tokens/harmony.json',
|
|
@@ -394,20 +411,20 @@ exports.supportedExchanges = [
|
|
|
394
411
|
factoryAddress: '0xc35DADB65012eC5796536bD9864eD8773aBc74C4',
|
|
395
412
|
initCodeHash: '0xe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303',
|
|
396
413
|
baseTokens: [
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
414
|
+
findWrappedGasOnChain(ChainId.ONE),
|
|
415
|
+
findDefaultToken(CoinKey.DAI, ChainId.ONE),
|
|
416
|
+
findDefaultToken(CoinKey.USDC, ChainId.ONE),
|
|
417
|
+
findDefaultToken(CoinKey.USDT, ChainId.ONE),
|
|
418
|
+
findDefaultToken(CoinKey.ETH, ChainId.ONE),
|
|
419
|
+
findDefaultToken(CoinKey.WBTC, ChainId.ONE),
|
|
420
|
+
findDefaultToken(CoinKey.SUSHI, ChainId.ONE),
|
|
404
421
|
],
|
|
405
422
|
},
|
|
406
423
|
// 43114 - Avalanche
|
|
407
424
|
{
|
|
408
425
|
key: 'sushiswap-ava',
|
|
409
426
|
name: 'SushiSwap',
|
|
410
|
-
chainId:
|
|
427
|
+
chainId: ChainId.AVA,
|
|
411
428
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/sushi.png',
|
|
412
429
|
webUrl: 'https://app.sushi.com/swap',
|
|
413
430
|
tokenlistUrl: 'https://raw.githubusercontent.com/sushiswap/list/master/lists/token-lists/default-token-list/tokens/avalanche.json',
|
|
@@ -415,20 +432,20 @@ exports.supportedExchanges = [
|
|
|
415
432
|
factoryAddress: '0xc35DADB65012eC5796536bD9864eD8773aBc74C4',
|
|
416
433
|
initCodeHash: '0xe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303',
|
|
417
434
|
baseTokens: [
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
435
|
+
findWrappedGasOnChain(ChainId.AVA),
|
|
436
|
+
findDefaultToken(CoinKey.USDC, ChainId.AVA),
|
|
437
|
+
findDefaultToken(CoinKey.USDT, ChainId.AVA),
|
|
438
|
+
findDefaultToken(CoinKey.DAI, ChainId.AVA),
|
|
439
|
+
findDefaultToken(CoinKey.WBTC, ChainId.AVA),
|
|
440
|
+
findDefaultToken(CoinKey.WETH, ChainId.AVA),
|
|
441
|
+
findDefaultToken(CoinKey.SUSHI, ChainId.AVA),
|
|
425
442
|
],
|
|
426
443
|
},
|
|
427
444
|
// 42161 - Arbitrum One
|
|
428
445
|
{
|
|
429
446
|
key: 'sushiswap-arb',
|
|
430
447
|
name: 'SushiSwap',
|
|
431
|
-
chainId:
|
|
448
|
+
chainId: ChainId.ARB,
|
|
432
449
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/sushi.png',
|
|
433
450
|
webUrl: 'https://app.sushi.com/swap',
|
|
434
451
|
tokenlistUrl: 'https://raw.githubusercontent.com/sushiswap/list/master/lists/token-lists/default-token-list/tokens/arbitrum.json',
|
|
@@ -436,16 +453,16 @@ exports.supportedExchanges = [
|
|
|
436
453
|
factoryAddress: '0xc35DADB65012eC5796536bD9864eD8773aBc74C4',
|
|
437
454
|
initCodeHash: '0xe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303',
|
|
438
455
|
baseTokens: [
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
456
|
+
findDefaultToken(CoinKey.WETH, ChainId.ARB),
|
|
457
|
+
findDefaultToken(CoinKey.WBTC, ChainId.ARB),
|
|
458
|
+
findDefaultToken(CoinKey.USDC, ChainId.ARB),
|
|
459
|
+
findDefaultToken(CoinKey.USDT, ChainId.ARB),
|
|
460
|
+
findDefaultToken(CoinKey.SUSHI, ChainId.ARB),
|
|
444
461
|
{
|
|
445
462
|
address: '0x3e6648c5a70a150a88bce65f4ad4d506fe15d2af',
|
|
446
463
|
symbol: 'SPELL',
|
|
447
464
|
decimals: 18,
|
|
448
|
-
chainId:
|
|
465
|
+
chainId: ChainId.ARB,
|
|
449
466
|
},
|
|
450
467
|
],
|
|
451
468
|
},
|
|
@@ -474,7 +491,7 @@ exports.supportedExchanges = [
|
|
|
474
491
|
{
|
|
475
492
|
key: 'sushiswap-mor',
|
|
476
493
|
name: 'SushiSwap',
|
|
477
|
-
chainId:
|
|
494
|
+
chainId: ChainId.MOR,
|
|
478
495
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/sushi.png',
|
|
479
496
|
webUrl: 'https://app.sushi.com/swap',
|
|
480
497
|
tokenlistUrl: 'https://raw.githubusercontent.com/sushiswap/list/master/lists/token-lists/default-token-list/tokens/moonriver.json',
|
|
@@ -482,36 +499,36 @@ exports.supportedExchanges = [
|
|
|
482
499
|
factoryAddress: '0xc35DADB65012eC5796536bD9864eD8773aBc74C4',
|
|
483
500
|
initCodeHash: '0xe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303',
|
|
484
501
|
baseTokens: [
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
502
|
+
findWrappedGasOnChain(ChainId.MOR),
|
|
503
|
+
findDefaultToken(CoinKey.WETH, ChainId.MOR),
|
|
504
|
+
findDefaultToken(CoinKey.WBTC, ChainId.MOR),
|
|
505
|
+
findDefaultToken(CoinKey.USDC, ChainId.MOR),
|
|
506
|
+
findDefaultToken(CoinKey.USDT, ChainId.MOR),
|
|
507
|
+
findDefaultToken(CoinKey.SUSHI, ChainId.MOR),
|
|
491
508
|
{
|
|
492
509
|
address: '0x1a93b23281cc1cde4c4741353f3064709a16197d',
|
|
493
510
|
symbol: 'FRAX',
|
|
494
511
|
decimals: 18,
|
|
495
|
-
chainId:
|
|
512
|
+
chainId: ChainId.MOR,
|
|
496
513
|
},
|
|
497
514
|
{
|
|
498
515
|
address: '0x0cae51e1032e8461f4806e26332c030e34de3adb',
|
|
499
516
|
symbol: 'MIM',
|
|
500
517
|
decimals: 18,
|
|
501
|
-
chainId:
|
|
518
|
+
chainId: ChainId.MOR,
|
|
502
519
|
},
|
|
503
520
|
{
|
|
504
521
|
address: '0x3d2d044e8c6dad46b4f7896418d3d4dfaad902be',
|
|
505
522
|
symbol: 'aROME',
|
|
506
523
|
decimals: 9,
|
|
507
|
-
chainId:
|
|
524
|
+
chainId: ChainId.MOR,
|
|
508
525
|
},
|
|
509
526
|
],
|
|
510
527
|
},
|
|
511
528
|
{
|
|
512
529
|
key: 'solarbeam-mor',
|
|
513
530
|
name: 'Solarbeam',
|
|
514
|
-
chainId:
|
|
531
|
+
chainId: ChainId.MOR,
|
|
515
532
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/solarbeam.png',
|
|
516
533
|
webUrl: 'https://app.solarbeam.io/exchange/swap',
|
|
517
534
|
tokenlistUrl: 'https://raw.githubusercontent.com/solarbeamio/solarbeam-tokenlist/main/solarbeam.tokenlist.json',
|
|
@@ -519,19 +536,19 @@ exports.supportedExchanges = [
|
|
|
519
536
|
factoryAddress: '0x049581aEB6Fe262727f290165C29BDAB065a1B68',
|
|
520
537
|
initCodeHash: '0x9a100ded5f254443fbd264cb7e87831e398a8b642e061670a9bc35ba27293dbf',
|
|
521
538
|
baseTokens: [
|
|
522
|
-
|
|
523
|
-
|
|
539
|
+
findWrappedGasOnChain(ChainId.MOR),
|
|
540
|
+
findDefaultToken(CoinKey.USDC, ChainId.MOR),
|
|
524
541
|
{
|
|
525
542
|
address: '0x1a93b23281cc1cde4c4741353f3064709a16197d',
|
|
526
543
|
symbol: 'FRAX',
|
|
527
544
|
decimals: 18,
|
|
528
|
-
chainId:
|
|
545
|
+
chainId: ChainId.MOR,
|
|
529
546
|
},
|
|
530
547
|
{
|
|
531
548
|
address: '0x6bd193ee6d2104f14f94e2ca6efefae561a4334b',
|
|
532
549
|
symbol: 'SOLAR',
|
|
533
550
|
decimals: 18,
|
|
534
|
-
chainId:
|
|
551
|
+
chainId: ChainId.MOR,
|
|
535
552
|
},
|
|
536
553
|
],
|
|
537
554
|
},
|
|
@@ -539,7 +556,7 @@ exports.supportedExchanges = [
|
|
|
539
556
|
{
|
|
540
557
|
key: 'sushiswap-hec',
|
|
541
558
|
name: 'SushiSwap',
|
|
542
|
-
chainId:
|
|
559
|
+
chainId: ChainId.HEC,
|
|
543
560
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/sushi.png',
|
|
544
561
|
webUrl: 'https://app.sushi.com/swap',
|
|
545
562
|
tokenlistUrl: 'https://raw.githubusercontent.com/sushiswap/list/master/lists/token-lists/default-token-list/tokens/heco.json',
|
|
@@ -547,22 +564,22 @@ exports.supportedExchanges = [
|
|
|
547
564
|
factoryAddress: '0xc35DADB65012eC5796536bD9864eD8773aBc74C4',
|
|
548
565
|
initCodeHash: '0xe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303',
|
|
549
566
|
baseTokens: [
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
567
|
+
findWrappedGasOnChain(ChainId.HEC),
|
|
568
|
+
findDefaultToken(CoinKey.ETH, ChainId.HEC),
|
|
569
|
+
findDefaultToken(CoinKey.USDC, ChainId.HEC),
|
|
570
|
+
findDefaultToken(CoinKey.USDT, ChainId.HEC),
|
|
571
|
+
findDefaultToken(CoinKey.SUSHI, ChainId.HEC),
|
|
555
572
|
{
|
|
556
573
|
address: '0x66a79d23e58475d2738179ca52cd0b41d73f0bea',
|
|
557
574
|
symbol: 'HBTC',
|
|
558
575
|
decimals: 18,
|
|
559
|
-
chainId:
|
|
576
|
+
chainId: ChainId.HEC,
|
|
560
577
|
},
|
|
561
578
|
{
|
|
562
579
|
address: '0x3d760a45d0887dfd89a2f5385a236b29cb46ed2a',
|
|
563
580
|
symbol: 'DAIHECO',
|
|
564
581
|
decimals: 18,
|
|
565
|
-
chainId:
|
|
582
|
+
chainId: ChainId.HEC,
|
|
566
583
|
},
|
|
567
584
|
],
|
|
568
585
|
},
|
|
@@ -570,7 +587,7 @@ exports.supportedExchanges = [
|
|
|
570
587
|
{
|
|
571
588
|
key: 'sushiswap-okt',
|
|
572
589
|
name: 'SushiSwap',
|
|
573
|
-
chainId:
|
|
590
|
+
chainId: ChainId.OKT,
|
|
574
591
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/sushi.png',
|
|
575
592
|
webUrl: 'https://app.sushi.com/swap',
|
|
576
593
|
tokenlistUrl: 'https://raw.githubusercontent.com/sushiswap/list/master/lists/token-lists/default-token-list/tokens/okex.json',
|
|
@@ -578,19 +595,19 @@ exports.supportedExchanges = [
|
|
|
578
595
|
factoryAddress: '0xc35DADB65012eC5796536bD9864eD8773aBc74C4',
|
|
579
596
|
initCodeHash: '0xe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303',
|
|
580
597
|
baseTokens: [
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
598
|
+
findWrappedGasOnChain(ChainId.OKT),
|
|
599
|
+
findDefaultToken(CoinKey.ETH, ChainId.OKT),
|
|
600
|
+
findDefaultToken(CoinKey.WBTC, ChainId.OKT),
|
|
601
|
+
findDefaultToken(CoinKey.DAI, ChainId.OKT),
|
|
602
|
+
findDefaultToken(CoinKey.USDC, ChainId.OKT),
|
|
603
|
+
findDefaultToken(CoinKey.USDT, ChainId.OKT),
|
|
604
|
+
findDefaultToken(CoinKey.SUSHI, ChainId.OKT),
|
|
588
605
|
],
|
|
589
606
|
},
|
|
590
607
|
{
|
|
591
608
|
key: 'jswap-okt',
|
|
592
609
|
name: 'JSwap',
|
|
593
|
-
chainId:
|
|
610
|
+
chainId: ChainId.OKT,
|
|
594
611
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/jswap.png',
|
|
595
612
|
webUrl: 'https://app.jswap.finance/#/swap',
|
|
596
613
|
tokenlistUrl: 'https://resources.jswap.finance/token-list/oec/extended.tokenlist.json',
|
|
@@ -598,26 +615,26 @@ exports.supportedExchanges = [
|
|
|
598
615
|
factoryAddress: '0xd654CbF99F2907F06c88399AE123606121247D5C',
|
|
599
616
|
initCodeHash: '0xf6608394468275c0df88a8568e9fbf7295a0aebddd5ae966ce6dbf5bb4ee68a0',
|
|
600
617
|
baseTokens: [
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
618
|
+
findDefaultToken(CoinKey.OKT, ChainId.OKT),
|
|
619
|
+
findDefaultToken(CoinKey.ETH, ChainId.OKT),
|
|
620
|
+
findDefaultToken(CoinKey.USDT, ChainId.OKT),
|
|
604
621
|
{
|
|
605
622
|
address: '0x54e4622dc504176b3bb432dccaf504569699a7ff',
|
|
606
623
|
symbol: 'BTCK',
|
|
607
624
|
decimals: 18,
|
|
608
|
-
chainId:
|
|
625
|
+
chainId: ChainId.OKT,
|
|
609
626
|
},
|
|
610
627
|
{
|
|
611
628
|
address: '0xdf54b6c6195ea4d948d03bfd818d365cf175cfc2',
|
|
612
629
|
symbol: 'OKB',
|
|
613
630
|
decimals: 18,
|
|
614
|
-
chainId:
|
|
631
|
+
chainId: ChainId.OKT,
|
|
615
632
|
},
|
|
616
633
|
{
|
|
617
634
|
address: '0x5fac926bf1e638944bb16fb5b787b5ba4bc85b0a',
|
|
618
635
|
symbol: 'JF',
|
|
619
636
|
decimals: 18,
|
|
620
|
-
chainId:
|
|
637
|
+
chainId: ChainId.OKT,
|
|
621
638
|
},
|
|
622
639
|
],
|
|
623
640
|
},
|
|
@@ -625,7 +642,7 @@ exports.supportedExchanges = [
|
|
|
625
642
|
{
|
|
626
643
|
key: 'cronaswap-cro',
|
|
627
644
|
name: 'CronaSwap',
|
|
628
|
-
chainId:
|
|
645
|
+
chainId: ChainId.CRO,
|
|
629
646
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/cronaswap.png',
|
|
630
647
|
webUrl: 'https://app.cronaswap.org/swap',
|
|
631
648
|
tokenlistUrl: 'https://raw.githubusercontent.com/cronaswap/default-token-list/main/assets/tokens/cronos.json',
|
|
@@ -633,13 +650,13 @@ exports.supportedExchanges = [
|
|
|
633
650
|
factoryAddress: '0x73A48f8f521EB31c55c0e1274dB0898dE599Cb11',
|
|
634
651
|
initCodeHash: '0xc93158cffa5b575e32566e81e847754ce517f8fa988d3e25cf346d916216e06f',
|
|
635
652
|
baseTokens: [
|
|
636
|
-
|
|
637
|
-
|
|
653
|
+
findDefaultToken(CoinKey.CRO, ChainId.CRO),
|
|
654
|
+
findDefaultToken(CoinKey.USDC, ChainId.CRO),
|
|
638
655
|
{
|
|
639
656
|
address: '0xadbd1231fb360047525bedf962581f3eee7b49fe',
|
|
640
657
|
symbol: 'CRONA',
|
|
641
658
|
decimals: 18,
|
|
642
|
-
chainId:
|
|
659
|
+
chainId: ChainId.CRO,
|
|
643
660
|
},
|
|
644
661
|
],
|
|
645
662
|
},
|
|
@@ -648,7 +665,7 @@ exports.supportedExchanges = [
|
|
|
648
665
|
{
|
|
649
666
|
key: 'stellaswap-moo',
|
|
650
667
|
name: 'StellaSwap',
|
|
651
|
-
chainId:
|
|
668
|
+
chainId: ChainId.MOO,
|
|
652
669
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/stellaswap.png',
|
|
653
670
|
webUrl: 'https://app.stellaswap.com/',
|
|
654
671
|
tokenlistUrl: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/tokens/stellaswap.json',
|
|
@@ -660,26 +677,26 @@ exports.supportedExchanges = [
|
|
|
660
677
|
address: '0x0E358838ce72d5e61E0018a2ffaC4bEC5F4c88d2',
|
|
661
678
|
symbol: 'STELLA',
|
|
662
679
|
decimals: 18,
|
|
663
|
-
chainId:
|
|
680
|
+
chainId: ChainId.MOO,
|
|
664
681
|
},
|
|
665
682
|
{
|
|
666
683
|
address: '0x818ec0A7Fe18Ff94269904fCED6AE3DaE6d6dC0b',
|
|
667
684
|
symbol: 'USDC',
|
|
668
685
|
decimals: 6,
|
|
669
|
-
chainId:
|
|
686
|
+
chainId: ChainId.MOO,
|
|
670
687
|
},
|
|
671
688
|
{
|
|
672
689
|
address: '0xAcc15dC74880C9944775448304B263D191c6077F',
|
|
673
690
|
symbol: 'WGLMR',
|
|
674
691
|
decimals: 18,
|
|
675
|
-
chainId:
|
|
692
|
+
chainId: ChainId.MOO,
|
|
676
693
|
},
|
|
677
694
|
],
|
|
678
695
|
},
|
|
679
696
|
{
|
|
680
697
|
key: 'beamswap-moo',
|
|
681
698
|
name: 'BeamSwap',
|
|
682
|
-
chainId:
|
|
699
|
+
chainId: ChainId.MOO,
|
|
683
700
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/beamswap.png',
|
|
684
701
|
webUrl: 'https://app.beamswap.io/',
|
|
685
702
|
tokenlistUrl: 'https://raw.githubusercontent.com/BeamSwap/beamswap-tokenlist/main/tokenlist.json',
|
|
@@ -687,9 +704,9 @@ exports.supportedExchanges = [
|
|
|
687
704
|
factoryAddress: '0x985BcA32293A7A496300a48081947321177a86FD',
|
|
688
705
|
initCodeHash: '0xe31da4209ffcce713230a74b5287fa8ec84797c9e77e1f7cfeccea015cdc97ea',
|
|
689
706
|
baseTokens: [
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
707
|
+
findWrappedGasOnChain(ChainId.MOO),
|
|
708
|
+
findDefaultToken(CoinKey.BNB, ChainId.MOO),
|
|
709
|
+
findDefaultToken(CoinKey.ETH, ChainId.MOO),
|
|
693
710
|
{
|
|
694
711
|
chainId: 1284,
|
|
695
712
|
address: '0xeFAeeE334F0Fd1712f9a8cc375f427D9Cdd40d73',
|
|
@@ -746,7 +763,7 @@ exports.supportedExchanges = [
|
|
|
746
763
|
{
|
|
747
764
|
key: 'sushiswap-fus',
|
|
748
765
|
name: 'SushiSwap',
|
|
749
|
-
chainId:
|
|
766
|
+
chainId: ChainId.FUS,
|
|
750
767
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/sushi.png',
|
|
751
768
|
webUrl: 'https://app.sushi.com/swap',
|
|
752
769
|
tokenlistUrl: 'https://raw.githubusercontent.com/sushiswap/list/master/lists/token-lists/default-token-list/tokens/fuse.json',
|
|
@@ -754,20 +771,20 @@ exports.supportedExchanges = [
|
|
|
754
771
|
factoryAddress: '0x43eA90e2b786728520e4f930d2A71a477BF2737C',
|
|
755
772
|
initCodeHash: '0x1901958ef8b470f2c0a3875a79ee0bd303866d85102c0f1ea820d317024d50b5',
|
|
756
773
|
baseTokens: [
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
774
|
+
findWrappedGasOnChain(ChainId.FUS),
|
|
775
|
+
findDefaultToken(CoinKey.USDC, ChainId.FUS),
|
|
776
|
+
findDefaultToken(CoinKey.USDT, ChainId.FUS),
|
|
777
|
+
findDefaultToken(CoinKey.WBTC, ChainId.FUS),
|
|
778
|
+
findDefaultToken(CoinKey.WETH, ChainId.FUS),
|
|
779
|
+
findDefaultToken(CoinKey.DAI, ChainId.FUS),
|
|
780
|
+
findDefaultToken(CoinKey.SUSHI, ChainId.FUS),
|
|
764
781
|
],
|
|
765
782
|
},
|
|
766
783
|
// 42220 Celo Mainnet
|
|
767
784
|
{
|
|
768
785
|
key: 'ubeswap-cel',
|
|
769
786
|
name: 'UbeSwap',
|
|
770
|
-
chainId:
|
|
787
|
+
chainId: ChainId.CEL,
|
|
771
788
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/ubeswap.png',
|
|
772
789
|
webUrl: 'https://app.ubeswap.org/#/swap',
|
|
773
790
|
graph: 'https://api.thegraph.com/subgraphs/name/ubeswap/ubeswap',
|
|
@@ -776,25 +793,25 @@ exports.supportedExchanges = [
|
|
|
776
793
|
factoryAddress: '0x62d5b84bE28a183aBB507E125B384122D2C25fAE',
|
|
777
794
|
initCodeHash: '0xb3b8ff62960acea3a88039ebcf80699f15786f1b17cebd82802f7375827a339c',
|
|
778
795
|
baseTokens: [
|
|
779
|
-
|
|
796
|
+
findWrappedGasOnChain(ChainId.CEL),
|
|
780
797
|
{
|
|
781
798
|
address: '0x918146359264c492bd6934071c6bd31c854edbc3',
|
|
782
799
|
symbol: 'mCUSD',
|
|
783
800
|
decimals: 18,
|
|
784
|
-
chainId:
|
|
801
|
+
chainId: ChainId.CEL,
|
|
785
802
|
},
|
|
786
803
|
{
|
|
787
804
|
address: '0xe273ad7ee11dcfaa87383ad5977ee1504ac07568',
|
|
788
805
|
symbol: 'mCEUR',
|
|
789
806
|
decimals: 18,
|
|
790
|
-
chainId:
|
|
807
|
+
chainId: ChainId.CEL,
|
|
791
808
|
},
|
|
792
809
|
],
|
|
793
810
|
},
|
|
794
811
|
{
|
|
795
812
|
key: 'sushiswap-cel',
|
|
796
813
|
name: 'SushiSwap',
|
|
797
|
-
chainId:
|
|
814
|
+
chainId: ChainId.CEL,
|
|
798
815
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/sushi.png',
|
|
799
816
|
webUrl: 'https://app.sushi.com/swap',
|
|
800
817
|
tokenlistUrl: 'https://raw.githubusercontent.com/sushiswap/list/master/lists/token-lists/default-token-list/tokens/celo.json',
|
|
@@ -802,22 +819,22 @@ exports.supportedExchanges = [
|
|
|
802
819
|
factoryAddress: '0xc35DADB65012eC5796536bD9864eD8773aBc74C4',
|
|
803
820
|
initCodeHash: '0xe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303',
|
|
804
821
|
baseTokens: [
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
822
|
+
findWrappedGasOnChain(ChainId.CEL),
|
|
823
|
+
findDefaultToken(CoinKey.USDC, ChainId.CEL),
|
|
824
|
+
findDefaultToken(CoinKey.WBTC, ChainId.CEL),
|
|
825
|
+
findDefaultToken(CoinKey.WETH, ChainId.CEL),
|
|
826
|
+
findDefaultToken(CoinKey.SUSHI, ChainId.CEL),
|
|
810
827
|
{
|
|
811
828
|
address: '0x765de816845861e75a25fca122bb6898b8b1282a',
|
|
812
829
|
symbol: 'cUSD',
|
|
813
830
|
decimals: 18,
|
|
814
|
-
chainId:
|
|
831
|
+
chainId: ChainId.CEL,
|
|
815
832
|
},
|
|
816
833
|
{
|
|
817
834
|
address: '0xd8763cba276a3738e6de85b4b3bf5fded6d6ca73',
|
|
818
835
|
symbol: 'cEUR',
|
|
819
836
|
decimals: 18,
|
|
820
|
-
chainId:
|
|
837
|
+
chainId: ChainId.CEL,
|
|
821
838
|
},
|
|
822
839
|
],
|
|
823
840
|
},
|
|
@@ -861,7 +878,7 @@ exports.supportedExchanges = [
|
|
|
861
878
|
{
|
|
862
879
|
key: 'oolongswap-bob',
|
|
863
880
|
name: 'OolongSwap',
|
|
864
|
-
chainId:
|
|
881
|
+
chainId: ChainId.BOB,
|
|
865
882
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/oolongswap.png',
|
|
866
883
|
webUrl: 'https://oolongswap.com/#/swap',
|
|
867
884
|
tokenlistUrl: 'https://raw.githubusercontent.com/OolongSwap/boba-community-token-list/main/build/boba.tokenlist.json',
|
|
@@ -869,23 +886,23 @@ exports.supportedExchanges = [
|
|
|
869
886
|
factoryAddress: '0x7DDaF116889D655D1c486bEB95017a8211265d29',
|
|
870
887
|
initCodeHash: '0x1db9efb13a1398e31bb71895c392fa1217130f78dc65080174491adcec5da9b9',
|
|
871
888
|
baseTokens: [
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
889
|
+
findDefaultToken(CoinKey.ETH, ChainId.BOB),
|
|
890
|
+
findWrappedGasOnChain(ChainId.BOB),
|
|
891
|
+
findDefaultToken(CoinKey.WBTC, ChainId.BOB),
|
|
892
|
+
findDefaultToken(CoinKey.DAI, ChainId.BOB),
|
|
893
|
+
findDefaultToken(CoinKey.USDC, ChainId.BOB),
|
|
894
|
+
findDefaultToken(CoinKey.USDT, ChainId.BOB),
|
|
878
895
|
{
|
|
879
896
|
address: '0xa18bf3994c0cc6e3b63ac420308e5383f53120d7',
|
|
880
897
|
symbol: 'BOBA',
|
|
881
898
|
decimals: 18,
|
|
882
|
-
chainId:
|
|
899
|
+
chainId: ChainId.BOB,
|
|
883
900
|
},
|
|
884
901
|
{
|
|
885
902
|
address: '0x5008f837883ea9a07271a1b5eb0658404f5a9610',
|
|
886
903
|
symbol: 'OLO',
|
|
887
904
|
decimals: 18,
|
|
888
|
-
chainId:
|
|
905
|
+
chainId: ChainId.BOB,
|
|
889
906
|
},
|
|
890
907
|
],
|
|
891
908
|
},
|
|
@@ -894,7 +911,7 @@ exports.supportedExchanges = [
|
|
|
894
911
|
{
|
|
895
912
|
key: 'uniswap-rop',
|
|
896
913
|
name: 'Uniswap',
|
|
897
|
-
chainId:
|
|
914
|
+
chainId: ChainId.ROP,
|
|
898
915
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/uniswap.png',
|
|
899
916
|
webUrl: 'https://app.uniswap.org/',
|
|
900
917
|
tokenlistUrl: 'https://raw.githubusercontent.com/compound-finance/token-list/master/compound.tokenlist.json',
|
|
@@ -902,8 +919,8 @@ exports.supportedExchanges = [
|
|
|
902
919
|
factoryAddress: '0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f',
|
|
903
920
|
initCodeHash: '0x96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f',
|
|
904
921
|
baseTokens: [
|
|
905
|
-
|
|
906
|
-
|
|
922
|
+
findDefaultToken(CoinKey.ETH, ChainId.ROP),
|
|
923
|
+
findDefaultToken(CoinKey.WETH, ChainId.ROP),
|
|
907
924
|
],
|
|
908
925
|
},
|
|
909
926
|
// TODO: sushiswap does not work properly
|
|
@@ -922,7 +939,7 @@ exports.supportedExchanges = [
|
|
|
922
939
|
{
|
|
923
940
|
key: 'uniswap-rin',
|
|
924
941
|
name: 'Uniswap',
|
|
925
|
-
chainId:
|
|
942
|
+
chainId: ChainId.RIN,
|
|
926
943
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/uniswap.png',
|
|
927
944
|
webUrl: 'https://app.uniswap.org/',
|
|
928
945
|
tokenlistUrl: 'https://raw.githubusercontent.com/compound-finance/token-list/master/compound.tokenlist.json',
|
|
@@ -930,8 +947,8 @@ exports.supportedExchanges = [
|
|
|
930
947
|
factoryAddress: '0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f',
|
|
931
948
|
initCodeHash: '0x96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f',
|
|
932
949
|
baseTokens: [
|
|
933
|
-
|
|
934
|
-
|
|
950
|
+
findDefaultToken(CoinKey.ETH, ChainId.RIN),
|
|
951
|
+
findDefaultToken(CoinKey.WETH, ChainId.RIN),
|
|
935
952
|
],
|
|
936
953
|
},
|
|
937
954
|
// TODO: sushiswap does not work properly
|
|
@@ -950,7 +967,7 @@ exports.supportedExchanges = [
|
|
|
950
967
|
{
|
|
951
968
|
key: 'uniswap-gor',
|
|
952
969
|
name: 'Uniswap',
|
|
953
|
-
chainId:
|
|
970
|
+
chainId: ChainId.GOR,
|
|
954
971
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/uniswap.png',
|
|
955
972
|
webUrl: 'https://app.uniswap.org/',
|
|
956
973
|
tokenlistUrl: 'https://raw.githubusercontent.com/compound-finance/token-list/master/compound.tokenlist.json',
|
|
@@ -958,8 +975,8 @@ exports.supportedExchanges = [
|
|
|
958
975
|
factoryAddress: '0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f',
|
|
959
976
|
initCodeHash: '0x96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f',
|
|
960
977
|
baseTokens: [
|
|
961
|
-
|
|
962
|
-
|
|
978
|
+
findDefaultToken(CoinKey.ETH, ChainId.GOR),
|
|
979
|
+
findDefaultToken(CoinKey.WETH, ChainId.GOR),
|
|
963
980
|
],
|
|
964
981
|
},
|
|
965
982
|
// TODO: sushiswap does not work properly
|
|
@@ -979,7 +996,7 @@ exports.supportedExchanges = [
|
|
|
979
996
|
{
|
|
980
997
|
key: 'uniswap-kov',
|
|
981
998
|
name: 'Uniswap',
|
|
982
|
-
chainId:
|
|
999
|
+
chainId: ChainId.KOV,
|
|
983
1000
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/uniswap.png',
|
|
984
1001
|
webUrl: 'https://app.uniswap.org/',
|
|
985
1002
|
tokenlistUrl: 'https://raw.githubusercontent.com/compound-finance/token-list/master/compound.tokenlist.json',
|
|
@@ -987,8 +1004,8 @@ exports.supportedExchanges = [
|
|
|
987
1004
|
factoryAddress: '0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f',
|
|
988
1005
|
initCodeHash: '0x96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f',
|
|
989
1006
|
baseTokens: [
|
|
990
|
-
|
|
991
|
-
|
|
1007
|
+
findDefaultToken(CoinKey.ETH, ChainId.KOV),
|
|
1008
|
+
findDefaultToken(CoinKey.WETH, ChainId.KOV),
|
|
992
1009
|
],
|
|
993
1010
|
},
|
|
994
1011
|
// TODO: sushiswap does not work properly
|
|
@@ -1009,7 +1026,7 @@ exports.supportedExchanges = [
|
|
|
1009
1026
|
{
|
|
1010
1027
|
key: 'sushiswap-onet',
|
|
1011
1028
|
name: 'SushiSwap',
|
|
1012
|
-
chainId:
|
|
1029
|
+
chainId: ChainId.ONET,
|
|
1013
1030
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/sushi.png',
|
|
1014
1031
|
webUrl: 'https://app.sushi.com/swap',
|
|
1015
1032
|
tokenlistUrl: 'https://raw.githubusercontent.com/sushiswap/list/master/lists/token-lists/default-token-list/tokens/harmony-testnet.json',
|
|
@@ -1023,25 +1040,24 @@ exports.supportedExchanges = [
|
|
|
1023
1040
|
{
|
|
1024
1041
|
key: 'sushiswap-bsct',
|
|
1025
1042
|
name: 'SushiSwap',
|
|
1026
|
-
chainId:
|
|
1043
|
+
chainId: ChainId.BSCT,
|
|
1027
1044
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/sushi.png',
|
|
1028
1045
|
webUrl: 'https://app.sushi.com/swap',
|
|
1029
1046
|
tokenlistUrl: 'https://raw.githubusercontent.com/sushiswap/list/master/lists/token-lists/default-token-list/tokens/harmony-testnet.json',
|
|
1030
1047
|
routerAddress: '0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506',
|
|
1031
1048
|
factoryAddress: '0xc35DADB65012eC5796536bD9864eD8773aBc74C4',
|
|
1032
1049
|
initCodeHash: '0xe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303',
|
|
1033
|
-
baseTokens: [
|
|
1050
|
+
baseTokens: [findWrappedGasOnChain(ChainId.ONET)],
|
|
1034
1051
|
},
|
|
1035
1052
|
];
|
|
1036
1053
|
/**
|
|
1037
1054
|
* @deprecated
|
|
1038
1055
|
* Available exchanges should be queried from the API
|
|
1039
1056
|
*/
|
|
1040
|
-
|
|
1041
|
-
|
|
1057
|
+
export const getExchangeByKey = (key) => {
|
|
1058
|
+
const exchange = supportedExchanges.find((exchange) => exchange.key === key);
|
|
1042
1059
|
if (!exchange) {
|
|
1043
1060
|
throw new Error('Invalid key');
|
|
1044
1061
|
}
|
|
1045
1062
|
return exchange;
|
|
1046
1063
|
};
|
|
1047
|
-
exports.getExchangeByKey = getExchangeByKey;
|