@lifi/types 1.0.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.
@@ -0,0 +1,1047 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getExchangeByKey = exports.supportedExchanges = exports.supportedExchangeAggregators = exports.ExchangeTool = void 0;
4
+ var _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
+ // 1666600000 - Harmony Mainnet Shard 0
341
+ {
342
+ key: 'viperswap-one',
343
+ name: 'ViperSwap',
344
+ chainId: _1.ChainId.ONE,
345
+ logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/viper.png',
346
+ webUrl: 'https://viper.exchange/#/swap',
347
+ tokenlistUrl: 'https://d1xrz6ki9z98vb.cloudfront.net/venomswap/lists/venomswap-default.tokenlist.json',
348
+ routerAddress: '0xf012702a5f0e54015362cBCA26a26fc90AA832a3',
349
+ factoryAddress: '0x7D02c116b98d0965ba7B642ace0183ad8b8D2196',
350
+ initCodeHash: '0x162f79e638367cd45a118c778971dfd8d96c625d2798d3b71994b035cfe9b6dc',
351
+ baseTokens: [
352
+ (0, _1.findDefaultToken)(_1.CoinKey.ONE, _1.ChainId.ONE),
353
+ (0, _1.findWrappedGasOnChain)(_1.ChainId.ONE),
354
+ {
355
+ address: '0xEf977d2f931C1978Db5F6747666fa1eACB0d0339',
356
+ symbol: '1DAI',
357
+ decimals: 18,
358
+ chainId: _1.ChainId.ONE,
359
+ },
360
+ {
361
+ address: '0xE176EBE47d621b984a73036B9DA5d834411ef734',
362
+ symbol: 'BUSD',
363
+ decimals: 18,
364
+ chainId: _1.ChainId.ONE,
365
+ },
366
+ {
367
+ address: '0x985458E523dB3d53125813eD68c274899e9DfAb4',
368
+ symbol: '1USDC',
369
+ decimals: 6,
370
+ chainId: _1.ChainId.ONE,
371
+ },
372
+ {
373
+ address: '0xEa589E93Ff18b1a1F1e9BaC7EF3E86Ab62addc79',
374
+ symbol: 'VIPER',
375
+ decimals: 18,
376
+ chainId: _1.ChainId.ONE,
377
+ },
378
+ {
379
+ address: '0x0dc78c79B4eB080eaD5C1d16559225a46b580694',
380
+ symbol: 'WAGMI',
381
+ decimals: 9,
382
+ chainId: _1.ChainId.ONE,
383
+ },
384
+ ],
385
+ },
386
+ {
387
+ key: 'sushiswap-one',
388
+ name: 'SushiSwap',
389
+ chainId: _1.ChainId.ONE,
390
+ logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/sushi.png',
391
+ webUrl: 'https://app.sushi.com/swap',
392
+ tokenlistUrl: 'https://raw.githubusercontent.com/sushiswap/list/master/lists/token-lists/default-token-list/tokens/harmony.json',
393
+ routerAddress: '0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506',
394
+ factoryAddress: '0xc35DADB65012eC5796536bD9864eD8773aBc74C4',
395
+ initCodeHash: '0xe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303',
396
+ baseTokens: [
397
+ (0, _1.findWrappedGasOnChain)(_1.ChainId.ONE),
398
+ (0, _1.findDefaultToken)(_1.CoinKey.DAI, _1.ChainId.ONE),
399
+ (0, _1.findDefaultToken)(_1.CoinKey.USDC, _1.ChainId.ONE),
400
+ (0, _1.findDefaultToken)(_1.CoinKey.USDT, _1.ChainId.ONE),
401
+ (0, _1.findDefaultToken)(_1.CoinKey.ETH, _1.ChainId.ONE),
402
+ (0, _1.findDefaultToken)(_1.CoinKey.WBTC, _1.ChainId.ONE),
403
+ (0, _1.findDefaultToken)(_1.CoinKey.SUSHI, _1.ChainId.ONE),
404
+ ],
405
+ },
406
+ // 43114 - Avalanche
407
+ {
408
+ key: 'sushiswap-ava',
409
+ name: 'SushiSwap',
410
+ chainId: _1.ChainId.AVA,
411
+ logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/sushi.png',
412
+ webUrl: 'https://app.sushi.com/swap',
413
+ tokenlistUrl: 'https://raw.githubusercontent.com/sushiswap/list/master/lists/token-lists/default-token-list/tokens/avalanche.json',
414
+ routerAddress: '0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506',
415
+ factoryAddress: '0xc35DADB65012eC5796536bD9864eD8773aBc74C4',
416
+ initCodeHash: '0xe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303',
417
+ baseTokens: [
418
+ (0, _1.findWrappedGasOnChain)(_1.ChainId.AVA),
419
+ (0, _1.findDefaultToken)(_1.CoinKey.USDC, _1.ChainId.AVA),
420
+ (0, _1.findDefaultToken)(_1.CoinKey.USDT, _1.ChainId.AVA),
421
+ (0, _1.findDefaultToken)(_1.CoinKey.DAI, _1.ChainId.AVA),
422
+ (0, _1.findDefaultToken)(_1.CoinKey.WBTC, _1.ChainId.AVA),
423
+ (0, _1.findDefaultToken)(_1.CoinKey.WETH, _1.ChainId.AVA),
424
+ (0, _1.findDefaultToken)(_1.CoinKey.SUSHI, _1.ChainId.AVA),
425
+ ],
426
+ },
427
+ // 42161 - Arbitrum One
428
+ {
429
+ key: 'sushiswap-arb',
430
+ name: 'SushiSwap',
431
+ chainId: _1.ChainId.ARB,
432
+ logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/sushi.png',
433
+ webUrl: 'https://app.sushi.com/swap',
434
+ tokenlistUrl: 'https://raw.githubusercontent.com/sushiswap/list/master/lists/token-lists/default-token-list/tokens/arbitrum.json',
435
+ routerAddress: '0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506',
436
+ factoryAddress: '0xc35DADB65012eC5796536bD9864eD8773aBc74C4',
437
+ initCodeHash: '0xe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303',
438
+ baseTokens: [
439
+ (0, _1.findDefaultToken)(_1.CoinKey.WETH, _1.ChainId.ARB),
440
+ (0, _1.findDefaultToken)(_1.CoinKey.WBTC, _1.ChainId.ARB),
441
+ (0, _1.findDefaultToken)(_1.CoinKey.USDC, _1.ChainId.ARB),
442
+ (0, _1.findDefaultToken)(_1.CoinKey.USDT, _1.ChainId.ARB),
443
+ (0, _1.findDefaultToken)(_1.CoinKey.SUSHI, _1.ChainId.ARB),
444
+ {
445
+ address: '0x3e6648c5a70a150a88bce65f4ad4d506fe15d2af',
446
+ symbol: 'SPELL',
447
+ decimals: 18,
448
+ chainId: _1.ChainId.ARB,
449
+ },
450
+ ],
451
+ },
452
+ // 10 - Optimistic Ethereum
453
+ // Uniswap V3:
454
+ // {
455
+ // key: 'uniswap-opt',
456
+ // name: 'UniswapV3',
457
+ // chainId: 10,
458
+ // logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/uniswap.png',
459
+ // webUrl: 'https://app.uniswap.org/#/swap',
460
+ // graph: '',
461
+ // tokenlistUrl: 'https://static.optimism.io/optimism.tokenlist.json',
462
+ // routerAddress: '0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D',
463
+ // factoryAddress: '0x1F98431c8aD98523631AE4a59f267346ea31F984',
464
+ // initCodeHash: '0x96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f',
465
+ // baseTokens: [
466
+ // findWrappedGasOnChain(ChainId.OPT),
467
+ // findDefaultToken(CoinKey.DAI, ChainId.OPT),
468
+ // findDefaultToken(CoinKey.USDC, ChainId.OPT),
469
+ // findDefaultToken(CoinKey.USDT, ChainId.OPT),
470
+ // findDefaultToken(CoinKey.WBTC, ChainId.OPT),
471
+ // ]
472
+ // },
473
+ // 1285 - Moonriver
474
+ {
475
+ key: 'sushiswap-mor',
476
+ name: 'SushiSwap',
477
+ chainId: _1.ChainId.MOR,
478
+ logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/sushi.png',
479
+ webUrl: 'https://app.sushi.com/swap',
480
+ tokenlistUrl: 'https://raw.githubusercontent.com/sushiswap/list/master/lists/token-lists/default-token-list/tokens/moonriver.json',
481
+ routerAddress: '0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506',
482
+ factoryAddress: '0xc35DADB65012eC5796536bD9864eD8773aBc74C4',
483
+ initCodeHash: '0xe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303',
484
+ baseTokens: [
485
+ (0, _1.findWrappedGasOnChain)(_1.ChainId.MOR),
486
+ (0, _1.findDefaultToken)(_1.CoinKey.WETH, _1.ChainId.MOR),
487
+ (0, _1.findDefaultToken)(_1.CoinKey.WBTC, _1.ChainId.MOR),
488
+ (0, _1.findDefaultToken)(_1.CoinKey.USDC, _1.ChainId.MOR),
489
+ (0, _1.findDefaultToken)(_1.CoinKey.USDT, _1.ChainId.MOR),
490
+ (0, _1.findDefaultToken)(_1.CoinKey.SUSHI, _1.ChainId.MOR),
491
+ {
492
+ address: '0x1a93b23281cc1cde4c4741353f3064709a16197d',
493
+ symbol: 'FRAX',
494
+ decimals: 18,
495
+ chainId: _1.ChainId.MOR,
496
+ },
497
+ {
498
+ address: '0x0cae51e1032e8461f4806e26332c030e34de3adb',
499
+ symbol: 'MIM',
500
+ decimals: 18,
501
+ chainId: _1.ChainId.MOR,
502
+ },
503
+ {
504
+ address: '0x3d2d044e8c6dad46b4f7896418d3d4dfaad902be',
505
+ symbol: 'aROME',
506
+ decimals: 9,
507
+ chainId: _1.ChainId.MOR,
508
+ },
509
+ ],
510
+ },
511
+ {
512
+ key: 'solarbeam-mor',
513
+ name: 'Solarbeam',
514
+ chainId: _1.ChainId.MOR,
515
+ logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/solarbeam.png',
516
+ webUrl: 'https://app.solarbeam.io/exchange/swap',
517
+ tokenlistUrl: 'https://raw.githubusercontent.com/solarbeamio/solarbeam-tokenlist/main/solarbeam.tokenlist.json',
518
+ routerAddress: '0xAA30eF758139ae4a7f798112902Bf6d65612045f',
519
+ factoryAddress: '0x049581aEB6Fe262727f290165C29BDAB065a1B68',
520
+ initCodeHash: '0x9a100ded5f254443fbd264cb7e87831e398a8b642e061670a9bc35ba27293dbf',
521
+ baseTokens: [
522
+ (0, _1.findWrappedGasOnChain)(_1.ChainId.MOR),
523
+ (0, _1.findDefaultToken)(_1.CoinKey.USDC, _1.ChainId.MOR),
524
+ {
525
+ address: '0x1a93b23281cc1cde4c4741353f3064709a16197d',
526
+ symbol: 'FRAX',
527
+ decimals: 18,
528
+ chainId: _1.ChainId.MOR,
529
+ },
530
+ {
531
+ address: '0x6bd193ee6d2104f14f94e2ca6efefae561a4334b',
532
+ symbol: 'SOLAR',
533
+ decimals: 18,
534
+ chainId: _1.ChainId.MOR,
535
+ },
536
+ ],
537
+ },
538
+ // 128 - HECO Chain
539
+ {
540
+ key: 'sushiswap-hec',
541
+ name: 'SushiSwap',
542
+ chainId: _1.ChainId.HEC,
543
+ logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/sushi.png',
544
+ webUrl: 'https://app.sushi.com/swap',
545
+ tokenlistUrl: 'https://raw.githubusercontent.com/sushiswap/list/master/lists/token-lists/default-token-list/tokens/heco.json',
546
+ routerAddress: '0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506',
547
+ factoryAddress: '0xc35DADB65012eC5796536bD9864eD8773aBc74C4',
548
+ initCodeHash: '0xe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303',
549
+ baseTokens: [
550
+ (0, _1.findWrappedGasOnChain)(_1.ChainId.HEC),
551
+ (0, _1.findDefaultToken)(_1.CoinKey.ETH, _1.ChainId.HEC),
552
+ (0, _1.findDefaultToken)(_1.CoinKey.USDC, _1.ChainId.HEC),
553
+ (0, _1.findDefaultToken)(_1.CoinKey.USDT, _1.ChainId.HEC),
554
+ (0, _1.findDefaultToken)(_1.CoinKey.SUSHI, _1.ChainId.HEC),
555
+ {
556
+ address: '0x66a79d23e58475d2738179ca52cd0b41d73f0bea',
557
+ symbol: 'HBTC',
558
+ decimals: 18,
559
+ chainId: _1.ChainId.HEC,
560
+ },
561
+ {
562
+ address: '0x3d760a45d0887dfd89a2f5385a236b29cb46ed2a',
563
+ symbol: 'DAIHECO',
564
+ decimals: 18,
565
+ chainId: _1.ChainId.HEC,
566
+ },
567
+ ],
568
+ },
569
+ // 66 - OKEX
570
+ {
571
+ key: 'sushiswap-okt',
572
+ name: 'SushiSwap',
573
+ chainId: _1.ChainId.OKT,
574
+ logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/sushi.png',
575
+ webUrl: 'https://app.sushi.com/swap',
576
+ tokenlistUrl: 'https://raw.githubusercontent.com/sushiswap/list/master/lists/token-lists/default-token-list/tokens/okex.json',
577
+ routerAddress: '0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506',
578
+ factoryAddress: '0xc35DADB65012eC5796536bD9864eD8773aBc74C4',
579
+ initCodeHash: '0xe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303',
580
+ baseTokens: [
581
+ (0, _1.findWrappedGasOnChain)(_1.ChainId.OKT),
582
+ (0, _1.findDefaultToken)(_1.CoinKey.ETH, _1.ChainId.OKT),
583
+ (0, _1.findDefaultToken)(_1.CoinKey.WBTC, _1.ChainId.OKT),
584
+ (0, _1.findDefaultToken)(_1.CoinKey.DAI, _1.ChainId.OKT),
585
+ (0, _1.findDefaultToken)(_1.CoinKey.USDC, _1.ChainId.OKT),
586
+ (0, _1.findDefaultToken)(_1.CoinKey.USDT, _1.ChainId.OKT),
587
+ (0, _1.findDefaultToken)(_1.CoinKey.SUSHI, _1.ChainId.OKT),
588
+ ],
589
+ },
590
+ {
591
+ key: 'jswap-okt',
592
+ name: 'JSwap',
593
+ chainId: _1.ChainId.OKT,
594
+ logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/jswap.png',
595
+ webUrl: 'https://app.jswap.finance/#/swap',
596
+ tokenlistUrl: 'https://resources.jswap.finance/token-list/oec/extended.tokenlist.json',
597
+ routerAddress: '0x069A306A638ac9d3a68a6BD8BE898774C073DCb3',
598
+ factoryAddress: '0xd654CbF99F2907F06c88399AE123606121247D5C',
599
+ initCodeHash: '0xf6608394468275c0df88a8568e9fbf7295a0aebddd5ae966ce6dbf5bb4ee68a0',
600
+ baseTokens: [
601
+ (0, _1.findDefaultToken)(_1.CoinKey.OKT, _1.ChainId.OKT),
602
+ (0, _1.findDefaultToken)(_1.CoinKey.ETH, _1.ChainId.OKT),
603
+ (0, _1.findDefaultToken)(_1.CoinKey.USDT, _1.ChainId.OKT),
604
+ {
605
+ address: '0x54e4622dc504176b3bb432dccaf504569699a7ff',
606
+ symbol: 'BTCK',
607
+ decimals: 18,
608
+ chainId: _1.ChainId.OKT,
609
+ },
610
+ {
611
+ address: '0xdf54b6c6195ea4d948d03bfd818d365cf175cfc2',
612
+ symbol: 'OKB',
613
+ decimals: 18,
614
+ chainId: _1.ChainId.OKT,
615
+ },
616
+ {
617
+ address: '0x5fac926bf1e638944bb16fb5b787b5ba4bc85b0a',
618
+ symbol: 'JF',
619
+ decimals: 18,
620
+ chainId: _1.ChainId.OKT,
621
+ },
622
+ ],
623
+ },
624
+ // 25 - Cronos Mainnet Beta
625
+ {
626
+ key: 'cronaswap-cro',
627
+ name: 'CronaSwap',
628
+ chainId: _1.ChainId.CRO,
629
+ logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/cronaswap.png',
630
+ webUrl: 'https://app.cronaswap.org/swap',
631
+ tokenlistUrl: 'https://raw.githubusercontent.com/cronaswap/default-token-list/main/assets/tokens/cronos.json',
632
+ routerAddress: '0xcd7d16fB918511BF7269eC4f48d61D79Fb26f918',
633
+ factoryAddress: '0x73A48f8f521EB31c55c0e1274dB0898dE599Cb11',
634
+ initCodeHash: '0xc93158cffa5b575e32566e81e847754ce517f8fa988d3e25cf346d916216e06f',
635
+ baseTokens: [
636
+ (0, _1.findDefaultToken)(_1.CoinKey.CRO, _1.ChainId.CRO),
637
+ (0, _1.findDefaultToken)(_1.CoinKey.USDC, _1.ChainId.CRO),
638
+ {
639
+ address: '0xadbd1231fb360047525bedf962581f3eee7b49fe',
640
+ symbol: 'CRONA',
641
+ decimals: 18,
642
+ chainId: _1.ChainId.CRO,
643
+ },
644
+ ],
645
+ },
646
+ // TODO: For cronos chain, we will add KyberSwap in the near future, they're still in development
647
+ // 1284 - Moonbeam
648
+ {
649
+ key: 'stellaswap-moo',
650
+ name: 'StellaSwap',
651
+ chainId: _1.ChainId.MOO,
652
+ logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/stellaswap.png',
653
+ webUrl: 'https://app.stellaswap.com/',
654
+ tokenlistUrl: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/tokens/stellaswap.json',
655
+ routerAddress: '0xd0A01ec574D1fC6652eDF79cb2F880fd47D34Ab1',
656
+ factoryAddress: '0x68A384D826D3678f78BB9FB1533c7E9577dACc0E',
657
+ initCodeHash: '0x48a6ca3d52d0d0a6c53a83cc3c8688dd46ea4cb786b169ee959b95ad30f61643',
658
+ baseTokens: [
659
+ {
660
+ address: '0x0E358838ce72d5e61E0018a2ffaC4bEC5F4c88d2',
661
+ symbol: 'STELLA',
662
+ decimals: 18,
663
+ chainId: _1.ChainId.MOO,
664
+ },
665
+ {
666
+ address: '0x818ec0A7Fe18Ff94269904fCED6AE3DaE6d6dC0b',
667
+ symbol: 'USDC',
668
+ decimals: 6,
669
+ chainId: _1.ChainId.MOO,
670
+ },
671
+ {
672
+ address: '0xAcc15dC74880C9944775448304B263D191c6077F',
673
+ symbol: 'WGLMR',
674
+ decimals: 18,
675
+ chainId: _1.ChainId.MOO,
676
+ },
677
+ ],
678
+ },
679
+ {
680
+ key: 'beamswap-moo',
681
+ name: 'BeamSwap',
682
+ chainId: _1.ChainId.MOO,
683
+ logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/beamswap.png',
684
+ webUrl: 'https://app.beamswap.io/',
685
+ tokenlistUrl: 'https://raw.githubusercontent.com/BeamSwap/beamswap-tokenlist/main/tokenlist.json',
686
+ routerAddress: '0x96b244391D98B62D19aE89b1A4dCcf0fc56970C7',
687
+ factoryAddress: '0x985BcA32293A7A496300a48081947321177a86FD',
688
+ initCodeHash: '0xe31da4209ffcce713230a74b5287fa8ec84797c9e77e1f7cfeccea015cdc97ea',
689
+ baseTokens: [
690
+ (0, _1.findWrappedGasOnChain)(_1.ChainId.MOO),
691
+ (0, _1.findDefaultToken)(_1.CoinKey.BNB, _1.ChainId.MOO),
692
+ (0, _1.findDefaultToken)(_1.CoinKey.ETH, _1.ChainId.MOO),
693
+ {
694
+ chainId: 1284,
695
+ address: '0xeFAeeE334F0Fd1712f9a8cc375f427D9Cdd40d73',
696
+ symbol: 'USDT',
697
+ name: 'USDT Token',
698
+ decimals: 6,
699
+ },
700
+ {
701
+ chainId: 1284,
702
+ address: '0xA649325Aa7C5093d12D6F98EB4378deAe68CE23F',
703
+ symbol: 'BUSD',
704
+ name: 'BUSD Token',
705
+ decimals: 18,
706
+ },
707
+ {
708
+ chainId: 1284,
709
+ address: '0x818ec0A7Fe18Ff94269904fCED6AE3DaE6d6dC0b',
710
+ symbol: 'USDC',
711
+ name: 'USDC Token',
712
+ decimals: 6,
713
+ },
714
+ ],
715
+ },
716
+ // 122 - Fuse Mainnet // TODO: incomplete
717
+ // {
718
+ // key: 'fuseswap-fus',
719
+ // name: 'FuseSwap',
720
+ // chainId: ChainId.FUS,
721
+ // logoURI:
722
+ // 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/fuseswap.png',
723
+ // webUrl: 'https://app.fuse.fi/#/swap',
724
+ // graph: 'https://api.thegraph.com/subgraphs/name/fuseio/fuseswap',
725
+ // tokenlistUrl:
726
+ // 'https://raw.githubusercontent.com/fuseio/fuseswap-default-token-list/master/build/fuseswap-default.tokenlist.json',
727
+ // // we should add router address, factory address and init code hash
728
+ // routerAddress: '',
729
+ // factoryAddress: '',
730
+ // initCodeHash: '',
731
+ // baseTokens: [
732
+ // findWrappedGasOnChain(ChainId.FUS),
733
+ // findDefaultToken(CoinKey.FUSE, ChainId.FUS),
734
+ // findDefaultToken(CoinKey.USDC, ChainId.FUS),
735
+ // findDefaultToken(CoinKey.USDT, ChainId.FUS),
736
+ // findDefaultToken(CoinKey.WBTC, ChainId.FUS),
737
+ // findDefaultToken(CoinKey.WETH, ChainId.FUS),
738
+ // {
739
+ // address: '0x249be57637d8b013ad64785404b24aebae9b098b',
740
+ // symbol: 'fUSD',
741
+ // decimals: 18,
742
+ // chainId: ChainId.FUS,
743
+ // } as Token,
744
+ // ],
745
+ // },
746
+ {
747
+ key: 'sushiswap-fus',
748
+ name: 'SushiSwap',
749
+ chainId: _1.ChainId.FUS,
750
+ logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/sushi.png',
751
+ webUrl: 'https://app.sushi.com/swap',
752
+ tokenlistUrl: 'https://raw.githubusercontent.com/sushiswap/list/master/lists/token-lists/default-token-list/tokens/fuse.json',
753
+ routerAddress: '0xF4d73326C13a4Fc5FD7A064217e12780e9Bd62c3',
754
+ factoryAddress: '0x43eA90e2b786728520e4f930d2A71a477BF2737C',
755
+ initCodeHash: '0x1901958ef8b470f2c0a3875a79ee0bd303866d85102c0f1ea820d317024d50b5',
756
+ baseTokens: [
757
+ (0, _1.findWrappedGasOnChain)(_1.ChainId.FUS),
758
+ (0, _1.findDefaultToken)(_1.CoinKey.USDC, _1.ChainId.FUS),
759
+ (0, _1.findDefaultToken)(_1.CoinKey.USDT, _1.ChainId.FUS),
760
+ (0, _1.findDefaultToken)(_1.CoinKey.WBTC, _1.ChainId.FUS),
761
+ (0, _1.findDefaultToken)(_1.CoinKey.WETH, _1.ChainId.FUS),
762
+ (0, _1.findDefaultToken)(_1.CoinKey.DAI, _1.ChainId.FUS),
763
+ (0, _1.findDefaultToken)(_1.CoinKey.SUSHI, _1.ChainId.FUS),
764
+ ],
765
+ },
766
+ // 42220 Celo Mainnet
767
+ {
768
+ key: 'ubeswap-cel',
769
+ name: 'UbeSwap',
770
+ chainId: _1.ChainId.CEL,
771
+ logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/ubeswap.png',
772
+ webUrl: 'https://app.ubeswap.org/#/swap',
773
+ graph: 'https://api.thegraph.com/subgraphs/name/ubeswap/ubeswap',
774
+ tokenlistUrl: 'https://raw.githubusercontent.com/Ubeswap/default-token-list/master/ubeswap.token-list.json',
775
+ routerAddress: '0xE3D8bd6Aed4F159bc8000a9cD47CffDb95F96121',
776
+ factoryAddress: '0x62d5b84bE28a183aBB507E125B384122D2C25fAE',
777
+ initCodeHash: '0xb3b8ff62960acea3a88039ebcf80699f15786f1b17cebd82802f7375827a339c',
778
+ baseTokens: [
779
+ (0, _1.findWrappedGasOnChain)(_1.ChainId.CEL),
780
+ {
781
+ address: '0x918146359264c492bd6934071c6bd31c854edbc3',
782
+ symbol: 'mCUSD',
783
+ decimals: 18,
784
+ chainId: _1.ChainId.CEL,
785
+ },
786
+ {
787
+ address: '0xe273ad7ee11dcfaa87383ad5977ee1504ac07568',
788
+ symbol: 'mCEUR',
789
+ decimals: 18,
790
+ chainId: _1.ChainId.CEL,
791
+ },
792
+ ],
793
+ },
794
+ {
795
+ key: 'sushiswap-cel',
796
+ name: 'SushiSwap',
797
+ chainId: _1.ChainId.CEL,
798
+ logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/sushi.png',
799
+ webUrl: 'https://app.sushi.com/swap',
800
+ tokenlistUrl: 'https://raw.githubusercontent.com/sushiswap/list/master/lists/token-lists/default-token-list/tokens/celo.json',
801
+ routerAddress: '0x1421bDe4B10e8dd459b3BCb598810B1337D56842',
802
+ factoryAddress: '0xc35DADB65012eC5796536bD9864eD8773aBc74C4',
803
+ initCodeHash: '0xe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303',
804
+ baseTokens: [
805
+ (0, _1.findWrappedGasOnChain)(_1.ChainId.CEL),
806
+ (0, _1.findDefaultToken)(_1.CoinKey.USDC, _1.ChainId.CEL),
807
+ (0, _1.findDefaultToken)(_1.CoinKey.WBTC, _1.ChainId.CEL),
808
+ (0, _1.findDefaultToken)(_1.CoinKey.WETH, _1.ChainId.CEL),
809
+ (0, _1.findDefaultToken)(_1.CoinKey.SUSHI, _1.ChainId.CEL),
810
+ {
811
+ address: '0x765de816845861e75a25fca122bb6898b8b1282a',
812
+ symbol: 'cUSD',
813
+ decimals: 18,
814
+ chainId: _1.ChainId.CEL,
815
+ },
816
+ {
817
+ address: '0xd8763cba276a3738e6de85b4b3bf5fded6d6ca73',
818
+ symbol: 'cEUR',
819
+ decimals: 18,
820
+ chainId: _1.ChainId.CEL,
821
+ },
822
+ ],
823
+ },
824
+ // 1088 Metis Andromeda Mainnet // TODO: incomplete
825
+ // {
826
+ // key: 'standard-mam',
827
+ // name: 'Standard',
828
+ // chainId: ChainId.MAM,
829
+ // logoURI:
830
+ // 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/standard.png',
831
+ // webUrl: 'https://apps.standard.tech/trade',
832
+ // tokenlistUrl:
833
+ // 'https://raw.githubusercontent.com/digitalnativeinc/default-token-list/dnf/tokens/metis.json',
834
+ // // we should add router address, factory address and init code hash
835
+ // routerAddress: '',
836
+ // factoryAddress: '',
837
+ // initCodeHash: '',
838
+ // baseTokens: [
839
+ // findWrappedGasOnChain(ChainId.MAM),
840
+ // {
841
+ // address: '0xc12cac7090baa48ec750cceec57c80768f6ee58e',
842
+ // symbol: 'STND',
843
+ // decimals: 18,
844
+ // chainId: ChainId.MAM,
845
+ // } as Token,
846
+ // {
847
+ // address: '0xea32a96608495e54156ae48931a7c20f0dcc1a21',
848
+ // symbol: 'm.USDC',
849
+ // decimals: 6,
850
+ // chainId: ChainId.MAM,
851
+ // } as Token,
852
+ // {
853
+ // address: '0xbb06dca3ae6887fabf931640f67cab3e3a16f4dc',
854
+ // symbol: 'm.USDT',
855
+ // decimals: 6,
856
+ // chainId: ChainId.MAM,
857
+ // } as Token,
858
+ // ],
859
+ // },
860
+ // 288 Boba Network
861
+ {
862
+ key: 'oolongswap-bob',
863
+ name: 'OolongSwap',
864
+ chainId: _1.ChainId.BOB,
865
+ logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/oolongswap.png',
866
+ webUrl: 'https://oolongswap.com/#/swap',
867
+ tokenlistUrl: 'https://raw.githubusercontent.com/OolongSwap/boba-community-token-list/main/build/boba.tokenlist.json',
868
+ routerAddress: '0x17C83E2B96ACfb5190d63F5E46d93c107eC0b514',
869
+ factoryAddress: '0x7DDaF116889D655D1c486bEB95017a8211265d29',
870
+ initCodeHash: '0x1db9efb13a1398e31bb71895c392fa1217130f78dc65080174491adcec5da9b9',
871
+ baseTokens: [
872
+ (0, _1.findDefaultToken)(_1.CoinKey.ETH, _1.ChainId.BOB),
873
+ (0, _1.findWrappedGasOnChain)(_1.ChainId.BOB),
874
+ (0, _1.findDefaultToken)(_1.CoinKey.WBTC, _1.ChainId.BOB),
875
+ (0, _1.findDefaultToken)(_1.CoinKey.DAI, _1.ChainId.BOB),
876
+ (0, _1.findDefaultToken)(_1.CoinKey.USDC, _1.ChainId.BOB),
877
+ (0, _1.findDefaultToken)(_1.CoinKey.USDT, _1.ChainId.BOB),
878
+ {
879
+ address: '0xa18bf3994c0cc6e3b63ac420308e5383f53120d7',
880
+ symbol: 'BOBA',
881
+ decimals: 18,
882
+ chainId: _1.ChainId.BOB,
883
+ },
884
+ {
885
+ address: '0x5008f837883ea9a07271a1b5eb0658404f5a9610',
886
+ symbol: 'OLO',
887
+ decimals: 18,
888
+ chainId: _1.ChainId.BOB,
889
+ },
890
+ ],
891
+ },
892
+ // TESTNETS
893
+ // 3 - Ropsten
894
+ {
895
+ key: 'uniswap-rop',
896
+ name: 'Uniswap',
897
+ chainId: _1.ChainId.ROP,
898
+ logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/uniswap.png',
899
+ webUrl: 'https://app.uniswap.org/',
900
+ tokenlistUrl: 'https://raw.githubusercontent.com/compound-finance/token-list/master/compound.tokenlist.json',
901
+ routerAddress: '0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D',
902
+ factoryAddress: '0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f',
903
+ initCodeHash: '0x96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f',
904
+ baseTokens: [
905
+ (0, _1.findDefaultToken)(_1.CoinKey.ETH, _1.ChainId.ROP),
906
+ (0, _1.findDefaultToken)(_1.CoinKey.WETH, _1.ChainId.ROP),
907
+ ],
908
+ },
909
+ // TODO: sushiswap does not work properly
910
+ // {
911
+ // key: 'sushiswap-rop',
912
+ // name: 'SushiSwap',
913
+ // chainId: ChainId.ROP,
914
+ // logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/sushi.png',
915
+ // webUrl: 'https://app.sushi.com/swap',
916
+ // tokenlistUrl: 'https://raw.githubusercontent.com/sushiswap/list/master/lists/token-lists/default-token-list/tokens/ropsten.json',
917
+ // routerAddress: '0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506',
918
+ // factoryAddress: '0xc35DADB65012eC5796536bD9864eD8773aBc74C4',
919
+ // initCodeHash: '0xe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303',
920
+ // },
921
+ // 4 - Rinkeby
922
+ {
923
+ key: 'uniswap-rin',
924
+ name: 'Uniswap',
925
+ chainId: _1.ChainId.RIN,
926
+ logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/uniswap.png',
927
+ webUrl: 'https://app.uniswap.org/',
928
+ tokenlistUrl: 'https://raw.githubusercontent.com/compound-finance/token-list/master/compound.tokenlist.json',
929
+ routerAddress: '0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D',
930
+ factoryAddress: '0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f',
931
+ initCodeHash: '0x96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f',
932
+ baseTokens: [
933
+ (0, _1.findDefaultToken)(_1.CoinKey.ETH, _1.ChainId.RIN),
934
+ (0, _1.findDefaultToken)(_1.CoinKey.WETH, _1.ChainId.RIN),
935
+ ],
936
+ },
937
+ // TODO: sushiswap does not work properly
938
+ // {
939
+ // key: 'sushiswap-rin',
940
+ // name: 'SushiSwap',
941
+ // chainId: ChainId.RIN,
942
+ // logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/sushi.png',
943
+ // webUrl: 'https://app.sushi.com/swap',
944
+ // tokenlistUrl: 'https://raw.githubusercontent.com/sushiswap/list/master/lists/token-lists/default-token-list/tokens/rinkeby.json',
945
+ // routerAddress: '0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506',
946
+ // factoryAddress: '0xc35DADB65012eC5796536bD9864eD8773aBc74C4',
947
+ // initCodeHash: '0xe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303',
948
+ // },
949
+ // 5 - Goerli
950
+ {
951
+ key: 'uniswap-gor',
952
+ name: 'Uniswap',
953
+ chainId: _1.ChainId.GOR,
954
+ logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/uniswap.png',
955
+ webUrl: 'https://app.uniswap.org/',
956
+ tokenlistUrl: 'https://raw.githubusercontent.com/compound-finance/token-list/master/compound.tokenlist.json',
957
+ routerAddress: '0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D',
958
+ factoryAddress: '0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f',
959
+ initCodeHash: '0x96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f',
960
+ baseTokens: [
961
+ (0, _1.findDefaultToken)(_1.CoinKey.ETH, _1.ChainId.GOR),
962
+ (0, _1.findDefaultToken)(_1.CoinKey.WETH, _1.ChainId.GOR),
963
+ ],
964
+ },
965
+ // TODO: sushiswap does not work properly
966
+ // {
967
+ // key: 'sushiswap-gor',
968
+ // name: 'SushiSwap',
969
+ // chainId: ChainId.GOR,
970
+ // logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/sushi.png',
971
+ // webUrl: 'https://app.sushi.com/swap',
972
+ // tokenlistUrl: 'https://raw.githubusercontent.com/sushiswap/list/master/lists/token-lists/default-token-list/tokens/goerli.json',
973
+ // routerAddress: '0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506',
974
+ // factoryAddress: '0xc35DADB65012eC5796536bD9864eD8773aBc74C4',
975
+ // initCodeHash: '0xe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303',
976
+ // baseTokens: [],
977
+ // },
978
+ // 42 - Kovan
979
+ {
980
+ key: 'uniswap-kov',
981
+ name: 'Uniswap',
982
+ chainId: _1.ChainId.KOV,
983
+ logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/uniswap.png',
984
+ webUrl: 'https://app.uniswap.org/',
985
+ tokenlistUrl: 'https://raw.githubusercontent.com/compound-finance/token-list/master/compound.tokenlist.json',
986
+ routerAddress: '0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D',
987
+ factoryAddress: '0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f',
988
+ initCodeHash: '0x96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f',
989
+ baseTokens: [
990
+ (0, _1.findDefaultToken)(_1.CoinKey.ETH, _1.ChainId.KOV),
991
+ (0, _1.findDefaultToken)(_1.CoinKey.WETH, _1.ChainId.KOV),
992
+ ],
993
+ },
994
+ // TODO: sushiswap does not work properly
995
+ // {
996
+ // key: 'sushiswap-kov',
997
+ // name: 'SushiSwap',
998
+ // chainId: ChainId.KOV,
999
+ // logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/sushi.png',
1000
+ // webUrl: 'https://app.sushi.com/swap',
1001
+ // tokenlistUrl: 'https://raw.githubusercontent.com/sushiswap/list/master/lists/token-lists/default-token-list/tokens/kovan.json',
1002
+ // routerAddress: '0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506',
1003
+ // factoryAddress: '0xc35DADB65012eC5796536bD9864eD8773aBc74C4',
1004
+ // initCodeHash: '0xe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303',
1005
+ // baseTokens: [],
1006
+ // },
1007
+ // 1666700000 - HARMONY TESTNET
1008
+ // TODO: Only sushiswap support ONET but official swap website also does not work correctly
1009
+ {
1010
+ key: 'sushiswap-onet',
1011
+ name: 'SushiSwap',
1012
+ chainId: _1.ChainId.ONET,
1013
+ logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/sushi.png',
1014
+ webUrl: 'https://app.sushi.com/swap',
1015
+ tokenlistUrl: 'https://raw.githubusercontent.com/sushiswap/list/master/lists/token-lists/default-token-list/tokens/harmony-testnet.json',
1016
+ routerAddress: '0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506',
1017
+ factoryAddress: '0xc35DADB65012eC5796536bD9864eD8773aBc74C4',
1018
+ initCodeHash: '0xe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303',
1019
+ baseTokens: [],
1020
+ },
1021
+ // 97 - Binance Smart Chain TESTNET
1022
+ // TODO: Only sushiswap support BSCT but official swap website also does not work correctly
1023
+ {
1024
+ key: 'sushiswap-bsct',
1025
+ name: 'SushiSwap',
1026
+ chainId: _1.ChainId.BSCT,
1027
+ logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/sushi.png',
1028
+ webUrl: 'https://app.sushi.com/swap',
1029
+ tokenlistUrl: 'https://raw.githubusercontent.com/sushiswap/list/master/lists/token-lists/default-token-list/tokens/harmony-testnet.json',
1030
+ routerAddress: '0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506',
1031
+ factoryAddress: '0xc35DADB65012eC5796536bD9864eD8773aBc74C4',
1032
+ initCodeHash: '0xe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303',
1033
+ baseTokens: [(0, _1.findWrappedGasOnChain)(_1.ChainId.ONET)],
1034
+ },
1035
+ ];
1036
+ /**
1037
+ * @deprecated
1038
+ * Available exchanges should be queried from the API
1039
+ */
1040
+ var getExchangeByKey = function (key) {
1041
+ var exchange = exports.supportedExchanges.find(function (exchange) { return exchange.key === key; });
1042
+ if (!exchange) {
1043
+ throw new Error('Invalid key');
1044
+ }
1045
+ return exchange;
1046
+ };
1047
+ exports.getExchangeByKey = getExchangeByKey;