@paraswap/dex-lib 4.6.14 → 4.6.15

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 (168) hide show
  1. package/build/abi/miro-migrator/MiroMigrator.abi.json +19 -36
  2. package/build/abi/pangolin-v3/PangolinV3StateMulticall.abi.json +796 -0
  3. package/build/abi/ring-v2/few-wrapped-token.json +587 -0
  4. package/build/abi/ring-v2/ring-v2-factory.json +125 -0
  5. package/build/abi/ring-v2/ring-v2-pool.json +461 -0
  6. package/build/abi/ring-v2/ring-v2-router.json +332 -0
  7. package/build/abi/uniswap-v4/hooks/cabalcoin-hook.abi.json +682 -0
  8. package/build/abi/uniswap-v4/hooks/fee-hook.abi.json +1335 -0
  9. package/build/abi/{wUSDM.json → usual-usual-usdc/abi.json} +245 -304
  10. package/build/dex/aave-pt-to-underlying/aave-pt-to-underlying.d.ts +39 -0
  11. package/build/dex/aave-pt-to-underlying/aave-pt-to-underlying.js +244 -0
  12. package/build/dex/aave-pt-to-underlying/aave-pt-to-underlying.js.map +1 -0
  13. package/build/dex/aave-pt-to-underlying/config.d.ts +3 -0
  14. package/build/dex/aave-pt-to-underlying/config.js +47 -0
  15. package/build/dex/aave-pt-to-underlying/config.js.map +1 -0
  16. package/build/dex/aave-pt-to-underlying/constants.d.ts +2 -0
  17. package/build/dex/aave-pt-to-underlying/constants.js +6 -0
  18. package/build/dex/aave-pt-to-underlying/constants.js.map +1 -0
  19. package/build/dex/aave-pt-to-underlying/types.d.ts +22 -0
  20. package/build/dex/aave-pt-to-underlying/types.js.map +1 -0
  21. package/build/dex/aave-pt-to-usdc/aave-pt-to-usdc.d.ts +39 -0
  22. package/build/dex/aave-pt-to-usdc/aave-pt-to-usdc.js +244 -0
  23. package/build/dex/aave-pt-to-usdc/aave-pt-to-usdc.js.map +1 -0
  24. package/build/dex/{usual-bond → aave-pt-to-usdc}/config.d.ts +1 -1
  25. package/build/dex/aave-pt-to-usdc/config.js +47 -0
  26. package/build/dex/aave-pt-to-usdc/config.js.map +1 -0
  27. package/build/dex/aave-pt-to-usdc/constants.d.ts +2 -0
  28. package/build/dex/aave-pt-to-usdc/constants.js +6 -0
  29. package/build/dex/aave-pt-to-usdc/constants.js.map +1 -0
  30. package/build/dex/aave-pt-to-usdc/types.d.ts +22 -0
  31. package/build/dex/aave-pt-to-usdc/types.js +3 -0
  32. package/build/dex/{usual-bond → aave-pt-to-usdc}/types.js.map +1 -1
  33. package/build/dex/ekubo/pools/math/sqrt-ratio.d.ts +8 -0
  34. package/build/dex/ekubo/pools/math/sqrt-ratio.js +113 -0
  35. package/build/dex/ekubo/pools/math/sqrt-ratio.js.map +1 -0
  36. package/build/dex/ekubo/pools/mev-resist.d.ts +7 -0
  37. package/build/dex/ekubo/pools/mev-resist.js +40 -0
  38. package/build/dex/ekubo/pools/mev-resist.js.map +1 -0
  39. package/build/dex/ekubo/pools/pool.d.ts +52 -0
  40. package/build/dex/ekubo/pools/pool.js +86 -0
  41. package/build/dex/ekubo/pools/pool.js.map +1 -0
  42. package/build/dex/index.js +2 -0
  43. package/build/dex/index.js.map +1 -1
  44. package/build/dex/maker-psm/maker-psm-event-pool.d.ts +43 -0
  45. package/build/dex/maker-psm/maker-psm-event-pool.js +132 -0
  46. package/build/dex/maker-psm/maker-psm-event-pool.js.map +1 -0
  47. package/build/dex/miro-migrator/config.js +16 -3
  48. package/build/dex/miro-migrator/config.js.map +1 -1
  49. package/build/dex/miro-migrator/constants.d.ts +0 -1
  50. package/build/dex/miro-migrator/constants.js +1 -2
  51. package/build/dex/miro-migrator/constants.js.map +1 -1
  52. package/build/dex/miro-migrator/miro-migrator-pool.d.ts +5 -8
  53. package/build/dex/miro-migrator/miro-migrator-pool.js +28 -48
  54. package/build/dex/miro-migrator/miro-migrator-pool.js.map +1 -1
  55. package/build/dex/miro-migrator/miro-migrator-state.d.ts +27 -0
  56. package/build/dex/miro-migrator/miro-migrator-state.js +89 -0
  57. package/build/dex/miro-migrator/miro-migrator-state.js.map +1 -0
  58. package/build/dex/miro-migrator/miro-migrator.d.ts +4 -5
  59. package/build/dex/miro-migrator/miro-migrator.js +83 -40
  60. package/build/dex/miro-migrator/miro-migrator.js.map +1 -1
  61. package/build/dex/miro-migrator/types.d.ts +4 -2
  62. package/build/dex/miro-migrator/types.js +2 -1
  63. package/build/dex/miro-migrator/types.js.map +1 -1
  64. package/build/dex/uniswap-v3/forks/pangolin-v3/utils.d.ts +4 -0
  65. package/build/dex/uniswap-v3/forks/pangolin-v3/utils.js +56 -0
  66. package/build/dex/uniswap-v3/forks/pangolin-v3/utils.js.map +1 -0
  67. package/build/dex/uniswap-v4/contract-math/Position.d.ts +6 -0
  68. package/build/dex/uniswap-v4/contract-math/Position.js +29 -0
  69. package/build/dex/uniswap-v4/contract-math/Position.js.map +1 -1
  70. package/build/dex/uniswap-v4/hooks/cabalcoin-hook/cabalcoin-hook-pool.d.ts +7 -0
  71. package/build/dex/uniswap-v4/hooks/cabalcoin-hook/cabalcoin-hook-pool.js +28 -0
  72. package/build/dex/uniswap-v4/hooks/cabalcoin-hook/cabalcoin-hook-pool.js.map +1 -0
  73. package/build/dex/uniswap-v4/hooks/cabalcoin-hook/types.d.ts +0 -0
  74. package/build/dex/uniswap-v4/hooks/cabalcoin-hook/types.js +2 -0
  75. package/build/dex/uniswap-v4/hooks/cabalcoin-hook/types.js.map +1 -0
  76. package/build/dex/uniswap-v4/hooks/fee-hook/fee-hook-pool.d.ts +7 -0
  77. package/build/dex/uniswap-v4/hooks/fee-hook/fee-hook-pool.js +28 -0
  78. package/build/dex/uniswap-v4/hooks/fee-hook/fee-hook-pool.js.map +1 -0
  79. package/build/dex/uniswap-v4/hooks/fee-hook/types.d.ts +0 -0
  80. package/build/dex/uniswap-v4/hooks/fee-hook/types.js +2 -0
  81. package/build/dex/uniswap-v4/hooks/fee-hook/types.js.map +1 -0
  82. package/build/dex/uniswap-v4/hooks/index.d.ts +2 -0
  83. package/build/dex/uniswap-v4/hooks/index.js +8 -0
  84. package/build/dex/uniswap-v4/hooks/index.js.map +1 -0
  85. package/build/dex/usdc-transmuter/usdc-transmuter-pool.d.ts +26 -0
  86. package/build/dex/usdc-transmuter/usdc-transmuter-pool.js +75 -0
  87. package/build/dex/usdc-transmuter/usdc-transmuter-pool.js.map +1 -0
  88. package/build/dex/usual/usdc-usual-usdc.d.ts +17 -0
  89. package/build/dex/usual/usdc-usual-usdc.js +60 -0
  90. package/build/dex/usual/usdc-usual-usdc.js.map +1 -0
  91. package/build/dex/usual/usual-usdc-usd0.d.ts +17 -0
  92. package/build/dex/usual/usual-usdc-usd0.js +55 -0
  93. package/build/dex/usual/usual-usdc-usd0.js.map +1 -0
  94. package/package.json +1 -1
  95. package/build/abi/BProtocol.json +0 -1155
  96. package/build/abi/Jarvis.json +0 -1172
  97. package/build/abi/MStableAsset.json +0 -1545
  98. package/build/abi/OneInchLp.json +0 -1304
  99. package/build/abi/Onebit.json +0 -736
  100. package/build/abi/Shell.json +0 -1294
  101. package/build/abi/TraderJoeV2Router.json +0 -50
  102. package/build/abi/zrx.v2.json +0 -1967
  103. package/build/abi/zrx.v3.json +0 -3454
  104. package/build/abi/zrx.v4.json +0 -2193
  105. package/build/dex/OneInchLp.d.ts +0 -24
  106. package/build/dex/OneInchLp.js +0 -43
  107. package/build/dex/OneInchLp.js.map +0 -1
  108. package/build/dex/bProtocol/bProtocol.d.ts +0 -15
  109. package/build/dex/bProtocol/bProtocol.js +0 -56
  110. package/build/dex/bProtocol/bProtocol.js.map +0 -1
  111. package/build/dex/bProtocol/types.d.ts +0 -11
  112. package/build/dex/bProtocol/types.js +0 -8
  113. package/build/dex/bProtocol/types.js.map +0 -1
  114. package/build/dex/jarvis.d.ts +0 -56
  115. package/build/dex/jarvis.js +0 -163
  116. package/build/dex/jarvis.js.map +0 -1
  117. package/build/dex/mStable.d.ts +0 -44
  118. package/build/dex/mStable.js +0 -75
  119. package/build/dex/mStable.js.map +0 -1
  120. package/build/dex/onebit/onebit.d.ts +0 -16
  121. package/build/dex/onebit/onebit.js +0 -61
  122. package/build/dex/onebit/onebit.js.map +0 -1
  123. package/build/dex/onebit/types.d.ts +0 -14
  124. package/build/dex/onebit/types.js +0 -8
  125. package/build/dex/onebit/types.js.map +0 -1
  126. package/build/dex/shell.d.ts +0 -25
  127. package/build/dex/shell.js +0 -41
  128. package/build/dex/shell.js.map +0 -1
  129. package/build/dex/trader-joe-v2.d.ts +0 -40
  130. package/build/dex/trader-joe-v2.js +0 -74
  131. package/build/dex/trader-joe-v2.js.map +0 -1
  132. package/build/dex/uniswap-v3/uniswap-v3-new.d.ts +0 -94
  133. package/build/dex/uniswap-v3/uniswap-v3-new.js +0 -923
  134. package/build/dex/uniswap-v3/uniswap-v3-new.js.map +0 -1
  135. package/build/dex/usual-bond/config.js +0 -13
  136. package/build/dex/usual-bond/config.js.map +0 -1
  137. package/build/dex/usual-bond/types.d.ts +0 -7
  138. package/build/dex/usual-bond/usual-bond.d.ts +0 -35
  139. package/build/dex/usual-bond/usual-bond.js +0 -176
  140. package/build/dex/usual-bond/usual-bond.js.map +0 -1
  141. package/build/dex/wusdm/config.d.ts +0 -3
  142. package/build/dex/wusdm/config.js +0 -43
  143. package/build/dex/wusdm/config.js.map +0 -1
  144. package/build/dex/wusdm/constants.d.ts +0 -2
  145. package/build/dex/wusdm/constants.js +0 -6
  146. package/build/dex/wusdm/constants.js.map +0 -1
  147. package/build/dex/wusdm/types.d.ts +0 -18
  148. package/build/dex/wusdm/types.js +0 -11
  149. package/build/dex/wusdm/types.js.map +0 -1
  150. package/build/dex/wusdm/wusdm-pool.d.ts +0 -21
  151. package/build/dex/wusdm/wusdm-pool.js +0 -74
  152. package/build/dex/wusdm/wusdm-pool.js.map +0 -1
  153. package/build/dex/wusdm/wusdm.d.ts +0 -46
  154. package/build/dex/wusdm/wusdm.js +0 -243
  155. package/build/dex/wusdm/wusdm.js.map +0 -1
  156. package/build/dex/zerox/config.d.ts +0 -2
  157. package/build/dex/zerox/config.js +0 -33
  158. package/build/dex/zerox/config.js.map +0 -1
  159. package/build/dex/zerox/index.d.ts +0 -22
  160. package/build/dex/zerox/index.js +0 -225
  161. package/build/dex/zerox/index.js.map +0 -1
  162. package/build/dex/zerox/order.d.ts +0 -88
  163. package/build/dex/zerox/order.js +0 -53
  164. package/build/dex/zerox/order.js.map +0 -1
  165. package/build/dex/zerox/types.d.ts +0 -73
  166. package/build/dex/zerox/types.js +0 -21
  167. package/build/dex/zerox/types.js.map +0 -1
  168. /package/build/dex/{usual-bond → aave-pt-to-underlying}/types.js +0 -0
