@paraswap/dex-lib 4.3.16 → 4.3.17-optimised-serialization.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (134) hide show
  1. package/build/abi/BProtocol.json +1155 -0
  2. package/build/abi/Jarvis.json +1172 -0
  3. package/build/abi/MStableAsset.json +1545 -0
  4. package/build/abi/OneInchLp.json +1304 -0
  5. package/build/abi/Onebit.json +736 -0
  6. package/build/abi/Shell.json +1294 -0
  7. package/build/abi/TraderJoeV2Router.json +50 -0
  8. package/build/abi/miro-migrator/MiroMigrator.abi.json +36 -19
  9. package/build/abi/wUSDM.json +757 -0
  10. package/build/abi/zrx.v2.json +1967 -0
  11. package/build/abi/zrx.v3.json +3454 -0
  12. package/build/abi/zrx.v4.json +2193 -0
  13. package/build/dex/OneInchLp.d.ts +24 -0
  14. package/build/dex/OneInchLp.js +43 -0
  15. package/build/dex/OneInchLp.js.map +1 -0
  16. package/build/dex/bProtocol/bProtocol.d.ts +15 -0
  17. package/build/dex/bProtocol/bProtocol.js +56 -0
  18. package/build/dex/bProtocol/bProtocol.js.map +1 -0
  19. package/build/dex/bProtocol/types.d.ts +11 -0
  20. package/build/dex/bProtocol/types.js +8 -0
  21. package/build/dex/bProtocol/types.js.map +1 -0
  22. package/build/dex/jarvis.d.ts +56 -0
  23. package/build/dex/jarvis.js +163 -0
  24. package/build/dex/jarvis.js.map +1 -0
  25. package/build/dex/mStable.d.ts +44 -0
  26. package/build/dex/mStable.js +75 -0
  27. package/build/dex/mStable.js.map +1 -0
  28. package/build/dex/miro-migrator/config.js +3 -10
  29. package/build/dex/miro-migrator/config.js.map +1 -1
  30. package/build/dex/miro-migrator/constants.d.ts +1 -0
  31. package/build/dex/miro-migrator/constants.js +2 -1
  32. package/build/dex/miro-migrator/constants.js.map +1 -1
  33. package/build/dex/miro-migrator/miro-migrator-pool.d.ts +8 -5
  34. package/build/dex/miro-migrator/miro-migrator-pool.js +48 -30
  35. package/build/dex/miro-migrator/miro-migrator-pool.js.map +1 -1
  36. package/build/dex/miro-migrator/miro-migrator.d.ts +5 -4
  37. package/build/dex/miro-migrator/miro-migrator.js +40 -83
  38. package/build/dex/miro-migrator/miro-migrator.js.map +1 -1
  39. package/build/dex/miro-migrator/types.d.ts +2 -4
  40. package/build/dex/miro-migrator/types.js +1 -2
  41. package/build/dex/miro-migrator/types.js.map +1 -1
  42. package/build/dex/onebit/onebit.d.ts +16 -0
  43. package/build/dex/onebit/onebit.js +61 -0
  44. package/build/dex/onebit/onebit.js.map +1 -0
  45. package/build/dex/onebit/types.d.ts +14 -0
  46. package/build/dex/onebit/types.js +8 -0
  47. package/build/dex/onebit/types.js.map +1 -0
  48. package/build/dex/shell.d.ts +25 -0
  49. package/build/dex/shell.js +41 -0
  50. package/build/dex/shell.js.map +1 -0
  51. package/build/dex/trader-joe-v2.d.ts +40 -0
  52. package/build/dex/trader-joe-v2.js +74 -0
  53. package/build/dex/trader-joe-v2.js.map +1 -0
  54. package/build/dex/uniswap-v3/uniswap-v3-new.d.ts +94 -0
  55. package/build/dex/uniswap-v3/uniswap-v3-new.js +923 -0
  56. package/build/dex/uniswap-v3/uniswap-v3-new.js.map +1 -0
  57. package/build/dex/usual-bond/config.d.ts +3 -0
  58. package/build/dex/usual-bond/config.js +13 -0
  59. package/build/dex/usual-bond/config.js.map +1 -0
  60. package/build/dex/usual-bond/types.d.ts +7 -0
  61. package/build/dex/usual-bond/types.js +3 -0
  62. package/build/dex/usual-bond/types.js.map +1 -0
  63. package/build/dex/usual-bond/usual-bond.d.ts +35 -0
  64. package/build/dex/usual-bond/usual-bond.js +176 -0
  65. package/build/dex/usual-bond/usual-bond.js.map +1 -0
  66. package/build/dex/wusdm/config.d.ts +3 -0
  67. package/build/dex/wusdm/config.js +43 -0
  68. package/build/dex/wusdm/config.js.map +1 -0
  69. package/build/dex/wusdm/constants.d.ts +2 -0
  70. package/build/dex/wusdm/constants.js +6 -0
  71. package/build/dex/wusdm/constants.js.map +1 -0
  72. package/build/dex/wusdm/types.d.ts +18 -0
  73. package/build/dex/wusdm/types.js +11 -0
  74. package/build/dex/wusdm/types.js.map +1 -0
  75. package/build/dex/wusdm/wusdm-pool.d.ts +21 -0
  76. package/build/dex/wusdm/wusdm-pool.js +74 -0
  77. package/build/dex/wusdm/wusdm-pool.js.map +1 -0
  78. package/build/dex/wusdm/wusdm.d.ts +46 -0
  79. package/build/dex/wusdm/wusdm.js +243 -0
  80. package/build/dex/wusdm/wusdm.js.map +1 -0
  81. package/build/dex/zerox/config.d.ts +2 -0
  82. package/build/dex/zerox/config.js +33 -0
  83. package/build/dex/zerox/config.js.map +1 -0
  84. package/build/dex/zerox/index.d.ts +22 -0
  85. package/build/dex/zerox/index.js +225 -0
  86. package/build/dex/zerox/index.js.map +1 -0
  87. package/build/dex/zerox/order.d.ts +88 -0
  88. package/build/dex/zerox/order.js +53 -0
  89. package/build/dex/zerox/order.js.map +1 -0
  90. package/build/dex/zerox/types.d.ts +73 -0
  91. package/build/dex/zerox/types.js +21 -0
  92. package/build/dex/zerox/types.js.map +1 -0
  93. package/build/utils.js +10 -10
  94. package/build/utils.js.map +1 -1
  95. package/package.json +1 -1
  96. package/build/abi/ekubo/twamm-data-fetcher.json +0 -216
  97. package/build/abi/ekubo/twamm.json +0 -720
  98. package/build/abi/ring-v2/few-wrapped-token.json +0 -587
  99. package/build/abi/ring-v2/ring-v2-factory.json +0 -125
  100. package/build/abi/ring-v2/ring-v2-pool.json +0 -461
  101. package/build/abi/ring-v2/ring-v2-router.json +0 -332
  102. package/build/dex/balancer-v3/reClammPool.d.ts +0 -23
  103. package/build/dex/balancer-v3/reClammPool.js +0 -82
  104. package/build/dex/balancer-v3/reClammPool.js.map +0 -1
  105. package/build/dex/ekubo/pools/base.d.ts +0 -36
  106. package/build/dex/ekubo/pools/base.js +0 -289
  107. package/build/dex/ekubo/pools/base.js.map +0 -1
  108. package/build/dex/ekubo/pools/full-range.d.ts +0 -23
  109. package/build/dex/ekubo/pools/full-range.js +0 -99
  110. package/build/dex/ekubo/pools/full-range.js.map +0 -1
  111. package/build/dex/ekubo/pools/iface.d.ts +0 -46
  112. package/build/dex/ekubo/pools/iface.js +0 -75
  113. package/build/dex/ekubo/pools/iface.js.map +0 -1
  114. package/build/dex/ekubo/pools/math/twamm/exp2.d.ts +0 -1
  115. package/build/dex/ekubo/pools/math/twamm/exp2.js +0 -86
  116. package/build/dex/ekubo/pools/math/twamm/exp2.js.map +0 -1
  117. package/build/dex/ekubo/pools/math/twamm/sqrt-ratio.d.ts +0 -1
  118. package/build/dex/ekubo/pools/math/twamm/sqrt-ratio.js +0 -56
  119. package/build/dex/ekubo/pools/math/twamm/sqrt-ratio.js.map +0 -1
  120. package/build/dex/ekubo/pools/oracle.d.ts +0 -8
  121. package/build/dex/ekubo/pools/oracle.js +0 -19
  122. package/build/dex/ekubo/pools/oracle.js.map +0 -1
  123. package/build/dex/ekubo/pools/twamm.d.ts +0 -38
  124. package/build/dex/ekubo/pools/twamm.js +0 -253
  125. package/build/dex/ekubo/pools/twamm.js.map +0 -1
  126. package/build/dex/ekubo/pools/utils.d.ts +0 -28
  127. package/build/dex/ekubo/pools/utils.js +0 -80
  128. package/build/dex/ekubo/pools/utils.js.map +0 -1
  129. package/build/dex/miro-migrator/miro-migrator-state.d.ts +0 -27
  130. package/build/dex/miro-migrator/miro-migrator-state.js +0 -89
  131. package/build/dex/miro-migrator/miro-migrator-state.js.map +0 -1
  132. package/build/dex/usdc-transmuter/usdc-transmuter-pool.d.ts +0 -26
  133. package/build/dex/usdc-transmuter/usdc-transmuter-pool.js +0 -75
  134. package/build/dex/usdc-transmuter/usdc-transmuter-pool.js.map +0 -1
