@lifi/types 8.3.0 → 9.0.0-alpha.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.
Files changed (46) hide show
  1. package/CHANGELOG.md +0 -7
  2. package/dist/api.d.ts +25 -4
  3. package/dist/api.js +5 -2
  4. package/dist/base.d.ts +2 -24
  5. package/dist/bridges.d.ts +14 -2
  6. package/dist/bridges.js +0 -148
  7. package/dist/chains/EVMChain.d.ts +0 -1
  8. package/dist/chains/EVMChain.js +1 -4
  9. package/dist/chains/index.d.ts +0 -2
  10. package/dist/chains/index.js +0 -2
  11. package/dist/cjs/api.d.ts +25 -4
  12. package/dist/cjs/api.js +7 -3
  13. package/dist/cjs/base.d.ts +2 -24
  14. package/dist/cjs/bridges.d.ts +14 -2
  15. package/dist/cjs/bridges.js +1 -149
  16. package/dist/cjs/chains/EVMChain.d.ts +0 -1
  17. package/dist/cjs/chains/EVMChain.js +0 -6
  18. package/dist/cjs/chains/index.d.ts +0 -2
  19. package/dist/cjs/chains/index.js +0 -2
  20. package/dist/cjs/exchanges.d.ts +4 -14
  21. package/dist/cjs/exchanges.js +1 -1090
  22. package/dist/cjs/index.d.ts +3 -5
  23. package/dist/cjs/index.js +3 -5
  24. package/dist/cjs/step.d.ts +8 -6
  25. package/dist/exchanges.d.ts +4 -14
  26. package/dist/exchanges.js +0 -1088
  27. package/dist/index.d.ts +3 -5
  28. package/dist/index.js +3 -5
  29. package/dist/step.d.ts +8 -6
  30. package/package.json +12 -15
  31. package/dist/chains/chain.utils.d.ts +0 -4
  32. package/dist/chains/chain.utils.js +0 -21
  33. package/dist/chains/supported.chains.d.ts +0 -5
  34. package/dist/chains/supported.chains.js +0 -1166
  35. package/dist/cjs/chains/chain.utils.d.ts +0 -4
  36. package/dist/cjs/chains/chain.utils.js +0 -26
  37. package/dist/cjs/chains/supported.chains.d.ts +0 -5
  38. package/dist/cjs/chains/supported.chains.js +0 -1169
  39. package/dist/cjs/coins.d.ts +0 -9
  40. package/dist/cjs/coins.js +0 -1841
  41. package/dist/cjs/multicall.d.ts +0 -3
  42. package/dist/cjs/multicall.js +0 -79
  43. package/dist/coins.d.ts +0 -9
  44. package/dist/coins.js +0 -1834
  45. package/dist/multicall.d.ts +0 -3
  46. package/dist/multicall.js +0 -76
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getExchangeByKey = exports.supportedExchanges = exports.supportedExchangeAggregators = exports.ExchangeTool = void 0;
4
- const _1 = require(".");
3
+ exports.ExchangeTool = void 0;
5
4
  /**
6
5
  * @deprecated
7
6
  * These values are now obtainable from the LI.FI API
@@ -14,1091 +13,3 @@ var ExchangeTool;
14
13
  ExchangeTool["zerox"] = "0x";
15
14
  ExchangeTool["dodo"] = "dodo";
16
15
  })(ExchangeTool = exports.ExchangeTool || (exports.ExchangeTool = {}));
17
- /**
18
- * @deprecated
19
- * These values are now obtainable from the LI.FI API
20
- */
21
- exports.supportedExchangeAggregators = [
22
- {
23
- key: ExchangeTool.oneinch,
24
- name: '1inch',
25
- logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/oneinch.png',
26
- webUrl: 'https://app.1inch.io/',
27
- },
28
- {
29
- key: ExchangeTool.paraswap,
30
- name: 'ParaSwap',
31
- logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/paraswap.png',
32
- webUrl: 'https://paraswap.io/',
33
- },
34
- {
35
- key: ExchangeTool.openocean,
36
- name: 'OpenOcean',
37
- logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/openocean.png',
38
- webUrl: 'https://openocean.finance/classic',
39
- },
40
- {
41
- key: ExchangeTool.zerox,
42
- name: '0x',
43
- logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/zerox.png',
44
- webUrl: 'https://matcha.xyz/markets/',
45
- },
46
- {
47
- key: ExchangeTool.dodo,
48
- name: 'DODO',
49
- logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/dodo.png',
50
- webUrl: 'https://app.dodoex.io/',
51
- },
52
- ];
53
- /**
54
- * @deprecated
55
- * These values are now obtainable from the LI.FI API
56
- */ exports.supportedExchanges = [
57
- // 1 - Ethereum
58
- {
59
- key: 'uniswap-eth',
60
- name: 'UniswapV2',
61
- chainId: _1.ChainId.ETH,
62
- logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/uniswap.png',
63
- webUrl: 'https://app.uniswap.org/#/swap',
64
- graph: 'https://api.thegraph.com/subgraphs/name/uniswap/uniswap-v2',
65
- tokenlistUrl: 'https://gateway.ipfs.io/ipns/tokens.uniswap.org',
66
- routerAddress: '0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D',
67
- factoryAddress: '0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f',
68
- initCodeHash: '0x96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f',
69
- baseTokens: [
70
- (0, _1.findWrappedGasOnChain)(_1.ChainId.ETH),
71
- (0, _1.findDefaultToken)(_1.CoinKey.DAI, _1.ChainId.ETH),
72
- (0, _1.findDefaultToken)(_1.CoinKey.USDC, _1.ChainId.ETH),
73
- (0, _1.findDefaultToken)(_1.CoinKey.USDT, _1.ChainId.ETH),
74
- (0, _1.findDefaultToken)(_1.CoinKey.WBTC, _1.ChainId.ETH),
75
- ],
76
- },
77
- {
78
- key: 'sushiswap-eth',
79
- name: 'SushiSwap',
80
- chainId: _1.ChainId.ETH,
81
- logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/sushi.png',
82
- webUrl: 'https://app.sushi.com/swap',
83
- graph: 'https://api.thegraph.com/subgraphs/name/sushiswap/exchange',
84
- tokenlistUrl: 'https://raw.githubusercontent.com/sushiswapclassic/token-list/master/sushiswap.tokenlist.json',
85
- routerAddress: '0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F',
86
- factoryAddress: '0xC0AEe478e3658e2610c5F7A4A2E1777cE9e4f2Ac',
87
- initCodeHash: '0xe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303',
88
- baseTokens: [
89
- (0, _1.findWrappedGasOnChain)(_1.ChainId.ETH),
90
- (0, _1.findDefaultToken)(_1.CoinKey.DAI, _1.ChainId.ETH),
91
- (0, _1.findDefaultToken)(_1.CoinKey.USDC, _1.ChainId.ETH),
92
- (0, _1.findDefaultToken)(_1.CoinKey.USDT, _1.ChainId.ETH),
93
- (0, _1.findDefaultToken)(_1.CoinKey.WBTC, _1.ChainId.ETH),
94
- {
95
- address: '0x383518188c0c6d7730d91b2c03a03c837814a899',
96
- symbol: 'OHM',
97
- decimals: 9,
98
- chainId: _1.ChainId.ETH,
99
- },
100
- (0, _1.findDefaultToken)(_1.CoinKey.SUSHI, _1.ChainId.ETH),
101
- ],
102
- },
103
- // 137 - Polygon
104
- {
105
- key: 'quickswap-pol',
106
- name: 'Quickswap',
107
- chainId: _1.ChainId.POL,
108
- logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/quick.png',
109
- webUrl: 'https://quickswap.exchange/',
110
- graph: 'https://api.thegraph.com/subgraphs/name/sameepsi/quickswap06',
111
- tokenlistUrl: 'https://unpkg.com/quickswap-default-token-list@1.0.71/build/quickswap-default.tokenlist.json',
112
- routerAddress: '0xa5E0829CaCEd8fFDD4De3c43696c57F7D7A678ff',
113
- factoryAddress: '0x5757371414417b8C6CAad45bAeF941aBc7d3Ab32',
114
- initCodeHash: '0x96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f',
115
- baseTokens: [
116
- (0, _1.findWrappedGasOnChain)(_1.ChainId.POL),
117
- (0, _1.findDefaultToken)(_1.CoinKey.DAI, _1.ChainId.POL),
118
- (0, _1.findDefaultToken)(_1.CoinKey.USDC, _1.ChainId.POL),
119
- (0, _1.findDefaultToken)(_1.CoinKey.USDT, _1.ChainId.POL),
120
- (0, _1.findDefaultToken)(_1.CoinKey.ETH, _1.ChainId.POL),
121
- (0, _1.findDefaultToken)(_1.CoinKey.WBTC, _1.ChainId.POL),
122
- {
123
- address: '0x831753dd7087cac61ab5644b308642cc1c33dc13',
124
- symbol: 'QUICK',
125
- decimals: 18,
126
- chainId: _1.ChainId.POL,
127
- },
128
- ],
129
- },
130
- {
131
- key: 'honeyswap-pol',
132
- name: 'Honeyswap',
133
- chainId: _1.ChainId.POL,
134
- logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/honey.png',
135
- webUrl: 'https://app.honeyswap.org/',
136
- graph: 'https://api.thegraph.com/subgraphs/name/1hive/honeyswap-polygon',
137
- tokenlistUrl: 'https://tokens.honeyswap.org/',
138
- routerAddress: '0xaD340d0CD0B117B0140671E7cB39770e7675C848',
139
- factoryAddress: '0x03daa61d8007443a6584e3d8f85105096543c19c',
140
- initCodeHash: '0xae81bbc68f315fbbf7617eb881349af83b1e95241f616966e1e0583ecd0793fe',
141
- baseTokens: [
142
- (0, _1.findWrappedGasOnChain)(_1.ChainId.POL),
143
- (0, _1.findDefaultToken)(_1.CoinKey.ETH, _1.ChainId.POL),
144
- {
145
- address: '0xb371248dd0f9e4061ccf8850e9223ca48aa7ca4b',
146
- symbol: 'HNY',
147
- decimals: 18,
148
- chainId: _1.ChainId.POL,
149
- },
150
- ],
151
- },
152
- {
153
- key: 'sushiswap-pol',
154
- name: 'SushiSwap',
155
- chainId: _1.ChainId.POL,
156
- logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/sushi.png',
157
- webUrl: 'https://app.sushi.com/swap',
158
- graph: 'https://api.thegraph.com/subgraphs/name/sushiswap/matic-exchange',
159
- tokenlistUrl: 'https://raw.githubusercontent.com/sushiswap/list/master/lists/token-lists/default-token-list/tokens/polygon.json',
160
- routerAddress: '0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506',
161
- factoryAddress: '0xc35DADB65012eC5796536bD9864eD8773aBc74C4',
162
- initCodeHash: '0xe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303',
163
- baseTokens: [
164
- (0, _1.findWrappedGasOnChain)(_1.ChainId.POL),
165
- (0, _1.findDefaultToken)(_1.CoinKey.USDC, _1.ChainId.POL),
166
- (0, _1.findDefaultToken)(_1.CoinKey.DAI, _1.ChainId.POL),
167
- (0, _1.findDefaultToken)(_1.CoinKey.USDT, _1.ChainId.POL),
168
- (0, _1.findDefaultToken)(_1.CoinKey.ETH, _1.ChainId.POL),
169
- (0, _1.findDefaultToken)(_1.CoinKey.WBTC, _1.ChainId.POL),
170
- (0, _1.findDefaultToken)(_1.CoinKey.SUSHI, _1.ChainId.POL),
171
- ],
172
- },
173
- {
174
- key: 'lif3swap-pol',
175
- name: 'Lif3 Swap',
176
- chainId: _1.ChainId.POL,
177
- webUrl: 'https://lif3.com/',
178
- logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/lif3.png',
179
- tokenlistUrl: 'https://assets.lif3.com/swap/polygon/tokens.json',
180
- routerAddress: '0x67dC2703D306F72E94DbB0cE0aa0CB86149EAc70',
181
- factoryAddress: '0x3FB1E7D5d9C974141A5B6E5fa4edab0a7Aa15C6A',
182
- initCodeHash: '0x57cf36086932d62d26c562d18d87afe373f166c06011dc35be0783e29c6eb4eb',
183
- baseTokens: [
184
- (0, _1.findWrappedGasOnChain)(_1.ChainId.POL),
185
- (0, _1.findDefaultToken)(_1.CoinKey.USDC, _1.ChainId.POL),
186
- ],
187
- },
188
- // 56 - Binance Smart Chain
189
- {
190
- key: 'pancakeswap-bsc',
191
- name: 'Pancake',
192
- chainId: _1.ChainId.BSC,
193
- logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/pancake.png',
194
- webUrl: 'https://exchange.pancakeswap.finance/',
195
- graph: 'https://api.thegraph.com/subgraphs/name/bscnodes/pancakeswap',
196
- tokenlistUrl: 'https://tokens.pancakeswap.finance/pancakeswap-extended.json',
197
- routerAddress: '0x10ED43C718714eb63d5aA57B78B54704E256024E',
198
- factoryAddress: '0xcA143Ce32Fe78f1f7019d7d551a6402fC5350c73',
199
- initCodeHash: '0x00fb7f630766e6a796048ea87d01acd3068e8ff67d078148a3fa3f4a84f69bd5',
200
- baseTokens: [
201
- (0, _1.findWrappedGasOnChain)(_1.ChainId.BSC),
202
- {
203
- address: '0xe9e7cea3dedca5984780bafc599bd69add087d56',
204
- symbol: 'BUSD',
205
- decimals: 18,
206
- chainId: _1.ChainId.BSC,
207
- },
208
- {
209
- address: '0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82',
210
- symbol: 'CAKE',
211
- decimals: 18,
212
- chainId: _1.ChainId.BSC,
213
- },
214
- {
215
- address: '0x7130d2a12b9bcbfae4f2634d864a1ee1ce3ead9c',
216
- symbol: 'BTCB',
217
- decimals: 18,
218
- chainId: _1.ChainId.BSC,
219
- },
220
- ],
221
- },
222
- {
223
- key: 'sushiswap-bsc',
224
- name: 'SushiSwap',
225
- chainId: _1.ChainId.BSC,
226
- logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/sushi.png',
227
- webUrl: 'https://app.sushi.com/swap',
228
- graph: 'https://api.thegraph.com/subgraphs/name/sushiswap/bsc-exchange',
229
- tokenlistUrl: 'https://raw.githubusercontent.com/sushiswap/list/master/lists/token-lists/default-token-list/tokens/bsc.json',
230
- routerAddress: '0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506',
231
- factoryAddress: '0xc35DADB65012eC5796536bD9864eD8773aBc74C4',
232
- initCodeHash: '0xe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303',
233
- baseTokens: [
234
- (0, _1.findWrappedGasOnChain)(_1.ChainId.BSC),
235
- (0, _1.findDefaultToken)(_1.CoinKey.ETH, _1.ChainId.BSC),
236
- (0, _1.findDefaultToken)(_1.CoinKey.DAI, _1.ChainId.BSC),
237
- (0, _1.findDefaultToken)(_1.CoinKey.USDC, _1.ChainId.BSC),
238
- (0, _1.findDefaultToken)(_1.CoinKey.USDT, _1.ChainId.BSC),
239
- {
240
- address: '0xe9e7cea3dedca5984780bafc599bd69add087d56',
241
- symbol: 'BUSD',
242
- decimals: 18,
243
- chainId: _1.ChainId.BSC,
244
- },
245
- {
246
- address: '0x7130d2a12b9bcbfae4f2634d864a1ee1ce3ead9c',
247
- symbol: 'BTCB',
248
- decimals: 18,
249
- chainId: _1.ChainId.BSC,
250
- },
251
- (0, _1.findDefaultToken)(_1.CoinKey.SUSHI, _1.ChainId.BSC),
252
- ],
253
- },
254
- {
255
- key: 'lif3swap-bsc',
256
- name: 'Lif3 Swap',
257
- logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/lif3.png',
258
- chainId: _1.ChainId.BSC,
259
- webUrl: 'https://lif3.com/',
260
- tokenlistUrl: 'https://assets.lif3.com/swap/bnb/tokens.json',
261
- routerAddress: '0x1956005bA9690B7A00b09c78769675C0cE1457AF',
262
- factoryAddress: '0x3FB1E7D5d9C974141A5B6E5fa4edab0a7Aa15C6A',
263
- initCodeHash: '0x57cf36086932d62d26c562d18d87afe373f166c06011dc35be0783e29c6eb4eb',
264
- baseTokens: [
265
- (0, _1.findWrappedGasOnChain)(_1.ChainId.BSC),
266
- (0, _1.findDefaultToken)(_1.CoinKey.USDC, _1.ChainId.BSC),
267
- ],
268
- },
269
- // 100 - Gnosis
270
- {
271
- key: 'honeyswap-dai',
272
- name: 'Honeyswap',
273
- chainId: _1.ChainId.DAI,
274
- logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/honey.png',
275
- webUrl: 'https://app.honeyswap.org/',
276
- graph: 'https://api.thegraph.com/subgraphs/name/1hive/honeyswap-xdai',
277
- tokenlistUrl: 'https://tokens.honeyswap.org/',
278
- routerAddress: '0x1C232F01118CB8B424793ae03F870aa7D0ac7f77',
279
- factoryAddress: '0xA818b4F111Ccac7AA31D0BCc0806d64F2E0737D7',
280
- initCodeHash: '0x3f88503e8580ab941773b59034fb4b2a63e86dbc031b3633a925533ad3ed2b93',
281
- baseTokens: [
282
- (0, _1.findWrappedGasOnChain)(_1.ChainId.DAI),
283
- (0, _1.findDefaultToken)(_1.CoinKey.WETH, _1.ChainId.DAI),
284
- (0, _1.findDefaultToken)(_1.CoinKey.USDC, _1.ChainId.DAI),
285
- {
286
- address: '0x71850b7e9ee3f13ab46d67167341e4bdc905eef9',
287
- symbol: 'HNY',
288
- decimals: 18,
289
- chainId: _1.ChainId.DAI,
290
- },
291
- ],
292
- },
293
- {
294
- key: 'sushiswap-dai',
295
- name: 'SushiSwap',
296
- chainId: _1.ChainId.DAI,
297
- logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/sushi.png',
298
- webUrl: 'https://app.sushi.com/swap',
299
- graph: 'https://api.thegraph.com/subgraphs/name/sushiswap/xdai-exchange',
300
- tokenlistUrl: 'https://raw.githubusercontent.com/sushiswap/list/master/lists/token-lists/default-token-list/tokens/xdai.json',
301
- routerAddress: '0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506',
302
- factoryAddress: '0xc35DADB65012eC5796536bD9864eD8773aBc74C4',
303
- initCodeHash: '0xe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303',
304
- baseTokens: [
305
- (0, _1.findWrappedGasOnChain)(_1.ChainId.DAI),
306
- (0, _1.findDefaultToken)(_1.CoinKey.USDC, _1.ChainId.DAI),
307
- (0, _1.findDefaultToken)(_1.CoinKey.USDT, _1.ChainId.DAI),
308
- (0, _1.findDefaultToken)(_1.CoinKey.WBTC, _1.ChainId.DAI),
309
- (0, _1.findDefaultToken)(_1.CoinKey.WETH, _1.ChainId.DAI),
310
- (0, _1.findDefaultToken)(_1.CoinKey.SUSHI, _1.ChainId.DAI),
311
- ],
312
- },
313
- {
314
- key: 'swapr-dai',
315
- name: 'Swapr',
316
- chainId: _1.ChainId.DAI,
317
- webUrl: 'https://swapr.eth.limo/',
318
- logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/swapr.png',
319
- tokenlistUrl: 'https://gist.githubusercontent.com/mathiasmoeller/03525afe098af3d45b9aff1f8a04acd9/raw/76d9b818659fe1fe90c8f0f0edc36f23160d4dc1/swapr-token-list.json',
320
- routerAddress: '0xE43e60736b1cb4a75ad25240E2f9a62Bff65c0C0',
321
- factoryAddress: '0x5D48C95AdfFD4B40c1AAADc4e08fc44117E02179',
322
- initCodeHash: '0xd306a548755b9295ee49cc729e13ca4a45e00199bbd890fa146da43a50571776',
323
- baseTokens: [
324
- (0, _1.findWrappedGasOnChain)(_1.ChainId.DAI),
325
- {
326
- address: '0x532801ed6f82fffd2dab70a19fc2d7b2772c4f4b',
327
- symbol: 'SWPR',
328
- decimals: 18,
329
- chainId: _1.ChainId.DAI,
330
- },
331
- ],
332
- },
333
- // 250 - Fantom
334
- {
335
- key: 'spookyswap-ftm',
336
- name: 'SpookySwap',
337
- chainId: _1.ChainId.FTM,
338
- logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/spooky.png',
339
- webUrl: 'https://spookyswap.finance/swap',
340
- tokenlistUrl: 'https://raw.githubusercontent.com/SpookySwap/spooky-info/master/src/constants/token/spookyswap.json',
341
- routerAddress: '0xF491e7B69E4244ad4002BC14e878a34207E38c29',
342
- factoryAddress: '0x152eE697f2E276fA89E96742e9bB9aB1F2E61bE3',
343
- initCodeHash: '0xcdf2deca40a0bd56de8e3ce5c7df6727e5b1bf2ac96f283fa9c4b3e6b42ea9d2',
344
- baseTokens: [
345
- (0, _1.findWrappedGasOnChain)(_1.ChainId.FTM),
346
- (0, _1.findDefaultToken)(_1.CoinKey.USDC, _1.ChainId.FTM),
347
- (0, _1.findDefaultToken)(_1.CoinKey.USDT, _1.ChainId.FTM),
348
- (0, _1.findDefaultToken)(_1.CoinKey.DAI, _1.ChainId.FTM),
349
- ],
350
- },
351
- {
352
- key: 'sushiswap-ftm',
353
- name: 'SushiSwap',
354
- chainId: _1.ChainId.FTM,
355
- logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/sushi.png',
356
- webUrl: 'https://app.sushi.com/swap',
357
- graph: 'https://api.thegraph.com/subgraphs/name/sushiswap/fantom-exchange',
358
- tokenlistUrl: 'https://raw.githubusercontent.com/sushiswap/list/master/lists/token-lists/default-token-list/tokens/fantom.json',
359
- routerAddress: '0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506',
360
- factoryAddress: '0xc35DADB65012eC5796536bD9864eD8773aBc74C4',
361
- initCodeHash: '0xe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303',
362
- baseTokens: [
363
- (0, _1.findWrappedGasOnChain)(_1.ChainId.FTM),
364
- (0, _1.findDefaultToken)(_1.CoinKey.DAI, _1.ChainId.FTM),
365
- (0, _1.findDefaultToken)(_1.CoinKey.USDC, _1.ChainId.FTM),
366
- (0, _1.findDefaultToken)(_1.CoinKey.WBTC, _1.ChainId.FTM),
367
- (0, _1.findDefaultToken)(_1.CoinKey.WETH, _1.ChainId.FTM),
368
- (0, _1.findDefaultToken)(_1.CoinKey.SUSHI, _1.ChainId.FTM),
369
- ],
370
- },
371
- {
372
- key: 'spiritswap',
373
- name: 'SpiritSwap',
374
- chainId: _1.ChainId.FTM,
375
- logoURI: 'https://github.com/Layer3Org/spiritswap-tokens-list-icon/blob/master/token-list/images/inspirit.png?raw=true',
376
- webUrl: 'https://app.spiritswap.finance/#/',
377
- tokenlistUrl: 'https://gist.githubusercontent.com/mathiasmoeller/493b1ed01c2a789b2e785e51a2808412/raw/b157b697c72e8f3a6d5ef4851ceeb59bd4b64cd6/spiritswap_tokenlist.json',
378
- routerAddress: '0x16327E3FbDaCA3bcF7E38F5Af2599D2DDc33aE52',
379
- factoryAddress: '0xEF45d134b73241eDa7703fa787148D9C9F4950b0',
380
- initCodeHash: '0xe242e798f6cee26a9cb0bbf24653bf066e5356ffeac160907fe2cc108e238617',
381
- baseTokens: [
382
- (0, _1.findWrappedGasOnChain)(_1.ChainId.FTM),
383
- (0, _1.findDefaultToken)(_1.CoinKey.WBTC, _1.ChainId.FTM),
384
- (0, _1.findDefaultToken)(_1.CoinKey.WETH, _1.ChainId.FTM),
385
- (0, _1.findDefaultToken)(_1.CoinKey.USDC, _1.ChainId.FTM),
386
- (0, _1.findDefaultToken)(_1.CoinKey.DAI, _1.ChainId.FTM),
387
- ],
388
- },
389
- {
390
- key: 'soulswap-ftm',
391
- name: 'SoulSwap',
392
- chainId: _1.ChainId.FTM,
393
- webUrl: 'https://app.soulswap.finance/',
394
- logoURI: 'https://raw.githubusercontent.com/soulswapfinance/assets/prod/blockchains/fantom/assets/0xe2fb177009FF39F52C0134E8007FA0e4BaAcBd07/logo.png',
395
- tokenlistUrl: 'https://raw.githubusercontent.com/soulswapfinance/default-token-list/master/soulswap.tokenlist.json',
396
- routerAddress: '0x6b3d631B87FE27aF29efeC61d2ab8CE4d621cCBF',
397
- factoryAddress: '0x1120e150dA9def6Fe930f4fEDeD18ef57c0CA7eF',
398
- initCodeHash: '0xf3dcc3c6c6e34d3981dd429ac942301b9ebdd05de1be17f646b55476c44dc951',
399
- baseTokens: [
400
- (0, _1.findWrappedGasOnChain)(_1.ChainId.FTM),
401
- {
402
- address: '0xe2fb177009FF39F52C0134E8007FA0e4BaAcBd07',
403
- symbol: 'SOUL',
404
- decimals: 18,
405
- chainId: _1.ChainId.FTM,
406
- },
407
- ],
408
- },
409
- // 1666600000 - Harmony Mainnet Shard 0
410
- {
411
- key: 'viperswap-one',
412
- name: 'ViperSwap',
413
- chainId: _1.ChainId.ONE,
414
- logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/viper.png',
415
- webUrl: 'https://viper.exchange/#/swap',
416
- tokenlistUrl: 'https://d1xrz6ki9z98vb.cloudfront.net/venomswap/lists/venomswap-default.tokenlist.json',
417
- routerAddress: '0xf012702a5f0e54015362cBCA26a26fc90AA832a3',
418
- factoryAddress: '0x7D02c116b98d0965ba7B642ace0183ad8b8D2196',
419
- initCodeHash: '0x162f79e638367cd45a118c778971dfd8d96c625d2798d3b71994b035cfe9b6dc',
420
- baseTokens: [
421
- (0, _1.findDefaultToken)(_1.CoinKey.ONE, _1.ChainId.ONE),
422
- (0, _1.findWrappedGasOnChain)(_1.ChainId.ONE),
423
- {
424
- address: '0xEf977d2f931C1978Db5F6747666fa1eACB0d0339',
425
- symbol: '1DAI',
426
- decimals: 18,
427
- chainId: _1.ChainId.ONE,
428
- },
429
- {
430
- address: '0xE176EBE47d621b984a73036B9DA5d834411ef734',
431
- symbol: 'BUSD',
432
- decimals: 18,
433
- chainId: _1.ChainId.ONE,
434
- },
435
- {
436
- address: '0x985458E523dB3d53125813eD68c274899e9DfAb4',
437
- symbol: '1USDC',
438
- decimals: 6,
439
- chainId: _1.ChainId.ONE,
440
- },
441
- {
442
- address: '0xEa589E93Ff18b1a1F1e9BaC7EF3E86Ab62addc79',
443
- symbol: 'VIPER',
444
- decimals: 18,
445
- chainId: _1.ChainId.ONE,
446
- },
447
- {
448
- address: '0x0dc78c79B4eB080eaD5C1d16559225a46b580694',
449
- symbol: 'WAGMI',
450
- decimals: 9,
451
- chainId: _1.ChainId.ONE,
452
- },
453
- ],
454
- },
455
- {
456
- key: 'sushiswap-one',
457
- name: 'SushiSwap',
458
- chainId: _1.ChainId.ONE,
459
- logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/sushi.png',
460
- webUrl: 'https://app.sushi.com/swap',
461
- tokenlistUrl: 'https://raw.githubusercontent.com/sushiswap/list/master/lists/token-lists/default-token-list/tokens/harmony.json',
462
- routerAddress: '0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506',
463
- factoryAddress: '0xc35DADB65012eC5796536bD9864eD8773aBc74C4',
464
- initCodeHash: '0xe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303',
465
- baseTokens: [
466
- (0, _1.findWrappedGasOnChain)(_1.ChainId.ONE),
467
- (0, _1.findDefaultToken)(_1.CoinKey.DAI, _1.ChainId.ONE),
468
- (0, _1.findDefaultToken)(_1.CoinKey.USDC, _1.ChainId.ONE),
469
- (0, _1.findDefaultToken)(_1.CoinKey.USDT, _1.ChainId.ONE),
470
- (0, _1.findDefaultToken)(_1.CoinKey.ETH, _1.ChainId.ONE),
471
- (0, _1.findDefaultToken)(_1.CoinKey.WBTC, _1.ChainId.ONE),
472
- (0, _1.findDefaultToken)(_1.CoinKey.SUSHI, _1.ChainId.ONE),
473
- ],
474
- },
475
- // 43114 - Avalanche
476
- {
477
- key: 'sushiswap-ava',
478
- name: 'SushiSwap',
479
- chainId: _1.ChainId.AVA,
480
- logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/sushi.png',
481
- webUrl: 'https://app.sushi.com/swap',
482
- tokenlistUrl: 'https://raw.githubusercontent.com/sushiswap/list/master/lists/token-lists/default-token-list/tokens/avalanche.json',
483
- routerAddress: '0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506',
484
- factoryAddress: '0xc35DADB65012eC5796536bD9864eD8773aBc74C4',
485
- initCodeHash: '0xe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303',
486
- baseTokens: [
487
- (0, _1.findWrappedGasOnChain)(_1.ChainId.AVA),
488
- (0, _1.findDefaultToken)(_1.CoinKey.USDC, _1.ChainId.AVA),
489
- (0, _1.findDefaultToken)(_1.CoinKey.USDT, _1.ChainId.AVA),
490
- (0, _1.findDefaultToken)(_1.CoinKey.DAI, _1.ChainId.AVA),
491
- (0, _1.findDefaultToken)(_1.CoinKey.WBTC, _1.ChainId.AVA),
492
- (0, _1.findDefaultToken)(_1.CoinKey.WETH, _1.ChainId.AVA),
493
- (0, _1.findDefaultToken)(_1.CoinKey.SUSHI, _1.ChainId.AVA),
494
- ],
495
- },
496
- {
497
- key: 'pangolin-ava',
498
- name: 'Pangolin',
499
- chainId: _1.ChainId.AVA,
500
- logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/pangolin.png',
501
- webUrl: 'https://pangolin.exchange/',
502
- tokenlistUrl: 'https://raw.githubusercontent.com/pangolindex/tokenlists/main/pangolin.tokenlist.json',
503
- routerAddress: '0xE54Ca86531e17Ef3616d22Ca28b0D458b6C89106',
504
- factoryAddress: '0xefa94DE7a4656D787667C749f7E1223D71E9FD88',
505
- initCodeHash: '0x40231f6b438bce0797c9ada29b718a87ea0a5cea3fe9a771abdd76bd41a3e545',
506
- baseTokens: [
507
- (0, _1.findWrappedGasOnChain)(_1.ChainId.AVA),
508
- (0, _1.findDefaultToken)(_1.CoinKey.USDC, _1.ChainId.AVA),
509
- (0, _1.findDefaultToken)(_1.CoinKey.USDT, _1.ChainId.AVA),
510
- ],
511
- },
512
- // 42161 - Arbitrum
513
- {
514
- key: 'sushiswap-arb',
515
- name: 'SushiSwap',
516
- chainId: _1.ChainId.ARB,
517
- logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/sushi.png',
518
- webUrl: 'https://app.sushi.com/swap',
519
- tokenlistUrl: 'https://raw.githubusercontent.com/sushiswap/list/master/lists/token-lists/default-token-list/tokens/arbitrum.json',
520
- routerAddress: '0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506',
521
- factoryAddress: '0xc35DADB65012eC5796536bD9864eD8773aBc74C4',
522
- initCodeHash: '0xe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303',
523
- baseTokens: [
524
- (0, _1.findDefaultToken)(_1.CoinKey.WETH, _1.ChainId.ARB),
525
- (0, _1.findDefaultToken)(_1.CoinKey.WBTC, _1.ChainId.ARB),
526
- (0, _1.findDefaultToken)(_1.CoinKey.USDC, _1.ChainId.ARB),
527
- (0, _1.findDefaultToken)(_1.CoinKey.USDT, _1.ChainId.ARB),
528
- (0, _1.findDefaultToken)(_1.CoinKey.SUSHI, _1.ChainId.ARB),
529
- {
530
- address: '0x3e6648c5a70a150a88bce65f4ad4d506fe15d2af',
531
- symbol: 'SPELL',
532
- decimals: 18,
533
- chainId: _1.ChainId.ARB,
534
- },
535
- ],
536
- },
537
- // 10 - Optimistic Ethereum
538
- // Uniswap V3:
539
- // {
540
- // key: 'uniswap-opt',
541
- // name: 'UniswapV3',
542
- // chainId: 10,
543
- // logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/uniswap.png',
544
- // webUrl: 'https://app.uniswap.org/#/swap',
545
- // graph: '',
546
- // tokenlistUrl: 'https://static.optimism.io/optimism.tokenlist.json',
547
- // routerAddress: '0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D',
548
- // factoryAddress: '0x1F98431c8aD98523631AE4a59f267346ea31F984',
549
- // initCodeHash: '0x96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f',
550
- // baseTokens: [
551
- // findWrappedGasOnChain(ChainId.OPT),
552
- // findDefaultToken(CoinKey.DAI, ChainId.OPT),
553
- // findDefaultToken(CoinKey.USDC, ChainId.OPT),
554
- // findDefaultToken(CoinKey.USDT, ChainId.OPT),
555
- // findDefaultToken(CoinKey.WBTC, ChainId.OPT),
556
- // ]
557
- // },
558
- // 1285 - Moonriver
559
- {
560
- key: 'sushiswap-mor',
561
- name: 'SushiSwap',
562
- chainId: _1.ChainId.MOR,
563
- logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/sushi.png',
564
- webUrl: 'https://app.sushi.com/swap',
565
- tokenlistUrl: 'https://raw.githubusercontent.com/sushiswap/list/master/lists/token-lists/default-token-list/tokens/moonriver.json',
566
- routerAddress: '0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506',
567
- factoryAddress: '0xc35DADB65012eC5796536bD9864eD8773aBc74C4',
568
- initCodeHash: '0xe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303',
569
- baseTokens: [
570
- (0, _1.findWrappedGasOnChain)(_1.ChainId.MOR),
571
- (0, _1.findDefaultToken)(_1.CoinKey.WETH, _1.ChainId.MOR),
572
- (0, _1.findDefaultToken)(_1.CoinKey.WBTC, _1.ChainId.MOR),
573
- (0, _1.findDefaultToken)(_1.CoinKey.USDC, _1.ChainId.MOR),
574
- (0, _1.findDefaultToken)(_1.CoinKey.USDT, _1.ChainId.MOR),
575
- (0, _1.findDefaultToken)(_1.CoinKey.SUSHI, _1.ChainId.MOR),
576
- {
577
- address: '0x1a93b23281cc1cde4c4741353f3064709a16197d',
578
- symbol: 'FRAX',
579
- decimals: 18,
580
- chainId: _1.ChainId.MOR,
581
- },
582
- {
583
- address: '0x0cae51e1032e8461f4806e26332c030e34de3adb',
584
- symbol: 'MIM',
585
- decimals: 18,
586
- chainId: _1.ChainId.MOR,
587
- },
588
- {
589
- address: '0x3d2d044e8c6dad46b4f7896418d3d4dfaad902be',
590
- symbol: 'aROME',
591
- decimals: 9,
592
- chainId: _1.ChainId.MOR,
593
- },
594
- ],
595
- },
596
- {
597
- key: 'solarbeam-mor',
598
- name: 'Solarbeam',
599
- chainId: _1.ChainId.MOR,
600
- logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/solarbeam.png',
601
- webUrl: 'https://app.solarbeam.io/exchange/swap',
602
- tokenlistUrl: 'https://raw.githubusercontent.com/solarbeamio/solarbeam-tokenlist/main/solarbeam.tokenlist.json',
603
- routerAddress: '0xAA30eF758139ae4a7f798112902Bf6d65612045f',
604
- factoryAddress: '0x049581aEB6Fe262727f290165C29BDAB065a1B68',
605
- initCodeHash: '0x9a100ded5f254443fbd264cb7e87831e398a8b642e061670a9bc35ba27293dbf',
606
- baseTokens: [
607
- (0, _1.findWrappedGasOnChain)(_1.ChainId.MOR),
608
- (0, _1.findDefaultToken)(_1.CoinKey.USDC, _1.ChainId.MOR),
609
- {
610
- address: '0x1a93b23281cc1cde4c4741353f3064709a16197d',
611
- symbol: 'FRAX',
612
- decimals: 18,
613
- chainId: _1.ChainId.MOR,
614
- },
615
- {
616
- address: '0x6bd193ee6d2104f14f94e2ca6efefae561a4334b',
617
- symbol: 'SOLAR',
618
- decimals: 18,
619
- chainId: _1.ChainId.MOR,
620
- },
621
- ],
622
- },
623
- // 128 - HECO Chain
624
- {
625
- key: 'sushiswap-hec',
626
- name: 'SushiSwap',
627
- chainId: _1.ChainId.HEC,
628
- logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/sushi.png',
629
- webUrl: 'https://app.sushi.com/swap',
630
- tokenlistUrl: 'https://raw.githubusercontent.com/sushiswap/list/master/lists/token-lists/default-token-list/tokens/heco.json',
631
- routerAddress: '0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506',
632
- factoryAddress: '0xc35DADB65012eC5796536bD9864eD8773aBc74C4',
633
- initCodeHash: '0xe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303',
634
- baseTokens: [
635
- (0, _1.findWrappedGasOnChain)(_1.ChainId.HEC),
636
- (0, _1.findDefaultToken)(_1.CoinKey.ETH, _1.ChainId.HEC),
637
- (0, _1.findDefaultToken)(_1.CoinKey.USDC, _1.ChainId.HEC),
638
- (0, _1.findDefaultToken)(_1.CoinKey.USDT, _1.ChainId.HEC),
639
- (0, _1.findDefaultToken)(_1.CoinKey.SUSHI, _1.ChainId.HEC),
640
- {
641
- address: '0x66a79d23e58475d2738179ca52cd0b41d73f0bea',
642
- symbol: 'HBTC',
643
- decimals: 18,
644
- chainId: _1.ChainId.HEC,
645
- },
646
- {
647
- address: '0x3d760a45d0887dfd89a2f5385a236b29cb46ed2a',
648
- symbol: 'DAIHECO',
649
- decimals: 18,
650
- chainId: _1.ChainId.HEC,
651
- },
652
- ],
653
- },
654
- // 66 - OKEX
655
- {
656
- key: 'sushiswap-okt',
657
- name: 'SushiSwap',
658
- chainId: _1.ChainId.OKT,
659
- logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/sushi.png',
660
- webUrl: 'https://app.sushi.com/swap',
661
- tokenlistUrl: 'https://raw.githubusercontent.com/sushiswap/list/master/lists/token-lists/default-token-list/tokens/okex.json',
662
- routerAddress: '0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506',
663
- factoryAddress: '0xc35DADB65012eC5796536bD9864eD8773aBc74C4',
664
- initCodeHash: '0xe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303',
665
- baseTokens: [
666
- (0, _1.findWrappedGasOnChain)(_1.ChainId.OKT),
667
- (0, _1.findDefaultToken)(_1.CoinKey.ETH, _1.ChainId.OKT),
668
- (0, _1.findDefaultToken)(_1.CoinKey.WBTC, _1.ChainId.OKT),
669
- (0, _1.findDefaultToken)(_1.CoinKey.DAI, _1.ChainId.OKT),
670
- (0, _1.findDefaultToken)(_1.CoinKey.USDC, _1.ChainId.OKT),
671
- (0, _1.findDefaultToken)(_1.CoinKey.USDT, _1.ChainId.OKT),
672
- (0, _1.findDefaultToken)(_1.CoinKey.SUSHI, _1.ChainId.OKT),
673
- ],
674
- },
675
- {
676
- key: 'jswap-okt',
677
- name: 'JSwap',
678
- chainId: _1.ChainId.OKT,
679
- logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/jswap.png',
680
- webUrl: 'https://app.jswap.finance/#/swap',
681
- tokenlistUrl: 'https://resources.jswap.finance/token-list/oec/extended.tokenlist.json',
682
- routerAddress: '0x069A306A638ac9d3a68a6BD8BE898774C073DCb3',
683
- factoryAddress: '0xd654CbF99F2907F06c88399AE123606121247D5C',
684
- initCodeHash: '0xf6608394468275c0df88a8568e9fbf7295a0aebddd5ae966ce6dbf5bb4ee68a0',
685
- baseTokens: [
686
- (0, _1.findDefaultToken)(_1.CoinKey.OKT, _1.ChainId.OKT),
687
- (0, _1.findDefaultToken)(_1.CoinKey.ETH, _1.ChainId.OKT),
688
- (0, _1.findDefaultToken)(_1.CoinKey.USDT, _1.ChainId.OKT),
689
- {
690
- address: '0x54e4622dc504176b3bb432dccaf504569699a7ff',
691
- symbol: 'BTCK',
692
- decimals: 18,
693
- chainId: _1.ChainId.OKT,
694
- },
695
- {
696
- address: '0xdf54b6c6195ea4d948d03bfd818d365cf175cfc2',
697
- symbol: 'OKB',
698
- decimals: 18,
699
- chainId: _1.ChainId.OKT,
700
- },
701
- {
702
- address: '0x5fac926bf1e638944bb16fb5b787b5ba4bc85b0a',
703
- symbol: 'JF',
704
- decimals: 18,
705
- chainId: _1.ChainId.OKT,
706
- },
707
- ],
708
- },
709
- {
710
- key: 'okcswap-okt',
711
- name: 'OKCSwap',
712
- chainId: _1.ChainId.OKT,
713
- webUrl: 'https://www.okx.com/okc/swap',
714
- logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/okx.png',
715
- tokenlistUrl: 'https://www.okx.com/okc/openapi/swap/tokens',
716
- routerAddress: '0xc97b81B8a38b9146010Df85f1Ac714aFE1554343',
717
- factoryAddress: '0x7b9F0a56cA7D20A44f603C03C6f45Db95b31e539',
718
- initCodeHash: '0x00c49b7a1b728b8f0185f09df0b8487b8f4fd0fc3b133cb58039e67a16acb657',
719
- baseTokens: [
720
- {
721
- address: '0x8f8526dbfd6e38e3d8307702ca8469bae6c56c15',
722
- symbol: 'WOKT',
723
- decimals: 18,
724
- chainId: _1.ChainId.OKT,
725
- },
726
- {
727
- address: '0x382bB369d343125BfB2117af9c149795C6C65C50',
728
- symbol: _1.CoinKey.USDT,
729
- decimals: 18,
730
- chainId: _1.ChainId.OKT,
731
- },
732
- ],
733
- },
734
- // 25 - Cronos Mainnet Beta
735
- {
736
- key: 'cronaswap-cro',
737
- name: 'CronaSwap',
738
- chainId: _1.ChainId.CRO,
739
- logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/cronaswap.png',
740
- webUrl: 'https://app.cronaswap.org/swap',
741
- tokenlistUrl: 'https://raw.githubusercontent.com/cronaswap/default-token-list/main/assets/tokens/cronos.json',
742
- routerAddress: '0xcd7d16fB918511BF7269eC4f48d61D79Fb26f918',
743
- factoryAddress: '0x73A48f8f521EB31c55c0e1274dB0898dE599Cb11',
744
- initCodeHash: '0xc93158cffa5b575e32566e81e847754ce517f8fa988d3e25cf346d916216e06f',
745
- baseTokens: [
746
- (0, _1.findDefaultToken)(_1.CoinKey.CRO, _1.ChainId.CRO),
747
- (0, _1.findDefaultToken)(_1.CoinKey.USDC, _1.ChainId.CRO),
748
- {
749
- address: '0xadbd1231fb360047525bedf962581f3eee7b49fe',
750
- symbol: 'CRONA',
751
- decimals: 18,
752
- chainId: _1.ChainId.CRO,
753
- },
754
- ],
755
- },
756
- // TODO: For cronos chain, we will add KyberSwap in the near future, they're still in development
757
- // 1284 - Moonbeam
758
- {
759
- key: 'stellaswap-moo',
760
- name: 'StellaSwap',
761
- chainId: _1.ChainId.MOO,
762
- logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/stellaswap.png',
763
- webUrl: 'https://app.stellaswap.com/',
764
- tokenlistUrl: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/tokens/stellaswap.json',
765
- routerAddress: '0xd0A01ec574D1fC6652eDF79cb2F880fd47D34Ab1',
766
- factoryAddress: '0x68A384D826D3678f78BB9FB1533c7E9577dACc0E',
767
- initCodeHash: '0x48a6ca3d52d0d0a6c53a83cc3c8688dd46ea4cb786b169ee959b95ad30f61643',
768
- baseTokens: [
769
- {
770
- address: '0x0E358838ce72d5e61E0018a2ffaC4bEC5F4c88d2',
771
- symbol: 'STELLA',
772
- decimals: 18,
773
- chainId: _1.ChainId.MOO,
774
- },
775
- {
776
- address: '0x818ec0A7Fe18Ff94269904fCED6AE3DaE6d6dC0b',
777
- symbol: 'USDC',
778
- decimals: 6,
779
- chainId: _1.ChainId.MOO,
780
- },
781
- {
782
- address: '0xAcc15dC74880C9944775448304B263D191c6077F',
783
- symbol: 'WGLMR',
784
- decimals: 18,
785
- chainId: _1.ChainId.MOO,
786
- },
787
- ],
788
- },
789
- {
790
- key: 'beamswap-moo',
791
- name: 'BeamSwap',
792
- chainId: _1.ChainId.MOO,
793
- logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/beamswap.png',
794
- webUrl: 'https://app.beamswap.io/',
795
- tokenlistUrl: 'https://raw.githubusercontent.com/BeamSwap/beamswap-tokenlist/main/tokenlist.json',
796
- routerAddress: '0x96b244391D98B62D19aE89b1A4dCcf0fc56970C7',
797
- factoryAddress: '0x985BcA32293A7A496300a48081947321177a86FD',
798
- initCodeHash: '0xe31da4209ffcce713230a74b5287fa8ec84797c9e77e1f7cfeccea015cdc97ea',
799
- baseTokens: [
800
- (0, _1.findWrappedGasOnChain)(_1.ChainId.MOO),
801
- (0, _1.findDefaultToken)(_1.CoinKey.BNB, _1.ChainId.MOO),
802
- (0, _1.findDefaultToken)(_1.CoinKey.ETH, _1.ChainId.MOO),
803
- {
804
- chainId: 1284,
805
- address: '0xeFAeeE334F0Fd1712f9a8cc375f427D9Cdd40d73',
806
- symbol: 'USDT',
807
- name: 'USDT Token',
808
- decimals: 6,
809
- },
810
- {
811
- chainId: 1284,
812
- address: '0xA649325Aa7C5093d12D6F98EB4378deAe68CE23F',
813
- symbol: 'BUSD',
814
- name: 'BUSD Token',
815
- decimals: 18,
816
- },
817
- {
818
- chainId: 1284,
819
- address: '0x818ec0A7Fe18Ff94269904fCED6AE3DaE6d6dC0b',
820
- symbol: 'USDC',
821
- name: 'USDC Token',
822
- decimals: 6,
823
- },
824
- ],
825
- },
826
- // 122 - Fuse Mainnet // TODO: incomplete
827
- // {
828
- // key: 'fuseswap-fus',
829
- // name: 'FuseSwap',
830
- // chainId: ChainId.FUS,
831
- // logoURI:
832
- // 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/fuseswap.png',
833
- // webUrl: 'https://app.fuse.fi/#/swap',
834
- // graph: 'https://api.thegraph.com/subgraphs/name/fuseio/fuseswap',
835
- // tokenlistUrl:
836
- // 'https://raw.githubusercontent.com/fuseio/fuseswap-default-token-list/master/build/fuseswap-default.tokenlist.json',
837
- // // we should add router address, factory address and init code hash
838
- // routerAddress: '',
839
- // factoryAddress: '',
840
- // initCodeHash: '',
841
- // baseTokens: [
842
- // findWrappedGasOnChain(ChainId.FUS),
843
- // findDefaultToken(CoinKey.FUSE, ChainId.FUS),
844
- // findDefaultToken(CoinKey.USDC, ChainId.FUS),
845
- // findDefaultToken(CoinKey.USDT, ChainId.FUS),
846
- // findDefaultToken(CoinKey.WBTC, ChainId.FUS),
847
- // findDefaultToken(CoinKey.WETH, ChainId.FUS),
848
- // {
849
- // address: '0x249be57637d8b013ad64785404b24aebae9b098b',
850
- // symbol: 'fUSD',
851
- // decimals: 18,
852
- // chainId: ChainId.FUS,
853
- // } as StaticToken,
854
- // ],
855
- // },
856
- {
857
- key: 'sushiswap-fus',
858
- name: 'SushiSwap',
859
- chainId: _1.ChainId.FUS,
860
- logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/sushi.png',
861
- webUrl: 'https://app.sushi.com/swap',
862
- tokenlistUrl: 'https://raw.githubusercontent.com/sushiswap/list/master/lists/token-lists/default-token-list/tokens/fuse.json',
863
- routerAddress: '0xF4d73326C13a4Fc5FD7A064217e12780e9Bd62c3',
864
- factoryAddress: '0x43eA90e2b786728520e4f930d2A71a477BF2737C',
865
- initCodeHash: '0x1901958ef8b470f2c0a3875a79ee0bd303866d85102c0f1ea820d317024d50b5',
866
- baseTokens: [
867
- (0, _1.findWrappedGasOnChain)(_1.ChainId.FUS),
868
- (0, _1.findDefaultToken)(_1.CoinKey.USDC, _1.ChainId.FUS),
869
- (0, _1.findDefaultToken)(_1.CoinKey.USDT, _1.ChainId.FUS),
870
- (0, _1.findDefaultToken)(_1.CoinKey.WBTC, _1.ChainId.FUS),
871
- (0, _1.findDefaultToken)(_1.CoinKey.WETH, _1.ChainId.FUS),
872
- (0, _1.findDefaultToken)(_1.CoinKey.DAI, _1.ChainId.FUS),
873
- (0, _1.findDefaultToken)(_1.CoinKey.SUSHI, _1.ChainId.FUS),
874
- ],
875
- },
876
- // 42220 Celo Mainnet
877
- {
878
- key: 'ubeswap-cel',
879
- name: 'UbeSwap',
880
- chainId: _1.ChainId.CEL,
881
- logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/ubeswap.png',
882
- webUrl: 'https://app.ubeswap.org/#/swap',
883
- graph: 'https://api.thegraph.com/subgraphs/name/ubeswap/ubeswap',
884
- tokenlistUrl: 'https://raw.githubusercontent.com/Ubeswap/default-token-list/master/ubeswap.token-list.json',
885
- routerAddress: '0xE3D8bd6Aed4F159bc8000a9cD47CffDb95F96121',
886
- factoryAddress: '0x62d5b84bE28a183aBB507E125B384122D2C25fAE',
887
- initCodeHash: '0xb3b8ff62960acea3a88039ebcf80699f15786f1b17cebd82802f7375827a339c',
888
- baseTokens: [
889
- (0, _1.findWrappedGasOnChain)(_1.ChainId.CEL),
890
- {
891
- address: '0x918146359264c492bd6934071c6bd31c854edbc3',
892
- symbol: 'mCUSD',
893
- decimals: 18,
894
- chainId: _1.ChainId.CEL,
895
- },
896
- {
897
- address: '0xe273ad7ee11dcfaa87383ad5977ee1504ac07568',
898
- symbol: 'mCEUR',
899
- decimals: 18,
900
- chainId: _1.ChainId.CEL,
901
- },
902
- ],
903
- },
904
- {
905
- key: 'sushiswap-cel',
906
- name: 'SushiSwap',
907
- chainId: _1.ChainId.CEL,
908
- logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/sushi.png',
909
- webUrl: 'https://app.sushi.com/swap',
910
- tokenlistUrl: 'https://raw.githubusercontent.com/sushiswap/list/master/lists/token-lists/default-token-list/tokens/celo.json',
911
- routerAddress: '0x1421bDe4B10e8dd459b3BCb598810B1337D56842',
912
- factoryAddress: '0xc35DADB65012eC5796536bD9864eD8773aBc74C4',
913
- initCodeHash: '0xe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303',
914
- baseTokens: [
915
- (0, _1.findWrappedGasOnChain)(_1.ChainId.CEL),
916
- (0, _1.findDefaultToken)(_1.CoinKey.USDC, _1.ChainId.CEL),
917
- (0, _1.findDefaultToken)(_1.CoinKey.WBTC, _1.ChainId.CEL),
918
- (0, _1.findDefaultToken)(_1.CoinKey.WETH, _1.ChainId.CEL),
919
- (0, _1.findDefaultToken)(_1.CoinKey.SUSHI, _1.ChainId.CEL),
920
- {
921
- address: '0x765de816845861e75a25fca122bb6898b8b1282a',
922
- symbol: 'cUSD',
923
- decimals: 18,
924
- chainId: _1.ChainId.CEL,
925
- },
926
- {
927
- address: '0xd8763cba276a3738e6de85b4b3bf5fded6d6ca73',
928
- symbol: 'cEUR',
929
- decimals: 18,
930
- chainId: _1.ChainId.CEL,
931
- },
932
- ],
933
- },
934
- // 1088 Metis Andromeda Mainnet // TODO: incomplete
935
- // {
936
- // key: 'standard-mam',
937
- // name: 'Standard',
938
- // chainId: ChainId.MAM,
939
- // logoURI:
940
- // 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/standard.png',
941
- // webUrl: 'https://apps.standard.tech/trade',
942
- // tokenlistUrl:
943
- // 'https://raw.githubusercontent.com/digitalnativeinc/default-token-list/dnf/tokens/metis.json',
944
- // // we should add router address, factory address and init code hash
945
- // routerAddress: '',
946
- // factoryAddress: '',
947
- // initCodeHash: '',
948
- // baseTokens: [
949
- // findWrappedGasOnChain(ChainId.MAM),
950
- // {
951
- // address: '0xc12cac7090baa48ec750cceec57c80768f6ee58e',
952
- // symbol: 'STND',
953
- // decimals: 18,
954
- // chainId: ChainId.MAM,
955
- // } as StaticToken,
956
- // {
957
- // address: '0xea32a96608495e54156ae48931a7c20f0dcc1a21',
958
- // symbol: 'm.USDC',
959
- // decimals: 6,
960
- // chainId: ChainId.MAM,
961
- // } as StaticToken,
962
- // {
963
- // address: '0xbb06dca3ae6887fabf931640f67cab3e3a16f4dc',
964
- // symbol: 'm.USDT',
965
- // decimals: 6,
966
- // chainId: ChainId.MAM,
967
- // } as StaticToken,
968
- // ],
969
- // },
970
- // 288 Boba Network
971
- {
972
- key: 'oolongswap-bob',
973
- name: 'OolongSwap',
974
- chainId: _1.ChainId.BOB,
975
- logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/oolongswap.png',
976
- webUrl: 'https://oolongswap.com/#/swap',
977
- tokenlistUrl: 'https://raw.githubusercontent.com/OolongSwap/boba-community-token-list/main/build/boba.tokenlist.json',
978
- routerAddress: '0x17C83E2B96ACfb5190d63F5E46d93c107eC0b514',
979
- factoryAddress: '0x7DDaF116889D655D1c486bEB95017a8211265d29',
980
- initCodeHash: '0x1db9efb13a1398e31bb71895c392fa1217130f78dc65080174491adcec5da9b9',
981
- baseTokens: [
982
- (0, _1.findDefaultToken)(_1.CoinKey.ETH, _1.ChainId.BOB),
983
- (0, _1.findWrappedGasOnChain)(_1.ChainId.BOB),
984
- (0, _1.findDefaultToken)(_1.CoinKey.WBTC, _1.ChainId.BOB),
985
- (0, _1.findDefaultToken)(_1.CoinKey.DAI, _1.ChainId.BOB),
986
- (0, _1.findDefaultToken)(_1.CoinKey.USDC, _1.ChainId.BOB),
987
- (0, _1.findDefaultToken)(_1.CoinKey.USDT, _1.ChainId.BOB),
988
- {
989
- address: '0xa18bf3994c0cc6e3b63ac420308e5383f53120d7',
990
- symbol: 'BOBA',
991
- decimals: 18,
992
- chainId: _1.ChainId.BOB,
993
- },
994
- {
995
- address: '0x5008f837883ea9a07271a1b5eb0658404f5a9610',
996
- symbol: 'OLO',
997
- decimals: 18,
998
- chainId: _1.ChainId.BOB,
999
- },
1000
- ],
1001
- },
1002
- // TESTNETS
1003
- // 5 - Goerli
1004
- {
1005
- key: 'uniswap-gor',
1006
- name: 'Uniswap',
1007
- chainId: _1.ChainId.GOR,
1008
- logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/uniswap.png',
1009
- webUrl: 'https://app.uniswap.org/',
1010
- tokenlistUrl: 'https://raw.githubusercontent.com/compound-finance/token-list/master/compound.tokenlist.json',
1011
- routerAddress: '0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D',
1012
- factoryAddress: '0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f',
1013
- initCodeHash: '0x96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f',
1014
- baseTokens: [
1015
- (0, _1.findDefaultToken)(_1.CoinKey.ETH, _1.ChainId.GOR),
1016
- (0, _1.findDefaultToken)(_1.CoinKey.WETH, _1.ChainId.GOR),
1017
- ],
1018
- },
1019
- // TODO: sushiswap does not work properly
1020
- // {
1021
- // key: 'sushiswap-gor',
1022
- // name: 'SushiSwap',
1023
- // chainId: ChainId.GOR,
1024
- // logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/sushi.png',
1025
- // webUrl: 'https://app.sushi.com/swap',
1026
- // tokenlistUrl: 'https://raw.githubusercontent.com/sushiswap/list/master/lists/token-lists/default-token-list/tokens/goerli.json',
1027
- // routerAddress: '0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506',
1028
- // factoryAddress: '0xc35DADB65012eC5796536bD9864eD8773aBc74C4',
1029
- // initCodeHash: '0xe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303',
1030
- // baseTokens: [],
1031
- // },
1032
- // 1666700000 - HARMONY TESTNET
1033
- // TODO: Only sushiswap support ONET but official swap website also does not work correctly
1034
- {
1035
- key: 'sushiswap-onet',
1036
- name: 'SushiSwap',
1037
- chainId: _1.ChainId.ONET,
1038
- logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/sushi.png',
1039
- webUrl: 'https://app.sushi.com/swap',
1040
- tokenlistUrl: 'https://raw.githubusercontent.com/sushiswap/list/master/lists/token-lists/default-token-list/tokens/harmony-testnet.json',
1041
- routerAddress: '0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506',
1042
- factoryAddress: '0xc35DADB65012eC5796536bD9864eD8773aBc74C4',
1043
- initCodeHash: '0xe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303',
1044
- baseTokens: [],
1045
- },
1046
- // 97 - Binance Smart Chain TESTNET
1047
- // TODO: Only sushiswap support BSCT but official swap website also does not work correctly
1048
- {
1049
- key: 'sushiswap-bsct',
1050
- name: 'SushiSwap',
1051
- chainId: _1.ChainId.BSCT,
1052
- logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/sushi.png',
1053
- webUrl: 'https://app.sushi.com/swap',
1054
- tokenlistUrl: 'https://raw.githubusercontent.com/sushiswap/list/master/lists/token-lists/default-token-list/tokens/harmony-testnet.json',
1055
- routerAddress: '0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506',
1056
- factoryAddress: '0xc35DADB65012eC5796536bD9864eD8773aBc74C4',
1057
- initCodeHash: '0xe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303',
1058
- baseTokens: [(0, _1.findWrappedGasOnChain)(_1.ChainId.ONET)],
1059
- },
1060
- // 106 Velas
1061
- {
1062
- key: 'wagyuswap-vel',
1063
- name: 'Wagyuswap',
1064
- chainId: _1.ChainId.VEL,
1065
- webUrl: 'https://exchange.wagyuswap.app',
1066
- tokenlistUrl: 'https://github.com/wagyuswapapp/wagyu-frontend/blob/wagyu/src/config/constants/tokenLists/pancake-default.tokenlist.json',
1067
- logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/wagyu.png',
1068
- routerAddress: '0x3D1c58B6d4501E34DF37Cf0f664A58059a188F00',
1069
- factoryAddress: '0x69f3212344A38b35844cCe4864C2af9c717F35e3',
1070
- initCodeHash: '0x3f7eace9f1c10ecce400030e19a86fd03c98c3770ce239a9cdef3b33fb40e933',
1071
- baseTokens: [
1072
- {
1073
- address: '0xabf26902fd7b624e0db40d31171ea9dddf078351',
1074
- symbol: 'WAG',
1075
- decimals: 18,
1076
- chainId: _1.ChainId.VEL,
1077
- },
1078
- {
1079
- symbol: 'WVLX',
1080
- address: '0xc579d1f3cf86749e05cd06f7ade17856c2ce3126',
1081
- decimals: 18,
1082
- chainId: _1.ChainId.VEL,
1083
- },
1084
- {
1085
- symbol: 'ASTRO',
1086
- address: '0x72eb7ca07399ec402c5b7aa6a65752b6a1dc0c27',
1087
- decimals: 18,
1088
- chainId: _1.ChainId.VEL,
1089
- },
1090
- ],
1091
- },
1092
- ];
1093
- /**
1094
- * @deprecated
1095
- * Available exchanges should be queried from the API
1096
- */
1097
- const getExchangeByKey = (key) => {
1098
- const exchange = exports.supportedExchanges.find((exchange) => exchange.key === key);
1099
- if (!exchange) {
1100
- throw new Error('Invalid key');
1101
- }
1102
- return exchange;
1103
- };
1104
- exports.getExchangeByKey = getExchangeByKey;