@@ -3,7 +3,7 @@
3
3
  "inputs": [
4
4
  {
5
5
  "components": [
6
- { "internalType": "address", "name": "xyz", "type": "address" },
6
+ { "internalType": "address", "name": "vlr", "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": "seXYZ", "type": "address" },
25
+ { "internalType": "address", "name": "seVLR", "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": "xyzAmount",
116
+ "name": "vlrAmount",
117
117
  "type": "uint256"
118
118
  },
119
119
  {
@@ -151,13 +151,6 @@
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
- },
161
154
  {
162
155
  "inputs": [],
163
156
  "name": "PSP",
@@ -181,7 +174,7 @@
181
174
  },
182
175
  {
183
176
  "inputs": [],
184
- "name": "SE_XYZ",
177
+ "name": "SE_VLR",
185
178
  "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
186
179
  "stateMutability": "view",
187
180
  "type": "function"
@@ -201,14 +194,14 @@
201
194
  },
202
195
  {
203
196
  "inputs": [],
204
- "name": "WETH",
197
+ "name": "VLR",
205
198
  "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
206
199
  "stateMutability": "view",
207
200
  "type": "function"
208
201
  },
209
202
  {
210
203
  "inputs": [],
211
- "name": "XYZ",
204
+ "name": "WETH",
212
205
  "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
213
206
  "stateMutability": "view",
214
207
  "type": "function"
@@ -219,7 +212,7 @@
219
212
  ],
220
213
  "name": "bridgeConfigs",
221
214
  "outputs": [
222
- { "internalType": "address", "name": "xyz", "type": "address" },
215
+ { "internalType": "address", "name": "vlr", "type": "address" },
223
216
  { "internalType": "address", "name": "weth", "type": "address" },
224
217
  { "internalType": "address", "name": "bridgeStaking", "type": "address" },
225
218
  { "internalType": "uint256", "name": "destChainId", "type": "uint256" }
@@ -229,7 +222,7 @@
229
222
  },
230
223
  {
231
224
  "inputs": [
232
- { "internalType": "uint256", "name": "xyzAmount", "type": "uint256" },
225
+ { "internalType": "uint256", "name": "vlrAmount", "type": "uint256" },
233
226
  { "internalType": "uint256", "name": "wethAmount", "type": "uint256" },
234
227
  { "internalType": "uint256", "name": "destChainId", "type": "uint256" },
235
228
  {
@@ -267,7 +260,7 @@
267
260
  }
268
261
  ],
269
262
  "internalType": "struct IMiroMigrator.BridgeData",
270
- "name": "xyzBridgeData",
263
+ "name": "vlrBridgeData",
271
264
  "type": "tuple"
272
265
  },
273
266
  {
@@ -304,7 +297,7 @@
304
297
  },
305
298
  { "internalType": "bytes", "name": "permitData", "type": "bytes" }
306
299
  ],
307
- "name": "bridgeXYZAndStake",
300
+ "name": "bridgeVLRAndStake",
308
301
  "outputs": [],
309
302
  "stateMutability": "payable",
310
303
  "type": "function"
@@ -316,7 +309,7 @@
316
309
  { "internalType": "uint256", "name": "minBptOut", "type": "uint256" },
317
310
  { "internalType": "bytes", "name": "permitData", "type": "bytes" }
318
311
  ],
319
- "name": "migratePSPtoSeXYZ",
312
+ "name": "migratePSPtoSeVLR",
320
313
  "outputs": [],
321
314
  "stateMutability": "payable",
322
315
  "type": "function"
@@ -326,7 +319,7 @@
326
319
  { "internalType": "uint256", "name": "pspAmount", "type": "uint256" },
327
320
  { "internalType": "bytes", "name": "permitData", "type": "bytes" }
328
321
  ],