@@ -0,0 +1,50 @@
1
+ [
2
+ {
3
+ "inputs": [
4
+ { "internalType": "uint256", "name": "_amountIn", "type": "uint256" },
5
+ { "internalType": "uint256", "name": "_amountOutMin", "type": "uint256" },
6
+ {
7
+ "internalType": "uint256[]",
8
+ "name": "_pairBinSteps",
9
+ "type": "uint256[]"
10
+ },
11
+ {
12
+ "internalType": "contract IERC20[]",
13
+ "name": "_tokenPath",
14
+ "type": "address[]"
15
+ },
16
+ { "internalType": "address", "name": "_to", "type": "address" },
17
+ { "internalType": "uint256", "name": "_deadline", "type": "uint256" }
18
+ ],
19
+ "name": "swapExactTokensForTokens",
20
+ "outputs": [
21
+ { "internalType": "uint256", "name": "amountOut", "type": "uint256" }
22
+ ],
23
+ "stateMutability": "nonpayable",
24
+ "type": "function"
25
+ },
26
+ {
27
+ "inputs": [
28
+ { "internalType": "uint256", "name": "_amountOut", "type": "uint256" },
29
+ { "internalType": "uint256", "name": "_amountInMax", "type": "uint256" },
30
+ {
31
+ "internalType": "uint256[]",
32
+ "name": "_pairBinSteps",
33
+ "type": "uint256[]"
34
+ },
35
+ {
36
+ "internalType": "contract IERC20[]",
37
+ "name": "_tokenPath",
38
+ "type": "address[]"
39
+ },
40
+ { "internalType": "address", "name": "_to", "type": "address" },
41
+ { "internalType": "uint256", "name": "_deadline", "type": "uint256" }
42
+ ],
43
+ "name": "swapTokensForExactTokens",
44
+ "outputs": [
45
+ { "internalType": "uint256[]", "name": "amountsIn", "type": "uint256[]" }
46
+ ],
47
+ "stateMutability": "nonpayable",
48
+ "type": "function"
49
+ }
50
+ ]
@@ -3,7 +3,7 @@
3
3
  "inputs": [
4
4
  {
5
5
  "components": [
6
- { "internalType": "address", "name": "vlr", "type": "address" },
6
+ { "internalType": "address", "name": "xyz", "type": "address" },
7
7
  { "internalType": "address", "name": "weth", "type": "address" },
8
8
  {
9
9
  "internalType": "address",
@@ -22,7 +22,7 @@
22
22
  },
23
23
  { "internalType": "address", "name": "sePSP1", "type": "address" },
24
24
  { "internalType": "address", "name": "sePSP2", "type": "address" },
25
- { "internalType": "address", "name": "seVLR", "type": "address" },
25
+ { "internalType": "address", "name": "seXYZ", "type": "address" },
26
26
  {
27
27
  "internalType": "contract IAcrossSpokePool",
28
28
  "name": "spokePool",
@@ -113,7 +113,7 @@
113
113
  {
114
114
  "indexed": true,
115
115
  "internalType": "uint256",
116
- "name": "vlrAmount",
116
+ "name": "xyzAmount",
117
117
  "type": "uint256"
118
118
  },
119
119
  {
@@ -151,6 +151,13 @@
151
151
  "name": "Unpaused",
152
152
  "type": "event"
153
153
  },
154
+ {
155
+ "inputs": [],
156
+ "name": "BURN_ADDR",
157
+ "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
158
+ "stateMutability": "view",
159
+ "type": "function"
160
+ },
154
161
  {
155
162
  "inputs": [],
156
163
  "name": "PSP",
@@ -174,7 +181,7 @@
174
181
  },
175
182
  {
176
183
  "inputs": [],
177
- "name": "SE_VLR",
184
+ "name": "SE_XYZ",
178
185
  "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
179
186
  "stateMutability": "view",
180
187
  "type": "function"
@@ -194,14 +201,14 @@
194
201
  },
195
202
  {
196
203
  "inputs": [],
197
- "name": "VLR",
204
+ "name": "WETH",
198
205
  "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
199
206
  "stateMutability": "view",
200
207
  "type": "function"
201
208
  },
202
209
  {
203
210
  "inputs": [],
204
- "name": "WETH",
211
+ "name": "XYZ",
205
212
  "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
206
213
  "stateMutability": "view",
207
214
  "type": "function"
@@ -212,7 +219,7 @@
212
219
  ],
213
220
  "name": "bridgeConfigs",
214
221
  "outputs": [
215
- { "internalType": "address", "name": "vlr", "type": "address" },
222
+ { "internalType": "address", "name": "xyz", "type": "address" },
216
223
  { "internalType": "address", "name": "weth", "type": "address" },
217
224
  { "internalType": "address", "name": "bridgeStaking", "type": "address" },
218
225
  { "internalType": "uint256", "name": "destChainId", "type": "uint256" }
@@ -222,7 +229,7 @@
222
229
  },
223
230
  {
224
231
  "inputs": [
225
- { "internalType": "uint256", "name": "vlrAmount", "type": "uint256" },
232
+ { "internalType": "uint256", "name": "xyzAmount", "type": "uint256" },
226
233
  { "internalType": "uint256", "name": "wethAmount", "type": "uint256" },
227
234
  { "internalType": "uint256", "name": "destChainId", "type": "uint256" },
228
235
  {
@@ -260,7 +267,7 @@
260
267
  }
261
268
  ],
262
269
  "internalType": "struct IMiroMigrator.BridgeData",
263
- "name": "vlrBridgeData",
270
+ "name": "xyzBridgeData",
264
271
  "type": "tuple"
265
272
  },
266
273
  {
@@ -297,7 +304,7 @@
297
304
  },
298
305
  { "internalType": "bytes", "name": "permitData", "type": "bytes" }
299
306
  ],
300
- "name": "bridgeVLRAndStake",
307
+ "name": "bridgeXYZAndStake",
301
308
  "outputs": [],
302
309
  "stateMutability": "payable",
303
310
  "type": "function"
@@ -309,7 +316,7 @@
309
316
  { "internalType": "uint256", "name": "minBptOut", "type": "uint256" },
310
317
  { "internalType": "bytes", "name": "permitData", "type": "bytes" }
311
318
  ],
312
- "name": "migratePSPtoSeVLR",
319
+ "name": "migratePSPtoSeXYZ",
313
320
  "outputs": [],
314
321
  "stateMutability": "payable",
315
322
  "type": "function"
@@ -319,7 +326,7 @@
319
326
  { "internalType": "uint256", "name": "pspAmount", "type": "uint256" },
320
327
  { "internalType": "bytes", "name": "permitData", "type": "bytes" }
321
328
  ],
322
- "name": "migratePSPtoVLR",
329
+ "name": "migratePSPtoXYZ",
323
330
  "outputs": [],
324
331
  "stateMutability": "nonpayable",
325
332
  "type": "function"
@@ -331,7 +338,7 @@
331
338
  { "internalType": "uint256", "name": "minBptOut", "type": "uint256" },
332
339
  { "internalType": "bytes", "name": "permitData", "type": "bytes" }
333
340
  ],
