@paraswap/dex-lib 2.50.6-sdai → 2.50.7-sdai

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 (113) hide show
  1. package/build/config.js +4 -2
  2. package/build/config.js.map +1 -1
  3. package/build/dex/algebra/config.js +0 -16
  4. package/build/dex/algebra/config.js.map +1 -1
  5. package/build/dex/curve-v1-factory/config.js +128 -11
  6. package/build/dex/curve-v1-factory/config.js.map +1 -1
  7. package/build/dex/curve-v1-factory/curve-v1-factory.d.ts +1 -0
  8. package/build/dex/curve-v1-factory/curve-v1-factory.js +29 -17
  9. package/build/dex/curve-v1-factory/curve-v1-factory.js.map +1 -1
  10. package/build/dex/curve-v1-factory/curve-v1-pool-manager.js +1 -0
  11. package/build/dex/curve-v1-factory/curve-v1-pool-manager.js.map +1 -1
  12. package/build/dex/curve-v1-factory/price-handlers/functions/_calc_withdraw_one_coin.js +1 -0
  13. package/build/dex/curve-v1-factory/price-handlers/functions/_calc_withdraw_one_coin.js.map +1 -1
  14. package/build/dex/curve-v1-factory/price-handlers/functions/_dynamic_fee.js +4 -1
  15. package/build/dex/curve-v1-factory/price-handlers/functions/_dynamic_fee.js.map +1 -1
  16. package/build/dex/curve-v1-factory/price-handlers/functions/_rates.js +1 -0
  17. package/build/dex/curve-v1-factory/price-handlers/functions/_rates.js.map +1 -1
  18. package/build/dex/curve-v1-factory/price-handlers/functions/_xp.js +1 -0
  19. package/build/dex/curve-v1-factory/price-handlers/functions/_xp.js.map +1 -1
  20. package/build/dex/curve-v1-factory/price-handlers/functions/_xp_mem.js +1 -0
  21. package/build/dex/curve-v1-factory/price-handlers/functions/_xp_mem.js.map +1 -1
  22. package/build/dex/curve-v1-factory/price-handlers/functions/calc_token_amount.js +1 -0
  23. package/build/dex/curve-v1-factory/price-handlers/functions/calc_token_amount.js.map +1 -1
  24. package/build/dex/curve-v1-factory/price-handlers/functions/calc_withdraw_one_coin.js +1 -0
  25. package/build/dex/curve-v1-factory/price-handlers/functions/calc_withdraw_one_coin.js.map +1 -1
  26. package/build/dex/curve-v1-factory/price-handlers/functions/constants.js +10 -0
  27. package/build/dex/curve-v1-factory/price-handlers/functions/constants.js.map +1 -1
  28. package/build/dex/curve-v1-factory/price-handlers/functions/get_D.js +40 -0
  29. package/build/dex/curve-v1-factory/price-handlers/functions/get_D.js.map +1 -1
  30. package/build/dex/curve-v1-factory/price-handlers/functions/get_D_mem.js +1 -0
  31. package/build/dex/curve-v1-factory/price-handlers/functions/get_D_mem.js.map +1 -1
  32. package/build/dex/curve-v1-factory/price-handlers/functions/get_D_precisions.js +1 -0
  33. package/build/dex/curve-v1-factory/price-handlers/functions/get_D_precisions.js.map +1 -1
  34. package/build/dex/curve-v1-factory/price-handlers/functions/get_dy.js +24 -0
  35. package/build/dex/curve-v1-factory/price-handlers/functions/get_dy.js.map +1 -1
  36. package/build/dex/curve-v1-factory/price-handlers/functions/get_dy_underlying.js +1 -0
  37. package/build/dex/curve-v1-factory/price-handlers/functions/get_dy_underlying.js.map +1 -1
  38. package/build/dex/curve-v1-factory/price-handlers/functions/get_y.js +53 -0
  39. package/build/dex/curve-v1-factory/price-handlers/functions/get_y.js.map +1 -1
  40. package/build/dex/curve-v1-factory/price-handlers/functions/get_y_D.js +1 -0
  41. package/build/dex/curve-v1-factory/price-handlers/functions/get_y_D.js.map +1 -1
  42. package/build/dex/curve-v1-factory/price-handlers/functions/utils.d.ts +1 -0
  43. package/build/dex/curve-v1-factory/price-handlers/functions/utils.js +5 -1
  44. package/build/dex/curve-v1-factory/price-handlers/functions/utils.js.map +1 -1
  45. package/build/dex/curve-v1-factory/price-handlers/types.d.ts +2 -2
  46. package/build/dex/curve-v1-factory/state-polling-pools/factory-pool-polling.d.ts +3 -2
  47. package/build/dex/curve-v1-factory/state-polling-pools/factory-pool-polling.js +38 -6
  48. package/build/dex/curve-v1-factory/state-polling-pools/factory-pool-polling.js.map +1 -1
  49. package/build/dex/curve-v1-factory/state-polling-pools/pool-polling-base.js.map +1 -1
  50. package/build/dex/curve-v1-factory/types.d.ts +11 -2
  51. package/build/dex/curve-v1-factory/types.js +3 -0
  52. package/build/dex/curve-v1-factory/types.js.map +1 -1
  53. package/build/dex/dexalot/config.js +7 -0
  54. package/build/dex/dexalot/config.js.map +1 -1
  55. package/build/dex/hashflow/constants.d.ts +27 -0
  56. package/build/dex/hashflow/constants.js +29 -1
  57. package/build/dex/hashflow/constants.js.map +1 -1
  58. package/build/dex/hashflow/hashflow.d.ts +3 -2
  59. package/build/dex/hashflow/hashflow.js +69 -12
  60. package/build/dex/hashflow/hashflow.js.map +1 -1
  61. package/build/dex/hashflow/types.d.ts +11 -0
  62. package/build/dex/hashflow/types.js +9 -0
  63. package/build/dex/hashflow/types.js.map +1 -1
  64. package/build/dex/idex.d.ts +1 -1
  65. package/build/dex/index.d.ts +2 -2
  66. package/build/dex/pancakeswap-v3/config.js +30 -0
  67. package/build/dex/pancakeswap-v3/config.js.map +1 -1
  68. package/build/dex/pancakeswap-v3/pancakeswap-v3.js +5 -1
  69. package/build/dex/pancakeswap-v3/pancakeswap-v3.js.map +1 -1
  70. package/build/dex/woo-fi-v2/config.js +4 -4
  71. package/package.json +1 -1
  72. package/src/config.ts +4 -2
  73. package/src/dex/algebra/config.ts +0 -18
  74. package/src/dex/curve-v1-factory/config.ts +128 -11
  75. package/src/dex/curve-v1-factory/curve-v1-factory-e2e.test.ts +123 -1
  76. package/src/dex/curve-v1-factory/curve-v1-factory-integration.test.ts +392 -0
  77. package/src/dex/curve-v1-factory/curve-v1-factory.ts +61 -39
  78. package/src/dex/curve-v1-factory/curve-v1-pool-manager.ts +1 -0
  79. package/src/dex/curve-v1-factory/price-handlers/functions/_calc_withdraw_one_coin.ts +2 -0
  80. package/src/dex/curve-v1-factory/price-handlers/functions/_dynamic_fee.ts +6 -2
  81. package/src/dex/curve-v1-factory/price-handlers/functions/_rates.ts +2 -0
  82. package/src/dex/curve-v1-factory/price-handlers/functions/_xp.ts +2 -0
  83. package/src/dex/curve-v1-factory/price-handlers/functions/_xp_mem.ts +2 -0
  84. package/src/dex/curve-v1-factory/price-handlers/functions/calc_token_amount.ts +2 -0
  85. package/src/dex/curve-v1-factory/price-handlers/functions/calc_withdraw_one_coin.ts +2 -0
  86. package/src/dex/curve-v1-factory/price-handlers/functions/constants.ts +11 -0
  87. package/src/dex/curve-v1-factory/price-handlers/functions/get_D.ts +59 -1
  88. package/src/dex/curve-v1-factory/price-handlers/functions/get_D_mem.ts +2 -0
  89. package/src/dex/curve-v1-factory/price-handlers/functions/get_D_precisions.ts +2 -0
  90. package/src/dex/curve-v1-factory/price-handlers/functions/get_dy.ts +51 -0
  91. package/src/dex/curve-v1-factory/price-handlers/functions/get_dy_underlying.ts +2 -0
  92. package/src/dex/curve-v1-factory/price-handlers/functions/get_y.ts +68 -1
  93. package/src/dex/curve-v1-factory/price-handlers/functions/get_y_D.ts +2 -0
  94. package/src/dex/curve-v1-factory/price-handlers/functions/utils.ts +4 -0
  95. package/src/dex/curve-v1-factory/price-handlers/types.ts +8 -1
  96. package/src/dex/curve-v1-factory/state-polling-pools/factory-pool-polling.ts +71 -18
  97. package/src/dex/curve-v1-factory/state-polling-pools/pool-polling-base.ts +1 -0
  98. package/src/dex/curve-v1-factory/types.ts +12 -1
  99. package/src/dex/dexalot/config.ts +7 -0
  100. package/src/dex/dexalot/dexalot-e2e.test.ts +23 -1
  101. package/src/dex/dexalot/dexalot-integration.test.ts +121 -0
  102. package/src/dex/hashflow/constants.ts +32 -0
  103. package/src/dex/hashflow/hashflow.ts +121 -19
  104. package/src/dex/hashflow/types.ts +20 -2
  105. package/src/dex/idex.ts +1 -1
  106. package/src/dex/index.ts +2 -2
  107. package/src/dex/pancakeswap-v3/config.ts +32 -0
  108. package/src/dex/pancakeswap-v3/pancakeswap-v3-e2e.test.ts +21 -0
  109. package/src/dex/pancakeswap-v3/pancakeswap-v3.ts +7 -1
  110. package/src/dex/woo-fi-v2/config.ts +4 -4
  111. package/tests/constants-e2e.ts +38 -3
  112. package/tests/utils-e2e.ts +1 -0
  113. package/src/abi/uniswap-v3/AlienBaseV3Router.abi.json +0 -52