329
- "name": "migratePSPtoXYZ",
322
+ "name": "migratePSPtoVLR",
330
323
  "outputs": [],
331
324
  "stateMutability": "nonpayable",
332
325
  "type": "function"
@@ -338,7 +331,7 @@
338
331
  { "internalType": "uint256", "name": "minBptOut", "type": "uint256" },
339
332
  { "internalType": "bytes", "name": "permitData", "type": "bytes" }
340
333
  ],
341
- "name": "migrateSePSP1toSeXYZ",
334
+ "name": "migrateSePSP1toSeVLR",
342
335
  "outputs": [],
343
336
  "stateMutability": "payable",
344
337
  "type": "function"
@@ -348,7 +341,7 @@
348
341
  { "internalType": "uint256", "name": "sePSP1Amount", "type": "uint256" },
349
342
  { "internalType": "bytes", "name": "permitData", "type": "bytes" }
350
343
  ],
351
- "name": "migrateSePSP1toXYZ",
344
+ "name": "migrateSePSP1toVLR",
352
345
  "outputs": [],
353
346
  "stateMutability": "nonpayable",
354
347
  "type": "function"
@@ -361,7 +354,7 @@
361
354
  { "internalType": "uint256", "name": "minBptOut", "type": "uint256" },
362
355
  { "internalType": "bytes", "name": "permitData", "type": "bytes" }
