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