@paraswap/dex-lib 4.1.18 → 4.1.19-pools.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 (264) hide show
  1. package/.vscode/launch.json +53 -0
  2. package/.vscode/settings.json +2 -0
  3. package/.vscode/tasks.json +15 -0
  4. package/build/abi/uniswap-v3/AlienBaseV3Router.abi.json +52 -0
  5. package/build/abi/uniswap-v4/quoter.abi.json +461 -0
  6. package/build/abi/uniswap-v4/router.abi.json +230 -0
  7. package/build/abi/usual-m-smart-m/usualM.abi.json +483 -0
  8. package/build/abi/{angle-transmuter/ChainlinkAccessControlledOffchainAggregator.json → wombat/pool.json} +637 -594
  9. package/build/dex/aave-v1/aave-v1.js +1 -0
  10. package/build/dex/aave-v1/aave-v1.js.map +1 -1
  11. package/build/dex/aave-v2/tokens-avalanche.json +44 -0
  12. package/build/dex/aave-v2/tokens-mainnet.json +188 -0
  13. package/build/dex/aave-v2/tokens-polygon.json +44 -0
  14. package/build/dex/bProtocol.d.ts +18 -0
  15. package/build/dex/bProtocol.js +39 -0
  16. package/build/dex/bProtocol.js.map +1 -0
  17. package/build/dex/balancer-v3/abi/balancerBatchRouter.d.ts +729 -0
  18. package/build/dex/balancer-v3/abi/balancerBatchRouter.js +732 -0
  19. package/build/dex/balancer-v3/abi/balancerBatchRouter.js.map +1 -0
  20. package/build/dex/balancer-v3/abi/balancerRouter.d.ts +1406 -0
  21. package/build/dex/balancer-v3/abi/balancerRouter.js +1175 -0
  22. package/build/dex/balancer-v3/abi/balancerRouter.js.map +1 -0
  23. package/build/dex/balancer-v3/abi/vaultExtension.V3.d.ts +2081 -0
  24. package/build/dex/balancer-v3/abi/vaultExtension.V3.js +1851 -0
  25. package/build/dex/balancer-v3/abi/vaultExtension.V3.js.map +1 -0
  26. package/build/dex/balancer-v3/balancer-v3-sepolia-pools.d.ts +34 -0
  27. package/build/dex/balancer-v3/balancer-v3-sepolia-pools.js +406 -0
  28. package/build/dex/balancer-v3/balancer-v3-sepolia-pools.js.map +1 -0
  29. package/build/dex/bancor.d.ts +26 -0
  30. package/build/dex/bancor.js +58 -0
  31. package/build/dex/bancor.js.map +1 -0
  32. package/build/dex/compound.d.ts +18 -0
  33. package/build/dex/compound.js +46 -0
  34. package/build/dex/compound.js.map +1 -0
  35. package/build/dex/curve-v2.d.ts +58 -0
  36. package/build/dex/curve-v2.js +180 -0
  37. package/build/dex/curve-v2.js.map +1 -0
  38. package/build/dex/dodo-v1.d.ts +33 -0
  39. package/build/dex/dodo-v1.js +63 -0
  40. package/build/dex/dodo-v1.js.map +1 -0
  41. package/build/dex/erc4626/scripts/validate-state.d.ts +0 -0
  42. package/build/dex/erc4626/scripts/validate-state.js +146 -0
  43. package/build/dex/erc4626/scripts/validate-state.js.map +1 -0
  44. package/build/dex/inception/inception-event-pool.d.ts +4 -4
  45. package/build/dex/inception/inception-event-pool.js +7 -9
  46. package/build/dex/inception/inception-event-pool.js.map +1 -1
  47. package/build/dex/inception/inception.d.ts +6 -6
  48. package/build/dex/inception/inception.js +16 -40
  49. package/build/dex/inception/inception.js.map +1 -1
  50. package/build/dex/inception/utils.d.ts +1 -0
  51. package/build/dex/inception/utils.js +22 -1
  52. package/build/dex/inception/utils.js.map +1 -1
  53. package/build/dex/lido.d.ts +19 -0
  54. package/build/dex/lido.js +42 -0
  55. package/build/dex/lido.js.map +1 -0
  56. package/build/dex/maker-psm/scripts/gem.abi.json +136 -0
  57. package/build/dex/maker-psm/scripts/validate-state.d.ts +0 -0
  58. package/build/dex/maker-psm/scripts/validate-state.js +185 -0
  59. package/build/dex/maker-psm/scripts/validate-state.js.map +1 -0
  60. package/build/dex/maker-psm/scripts/vat.abi.json +243 -0
  61. package/build/dex/onebit.d.ts +25 -0
  62. package/build/dex/onebit.js +42 -0
  63. package/build/dex/onebit.js.map +1 -0
  64. package/build/dex/platypus/platypus.js +17 -3
  65. package/build/dex/platypus/platypus.js.map +1 -1
  66. package/build/dex/smoothy.d.ts +26 -0
  67. package/build/dex/smoothy.js +48 -0
  68. package/build/dex/smoothy.js.map +1 -0
  69. package/build/dex/solidly-v3/scripts/check-event-pool-event.d.ts +1 -0
  70. package/build/dex/solidly-v3/scripts/check-event-pool-event.js +53 -0
  71. package/build/dex/solidly-v3/scripts/check-event-pool-event.js.map +1 -0
  72. package/build/dex/stable-pool.d.ts +28 -0
  73. package/build/dex/stable-pool.js +55 -0
  74. package/build/dex/stable-pool.js.map +1 -0
  75. package/build/dex/swaap-v1/swaap-v1.js +4 -0
  76. package/build/dex/swaap-v1/swaap-v1.js.map +1 -1
  77. package/build/dex/trader-joe-v2.1/trader-joe-v2.1-new.d.ts +7 -0
  78. package/build/dex/trader-joe-v2.1/trader-joe-v2.1-new.js +20 -0
  79. package/build/dex/trader-joe-v2.1/trader-joe-v2.1-new.js.map +1 -0
  80. package/build/dex/trader-joe-v2.1.d.ts +43 -0
  81. package/build/dex/trader-joe-v2.1.js +79 -0
  82. package/build/dex/trader-joe-v2.1.js.map +1 -0
  83. package/build/dex/uniswap-v2/uniswap-v2.d.ts +1 -0
  84. package/build/dex/uniswap-v2/uniswap-v2.js +8 -10
  85. package/build/dex/uniswap-v2/uniswap-v2.js.map +1 -1
  86. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.d.ts +17 -0
  87. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.js +64 -0
  88. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.js.map +1 -0
  89. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.d.ts +17 -0
  90. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.js +79 -0
  91. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.js.map +1 -0
  92. package/build/dex/uniswap-v3/uniswap-v3-pricing.d.ts +4 -0
  93. package/build/dex/uniswap-v3/uniswap-v3-pricing.js +43 -0
  94. package/build/dex/uniswap-v3/uniswap-v3-pricing.js.map +1 -0
  95. package/build/dex/uniswap-v3/uniswap-v3-worker.d.ts +1 -0
  96. package/build/dex/uniswap-v3/uniswap-v3-worker.js +10 -0
  97. package/build/dex/uniswap-v3/uniswap-v3-worker.js.map +1 -0
  98. package/build/dex/uniswap-v3/uniswap-v3.js +4 -0
  99. package/build/dex/uniswap-v3/uniswap-v3.js.map +1 -1
  100. package/build/dex/uniswap-v4/config.d.ts +3 -0
  101. package/build/dex/uniswap-v4/config.js +15 -0
  102. package/build/dex/uniswap-v4/config.js.map +1 -0
  103. package/build/dex/uniswap-v4/encoder.d.ts +16 -0
  104. package/build/dex/uniswap-v4/encoder.js +94 -0
  105. package/build/dex/uniswap-v4/encoder.js.map +1 -0
  106. package/build/dex/uniswap-v4/types.d.ts +30 -0
  107. package/build/dex/uniswap-v4/types.js +3 -0
  108. package/build/dex/uniswap-v4/types.js.map +1 -0
  109. package/build/dex/uniswap-v4/uniswap-v4.d.ts +38 -0
  110. package/build/dex/uniswap-v4/uniswap-v4.js +187 -0
  111. package/build/dex/uniswap-v4/uniswap-v4.js.map +1 -0
  112. package/build/dex/usual/usual-m-smart-m.d.ts +17 -0
  113. package/build/dex/usual/usual-m-smart-m.js +50 -0
  114. package/build/dex/usual/usual-m-smart-m.js.map +1 -0
  115. package/build/dex/usual-m-smart-m/config.d.ts +3 -0
  116. package/build/dex/usual-m-smart-m/config.js +13 -0
  117. package/build/dex/usual-m-smart-m/config.js.map +1 -0
  118. package/build/dex/usual-m-smart-m/types.d.ts +7 -0
  119. package/build/dex/usual-m-smart-m/types.js +3 -0
  120. package/build/dex/usual-m-smart-m/types.js.map +1 -0
  121. package/build/dex/usual-m-smart-m/usual-m-smart-m.d.ts +35 -0
  122. package/build/dex/usual-m-smart-m/usual-m-smart-m.js +161 -0
  123. package/build/dex/usual-m-smart-m/usual-m-smart-m.js.map +1 -0
  124. package/build/dex/usual-m-usd0/config.d.ts +3 -0
  125. package/build/dex/usual-m-usd0/config.js +14 -0
  126. package/build/dex/usual-m-usd0/config.js.map +1 -0
  127. package/build/dex/usual-m-usd0/types.d.ts +8 -0
  128. package/build/dex/usual-m-usd0/types.js +3 -0
  129. package/build/dex/usual-m-usd0/types.js.map +1 -0
  130. package/build/dex/usual-m-usd0/usual-m-usd0.d.ts +35 -0
  131. package/build/dex/usual-m-usd0/usual-m-usd0.js +159 -0
  132. package/build/dex/usual-m-usd0/usual-m-usd0.js.map +1 -0
  133. package/build/types.d.ts +1 -0
  134. package/package.json +1 -1
  135. package/src/dex/uniswap-v2/uniswap-v2.ts +9 -11
  136. package/src/dex/uniswap-v3/uniswap-v3.ts +14 -0
  137. package/src/types.ts +1 -0
  138. package/build/abi/Aave_GSM.json +0 -751
  139. package/build/abi/Balancer.json +0 -257
  140. package/build/abi/BalancerV2.json +0 -1179
  141. package/build/abi/RamsesV2Pool.abi.json +0 -1554
  142. package/build/abi/RamsesV2Quoter.abi.json +0 -274
  143. package/build/abi/USDM.json +0 -807
  144. package/build/abi/UniswapV2Router.json +0 -397
  145. package/build/abi/angle-transmuter/ChainlinkEACAggregatorProxy.json +0 -509
  146. package/build/abi/curve-v1/CurveBUSDv2.abi.json +0 -1356
  147. package/build/abi/curve-v1/CurveTokenV1.json +0 -305
  148. package/build/abi/curve-v1/CurveTokenV2.json +0 -318
  149. package/build/abi/curve-v1/CurveV1StableNg.json +0 -1452
  150. package/build/abi/curve-v1/CurveV2Swap.json +0 -700
  151. package/build/abi/curve-v1/FactoryCryptoRegistry.json +0 -316
  152. package/build/abi/curve-v1/FactoryRegistry.json +0 -508
  153. package/build/abi/curve-v1/StableSwapAave.json +0 -1152
  154. package/build/abi/curve-v1/StableSwapBUSD.json +0 -814
  155. package/build/abi/curve-v1/StableSwapCompound.json +0 -814
  156. package/build/abi/curve-v1/StableSwapIDLE.json +0 -1253
  157. package/build/abi/curve-v1/StableSwapPax.json +0 -865
  158. package/build/abi/curve-v1/StableSwapSnow.json +0 -900
  159. package/build/abi/curve-v1/StableSwapUSDN.json +0 -1004
  160. package/build/abi/curve-v1/StableSwapUSDT.json +0 -814
  161. package/build/abi/curve-v1/StableSwapY.json +0 -814
  162. package/build/abi/inception/inception-ineth.json +0 -609
  163. package/build/abi/kyberdmm/kyber-storage.abi.json +0 -824
  164. package/build/abi/kyberdmm.abi.json +0 -1148
  165. package/build/abi/maverick-v2/MaverickV2Quoter.json +0 -278
  166. package/build/abi/nerve/nerve-metapool.json +0 -790
  167. package/build/abi/uniswap-v3/UniswapV3Quoter.abi.json +0 -193
  168. package/build/abi/velodrome-slipstream/VelodromeSlipstreamQuoterV2.abi.json +0 -267
  169. package/build/dex/balancer-v1/balancer-pools.json +0 -33333
  170. package/build/dex/bebop/websocket-fetcher.d.ts +0 -35
  171. package/build/dex/bebop/websocket-fetcher.js +0 -87
  172. package/build/dex/bebop/websocket-fetcher.js.map +0 -1
  173. package/build/dex/idle-dao/idle-dao-pool.d.ts +0 -56
  174. package/build/dex/idle-dao/idle-dao-pool.js +0 -176
  175. package/build/dex/idle-dao/idle-dao-pool.js.map +0 -1
  176. package/build/dex/idle-dao/idle-dao-pooling-pool.d.ts +0 -16
  177. package/build/dex/idle-dao/idle-dao-pooling-pool.js +0 -57
  178. package/build/dex/idle-dao/idle-dao-pooling-pool.js.map +0 -1
  179. package/build/dex/idle-dao/scripts.d.ts +0 -9
  180. package/build/dex/idle-dao/scripts.js +0 -552
  181. package/build/dex/idle-dao/scripts.js.map +0 -1
  182. package/build/dex/inception/inception-native.d.ts +0 -43
  183. package/build/dex/inception/inception-native.js +0 -131
  184. package/build/dex/inception/inception-native.js.map +0 -1
  185. package/build/dex/inception/inception-pool.d.ts +0 -18
  186. package/build/dex/inception/inception-pool.js +0 -32
  187. package/build/dex/inception/inception-pool.js.map +0 -1
  188. package/build/dex/inception/inception-price-feed.d.ts +0 -19
  189. package/build/dex/inception/inception-price-feed.js +0 -51
  190. package/build/dex/inception/inception-price-feed.js.map +0 -1
  191. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-balancerv1-curvev1-eth-usdc-gusd.json +0 -16
  192. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-balancerv1-sushiv3-wbtc-eth-sushi.json +0 -16
  193. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-curvev1-eth-usdc-gusd.json +0 -16
  194. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-curvev1-gusd-usdc-eth.json +0 -16
  195. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-dai-usdc-eth.json +0 -16
  196. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-eth-usdc-dai.json +0 -16
  197. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-usdc-eth-wbtc.json +0 -16
  198. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-usdt-usdc-dai.json +0 -16
  199. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-balancerv1-eth-usdc.json +0 -9
  200. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-balancerv1-usdc-eth.json +0 -9
  201. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-balancerv1-usdc-wbtc.json +0 -9
  202. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-curvev1-eth-steth.json +0 -9
  203. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-curvev1-steth-eth.json +0 -9
  204. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-curvev1-usdc-usdt.json +0 -9
  205. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-univ3-eth-usdc.json +0 -9
  206. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-univ3-usdc-eth.json +0 -9
  207. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-univ3-usdc-usdt.json +0 -9
  208. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-balancerv1-sushiv3-wbtc-eth-sushi.json +0 -12
  209. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-curvev1-eth-usdc-gusd.json +0 -7
  210. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-curvev1-gusd-usdc-eth.json +0 -7
  211. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-dai-usdc-eth.json +0 -7
  212. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-eth-usdc-dai.json +0 -7
  213. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-usdc-eth-wbtc.json +0 -12
  214. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-simpleSwap-univ3-eth-usdc.json +0 -7
  215. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-simpleSwap-univ3-usdc-eth.json +0 -7
  216. package/build/executor/fixtures/executor01/routes/price-route-multiswap-balancerv1-curvev1-eth-usdc-gusd.json +0 -78
  217. package/build/executor/fixtures/executor01/routes/price-route-multiswap-balancerv1-sushiv3-wbtc-eth-sushi.json +0 -81
  218. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-curvev1-eth-usdc-gusd.json +0 -78
  219. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-curvev1-gusd-usdc-eth.json +0 -78
  220. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-dai-usdc-eth.json +0 -81
  221. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-eth-usdc-dai.json +0 -81
  222. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-usdc-eth-wbtc.json +0 -81
  223. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-usdt-usdc-dai.json +0 -81
  224. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-balancerv1-eth-usdc.json +0 -64
  225. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-balancerv1-usdc-eth.json +0 -85
  226. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-balancerv1-usdc-wbtc.json +0 -64
  227. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-curvev1-eth-steth.json +0 -52
  228. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-curvev1-steth-eth.json +0 -52
  229. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-curvev1-usdc-usdt.json +0 -52
  230. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-univ3-eth-usdc.json +0 -55
  231. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-univ3-usdc-eth.json +0 -55
  232. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-univ3-usdc-usdt.json +0 -55
  233. package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-balancerv1-sushiv3-univ3-bal-eth-sushi.json +0 -23
  234. package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-maverickv1-sushiv3-univ3-eth-usdc-mav.json +0 -37
  235. package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-univ3-sushiv3-sushi-eth-wbtc.json +0 -23
  236. package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-univ3-sushiv3-wbtc-eth-sushi.json +0 -23
  237. package/build/executor/fixtures/executor02/exchange-params/price-route-multiswap-curvev1-univ3-dai-usdc-eth.json +0 -51
  238. package/build/executor/fixtures/executor02/exchange-params/price-route-multiswap-univ3-usdt-dai-eth.json +0 -58
  239. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-balancerv1-eth-usdc.json +0 -23
  240. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-balancerv1-usdc-eth.json +0 -23
  241. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-univ3-eth-sushi.json +0 -9
  242. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-univ3-sushi-eth.json +0 -16
  243. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-univ3-curvev1-usdt-dai.json +0 -23
  244. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-balancerv1-sushiv3-univ3-bal-eth-sushi.json +0 -12
  245. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-maverickv1-sushiv3-univ3-eth-usdc-mav.json +0 -7
  246. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-univ3-sushiv3-sushi-eth-wbtc.json +0 -12
  247. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-univ3-sushiv3-wbtc-eth-sushi.json +0 -12
  248. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiswap-curvev1-univ3-dai-usdc-eth.json +0 -7
  249. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiswap-univ3-usdt-dai-eth.json +0 -7
  250. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-balancerv1-eth-usdc.json +0 -7
  251. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-balancerv1-usdc-eth.json +0 -7
  252. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-univ3-eth-sushi.json +0 -7
  253. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-univ3-sushi-eth.json +0 -7
  254. package/build/executor/fixtures/executor02/routes/price-route-multiSwap-balancerv1-sushiv3-univ3-bal-eth-sushi.json +0 -130
  255. package/build/executor/fixtures/executor02/routes/price-route-multiSwap-maverickv1-sushiv3-univ3-eth-usdc-mav.json +0 -136
  256. package/build/executor/fixtures/executor02/routes/price-route-multiSwap-univ3-sushiv3-sushi-eth-wbtc.json +0 -100
  257. package/build/executor/fixtures/executor02/routes/price-route-multiSwap-univ3-sushiv3-wbtc-eth-sushi.json +0 -100
  258. package/build/executor/fixtures/executor02/routes/price-route-multiswap-curvev1-univ3-dai-usdc-eth.json +0 -166
  259. package/build/executor/fixtures/executor02/routes/price-route-multiswap-univ3-usdt-dai-eth.json +0 -190
  260. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-balancerv1-eth-usdc.json +0 -114
  261. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-balancerv1-usdc-eth.json +0 -114
  262. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-univ3-eth-sushi.json +0 -55
  263. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-univ3-sushi-eth.json +0 -73
  264. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-univ3-curvev1-usdt-dai.json +0 -82
