@paraswap/dex-lib 4.6.13 → 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 (127) 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/usual-usual-usdc/abi.json +698 -0
  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 +3 -0
  21. package/build/dex/aave-pt-to-underlying/types.js.map +1 -0
  22. package/build/dex/aave-pt-to-usdc/aave-pt-to-usdc.d.ts +39 -0
  23. package/build/dex/aave-pt-to-usdc/aave-pt-to-usdc.js +244 -0
  24. package/build/dex/aave-pt-to-usdc/aave-pt-to-usdc.js.map +1 -0
  25. package/build/dex/aave-pt-to-usdc/config.d.ts +3 -0
  26. package/build/dex/aave-pt-to-usdc/config.js +47 -0
  27. package/build/dex/aave-pt-to-usdc/config.js.map +1 -0
  28. package/build/dex/aave-pt-to-usdc/constants.d.ts +2 -0
  29. package/build/dex/aave-pt-to-usdc/constants.js +6 -0
  30. package/build/dex/aave-pt-to-usdc/constants.js.map +1 -0
  31. package/build/dex/aave-pt-to-usdc/types.d.ts +22 -0
  32. package/build/dex/aave-pt-to-usdc/types.js +3 -0
  33. package/build/dex/aave-pt-to-usdc/types.js.map +1 -0
  34. package/build/dex/algebra/lib/AlgebraMath.js +3 -13
  35. package/build/dex/algebra/lib/AlgebraMath.js.map +1 -1
  36. package/build/dex/algebra/lib/TickManager.js +0 -5
  37. package/build/dex/algebra/lib/TickManager.js.map +1 -1
  38. package/build/dex/ekubo/pools/math/sqrt-ratio.d.ts +8 -0
  39. package/build/dex/ekubo/pools/math/sqrt-ratio.js +113 -0
  40. package/build/dex/ekubo/pools/math/sqrt-ratio.js.map +1 -0
  41. package/build/dex/ekubo/pools/mev-resist.d.ts +7 -0
  42. package/build/dex/ekubo/pools/mev-resist.js +40 -0
  43. package/build/dex/ekubo/pools/mev-resist.js.map +1 -0
  44. package/build/dex/ekubo/pools/pool.d.ts +52 -0
  45. package/build/dex/ekubo/pools/pool.js +86 -0
  46. package/build/dex/ekubo/pools/pool.js.map +1 -0
  47. package/build/dex/idle-dao/idle-dao.d.ts +0 -1
  48. package/build/dex/idle-dao/idle-dao.js +11 -23
  49. package/build/dex/idle-dao/idle-dao.js.map +1 -1
  50. package/build/dex/index.js +2 -0
  51. package/build/dex/index.js.map +1 -1
  52. package/build/dex/maker-psm/maker-psm.d.ts +41 -4
  53. package/build/dex/maker-psm/maker-psm.js +143 -40
  54. package/build/dex/maker-psm/maker-psm.js.map +1 -1
  55. package/build/dex/miro-migrator/config.js +16 -3
  56. package/build/dex/miro-migrator/config.js.map +1 -1
  57. package/build/dex/miro-migrator/constants.d.ts +1 -2
  58. package/build/dex/miro-migrator/constants.js +2 -3
  59. package/build/dex/miro-migrator/constants.js.map +1 -1
  60. package/build/dex/miro-migrator/miro-migrator-pool.d.ts +5 -9
  61. package/build/dex/miro-migrator/miro-migrator-pool.js +28 -49
  62. package/build/dex/miro-migrator/miro-migrator-pool.js.map +1 -1
  63. package/build/dex/miro-migrator/miro-migrator-state.d.ts +27 -0
  64. package/build/dex/miro-migrator/miro-migrator-state.js +89 -0
  65. package/build/dex/miro-migrator/miro-migrator-state.js.map +1 -0
  66. package/build/dex/miro-migrator/miro-migrator.d.ts +4 -5
  67. package/build/dex/miro-migrator/miro-migrator.js +83 -41
  68. package/build/dex/miro-migrator/miro-migrator.js.map +1 -1
  69. package/build/dex/miro-migrator/types.d.ts +4 -2
  70. package/build/dex/miro-migrator/types.js +2 -1
  71. package/build/dex/miro-migrator/types.js.map +1 -1
  72. package/build/dex/pancakeswap-v3/contract-math/Tick.d.ts +1 -1
  73. package/build/dex/pancakeswap-v3/contract-math/Tick.js +1 -10
  74. package/build/dex/pancakeswap-v3/contract-math/Tick.js.map +1 -1
  75. package/build/dex/pancakeswap-v3/contract-math/pancakeswap-v3-math.js +3 -11
  76. package/build/dex/pancakeswap-v3/contract-math/pancakeswap-v3-math.js.map +1 -1
  77. package/build/dex/sky-converter/config.js +1 -1
  78. package/build/dex/uniswap-v3/contract-math/Tick.d.ts +1 -1
  79. package/build/dex/uniswap-v3/contract-math/Tick.js +1 -10
  80. package/build/dex/uniswap-v3/contract-math/Tick.js.map +1 -1
  81. package/build/dex/uniswap-v3/contract-math/uniswap-v3-math.js +3 -11
  82. package/build/dex/uniswap-v3/contract-math/uniswap-v3-math.js.map +1 -1
  83. package/build/dex/uniswap-v3/contract-math/utils.js +0 -3
  84. package/build/dex/uniswap-v3/contract-math/utils.js.map +1 -1
  85. package/build/dex/uniswap-v3/forks/pangolin-v3/utils.d.ts +4 -0
  86. package/build/dex/uniswap-v3/forks/pangolin-v3/utils.js +56 -0
  87. package/build/dex/uniswap-v3/forks/pangolin-v3/utils.js.map +1 -0
  88. package/build/dex/uniswap-v3/types.d.ts +0 -3
  89. package/build/dex/uniswap-v3/types.js.map +1 -1
  90. package/build/dex/uniswap-v4/contract-math/Tick.d.ts +1 -1
  91. package/build/dex/uniswap-v4/contract-math/Tick.js +2 -17
  92. package/build/dex/uniswap-v4/contract-math/Tick.js.map +1 -1
  93. package/build/dex/uniswap-v4/contract-math/uniswap-v4-pool-math.d.ts +3 -8
  94. package/build/dex/uniswap-v4/contract-math/uniswap-v4-pool-math.js +8 -57
  95. package/build/dex/uniswap-v4/contract-math/uniswap-v4-pool-math.js.map +1 -1
  96. package/build/dex/uniswap-v4/hooks/cabalcoin-hook/cabalcoin-hook-pool.d.ts +7 -0
  97. package/build/dex/uniswap-v4/hooks/cabalcoin-hook/cabalcoin-hook-pool.js +28 -0
  98. package/build/dex/uniswap-v4/hooks/cabalcoin-hook/cabalcoin-hook-pool.js.map +1 -0
  99. package/build/dex/uniswap-v4/hooks/cabalcoin-hook/types.d.ts +0 -0
  100. package/build/dex/uniswap-v4/hooks/cabalcoin-hook/types.js +2 -0
  101. package/build/dex/uniswap-v4/hooks/cabalcoin-hook/types.js.map +1 -0
  102. package/build/dex/uniswap-v4/hooks/fee-hook/fee-hook-pool.d.ts +7 -0
  103. package/build/dex/uniswap-v4/hooks/fee-hook/fee-hook-pool.js +28 -0
  104. package/build/dex/uniswap-v4/hooks/fee-hook/fee-hook-pool.js.map +1 -0
  105. package/build/dex/uniswap-v4/hooks/fee-hook/types.d.ts +0 -0
  106. package/build/dex/uniswap-v4/hooks/fee-hook/types.js +2 -0
  107. package/build/dex/uniswap-v4/hooks/fee-hook/types.js.map +1 -0
  108. package/build/dex/uniswap-v4/hooks/index.d.ts +2 -0
  109. package/build/dex/uniswap-v4/hooks/index.js +8 -0
  110. package/build/dex/uniswap-v4/hooks/index.js.map +1 -0
  111. package/build/dex/uniswap-v4/types.d.ts +0 -10
  112. package/build/dex/uniswap-v4/uniswap-v4-pool.d.ts +4 -5
  113. package/build/dex/uniswap-v4/uniswap-v4-pool.js +4 -42
  114. package/build/dex/uniswap-v4/uniswap-v4-pool.js.map +1 -1
  115. package/build/dex/uniswap-v4/uniswap-v4.d.ts +2 -2
  116. package/build/dex/uniswap-v4/uniswap-v4.js +4 -17
  117. package/build/dex/uniswap-v4/uniswap-v4.js.map +1 -1
  118. package/build/dex/usdc-transmuter/usdc-transmuter-pool.d.ts +26 -0
  119. package/build/dex/usdc-transmuter/usdc-transmuter-pool.js +75 -0
  120. package/build/dex/usdc-transmuter/usdc-transmuter-pool.js.map +1 -0
  121. package/build/dex/usual/usdc-usual-usdc.d.ts +17 -0
  122. package/build/dex/usual/usdc-usual-usdc.js +60 -0
  123. package/build/dex/usual/usdc-usual-usdc.js.map +1 -0
  124. package/build/dex/usual/usual-usdc-usd0.d.ts +17 -0
  125. package/build/dex/usual/usual-usdc-usd0.js +55 -0
  126. package/build/dex/usual/usual-usdc-usd0.js.map +1 -0
  127. package/package.json +1 -1
@@ -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",