334
- "name": "migrateSePSP1toSeVLR",
341
+ "name": "migrateSePSP1toSeXYZ",
335
342
  "outputs": [],
336
343
  "stateMutability": "payable",
337
344
  "type": "function"
@@ -341,7 +348,7 @@
341
348
  { "internalType": "uint256", "name": "sePSP1Amount", "type": "uint256" },
342
349
  { "internalType": "bytes", "name": "permitData", "type": "bytes" }
343
350
  ],
344
- "name": "migrateSePSP1toVLR",
351
+ "name": "migrateSePSP1toXYZ",
345
352
  "outputs": [],
346
353
  "stateMutability": "nonpayable",
347
354
  "type": "function"
@@ -354,7 +361,7 @@
354
361
  { "internalType": "uint256", "name": "minBptOut", "type": "uint256" },
355
362
  { "internalType": "bytes", "name": "permitData", "type": "bytes" }
356
363
  ],
357
- "name": "migrateSePSP2toSeVLR",
364
+ "name": "migrateSePSP2toSeXYZ",
358
365
  "outputs": [],
359
366
  "stateMutability": "nonpayable",
360
367
  "type": "function"
@@ -400,7 +407,7 @@
400
407
  }
401
408
  ],
402
409
  "internalType": "struct IMiroMigrator.BridgeData",
