@paraswap/dex-lib 4.1.19 → 4.1.20

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 (347) hide show
  1. package/build/abi/AaveV1_lending_pool.json +27 -0
  2. package/build/abi/Aave_GSM.json +751 -0
  3. package/build/abi/Balancer.json +257 -0
  4. package/build/abi/BalancerV2.json +1179 -0
  5. package/build/abi/RamsesV2Pool.abi.json +1554 -0
  6. package/build/abi/RamsesV2Quoter.abi.json +274 -0
  7. package/build/abi/USDM.json +807 -0
  8. package/build/abi/UniswapV2Router.json +397 -0
  9. package/build/abi/angle-transmuter/ChainlinkAccessControlledOffchainAggregator.json +1246 -0
  10. package/build/abi/angle-transmuter/ChainlinkEACAggregatorProxy.json +509 -0
  11. package/build/abi/curve-v1/CurveBUSDv2.abi.json +1356 -0
  12. package/build/abi/curve-v1/CurveTokenV1.json +305 -0
  13. package/build/abi/curve-v1/CurveTokenV2.json +318 -0
  14. package/build/abi/curve-v1/CurveV1StableNg.json +1452 -0
  15. package/build/abi/curve-v1/CurveV2Swap.json +700 -0
  16. package/build/abi/curve-v1/FactoryCryptoRegistry.json +316 -0
  17. package/build/abi/curve-v1/FactoryRegistry.json +508 -0
  18. package/build/abi/curve-v1/StableSwapAave.json +1152 -0
  19. package/build/abi/curve-v1/StableSwapBUSD.json +814 -0
  20. package/build/abi/curve-v1/StableSwapCompound.json +814 -0
  21. package/build/abi/curve-v1/StableSwapIDLE.json +1253 -0
  22. package/build/abi/curve-v1/StableSwapPax.json +865 -0
  23. package/build/abi/curve-v1/StableSwapSnow.json +900 -0
  24. package/build/abi/curve-v1/StableSwapUSDN.json +1004 -0
  25. package/build/abi/curve-v1/StableSwapUSDT.json +814 -0
  26. package/build/abi/curve-v1/StableSwapY.json +814 -0
  27. package/build/abi/inception/inception-ineth-pool.json +1062 -0
  28. package/build/abi/inception/inception-ineth.json +609 -0
  29. package/build/abi/inception/inception-ratio-feed.json +329 -0
  30. package/build/abi/inception/inception-vault.json +991 -0
  31. package/build/abi/kyberdmm/kyber-storage.abi.json +824 -0
  32. package/build/abi/kyberdmm.abi.json +1148 -0
  33. package/build/abi/maverick-v2/MaverickV2Quoter.json +278 -0
  34. package/build/abi/nerve/nerve-metapool.json +790 -0
  35. package/build/abi/platypus/asset.json +490 -0
  36. package/build/abi/platypus/avax-pool.json +820 -0
  37. package/build/abi/platypus/oracle.json +119 -0
  38. package/build/abi/platypus/pool.json +677 -0
  39. package/build/abi/smardex/all/smardex-router.json +648 -0
  40. package/build/abi/smardex/layer-1/smardex-factory.json +242 -0
  41. package/build/abi/smardex/layer-1/smardex-pool.json +506 -0
  42. package/build/abi/smardex/layer-2/smardex-factory.json +185 -0
  43. package/build/abi/smardex/layer-2/smardex-pool.json +578 -0
  44. package/build/abi/swaap-v1/pool.json +1346 -0
  45. package/build/abi/uniswap-v3/UniswapV3Quoter.abi.json +193 -0
  46. package/build/abi/velodrome-slipstream/VelodromeSlipstreamQuoterV2.abi.json +267 -0
  47. package/build/dex/aave-v1/aave-v1.d.ts +34 -0
  48. package/build/dex/aave-v1/aave-v1.js +180 -0
  49. package/build/dex/aave-v1/aave-v1.js.map +1 -0
  50. package/build/dex/aave-v1/config.d.ts +11 -0
  51. package/build/dex/aave-v1/config.js +20 -0
  52. package/build/dex/aave-v1/config.js.map +1 -0
  53. package/build/dex/aave-v1/tokens-mainnet.json +134 -0
  54. package/build/dex/aave-v1/tokens.d.ts +3 -0
  55. package/build/dex/aave-v1/tokens.js +50 -0
  56. package/build/dex/aave-v1/tokens.js.map +1 -0
  57. package/build/dex/aave-v1/types.d.ts +12 -0
  58. package/build/dex/aave-v1/types.js +3 -0
  59. package/build/dex/aave-v1/types.js.map +1 -0
  60. package/build/dex/balancer-v1/balancer-pools.json +33333 -0
  61. package/build/dex/balancer-v3/balancer-test-helpers.d.ts +5 -0
  62. package/build/dex/balancer-v3/balancer-test-helpers.js +25 -1
  63. package/build/dex/balancer-v3/balancer-test-helpers.js.map +1 -1
  64. package/build/dex/balancer-v3/balancer-v3-pool.js +35 -7
  65. package/build/dex/balancer-v3/balancer-v3-pool.js.map +1 -1
  66. package/build/dex/balancer-v3/balancer-v3.js +9 -2
  67. package/build/dex/balancer-v3/balancer-v3.js.map +1 -1
  68. package/build/dex/balancer-v3/config.d.ts +2 -1
  69. package/build/dex/balancer-v3/config.js +7 -0
  70. package/build/dex/balancer-v3/config.js.map +1 -1
  71. package/build/dex/balancer-v3/getGasCost.js +3 -0
  72. package/build/dex/balancer-v3/getGasCost.js.map +1 -1
  73. package/build/dex/balancer-v3/getOnChainState.d.ts +5 -1
  74. package/build/dex/balancer-v3/getOnChainState.js +69 -9
  75. package/build/dex/balancer-v3/getOnChainState.js.map +1 -1
  76. package/build/dex/balancer-v3/getPoolsApi.js +45 -7
  77. package/build/dex/balancer-v3/getPoolsApi.js.map +1 -1
  78. package/build/dex/balancer-v3/getTopPoolsApi.d.ts +4 -3
  79. package/build/dex/balancer-v3/getTopPoolsApi.js +17 -6
  80. package/build/dex/balancer-v3/getTopPoolsApi.js.map +1 -1
  81. package/build/dex/balancer-v3/gyroECLPPool.d.ts +11 -0
  82. package/build/dex/balancer-v3/gyroECLPPool.js +6 -0
  83. package/build/dex/balancer-v3/gyroECLPPool.js.map +1 -0
  84. package/build/dex/balancer-v3/hooks/directionalFeeHook.d.ts +2 -0
  85. package/build/dex/balancer-v3/hooks/directionalFeeHook.js +1 -0
  86. package/build/dex/balancer-v3/hooks/directionalFeeHook.js.map +1 -1
  87. package/build/dex/balancer-v3/hooks/stableSurgeHook.d.ts +2 -0
  88. package/build/dex/balancer-v3/hooks/stableSurgeHook.js +1 -0
  89. package/build/dex/balancer-v3/hooks/stableSurgeHook.js.map +1 -1
  90. package/build/dex/balancer-v3/types.d.ts +6 -2
  91. package/build/dex/balancer-v3/utils.d.ts +2 -0
  92. package/build/dex/balancer-v3/utils.js +11 -0
  93. package/build/dex/balancer-v3/utils.js.map +1 -0
  94. package/build/dex/bebop/websocket-fetcher.d.ts +35 -0
  95. package/build/dex/bebop/websocket-fetcher.js +87 -0
  96. package/build/dex/bebop/websocket-fetcher.js.map +1 -0
  97. package/build/dex/idle-dao/idle-dao-pool.d.ts +56 -0
  98. package/build/dex/idle-dao/idle-dao-pool.js +176 -0
  99. package/build/dex/idle-dao/idle-dao-pool.js.map +1 -0
  100. package/build/dex/idle-dao/idle-dao-pooling-pool.d.ts +16 -0
  101. package/build/dex/idle-dao/idle-dao-pooling-pool.js +57 -0
  102. package/build/dex/idle-dao/idle-dao-pooling-pool.js.map +1 -0
  103. package/build/dex/idle-dao/scripts.d.ts +9 -0
  104. package/build/dex/idle-dao/scripts.js +552 -0
  105. package/build/dex/idle-dao/scripts.js.map +1 -0
  106. package/build/dex/inception/config.d.ts +4 -0
  107. package/build/dex/inception/config.js +109 -0
  108. package/build/dex/inception/config.js.map +1 -0
  109. package/build/dex/inception/inception-event-pool.d.ts +16 -0
  110. package/build/dex/inception/inception-event-pool.js +51 -0
  111. package/build/dex/inception/inception-event-pool.js.map +1 -0
  112. package/build/dex/inception/inception-native.d.ts +43 -0
  113. package/build/dex/inception/inception-native.js +131 -0
  114. package/build/dex/inception/inception-native.js.map +1 -0
  115. package/build/dex/inception/inception-pool.d.ts +18 -0
  116. package/build/dex/inception/inception-pool.js +32 -0
  117. package/build/dex/inception/inception-pool.js.map +1 -0
  118. package/build/dex/inception/inception-price-feed.d.ts +19 -0
  119. package/build/dex/inception/inception-price-feed.js +51 -0
  120. package/build/dex/inception/inception-price-feed.js.map +1 -0
  121. package/build/dex/inception/inception.d.ts +43 -0
  122. package/build/dex/inception/inception.js +204 -0
  123. package/build/dex/inception/inception.js.map +1 -0
  124. package/build/dex/inception/tokens.d.ts +9 -0
  125. package/build/dex/inception/tokens.js +28 -0
  126. package/build/dex/inception/tokens.js.map +1 -0
  127. package/build/dex/inception/types.d.ts +22 -0
  128. package/build/dex/inception/types.js +3 -0
  129. package/build/dex/inception/types.js.map +1 -0
  130. package/build/dex/inception/utils.d.ts +6 -0
  131. package/build/dex/inception/utils.js +37 -0
  132. package/build/dex/inception/utils.js.map +1 -0
  133. package/build/dex/platypus/asset.d.ts +14 -0
  134. package/build/dex/platypus/asset.js +97 -0
  135. package/build/dex/platypus/asset.js.map +1 -0
  136. package/build/dex/platypus/config.d.ts +11 -0
  137. package/build/dex/platypus/config.js +69 -0
  138. package/build/dex/platypus/config.js.map +1 -0
  139. package/build/dex/platypus/platypus.d.ts +63 -0
  140. package/build/dex/platypus/platypus.js +473 -0
  141. package/build/dex/platypus/platypus.js.map +1 -0
  142. package/build/dex/platypus/pool-avax.d.ts +8 -0
  143. package/build/dex/platypus/pool-avax.js +54 -0
  144. package/build/dex/platypus/pool-avax.js.map +1 -0
  145. package/build/dex/platypus/pool-base.d.ts +19 -0
  146. package/build/dex/platypus/pool-base.js +86 -0
  147. package/build/dex/platypus/pool-base.js.map +1 -0
  148. package/build/dex/platypus/pool-pure.d.ts +8 -0
  149. package/build/dex/platypus/pool-pure.js +37 -0
  150. package/build/dex/platypus/pool-pure.js.map +1 -0
  151. package/build/dex/platypus/pool-subscriber.d.ts +14 -0
  152. package/build/dex/platypus/pool-subscriber.js +167 -0
  153. package/build/dex/platypus/pool-subscriber.js.map +1 -0
  154. package/build/dex/platypus/pool.d.ts +8 -0
  155. package/build/dex/platypus/pool.js +58 -0
  156. package/build/dex/platypus/pool.js.map +1 -0
  157. package/build/dex/platypus/types.d.ts +92 -0
  158. package/build/dex/platypus/types.js +10 -0
  159. package/build/dex/platypus/types.js.map +1 -0
  160. package/build/dex/quickswap/spiritswap-v3.d.ts +6 -0
  161. package/build/dex/quickswap/spiritswap-v3.js +19 -0
  162. package/build/dex/quickswap/spiritswap-v3.js.map +1 -0
  163. package/build/dex/smardex/config.d.ts +4 -0
  164. package/build/dex/smardex/config.js +64 -0
  165. package/build/dex/smardex/config.js.map +1 -0
  166. package/build/dex/smardex/constants.d.ts +18 -0
  167. package/build/dex/smardex/constants.js +33 -0
  168. package/build/dex/smardex/constants.js.map +1 -0
  169. package/build/dex/smardex/sdk/constants.d.ts +6 -0
  170. package/build/dex/smardex/sdk/constants.js +13 -0
  171. package/build/dex/smardex/sdk/constants.js.map +1 -0
  172. package/build/dex/smardex/sdk/core.d.ts +113 -0
  173. package/build/dex/smardex/sdk/core.js +499 -0
  174. package/build/dex/smardex/sdk/core.js.map +1 -0
  175. package/build/dex/smardex/sdk/errors.d.ts +15 -0
  176. package/build/dex/smardex/sdk/errors.js +22 -0
  177. package/build/dex/smardex/sdk/errors.js.map +1 -0
  178. package/build/dex/smardex/sdk/types.d.ts +62 -0
  179. package/build/dex/smardex/sdk/types.js +3 -0
  180. package/build/dex/smardex/sdk/types.js.map +1 -0
  181. package/build/dex/smardex/sdk/utils.d.ts +44 -0
  182. package/build/dex/smardex/sdk/utils.js +133 -0
  183. package/build/dex/smardex/sdk/utils.js.map +1 -0
  184. package/build/dex/smardex/smardex-event-pool.d.ts +28 -0
  185. package/build/dex/smardex/smardex-event-pool.js +119 -0
  186. package/build/dex/smardex/smardex-event-pool.js.map +1 -0
  187. package/build/dex/smardex/smardex.d.ts +65 -0
  188. package/build/dex/smardex/smardex.js +519 -0
  189. package/build/dex/smardex/smardex.js.map +1 -0
  190. package/build/dex/smardex/types.d.ts +55 -0
  191. package/build/dex/smardex/types.js +3 -0
  192. package/build/dex/smardex/types.js.map +1 -0
  193. package/build/dex/solidly/forks-override/cone.d.ts +22 -0
  194. package/build/dex/solidly/forks-override/cone.js +53 -0
  195. package/build/dex/solidly/forks-override/cone.js.map +1 -0
  196. package/build/dex/solidly/forks-override/solisnek.d.ts +8 -0
  197. package/build/dex/solidly/forks-override/solisnek.js +15 -0
  198. package/build/dex/solidly/forks-override/solisnek.js.map +1 -0
  199. package/build/dex/swaap-v1/config.d.ts +17 -0
  200. package/build/dex/swaap-v1/config.js +56 -0
  201. package/build/dex/swaap-v1/config.js.map +1 -0
  202. package/build/dex/swaap-v1/constants.d.ts +6 -0
  203. package/build/dex/swaap-v1/constants.js +17 -0
  204. package/build/dex/swaap-v1/constants.js.map +1 -0
  205. package/build/dex/swaap-v1/libraries/ChainlinkUtils.d.ts +25 -0
  206. package/build/dex/swaap-v1/libraries/ChainlinkUtils.js +62 -0
  207. package/build/dex/swaap-v1/libraries/ChainlinkUtils.js.map +1 -0
  208. package/build/dex/swaap-v1/libraries/Const.d.ts +18 -0
  209. package/build/dex/swaap-v1/libraries/Const.js +26 -0
  210. package/build/dex/swaap-v1/libraries/Const.js.map +1 -0
  211. package/build/dex/swaap-v1/libraries/GeometricBrownianMotion.d.ts +77 -0
  212. package/build/dex/swaap-v1/libraries/GeometricBrownianMotion.js +316 -0
  213. package/build/dex/swaap-v1/libraries/GeometricBrownianMotion.js.map +1 -0
  214. package/build/dex/swaap-v1/libraries/LogExpMath.d.ts +75 -0
  215. package/build/dex/swaap-v1/libraries/LogExpMath.js +418 -0
  216. package/build/dex/swaap-v1/libraries/LogExpMath.js.map +1 -0
  217. package/build/dex/swaap-v1/libraries/MathMMM.d.ts +185 -0
  218. package/build/dex/swaap-v1/libraries/MathMMM.js +453 -0
  219. package/build/dex/swaap-v1/libraries/MathMMM.js.map +1 -0
  220. package/build/dex/swaap-v1/libraries/Num.d.ts +31 -0
  221. package/build/dex/swaap-v1/libraries/Num.js +167 -0
  222. package/build/dex/swaap-v1/libraries/Num.js.map +1 -0
  223. package/build/dex/swaap-v1/libraries/PoolQuotations.d.ts +23 -0
  224. package/build/dex/swaap-v1/libraries/PoolQuotations.js +131 -0
  225. package/build/dex/swaap-v1/libraries/PoolQuotations.js.map +1 -0
  226. package/build/dex/swaap-v1/libraries/Struct.d.ts +56 -0
  227. package/build/dex/swaap-v1/libraries/Struct.js +3 -0
  228. package/build/dex/swaap-v1/libraries/Struct.js.map +1 -0
  229. package/build/dex/swaap-v1/swaap-v1-pool.d.ts +45 -0
  230. package/build/dex/swaap-v1/swaap-v1-pool.js +656 -0
  231. package/build/dex/swaap-v1/swaap-v1-pool.js.map +1 -0
  232. package/build/dex/swaap-v1/swaap-v1.d.ts +62 -0
  233. package/build/dex/swaap-v1/swaap-v1.js +379 -0
  234. package/build/dex/swaap-v1/swaap-v1.js.map +1 -0
  235. package/build/dex/swaap-v1/types.d.ts +106 -0
  236. package/build/dex/swaap-v1/types.js +9 -0
  237. package/build/dex/swaap-v1/types.js.map +1 -0
  238. package/build/dex/zerox/index.d.ts +1 -1
  239. package/build/dex/zerox/index.js.map +1 -1
  240. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-balancerv1-curvev1-eth-usdc-gusd.json +16 -0
  241. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-balancerv1-sushiv3-wbtc-eth-sushi.json +16 -0
  242. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-curvev1-eth-usdc-gusd.json +16 -0
  243. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-curvev1-gusd-usdc-eth.json +16 -0
  244. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-dai-usdc-eth.json +16 -0
  245. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-eth-usdc-dai.json +16 -0
  246. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-usdc-eth-wbtc.json +16 -0
  247. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-usdt-usdc-dai.json +16 -0
  248. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-balancerv1-eth-usdc.json +9 -0
  249. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-balancerv1-usdc-eth.json +9 -0
  250. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-balancerv1-usdc-wbtc.json +9 -0
  251. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-curvev1-eth-steth.json +9 -0
  252. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-curvev1-steth-eth.json +9 -0
  253. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-curvev1-usdc-usdt.json +9 -0
  254. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-univ3-eth-usdc.json +9 -0
  255. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-univ3-usdc-eth.json +9 -0
  256. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-univ3-usdc-usdt.json +9 -0
  257. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-balancerv1-sushiv3-wbtc-eth-sushi.json +12 -0
  258. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-curvev1-eth-usdc-gusd.json +7 -0
  259. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-curvev1-gusd-usdc-eth.json +7 -0
  260. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-dai-usdc-eth.json +7 -0
  261. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-eth-usdc-dai.json +7 -0
  262. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-usdc-eth-wbtc.json +12 -0
  263. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-simpleSwap-univ3-eth-usdc.json +7 -0
  264. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-simpleSwap-univ3-usdc-eth.json +7 -0
  265. package/build/executor/fixtures/executor01/routes/price-route-multiswap-balancerv1-curvev1-eth-usdc-gusd.json +78 -0
  266. package/build/executor/fixtures/executor01/routes/price-route-multiswap-balancerv1-sushiv3-wbtc-eth-sushi.json +81 -0
  267. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-curvev1-eth-usdc-gusd.json +78 -0
  268. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-curvev1-gusd-usdc-eth.json +78 -0
  269. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-dai-usdc-eth.json +81 -0
  270. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-eth-usdc-dai.json +81 -0
  271. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-usdc-eth-wbtc.json +81 -0
  272. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-usdt-usdc-dai.json +81 -0
  273. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-balancerv1-eth-usdc.json +64 -0
  274. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-balancerv1-usdc-eth.json +85 -0
  275. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-balancerv1-usdc-wbtc.json +64 -0
  276. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-curvev1-eth-steth.json +52 -0
  277. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-curvev1-steth-eth.json +52 -0
  278. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-curvev1-usdc-usdt.json +52 -0
  279. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-univ3-eth-usdc.json +55 -0
  280. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-univ3-usdc-eth.json +55 -0
  281. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-univ3-usdc-usdt.json +55 -0
  282. package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-balancerv1-sushiv3-univ3-bal-eth-sushi.json +23 -0
  283. package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-maverickv1-sushiv3-univ3-eth-usdc-mav.json +37 -0
  284. package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-univ3-sushiv3-sushi-eth-wbtc.json +23 -0
  285. package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-univ3-sushiv3-wbtc-eth-sushi.json +23 -0
  286. package/build/executor/fixtures/executor02/exchange-params/price-route-multiswap-curvev1-univ3-dai-usdc-eth.json +51 -0
  287. package/build/executor/fixtures/executor02/exchange-params/price-route-multiswap-univ3-usdt-dai-eth.json +58 -0
  288. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-balancerv1-eth-usdc.json +23 -0
  289. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-balancerv1-usdc-eth.json +23 -0
  290. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-univ3-eth-sushi.json +9 -0
  291. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-univ3-sushi-eth.json +16 -0
  292. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-univ3-curvev1-usdt-dai.json +23 -0
  293. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-balancerv1-sushiv3-univ3-bal-eth-sushi.json +12 -0
  294. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-maverickv1-sushiv3-univ3-eth-usdc-mav.json +7 -0
  295. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-univ3-sushiv3-sushi-eth-wbtc.json +12 -0
  296. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-univ3-sushiv3-wbtc-eth-sushi.json +12 -0
  297. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiswap-curvev1-univ3-dai-usdc-eth.json +7 -0
  298. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiswap-univ3-usdt-dai-eth.json +7 -0
  299. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-balancerv1-eth-usdc.json +7 -0
  300. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-balancerv1-usdc-eth.json +7 -0
  301. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-univ3-eth-sushi.json +7 -0
  302. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-univ3-sushi-eth.json +7 -0
  303. package/build/executor/fixtures/executor02/routes/price-route-multiSwap-balancerv1-sushiv3-univ3-bal-eth-sushi.json +130 -0
  304. package/build/executor/fixtures/executor02/routes/price-route-multiSwap-maverickv1-sushiv3-univ3-eth-usdc-mav.json +136 -0
  305. package/build/executor/fixtures/executor02/routes/price-route-multiSwap-univ3-sushiv3-sushi-eth-wbtc.json +100 -0
  306. package/build/executor/fixtures/executor02/routes/price-route-multiSwap-univ3-sushiv3-wbtc-eth-sushi.json +100 -0
  307. package/build/executor/fixtures/executor02/routes/price-route-multiswap-curvev1-univ3-dai-usdc-eth.json +166 -0
  308. package/build/executor/fixtures/executor02/routes/price-route-multiswap-univ3-usdt-dai-eth.json +190 -0
  309. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-balancerv1-eth-usdc.json +114 -0
  310. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-balancerv1-usdc-eth.json +114 -0
  311. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-univ3-eth-sushi.json +55 -0
  312. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-univ3-sushi-eth.json +73 -0
  313. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-univ3-curvev1-usdt-dai.json +82 -0
  314. package/package.json +2 -2
  315. package/src/dex/balancer-v3/balancer-api.test.ts +122 -0
  316. package/src/dex/balancer-v3/balancer-buffer.test.ts +75 -0
  317. package/src/dex/balancer-v3/balancer-gyroECLP.test.ts +76 -0
  318. package/src/dex/balancer-v3/balancer-stableSurge.test.ts +54 -52
  319. package/src/dex/balancer-v3/balancer-test-helpers.ts +52 -0
  320. package/src/dex/balancer-v3/balancer-test-weighted.test.ts +96 -0
  321. package/src/dex/balancer-v3/balancer-v3-e2e.test.ts +49 -2
  322. package/src/dex/balancer-v3/balancer-v3-events.test.ts +162 -1
  323. package/src/dex/balancer-v3/balancer-v3-pool.ts +50 -15
  324. package/src/dex/balancer-v3/balancer-v3.ts +14 -4
  325. package/src/dex/balancer-v3/config.ts +7 -0
  326. package/src/dex/balancer-v3/getGasCost.ts +3 -0
  327. package/src/dex/balancer-v3/getOnChainState.ts +101 -12
  328. package/src/dex/balancer-v3/getPoolsApi.ts +55 -12
  329. package/src/dex/balancer-v3/getTopPoolsApi.ts +29 -11
  330. package/src/dex/balancer-v3/gyroECLPPool.ts +17 -0
  331. package/src/dex/balancer-v3/hooks/directionalFeeHook.ts +2 -0
  332. package/src/dex/balancer-v3/hooks/stableSurgeHook.ts +2 -0
  333. package/src/dex/balancer-v3/types.ts +6 -2
  334. package/src/dex/balancer-v3/utils.ts +11 -0
  335. package/tests/constants-e2e.ts +9 -0
  336. package/tests/token-storage-slots.json +40 -0
  337. package/.idea/codeStyles/Project.xml +0 -59
  338. package/.idea/codeStyles/codeStyleConfig.xml +0 -5
  339. package/.idea/inspectionProfiles/Project_Default.xml +0 -6
  340. package/.idea/modules.xml +0 -8
  341. package/.idea/paraswap-dex-lib.iml +0 -12
  342. package/.idea/prettier.xml +0 -7
  343. package/.idea/vcs.xml +0 -6
  344. package/build/dex/uniswap-v3/uniswap-v3-new.d.ts +0 -94
  345. package/build/dex/uniswap-v3/uniswap-v3-new.js +0 -923
  346. package/build/dex/uniswap-v3/uniswap-v3-new.js.map +0 -1
  347. package/scripts/get-uniswap-v3-dexes.ts +0 -64
