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