@@ -0,0 +1,53 @@
1
+ {
2
+ "version": "0.2.0",
3
+ "configurations": [
4
+ {
5
+ "type": "node",
6
+ "request": "launch",
7
+ "name": "Current",
8
+ "program": "${file}",
9
+ "preLaunchTask": "npm: build",
10
+ "sourceMaps": true,
11
+ "smartStep": true,
12
+ "internalConsoleOptions": "openOnSessionStart",
13
+ "outFiles": ["${workspaceFolder}/build/**/*.js"]
14
+ },
15
+ {
16
+ "type": "node",
17
+ "request": "launch",
18
+ "name": "Debug dex integration",
19
+ "program": "${workspaceFolder}/node_modules/ts-node/dist/bin.js",
20
+ "args": [
21
+ "--project",
22
+ "tsconfig.json",
23
+ "${workspaceFolder}/src/dex/wusdm/scripts/validate-state.ts",
24
+ // "${workspaceFolder}/src/dex/camelot/camelot-pool-discovery.test.ts",
25
+ // "${workspaceFolder}/src/dex/solidly-v3/scripts/check-event-pool-event.ts",
26
+ // "${workspaceFolder}/scripts/dex-integration.ts",
27
+ "test",
28
+ "wombat"
29
+ ],
30
+ "console": "integratedTerminal",
31
+ "internalConsoleOptions": "neverOpen",
32
+ "runtimeArgs": ["--nolazy"],
33
+ "sourceMaps": true,
34
+ "smartStep": true,
35
+ "skipFiles": ["<node_internals>/**"],
36
+ "cwd": "${workspaceFolder}"
37
+ },
38
+ {
39
+ "type": "node",
40
+ "name": "Jest file",
41
+ "request": "launch",
42
+ "program": "${workspaceFolder}/node_modules/jest/bin/jest.js",
43
+ // "program": "${workspaceFolder}/src/dex/camelot/scripts/validate-state.ts",
44
+ // "args": ["src/dex/balancer-v1/balancer-v1-e2e.test.ts"],
45
+ // "args": ["${relativeFile}"],
46
+ "args": ["${file}"],
47
+ "cwd": "${workspaceRoot}",
48
+ "console": "integratedTerminal",
49
+ "internalConsoleOptions": "neverOpen",
50
+ "sourceMaps": true
51
+ }
52
+ ]
53
+ }
@@ -0,0 +1,2 @@
1
+ {
2
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "version": "2.0.0",
3
+ "tasks": [
4
+ {
5
+ "label": "tsc: build - tsconfig.json",
6
+ "type": "typescript",
7
+ "tsconfig": "tsconfig.json",
8
+ "problemMatcher": ["$tsc"],
9
+ "group": {
10
+ "kind": "build",
11
+ "isDefault": true
12
+ }
13
+ }
14
+ ]
15
+ }
@@ -0,0 +1,52 @@
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
+ ]
@@ -0,0 +1,461 @@
1
+ [
2
+ {
3
+ "inputs": [
4
+ {
5
+ "internalType": "contract IPoolManager",
6
+ "name": "_poolManager",
7
+ "type": "address"
8
+ }
9
+ ],
10
+ "stateMutability": "nonpayable",
11
+ "type": "constructor"
12
+ },
13
+ {
14
+ "inputs": [
15
+ { "internalType": "PoolId", "name": "poolId", "type": "bytes32" }
16
+ ],
17
+ "name": "NotEnoughLiquidity",
18
+ "type": "error"
19
+ },
20
+ { "inputs": [], "name": "NotPoolManager", "type": "error" },
21
+ { "inputs": [], "name": "NotSelf", "type": "error" },
22
+ {
23
+ "inputs": [
24
+ { "internalType": "uint256", "name": "amount", "type": "uint256" }
25
+ ],
26
+ "name": "QuoteSwap",
27
+ "type": "error"
28
+ },
29
+ { "inputs": [], "name": "UnexpectedCallSuccess", "type": "error" },
30
+ {
31
+ "inputs": [
32
+ { "internalType": "bytes", "name": "revertData", "type": "bytes" }
33
+ ],
34
+ "name": "UnexpectedRevertBytes",
35
+ "type": "error"
36
+ },
37
+ {
38
+ "inputs": [
39
+ {
40
+ "components": [
41
+ {
42
+ "internalType": "Currency",
43
+ "name": "exactCurrency",
44
+ "type": "address"
45
+ },
46
+ {
47
+ "components": [
48
+ {
49
+ "internalType": "Currency",
50
+ "name": "intermediateCurrency",
51
+ "type": "address"
52
+ },
53
+ { "internalType": "uint24", "name": "fee", "type": "uint24" },
54
+ {
55
+ "internalType": "int24",
56
+ "name": "tickSpacing",
57
+ "type": "int24"
58
+ },
59
+ {
60
+ "internalType": "contract IHooks",
61
+ "name": "hooks",
62
+ "type": "address"
63
+ },
64
+ { "internalType": "bytes", "name": "hookData", "type": "bytes" }
65
+ ],
66
+ "internalType": "struct PathKey[]",
67
+ "name": "path",
68
+ "type": "tuple[]"
69
+ },
70
+ {
71
+ "internalType": "uint128",
72
+ "name": "exactAmount",
73
+ "type": "uint128"
74
+ }
75
+ ],
76
+ "internalType": "struct IV4Quoter.QuoteExactParams",
77
+ "name": "params",
78
+ "type": "tuple"
79
+ }
80
+ ],
81
+ "name": "_quoteExactInput",
82
+ "outputs": [{ "internalType": "bytes", "name": "", "type": "bytes" }],
83
+ "stateMutability": "nonpayable",
84
+ "type": "function"
85
+ },
86
+ {
87
+ "inputs": [
88
+ {
89
+ "components": [
90
+ {
91
+ "components": [
92
+ {
93
+ "internalType": "Currency",
94
+ "name": "currency0",
95
+ "type": "address"
96
+ },
97
+ {
98
+ "internalType": "Currency",
99
+ "name": "currency1",
100
+ "type": "address"
101
+ },
102
+ { "internalType": "uint24", "name": "fee", "type": "uint24" },
103
+ {
104
+ "internalType": "int24",
105
+ "name": "tickSpacing",
106
+ "type": "int24"
107
+ },
108
+ {
109
+ "internalType": "contract IHooks",
110
+ "name": "hooks",
111
+ "type": "address"
112
+ }
113
+ ],
114
+ "internalType": "struct PoolKey",
115
+ "name": "poolKey",
116
+ "type": "tuple"
117
+ },
118
+ { "internalType": "bool", "name": "zeroForOne", "type": "bool" },
119
+ {
120
+ "internalType": "uint128",
121
+ "name": "exactAmount",
122
+ "type": "uint128"
123
+ },
124
+ { "internalType": "bytes", "name": "hookData", "type": "bytes" }
125
+ ],
126
+ "internalType": "struct IV4Quoter.QuoteExactSingleParams",
127
+ "name": "params",
128
+ "type": "tuple"
129
+ }
130
+ ],
131
+ "name": "_quoteExactInputSingle",
132
+ "outputs": [{ "internalType": "bytes", "name": "", "type": "bytes" }],
133
+ "stateMutability": "nonpayable",
134
+ "type": "function"
135
+ },
136
+ {
137
+ "inputs": [
138
+ {
139
+ "components": [
140
+ {
141
+ "internalType": "Currency",
142
+ "name": "exactCurrency",
143
+ "type": "address"
144
+ },
145
+ {
146
+ "components": [
147
+ {
148
+ "internalType": "Currency",
149
+ "name": "intermediateCurrency",
150
+ "type": "address"
151
+ },
152
+ { "internalType": "uint24", "name": "fee", "type": "uint24" },
153
+ {
154
+ "internalType": "int24",
155
+ "name": "tickSpacing",
156
+ "type": "int24"
157
+ },
158
+ {
159
+ "internalType": "contract IHooks",
160
+ "name": "hooks",
161
+ "type": "address"
162
+ },
163
+ { "internalType": "bytes", "name": "hookData", "type": "bytes" }
164
+ ],
165
+ "internalType": "struct PathKey[]",
166
+ "name": "path",
167
+ "type": "tuple[]"
168
+ },
169
+ {
170
+ "internalType": "uint128",
171
+ "name": "exactAmount",
172
+ "type": "uint128"
173
+ }
174
+ ],
175
+ "internalType": "struct IV4Quoter.QuoteExactParams",
176
+ "name": "params",
177
+ "type": "tuple"
178
+ }
179
+ ],
180
+ "name": "_quoteExactOutput",
181
+ "outputs": [{ "internalType": "bytes", "name": "", "type": "bytes" }],
182
+ "stateMutability": "nonpayable",
183
+ "type": "function"
184
+ },
185
+ {
186
+ "inputs": [
187
+ {
188
+ "components": [
189
+ {
190
+ "components": [
191
+ {
192
+ "internalType": "Currency",
193
+ "name": "currency0",
194
+ "type": "address"
195
+ },
196
+ {
197
+ "internalType": "Currency",
198
+ "name": "currency1",
199
+ "type": "address"
200
+ },
201
+ { "internalType": "uint24", "name": "fee", "type": "uint24" },
202
+ {
203
+ "internalType": "int24",
204
+ "name": "tickSpacing",
205
+ "type": "int24"
206
+ },
207
+ {
208
+ "internalType": "contract IHooks",
209
+ "name": "hooks",
210
+ "type": "address"
211
+ }
212
+ ],
213
+ "internalType": "struct PoolKey",
214
+ "name": "poolKey",
215
+ "type": "tuple"
216
+ },
217
+ { "internalType": "bool", "name": "zeroForOne", "type": "bool" },
218
+ {
219
+ "internalType": "uint128",
220
+ "name": "exactAmount",
221
+ "type": "uint128"
222
+ },
223
+ { "internalType": "bytes", "name": "hookData", "type": "bytes" }
224
+ ],
225
+ "internalType": "struct IV4Quoter.QuoteExactSingleParams",
226
+ "name": "params",
227
+ "type": "tuple"
228
+ }
229
+ ],
230
+ "name": "_quoteExactOutputSingle",
231
+ "outputs": [{ "internalType": "bytes", "name": "", "type": "bytes" }],
232
+ "stateMutability": "nonpayable",
233
+ "type": "function"
234
+ },
235
+ {
236
+ "inputs": [],
237
+ "name": "poolManager",
238
+ "outputs": [
239
+ { "internalType": "contract IPoolManager", "name": "", "type": "address" }
240
+ ],
241
+ "stateMutability": "view",
242
+ "type": "function"
243
+ },
244
+ {
245
+ "inputs": [
246
+ {
247
+ "components": [
248
+ {
249
+ "internalType": "Currency",
250
+ "name": "exactCurrency",
251
+ "type": "address"
252
+ },
253
+ {
254
+ "components": [
255
+ {
256
+ "internalType": "Currency",
257
+ "name": "intermediateCurrency",
258
+ "type": "address"
259
+ },
260
+ { "internalType": "uint24", "name": "fee", "type": "uint24" },
261
+ {
262
+ "internalType": "int24",
263
+ "name": "tickSpacing",
264
+ "type": "int24"
265
+ },
266
+ {
267
+ "internalType": "contract IHooks",
268
+ "name": "hooks",
269
+ "type": "address"
270
+ },
271
+ { "internalType": "bytes", "name": "hookData", "type": "bytes" }
272
+ ],
273
+ "internalType": "struct PathKey[]",
274
+ "name": "path",
275
+ "type": "tuple[]"
276
+ },
277
+ {
278
+ "internalType": "uint128",
279
+ "name": "exactAmount",
280
+ "type": "uint128"
281
+ }
282
+ ],
283
+ "internalType": "struct IV4Quoter.QuoteExactParams",
284
+ "name": "params",
285
+ "type": "tuple"
286
+ }
287
+ ],
288
+ "name": "quoteExactInput",
289
+ "outputs": [
290
+ { "internalType": "uint256", "name": "amountOut", "type": "uint256" },
291
+ { "internalType": "uint256", "name": "gasEstimate", "type": "uint256" }
292
+ ],
293
+ "stateMutability": "nonpayable",
294
+ "type": "function"
295
+ },
296
+ {
297
+ "inputs": [
298
+ {
299
+ "components": [
300
+ {
301
+ "components": [
302
+ {
303
+ "internalType": "Currency",
304
+ "name": "currency0",
305
+ "type": "address"
306
+ },
307
+ {
308
+ "internalType": "Currency",
309
+ "name": "currency1",
310
+ "type": "address"
311
+ },
312
+ { "internalType": "uint24", "name": "fee", "type": "uint24" },
313
+ {
314
+ "internalType": "int24",
315
+ "name": "tickSpacing",
316
+ "type": "int24"
317
+ },
318
+ {
319
+ "internalType": "contract IHooks",
320
+ "name": "hooks",
321
+ "type": "address"
322
+ }
323
+ ],
324
+ "internalType": "struct PoolKey",
325
+ "name": "poolKey",
326
+ "type": "tuple"
327
+ },
328
+ { "internalType": "bool", "name": "zeroForOne", "type": "bool" },
329
+ {
330
+ "internalType": "uint128",
331
+ "name": "exactAmount",
332
+ "type": "uint128"
333
+ },
334
+ { "internalType": "bytes", "name": "hookData", "type": "bytes" }
335
+ ],
336
+ "internalType": "struct IV4Quoter.QuoteExactSingleParams",
337
+ "name": "params",
338
+ "type": "tuple"
339
+ }
340
+ ],
341
+ "name": "quoteExactInputSingle",
342
+ "outputs": [
343
+ { "internalType": "uint256", "name": "amountOut", "type": "uint256" },
344
+ { "internalType": "uint256", "name": "gasEstimate", "type": "uint256" }
345
+ ],
346
+ "stateMutability": "nonpayable",
347
+ "type": "function"
348
+ },
349
+ {
350
+ "inputs": [
351
+ {
352
+ "components": [
353
+ {
354
+ "internalType": "Currency",
355
+ "name": "exactCurrency",
356
+ "type": "address"
357
+ },
358
+ {
359
+ "components": [
360
+ {
361
+ "internalType": "Currency",
362
+ "name": "intermediateCurrency",
363
+ "type": "address"
364
+ },
365
+ { "internalType": "uint24", "name": "fee", "type": "uint24" },
366
+ {
367
+ "internalType": "int24",
368
+ "name": "tickSpacing",
369
+ "type": "int24"
370
+ },
371
+ {
372
+ "internalType": "contract IHooks",
373
+ "name": "hooks",
374
+ "type": "address"
375
+ },
376
+ { "internalType": "bytes", "name": "hookData", "type": "bytes" }
377
+ ],
378
+ "internalType": "struct PathKey[]",
379
+ "name": "path",
380
+ "type": "tuple[]"
381
+ },
382
+ {
383
+ "internalType": "uint128",
384
+ "name": "exactAmount",
385
+ "type": "uint128"
386
+ }
387
+ ],
388
+ "internalType": "struct IV4Quoter.QuoteExactParams",
389
+ "name": "params",
390
+ "type": "tuple"
391
+ }
392
+ ],
393
+ "name": "quoteExactOutput",
394
+ "outputs": [
395
+ { "internalType": "uint256", "name": "amountIn", "type": "uint256" },
396
+ { "internalType": "uint256", "name": "gasEstimate", "type": "uint256" }
397
+ ],
398
+ "stateMutability": "nonpayable",
399
+ "type": "function"
400
+ },
401
+ {
402
+ "inputs": [
403
+ {
404
+ "components": [
405
+ {
406
+ "components": [
407
+ {
408
+ "internalType": "Currency",
409
+ "name": "currency0",
410
+ "type": "address"
411
+ },
412
+ {
413
+ "internalType": "Currency",
414
+ "name": "currency1",
415
+ "type": "address"
416
+ },
417
+ { "internalType": "uint24", "name": "fee", "type": "uint24" },
418
+ {
419
+ "internalType": "int24",
420
+ "name": "tickSpacing",
421
+ "type": "int24"
422
+ },
423
+ {
424
+ "internalType": "contract IHooks",
425
+ "name": "hooks",
426
+ "type": "address"
427
+ }
428
+ ],
429
+ "internalType": "struct PoolKey",
430
+ "name": "poolKey",
431
+ "type": "tuple"
432
+ },
433
+ { "internalType": "bool", "name": "zeroForOne", "type": "bool" },
434
+ {
435
+ "internalType": "uint128",
436
+ "name": "exactAmount",
437
+ "type": "uint128"
438
+ },
439
+ { "internalType": "bytes", "name": "hookData", "type": "bytes" }
440
+ ],
441
+ "internalType": "struct IV4Quoter.QuoteExactSingleParams",
442
+ "name": "params",
443
+ "type": "tuple"
444
+ }
445
+ ],
446
+ "name": "quoteExactOutputSingle",
447
+ "outputs": [
448
+ { "internalType": "uint256", "name": "amountIn", "type": "uint256" },
449
+ { "internalType": "uint256", "name": "gasEstimate", "type": "uint256" }
450
+ ],
451
+ "stateMutability": "nonpayable",
452
+ "type": "function"
453
+ },
454
+ {
455
+ "inputs": [{ "internalType": "bytes", "name": "data", "type": "bytes" }],
456
+ "name": "unlockCallback",
457
+ "outputs": [{ "internalType": "bytes", "name": "", "type": "bytes" }],
458
+ "stateMutability": "nonpayable",
459
+ "type": "function"
460
+ }
461
+ ]