@@ -0,0 +1,278 @@
1
+ [
2
+ {
3
+ "inputs": [],
4
+ "name": "BytesLibSliceOutOfBounds",
5
+ "type": "error"
6
+ },
7
+ {
8
+ "inputs": [],
9
+ "name": "BytesLibSliceOverflow",
10
+ "type": "error"
11
+ },
12
+ {
13
+ "inputs": [],
14
+ "name": "BytesLibToAddressOutOfBounds",
15
+ "type": "error"
16
+ },
17
+ {
18
+ "inputs": [],
19
+ "name": "BytesLibToBoolOutOfBounds",
20
+ "type": "error"
21
+ },
22
+ {
23
+ "inputs": [],
24
+ "name": "MathOverflowedMulDiv",
25
+ "type": "error"
26
+ },
27
+ {
28
+ "inputs": [],
29
+ "name": "QuoterInvalidAddLiquidity",
30
+ "type": "error"
31
+ },
32
+ {
33
+ "inputs": [],
34
+ "name": "QuoterInvalidSwap",
35
+ "type": "error"
36
+ },
37
+ {
38
+ "inputs": [
39
+ {
40
+ "internalType": "uint8",
41
+ "name": "bits",
42
+ "type": "uint8"
43
+ },
44
+ {
45
+ "internalType": "uint256",
46
+ "name": "value",
47
+ "type": "uint256"
48
+ }
49
+ ],
50
+ "name": "SafeCastOverflowedUintDowncast",
51
+ "type": "error"
52
+ },
53
+ {
54
+ "inputs": [
55
+ {
56
+ "internalType": "int256",
57
+ "name": "tick",
58
+ "type": "int256"
59
+ }
60
+ ],
61
+ "name": "TickMaxExceeded",
62
+ "type": "error"
63
+ },
64
+ {
65
+ "inputs": [
66
+ {
67
+ "internalType": "contract IMaverickV2Pool",
68
+ "name": "pool",
69
+ "type": "address"
70
+ },
71
+ {
72
+ "components": [
73
+ {
74
+ "internalType": "uint8",
75
+ "name": "kind",
76
+ "type": "uint8"
77
+ },
78
+ {
79
+ "internalType": "int32[]",
80
+ "name": "ticks",
81
+ "type": "int32[]"
82
+ },
83
+ {
84
+ "internalType": "uint128[]",
85
+ "name": "amounts",
86
+ "type": "uint128[]"
87
+ }
88
+ ],
89
+ "internalType": "struct IMaverickV2Pool.AddLiquidityParams",
90
+ "name": "params",
91
+ "type": "tuple"
92
+ }
93
+ ],
94
+ "name": "calculateAddLiquidity",
95
+ "outputs": [
96
+ {
97
+ "internalType": "uint256",
98
+ "name": "amountA",
99
+ "type": "uint256"
100
+ },
101
+ {
102
+ "internalType": "uint256",
103
+ "name": "amountB",
104
+ "type": "uint256"
105
+ },
106
+ {
107
+ "internalType": "uint256",
108
+ "name": "gasEstimate",
109
+ "type": "uint256"
110
+ }
111
+ ],
112
+ "stateMutability": "nonpayable",
113
+ "type": "function"
114
+ },
115
+ {
116
+ "inputs": [
117
+ {
118
+ "internalType": "bytes",
119
+ "name": "path",
120
+ "type": "bytes"
121
+ },
122
+ {
123
+ "internalType": "uint256",
124
+ "name": "amount",
125
+ "type": "uint256"
126
+ },
127
+ {
128
+ "internalType": "bool",
129
+ "name": "exactOutput",
130
+ "type": "bool"
131
+ }
132
+ ],
133
+ "name": "calculateMultiHopSwap",
134
+ "outputs": [
135
+ {
136
+ "internalType": "uint256",
137
+ "name": "returnAmount",
138
+ "type": "uint256"
139
+ },
140
+ {
141
+ "internalType": "uint256",
142
+ "name": "gasEstimate",
143
+ "type": "uint256"
144
+ }
145
+ ],
146
+ "stateMutability": "nonpayable",
147
+ "type": "function"
148
+ },
149
+ {
150
+ "inputs": [
151
+ {
152
+ "internalType": "contract IMaverickV2Pool",
153
+ "name": "pool",
154
+ "type": "address"
155
+ },
156
+ {
157
+ "internalType": "uint128",
158
+ "name": "amount",
159
+ "type": "uint128"
160
+ },
161
+ {
162
+ "internalType": "bool",
163
+ "name": "tokenAIn",
164
+ "type": "bool"
165
+ },
166
+ {
167
+ "internalType": "bool",
168
+ "name": "exactOutput",
169
+ "type": "bool"
170
+ },
171
+ {
172
+ "internalType": "int32",
173
+ "name": "tickLimit",
174
+ "type": "int32"
175
+ }
176
+ ],
177
+ "name": "calculateSwap",
178
+ "outputs": [
179
+ {
180
+ "internalType": "uint256",
181
+ "name": "amountIn",
182
+ "type": "uint256"
183
+ },
184
+ {
185
+ "internalType": "uint256",
186
+ "name": "amountOut",
187
+ "type": "uint256"
188
+ },
189
+ {
190
+ "internalType": "uint256",
191
+ "name": "gasEstimate",
192
+ "type": "uint256"
193
+ }
194
+ ],
195
+ "stateMutability": "nonpayable",
196
+ "type": "function"
197
+ },
198
+ {
199
+ "inputs": [
200
+ {
201
+ "internalType": "contract IERC20",
202
+ "name": "",
203
+ "type": "address"
204
+ },
205
+ {
206
+ "internalType": "contract IERC20",
207
+ "name": "",
208
+ "type": "address"
209
+ },
210
+ {
211
+ "internalType": "uint256",
212
+ "name": "amountA",
213
+ "type": "uint256"
214
+ },
215
+ {
216
+ "internalType": "uint256",
217
+ "name": "amountB",
218
+ "type": "uint256"
219
+ },
220
+ {
221
+ "internalType": "bytes",
222
+ "name": "",
223
+ "type": "bytes"
224
+ }
225
+ ],
226
+ "name": "maverickV2AddLiquidityCallback",
227
+ "outputs": [],
228
+ "stateMutability": "pure",
229
+ "type": "function"
230
+ },
231
+ {
232
+ "inputs": [
233
+ {
234
+ "internalType": "contract IERC20",
235
+ "name": "",
236
+ "type": "address"
237
+ },
238
+ {
239
+ "internalType": "uint256",
240
+ "name": "amountIn",
241
+ "type": "uint256"
242
+ },
243
+ {
244
+ "internalType": "uint256",
245
+ "name": "amountOut",
246
+ "type": "uint256"
247
+ },
248
+ {
249
+ "internalType": "bytes",
250
+ "name": "",
251
+ "type": "bytes"
252
+ }
253
+ ],
254
+ "name": "maverickV2SwapCallback",
255
+ "outputs": [],
256
+ "stateMutability": "pure",
257
+ "type": "function"
258
+ },
259
+ {
260
+ "inputs": [
261
+ {
262
+ "internalType": "contract IMaverickV2Pool",
263
+ "name": "pool",
264
+ "type": "address"
265
+ }
266
+ ],
267
+ "name": "poolSqrtPrice",
268
+ "outputs": [
269
+ {
270
+ "internalType": "uint256",
271
+ "name": "sqrtPrice",
272
+ "type": "uint256"
273
+ }
274
+ ],
275
+ "stateMutability": "view",
276
+ "type": "function"
277
+ }
278
+ ]