403
- "name": "vlrBridgeData",
410
+ "name": "xyzBridgeData",
404
411
  "type": "tuple"
405
412
  },
406
413
  {
@@ -437,7 +444,7 @@
437
444
  },
438
445
  { "internalType": "bytes", "name": "permitData", "type": "bytes" }
439
446
  ],
440
- "name": "migrateSePSP2toSeVLRAndBridge",
447
+ "name": "migrateSePSP2toSeXYZAndBridge",
441
448
  "outputs": [],
442
449
  "stateMutability": "nonpayable",
443
450
  "type": "function"
@@ -463,9 +470,19 @@
463
470
  "stateMutability": "view",
464
471
  "type": "function"
465
472
  },
473
+ {
474
+ "inputs": [
475
+ { "internalType": "address", "name": "token", "type": "address" },
476
+ { "internalType": "address", "name": "to", "type": "address" }
477
+ ],
478
+ "name": "reClaimERC20",
479
+ "outputs": [],
480
+ "stateMutability": "nonpayable",
481
+ "type": "function"
482
+ },
466
483
  {
467
484
  "inputs": [{ "internalType": "address", "name": "to", "type": "address" }],
468
- "name": "reClaimVLR",
485
+ "name": "reClaimETH",
469
486
  "outputs": [],
470
487
  "stateMutability": "nonpayable",
471
488
  "type": "function"
@@ -481,7 +498,7 @@
481
498
  "inputs": [
482
499
  {
483
500
  "components": [
484
- { "internalType": "address", "name": "vlr", "type": "address" },
501
+ { "internalType": "address", "name": "xyz", "type": "address" },
485
502
  { "internalType": "address", "name": "weth", "type": "address" },
486
503
  {
487
504
  "internalType": "address",