363
356
  ],
364
- "name": "migrateSePSP2toSeXYZ",
357
+ "name": "migrateSePSP2toSeVLR",
365
358
  "outputs": [],
366
359
  "stateMutability": "nonpayable",
367
360
  "type": "function"
@@ -407,7 +400,7 @@
407
400
  }
408
401
  ],
409
402
  "internalType": "struct IMiroMigrator.BridgeData",
410
- "name": "xyzBridgeData",
403
+ "name": "vlrBridgeData",
411
404
  "type": "tuple"
412
405
  },
413
406
  {
@@ -444,7 +437,7 @@
444
437
  },
445
438
  { "internalType": "bytes", "name": "permitData", "type": "bytes" }
446
439
  ],
447
- "name": "migrateSePSP2toSeXYZAndBridge",
440
+ "name": "migrateSePSP2toSeVLRAndBridge",
448
441
  "outputs": [],
449
442
  "stateMutability": "nonpayable",
450
443
  "type": "function"
@@ -470,19 +463,9 @@
470
463
  "stateMutability": "view",
471
464
  "type": "function"
472
465
  },
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
- },
483
466
  {
484
467
  "inputs": [{ "internalType": "address", "name": "to", "type": "address" }],
485
- "name": "reClaimETH",
468
+ "name": "reClaimVLR",
486
469
  "outputs": [],
487
470
  "stateMutability": "nonpayable",
488
471
  "type": "function"
@@ -498,7 +481,7 @@
498
481
  "inputs": [
499
482
  {
500
483
  "components": [
501
- { "internalType": "address", "name": "xyz", "type": "address" },
484
+ { "internalType": "address", "name": "vlr", "type": "address" },
502
485
  { "internalType": "address", "name": "weth", "type": "address" },
503
486
  {
504
487
  "internalType": "address",