@@ -384,6 +384,7 @@ export async function testE2E(
384
384
  poolIdentifiers,
385
385
  transferFees,
386
386
  );
387
+
387
388
  expect(parseFloat(priceRoute.destAmount)).toBeGreaterThan(0);
388
389
 
389
390
  // Calculate slippage. Default is 1%
@@ -1,52 +0,0 @@
1
- [
2
- {
3
- "inputs": [
4
- {
5
- "components": [
6
- { "internalType": "bytes", "name": "path", "type": "bytes" },
7
- { "internalType": "address", "name": "recipient", "type": "address" },
8
- { "internalType": "uint256", "name": "amountIn", "type": "uint256" },
9
- {
10
- "internalType": "uint256",
11
- "name": "amountOutMinimum",
12
- "type": "uint256"
13
- }
14
- ],
15
- "internalType": "struct ISwapRouter.ExactInputParams",
16
- "name": "params",
17
- "type": "tuple"
18
- }
19
- ],
20
- "name": "exactInput",
21
- "outputs": [
22
- { "internalType": "uint256", "name": "amountOut", "type": "uint256" }
23
- ],
24
- "stateMutability": "payable",
25
- "type": "function"
26
- },
27
- {
28
- "inputs": [
29
- {
30
- "components": [
31
- { "internalType": "bytes", "name": "path", "type": "bytes" },
32
- { "internalType": "address", "name": "recipient", "type": "address" },
33
- { "internalType": "uint256", "name": "amountOut", "type": "uint256" },
34
- {
35
- "internalType": "uint256",
36
- "name": "amountInMaximum",
37
- "type": "uint256"
38
- }
39
- ],
40
- "internalType": "struct ISwapRouter.ExactOutputParams",
41
- "name": "params",
42
- "type": "tuple"
43
- }
44
- ],
45
- "name": "exactOutput",
46
- "outputs": [
47
- { "internalType": "uint256", "name": "amountIn", "type": "uint256" }
48
- ],
49
- "stateMutability": "payable",
50
- "type": "function"
51
- }
52
- ]