@paraswap/dex-lib 3.5.3 → 3.5.4-v6.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/config.js +36 -36
- package/package.json +2 -2
- package/src/config.ts +36 -36
package/build/config.js
CHANGED
|
@@ -17,11 +17,11 @@ const baseConfigs = {
|
|
|
17
17
|
tokenTransferProxyAddress: '0x216b4b4ba9f3e719726886d34a177484278bfcae',
|
|
18
18
|
multicallV2Address: '0x5BA1e12693Dc8F9c48aAD8770482f4739bEeD696',
|
|
19
19
|
privateHttpProvider: process.env.HTTP_PROVIDER_1,
|
|
20
|
-
augustusV6Address: '
|
|
20
|
+
augustusV6Address: '0x6a000f20005980200259b80c5102003040001068',
|
|
21
21
|
executorsAddresses: {
|
|
22
|
-
Executor01: '
|
|
23
|
-
Executor02: '
|
|
24
|
-
Executor03: '
|
|
22
|
+
Executor01: '0x5f0000d4780a00d2dce0a00004000800cb0e5041',
|
|
23
|
+
Executor02: '0xd08d0006f00040b400180f9500b00c5026ac0900',
|
|
24
|
+
Executor03: '0x5006860a0906b0d8c9c050200947000030081006',
|
|
25
25
|
},
|
|
26
26
|
adapterAddresses: {
|
|
27
27
|
Adapter01: '0x9bE264469eF954c139Da4A45Cf76CbCC5e3A6A73',
|
|
@@ -107,11 +107,11 @@ const baseConfigs = {
|
|
|
107
107
|
tokenTransferProxyAddress: '0x216b4b4ba9f3e719726886d34a177484278bfcae',
|
|
108
108
|
multicallV2Address: '0xC50F4c1E81c873B2204D7eFf7069Ffec6Fbe136D',
|
|
109
109
|
privateHttpProvider: process.env.HTTP_PROVIDER_56,
|
|
110
|
-
augustusV6Address: '
|
|
110
|
+
augustusV6Address: '0x6a000f20005980200259b80c5102003040001068',
|
|
111
111
|
executorsAddresses: {
|
|
112
|
-
Executor01: '
|
|
113
|
-
Executor02: '
|
|
114
|
-
Executor03: '
|
|
112
|
+
Executor01: '0x5f0000d4780a00d2dce0a00004000800cb0e5041',
|
|
113
|
+
Executor02: '0xd08d0006f00040b400180f9500b00c5026ac0900',
|
|
114
|
+
Executor03: '0x5006860a0906b0d8c9c050200947000030081006',
|
|
115
115
|
},
|
|
116
116
|
hashFlowAuthToken: process.env.API_KEY_HASHFLOW_AUTH_TOKEN || '',
|
|
117
117
|
swaapV2AuthToken: process.env.API_KEY_SWAAP_V2_AUTH_TOKEN || '',
|
|
@@ -140,11 +140,11 @@ const baseConfigs = {
|
|
|
140
140
|
tokenTransferProxyAddress: '0x216b4b4ba9f3e719726886d34a177484278bfcae',
|
|
141
141
|
multicallV2Address: '0x275617327c958bD06b5D6b871E7f491D76113dd8',
|
|
142
142
|
privateHttpProvider: process.env.HTTP_PROVIDER_137,
|
|
143
|
-
augustusV6Address: '
|
|
143
|
+
augustusV6Address: '0x6a000f20005980200259b80c5102003040001068',
|
|
144
144
|
executorsAddresses: {
|
|
145
|
-
Executor01: '
|
|
146
|
-
Executor02: '
|
|
147
|
-
Executor03: '
|
|
145
|
+
Executor01: '0x5f0000d4780a00d2dce0a00004000800cb0e5041',
|
|
146
|
+
Executor02: '0xd08d0006f00040b400180f9500b00c5026ac0900',
|
|
147
|
+
Executor03: '0x5006860a0906b0d8c9c050200947000030081006',
|
|
148
148
|
},
|
|
149
149
|
hashFlowAuthToken: process.env.API_KEY_HASHFLOW_AUTH_TOKEN || '',
|
|
150
150
|
hashFlowDisabledMMs: process.env[`HASHFLOW_DISABLED_MMS_137`]?.split(',') || [],
|
|
@@ -177,11 +177,11 @@ const baseConfigs = {
|
|
|
177
177
|
hashFlowAuthToken: process.env.API_KEY_HASHFLOW_AUTH_TOKEN || '',
|
|
178
178
|
hashFlowDisabledMMs: process.env[`HASHFLOW_DISABLED_MMS_43114`]?.split(',') || [],
|
|
179
179
|
dexalotAuthToken: process.env.API_KEY_DEXALOT_AUTH_TOKEN || '',
|
|
180
|
-
augustusV6Address: '
|
|
180
|
+
augustusV6Address: '0x6a000f20005980200259b80c5102003040001068',
|
|
181
181
|
executorsAddresses: {
|
|
182
|
-
Executor01: '
|
|
183
|
-
Executor02: '
|
|
184
|
-
Executor03: '
|
|
182
|
+
Executor01: '0x5f0000d4780a00d2dce0a00004000800cb0e5041',
|
|
183
|
+
Executor02: '0xd08d0006f00040b400180f9500b00c5026ac0900',
|
|
184
|
+
Executor03: '0x5006860a0906b0d8c9c050200947000030081006',
|
|
185
185
|
},
|
|
186
186
|
adapterAddresses: {
|
|
187
187
|
AvalancheAdapter01: '0x745Ec73855CeC7249E5fF4c9DD81cc65b4D297a9',
|
|
@@ -209,11 +209,11 @@ const baseConfigs = {
|
|
|
209
209
|
privateHttpProvider: process.env.HTTP_PROVIDER_250,
|
|
210
210
|
hashFlowAuthToken: process.env.API_KEY_HASHFLOW_AUTH_TOKEN || '',
|
|
211
211
|
hashFlowDisabledMMs: process.env[`HASHFLOW_DISABLED_MMS_250`]?.split(',') || [],
|
|
212
|
-
augustusV6Address: '
|
|
212
|
+
augustusV6Address: '0x6a000f20005980200259b80c5102003040001068',
|
|
213
213
|
executorsAddresses: {
|
|
214
|
-
Executor01: '
|
|
215
|
-
Executor02: '
|
|
216
|
-
Executor03: '
|
|
214
|
+
Executor01: '0x5f0000d4780a00d2dce0a00004000800cb0e5041',
|
|
215
|
+
Executor02: '0xd08d0006f00040b400180f9500b00c5026ac0900',
|
|
216
|
+
Executor03: '0x5006860a0906b0d8c9c050200947000030081006',
|
|
217
217
|
},
|
|
218
218
|
adapterAddresses: {
|
|
219
219
|
FantomAdapter01: '0x654dE10890f8B2C5bF54E50Af169a7E93165C416',
|
|
@@ -242,11 +242,11 @@ const baseConfigs = {
|
|
|
242
242
|
hashFlowAuthToken: process.env.API_KEY_HASHFLOW_AUTH_TOKEN || '',
|
|
243
243
|
swaapV2AuthToken: process.env.API_KEY_SWAAP_V2_AUTH_TOKEN || '',
|
|
244
244
|
hashFlowDisabledMMs: process.env[`HASHFLOW_DISABLED_MMS_42161`]?.split(',') || [],
|
|
245
|
-
augustusV6Address: '
|
|
245
|
+
augustusV6Address: '0x6a000f20005980200259b80c5102003040001068',
|
|
246
246
|
executorsAddresses: {
|
|
247
|
-
Executor01: '
|
|
248
|
-
Executor02: '
|
|
249
|
-
Executor03: '
|
|
247
|
+
Executor01: '0x5f0000d4780a00d2dce0a00004000800cb0e5041',
|
|
248
|
+
Executor02: '0xd08d0006f00040b400180f9500b00c5026ac0900',
|
|
249
|
+
Executor03: '0x5006860a0906b0d8c9c050200947000030081006',
|
|
250
250
|
},
|
|
251
251
|
dexalotAuthToken: process.env.API_KEY_DEXALOT_AUTH_TOKEN || '',
|
|
252
252
|
adapterAddresses: {
|
|
@@ -275,11 +275,11 @@ const baseConfigs = {
|
|
|
275
275
|
tokenTransferProxyAddress: '0x216b4b4ba9f3e719726886d34a177484278bfcae',
|
|
276
276
|
multicallV2Address: '0x2DC0E2aa608532Da689e89e237dF582B783E552C',
|
|
277
277
|
privateHttpProvider: process.env.HTTP_PROVIDER_10,
|
|
278
|
-
augustusV6Address: '
|
|
278
|
+
augustusV6Address: '0x6a000f20005980200259b80c5102003040001068',
|
|
279
279
|
executorsAddresses: {
|
|
280
|
-
Executor01: '
|
|
281
|
-
Executor02: '
|
|
282
|
-
Executor03: '
|
|
280
|
+
Executor01: '0x5f0000d4780a00d2dce0a00004000800cb0e5041',
|
|
281
|
+
Executor02: '0xd08d0006f00040b400180f9500b00c5026ac0900',
|
|
282
|
+
Executor03: '0x5006860a0906b0d8c9c050200947000030081006',
|
|
283
283
|
},
|
|
284
284
|
hashFlowAuthToken: process.env.API_KEY_HASHFLOW_AUTH_TOKEN || '',
|
|
285
285
|
swaapV2AuthToken: process.env.API_KEY_SWAAP_V2_AUTH_TOKEN || '',
|
|
@@ -309,11 +309,11 @@ const baseConfigs = {
|
|
|
309
309
|
tokenTransferProxyAddress: '0xc8a21fcd5a100c3ecc037c97e2f9c53a8d3a02a1',
|
|
310
310
|
multicallV2Address: '0x6cA478C852DfA8941FC819fDf248606eA04780B6',
|
|
311
311
|
privateHttpProvider: process.env.HTTP_PROVIDER_1101,
|
|
312
|
-
augustusV6Address: '
|
|
312
|
+
augustusV6Address: '0x6a000f20005980200259b80c5102003040001068',
|
|
313
313
|
executorsAddresses: {
|
|
314
|
-
Executor01: '
|
|
315
|
-
Executor02: '
|
|
316
|
-
Executor03: '
|
|
314
|
+
Executor01: '0x5f0000d4780a00d2dce0a00004000800cb0e5041',
|
|
315
|
+
Executor02: '0xd08d0006f00040b400180f9500b00c5026ac0900',
|
|
316
|
+
Executor03: '0x5006860a0906b0d8c9c050200947000030081006',
|
|
317
317
|
},
|
|
318
318
|
adapterAddresses: {
|
|
319
319
|
PolygonZkEvmAdapter01: '0xd63B7691dD98fa89A2ea5e1604700489c585aa7B',
|
|
@@ -345,11 +345,11 @@ const baseConfigs = {
|
|
|
345
345
|
hashFlowAuthToken: process.env.API_KEY_HASHFLOW_AUTH_TOKEN || '',
|
|
346
346
|
swaapV2AuthToken: process.env.API_KEY_SWAAP_V2_AUTH_TOKEN || '',
|
|
347
347
|
hashFlowDisabledMMs: [],
|
|
348
|
-
augustusV6Address: '
|
|
348
|
+
augustusV6Address: '0x6a000f20005980200259b80c5102003040001068',
|
|
349
349
|
executorsAddresses: {
|
|
350
|
-
Executor01: '
|
|
351
|
-
Executor02: '
|
|
352
|
-
Executor03: '
|
|
350
|
+
Executor01: '0x5f0000d4780a00d2dce0a00004000800cb0e5041',
|
|
351
|
+
Executor02: '0xd08d0006f00040b400180f9500b00c5026ac0900',
|
|
352
|
+
Executor03: '0x5006860a0906b0d8c9c050200947000030081006',
|
|
353
353
|
},
|
|
354
354
|
adapterAddresses: {
|
|
355
355
|
BaseAdapter01: '0xe53d24CD81cC81bbf271AD7B02D0d67f851D727c',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paraswap/dex-lib",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.4-v6.2.0",
|
|
4
4
|
"main": "build/index.js",
|
|
5
5
|
"types": "build/index.d.ts",
|
|
6
6
|
"repository": "https://github.com/paraswap/paraswap-dex-lib",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"@ethersproject/abi": "^5.7.0",
|
|
57
57
|
"@hashflow/sdk": "1.2.4",
|
|
58
58
|
"@hashflow/taker-js": "0.3.4",
|
|
59
|
-
"@paraswap/core": "
|
|
59
|
+
"@paraswap/core": "2.2.0",
|
|
60
60
|
"async": "^3.2.4",
|
|
61
61
|
"axios": "0.27.2",
|
|
62
62
|
"bignumber.js": "9.1.0",
|
package/src/config.ts
CHANGED
|
@@ -50,11 +50,11 @@ const baseConfigs: { [network: number]: BaseConfig } = {
|
|
|
50
50
|
tokenTransferProxyAddress: '0x216b4b4ba9f3e719726886d34a177484278bfcae',
|
|
51
51
|
multicallV2Address: '0x5BA1e12693Dc8F9c48aAD8770482f4739bEeD696',
|
|
52
52
|
privateHttpProvider: process.env.HTTP_PROVIDER_1,
|
|
53
|
-
augustusV6Address: '
|
|
53
|
+
augustusV6Address: '0x6a000f20005980200259b80c5102003040001068',
|
|
54
54
|
executorsAddresses: {
|
|
55
|
-
Executor01: '
|
|
56
|
-
Executor02: '
|
|
57
|
-
Executor03: '
|
|
55
|
+
Executor01: '0x5f0000d4780a00d2dce0a00004000800cb0e5041',
|
|
56
|
+
Executor02: '0xd08d0006f00040b400180f9500b00c5026ac0900',
|
|
57
|
+
Executor03: '0x5006860a0906b0d8c9c050200947000030081006',
|
|
58
58
|
},
|
|
59
59
|
adapterAddresses: {
|
|
60
60
|
Adapter01: '0x9bE264469eF954c139Da4A45Cf76CbCC5e3A6A73',
|
|
@@ -142,11 +142,11 @@ const baseConfigs: { [network: number]: BaseConfig } = {
|
|
|
142
142
|
tokenTransferProxyAddress: '0x216b4b4ba9f3e719726886d34a177484278bfcae',
|
|
143
143
|
multicallV2Address: '0xC50F4c1E81c873B2204D7eFf7069Ffec6Fbe136D',
|
|
144
144
|
privateHttpProvider: process.env.HTTP_PROVIDER_56,
|
|
145
|
-
augustusV6Address: '
|
|
145
|
+
augustusV6Address: '0x6a000f20005980200259b80c5102003040001068',
|
|
146
146
|
executorsAddresses: {
|
|
147
|
-
Executor01: '
|
|
148
|
-
Executor02: '
|
|
149
|
-
Executor03: '
|
|
147
|
+
Executor01: '0x5f0000d4780a00d2dce0a00004000800cb0e5041',
|
|
148
|
+
Executor02: '0xd08d0006f00040b400180f9500b00c5026ac0900',
|
|
149
|
+
Executor03: '0x5006860a0906b0d8c9c050200947000030081006',
|
|
150
150
|
},
|
|
151
151
|
hashFlowAuthToken: process.env.API_KEY_HASHFLOW_AUTH_TOKEN || '',
|
|
152
152
|
swaapV2AuthToken: process.env.API_KEY_SWAAP_V2_AUTH_TOKEN || '',
|
|
@@ -177,11 +177,11 @@ const baseConfigs: { [network: number]: BaseConfig } = {
|
|
|
177
177
|
tokenTransferProxyAddress: '0x216b4b4ba9f3e719726886d34a177484278bfcae',
|
|
178
178
|
multicallV2Address: '0x275617327c958bD06b5D6b871E7f491D76113dd8',
|
|
179
179
|
privateHttpProvider: process.env.HTTP_PROVIDER_137,
|
|
180
|
-
augustusV6Address: '
|
|
180
|
+
augustusV6Address: '0x6a000f20005980200259b80c5102003040001068',
|
|
181
181
|
executorsAddresses: {
|
|
182
|
-
Executor01: '
|
|
183
|
-
Executor02: '
|
|
184
|
-
Executor03: '
|
|
182
|
+
Executor01: '0x5f0000d4780a00d2dce0a00004000800cb0e5041',
|
|
183
|
+
Executor02: '0xd08d0006f00040b400180f9500b00c5026ac0900',
|
|
184
|
+
Executor03: '0x5006860a0906b0d8c9c050200947000030081006',
|
|
185
185
|
},
|
|
186
186
|
hashFlowAuthToken: process.env.API_KEY_HASHFLOW_AUTH_TOKEN || '',
|
|
187
187
|
hashFlowDisabledMMs:
|
|
@@ -217,11 +217,11 @@ const baseConfigs: { [network: number]: BaseConfig } = {
|
|
|
217
217
|
hashFlowDisabledMMs:
|
|
218
218
|
process.env[`HASHFLOW_DISABLED_MMS_43114`]?.split(',') || [],
|
|
219
219
|
dexalotAuthToken: process.env.API_KEY_DEXALOT_AUTH_TOKEN || '',
|
|
220
|
-
augustusV6Address: '
|
|
220
|
+
augustusV6Address: '0x6a000f20005980200259b80c5102003040001068',
|
|
221
221
|
executorsAddresses: {
|
|
222
|
-
Executor01: '
|
|
223
|
-
Executor02: '
|
|
224
|
-
Executor03: '
|
|
222
|
+
Executor01: '0x5f0000d4780a00d2dce0a00004000800cb0e5041',
|
|
223
|
+
Executor02: '0xd08d0006f00040b400180f9500b00c5026ac0900',
|
|
224
|
+
Executor03: '0x5006860a0906b0d8c9c050200947000030081006',
|
|
225
225
|
},
|
|
226
226
|
adapterAddresses: {
|
|
227
227
|
AvalancheAdapter01: '0x745Ec73855CeC7249E5fF4c9DD81cc65b4D297a9',
|
|
@@ -251,11 +251,11 @@ const baseConfigs: { [network: number]: BaseConfig } = {
|
|
|
251
251
|
hashFlowAuthToken: process.env.API_KEY_HASHFLOW_AUTH_TOKEN || '',
|
|
252
252
|
hashFlowDisabledMMs:
|
|
253
253
|
process.env[`HASHFLOW_DISABLED_MMS_250`]?.split(',') || [],
|
|
254
|
-
augustusV6Address: '
|
|
254
|
+
augustusV6Address: '0x6a000f20005980200259b80c5102003040001068',
|
|
255
255
|
executorsAddresses: {
|
|
256
|
-
Executor01: '
|
|
257
|
-
Executor02: '
|
|
258
|
-
Executor03: '
|
|
256
|
+
Executor01: '0x5f0000d4780a00d2dce0a00004000800cb0e5041',
|
|
257
|
+
Executor02: '0xd08d0006f00040b400180f9500b00c5026ac0900',
|
|
258
|
+
Executor03: '0x5006860a0906b0d8c9c050200947000030081006',
|
|
259
259
|
},
|
|
260
260
|
adapterAddresses: {
|
|
261
261
|
FantomAdapter01: '0x654dE10890f8B2C5bF54E50Af169a7E93165C416',
|
|
@@ -286,11 +286,11 @@ const baseConfigs: { [network: number]: BaseConfig } = {
|
|
|
286
286
|
swaapV2AuthToken: process.env.API_KEY_SWAAP_V2_AUTH_TOKEN || '',
|
|
287
287
|
hashFlowDisabledMMs:
|
|
288
288
|
process.env[`HASHFLOW_DISABLED_MMS_42161`]?.split(',') || [],
|
|
289
|
-
augustusV6Address: '
|
|
289
|
+
augustusV6Address: '0x6a000f20005980200259b80c5102003040001068',
|
|
290
290
|
executorsAddresses: {
|
|
291
|
-
Executor01: '
|
|
292
|
-
Executor02: '
|
|
293
|
-
Executor03: '
|
|
291
|
+
Executor01: '0x5f0000d4780a00d2dce0a00004000800cb0e5041',
|
|
292
|
+
Executor02: '0xd08d0006f00040b400180f9500b00c5026ac0900',
|
|
293
|
+
Executor03: '0x5006860a0906b0d8c9c050200947000030081006',
|
|
294
294
|
},
|
|
295
295
|
dexalotAuthToken: process.env.API_KEY_DEXALOT_AUTH_TOKEN || '',
|
|
296
296
|
adapterAddresses: {
|
|
@@ -320,11 +320,11 @@ const baseConfigs: { [network: number]: BaseConfig } = {
|
|
|
320
320
|
tokenTransferProxyAddress: '0x216b4b4ba9f3e719726886d34a177484278bfcae',
|
|
321
321
|
multicallV2Address: '0x2DC0E2aa608532Da689e89e237dF582B783E552C',
|
|
322
322
|
privateHttpProvider: process.env.HTTP_PROVIDER_10,
|
|
323
|
-
augustusV6Address: '
|
|
323
|
+
augustusV6Address: '0x6a000f20005980200259b80c5102003040001068',
|
|
324
324
|
executorsAddresses: {
|
|
325
|
-
Executor01: '
|
|
326
|
-
Executor02: '
|
|
327
|
-
Executor03: '
|
|
325
|
+
Executor01: '0x5f0000d4780a00d2dce0a00004000800cb0e5041',
|
|
326
|
+
Executor02: '0xd08d0006f00040b400180f9500b00c5026ac0900',
|
|
327
|
+
Executor03: '0x5006860a0906b0d8c9c050200947000030081006',
|
|
328
328
|
},
|
|
329
329
|
hashFlowAuthToken: process.env.API_KEY_HASHFLOW_AUTH_TOKEN || '',
|
|
330
330
|
swaapV2AuthToken: process.env.API_KEY_SWAAP_V2_AUTH_TOKEN || '',
|
|
@@ -356,11 +356,11 @@ const baseConfigs: { [network: number]: BaseConfig } = {
|
|
|
356
356
|
tokenTransferProxyAddress: '0xc8a21fcd5a100c3ecc037c97e2f9c53a8d3a02a1',
|
|
357
357
|
multicallV2Address: '0x6cA478C852DfA8941FC819fDf248606eA04780B6',
|
|
358
358
|
privateHttpProvider: process.env.HTTP_PROVIDER_1101,
|
|
359
|
-
augustusV6Address: '
|
|
359
|
+
augustusV6Address: '0x6a000f20005980200259b80c5102003040001068',
|
|
360
360
|
executorsAddresses: {
|
|
361
|
-
Executor01: '
|
|
362
|
-
Executor02: '
|
|
363
|
-
Executor03: '
|
|
361
|
+
Executor01: '0x5f0000d4780a00d2dce0a00004000800cb0e5041',
|
|
362
|
+
Executor02: '0xd08d0006f00040b400180f9500b00c5026ac0900',
|
|
363
|
+
Executor03: '0x5006860a0906b0d8c9c050200947000030081006',
|
|
364
364
|
},
|
|
365
365
|
adapterAddresses: {
|
|
366
366
|
PolygonZkEvmAdapter01: '0xd63B7691dD98fa89A2ea5e1604700489c585aa7B',
|
|
@@ -394,11 +394,11 @@ const baseConfigs: { [network: number]: BaseConfig } = {
|
|
|
394
394
|
hashFlowAuthToken: process.env.API_KEY_HASHFLOW_AUTH_TOKEN || '',
|
|
395
395
|
swaapV2AuthToken: process.env.API_KEY_SWAAP_V2_AUTH_TOKEN || '',
|
|
396
396
|
hashFlowDisabledMMs: [],
|
|
397
|
-
augustusV6Address: '
|
|
397
|
+
augustusV6Address: '0x6a000f20005980200259b80c5102003040001068',
|
|
398
398
|
executorsAddresses: {
|
|
399
|
-
Executor01: '
|
|
400
|
-
Executor02: '
|
|
401
|
-
Executor03: '
|
|
399
|
+
Executor01: '0x5f0000d4780a00d2dce0a00004000800cb0e5041',
|
|
400
|
+
Executor02: '0xd08d0006f00040b400180f9500b00c5026ac0900',
|
|
401
|
+
Executor03: '0x5006860a0906b0d8c9c050200947000030081006',
|
|
402
402
|
},
|
|
403
403
|
adapterAddresses: {
|
|
404
404
|
BaseAdapter01: '0xe53d24CD81cC81bbf271AD7B02D0d67f851D727c',
|