@paraswap/dex-lib 4.0.20 → 4.0.21

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 (241) 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/usual-m-smart-m/usualM.abi.json +483 -0
  6. package/build/abi/{angle-transmuter/ChainlinkAccessControlledOffchainAggregator.json → wombat/pool.json} +637 -594
  7. package/build/dex/aave-v1/aave-v1.js +1 -0
  8. package/build/dex/aave-v1/aave-v1.js.map +1 -1
  9. package/build/dex/aave-v2/tokens-avalanche.json +44 -0
  10. package/build/dex/aave-v2/tokens-mainnet.json +188 -0
  11. package/build/dex/aave-v2/tokens-polygon.json +44 -0
  12. package/build/dex/bProtocol.d.ts +18 -0
  13. package/build/dex/bProtocol.js +39 -0
  14. package/build/dex/bProtocol.js.map +1 -0
  15. package/build/dex/balancer-v3/abi/balancerBatchRouter.d.ts +729 -0
  16. package/build/dex/balancer-v3/abi/balancerBatchRouter.js +732 -0
  17. package/build/dex/balancer-v3/abi/balancerBatchRouter.js.map +1 -0
  18. package/build/dex/balancer-v3/abi/balancerRouter.d.ts +1406 -0
  19. package/build/dex/balancer-v3/abi/balancerRouter.js +1175 -0
  20. package/build/dex/balancer-v3/abi/balancerRouter.js.map +1 -0
  21. package/build/dex/balancer-v3/abi/vaultExtension.V3.d.ts +2081 -0
  22. package/build/dex/balancer-v3/abi/vaultExtension.V3.js +1851 -0
  23. package/build/dex/balancer-v3/abi/vaultExtension.V3.js.map +1 -0
  24. package/build/dex/balancer-v3/balancer-v3-sepolia-pools.d.ts +34 -0
  25. package/build/dex/balancer-v3/balancer-v3-sepolia-pools.js +406 -0
  26. package/build/dex/balancer-v3/balancer-v3-sepolia-pools.js.map +1 -0
  27. package/build/dex/bancor.d.ts +26 -0
  28. package/build/dex/bancor.js +58 -0
  29. package/build/dex/bancor.js.map +1 -0
  30. package/build/dex/compound.d.ts +18 -0
  31. package/build/dex/compound.js +46 -0
  32. package/build/dex/compound.js.map +1 -0
  33. package/build/dex/curve-v2.d.ts +58 -0
  34. package/build/dex/curve-v2.js +180 -0
  35. package/build/dex/curve-v2.js.map +1 -0
  36. package/build/dex/dodo-v1.d.ts +33 -0
  37. package/build/dex/dodo-v1.js +63 -0
  38. package/build/dex/dodo-v1.js.map +1 -0
  39. package/build/dex/inception/inception-event-pool.d.ts +4 -4
  40. package/build/dex/inception/inception-event-pool.js +7 -9
  41. package/build/dex/inception/inception-event-pool.js.map +1 -1
  42. package/build/dex/inception/inception.d.ts +6 -6
  43. package/build/dex/inception/inception.js +16 -40
  44. package/build/dex/inception/inception.js.map +1 -1
  45. package/build/dex/inception/utils.d.ts +1 -0
  46. package/build/dex/inception/utils.js +22 -1
  47. package/build/dex/inception/utils.js.map +1 -1
  48. package/build/dex/lido.d.ts +19 -0
  49. package/build/dex/lido.js +42 -0
  50. package/build/dex/lido.js.map +1 -0
  51. package/build/dex/maker-psm/scripts/gem.abi.json +136 -0
  52. package/build/dex/maker-psm/scripts/validate-state.d.ts +0 -0
  53. package/build/dex/maker-psm/scripts/validate-state.js +185 -0
  54. package/build/dex/maker-psm/scripts/validate-state.js.map +1 -0
  55. package/build/dex/maker-psm/scripts/vat.abi.json +243 -0
  56. package/build/dex/onebit.d.ts +25 -0
  57. package/build/dex/onebit.js +42 -0
  58. package/build/dex/onebit.js.map +1 -0
  59. package/build/dex/platypus/platypus.js +17 -3
  60. package/build/dex/platypus/platypus.js.map +1 -1
  61. package/build/dex/smoothy.d.ts +26 -0
  62. package/build/dex/smoothy.js +48 -0
  63. package/build/dex/smoothy.js.map +1 -0
  64. package/build/dex/solidly-v3/scripts/check-event-pool-event.d.ts +1 -0
  65. package/build/dex/solidly-v3/scripts/check-event-pool-event.js +53 -0
  66. package/build/dex/solidly-v3/scripts/check-event-pool-event.js.map +1 -0
  67. package/build/dex/stable-pool.d.ts +28 -0
  68. package/build/dex/stable-pool.js +55 -0
  69. package/build/dex/stable-pool.js.map +1 -0
  70. package/build/dex/stkgho/stkgho.js +4 -2
  71. package/build/dex/stkgho/stkgho.js.map +1 -1
  72. package/build/dex/swaap-v1/swaap-v1.js +4 -0
  73. package/build/dex/swaap-v1/swaap-v1.js.map +1 -1
  74. package/build/dex/trader-joe-v2.1/trader-joe-v2.1-new.d.ts +7 -0
  75. package/build/dex/trader-joe-v2.1/trader-joe-v2.1-new.js +20 -0
  76. package/build/dex/trader-joe-v2.1/trader-joe-v2.1-new.js.map +1 -0
  77. package/build/dex/trader-joe-v2.1.d.ts +43 -0
  78. package/build/dex/trader-joe-v2.1.js +79 -0
  79. package/build/dex/trader-joe-v2.1.js.map +1 -0
  80. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.d.ts +17 -0
  81. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.js +64 -0
  82. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.js.map +1 -0
  83. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.d.ts +17 -0
  84. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.js +79 -0
  85. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.js.map +1 -0
  86. package/build/dex/uniswap-v3/uniswap-v3-pricing.d.ts +4 -0
  87. package/build/dex/uniswap-v3/uniswap-v3-pricing.js +43 -0
  88. package/build/dex/uniswap-v3/uniswap-v3-pricing.js.map +1 -0
  89. package/build/dex/uniswap-v3/uniswap-v3-worker.d.ts +1 -0
  90. package/build/dex/uniswap-v3/uniswap-v3-worker.js +10 -0
  91. package/build/dex/uniswap-v3/uniswap-v3-worker.js.map +1 -0
  92. package/build/dex/usual/usual-m-smart-m.d.ts +17 -0
  93. package/build/dex/usual/usual-m-smart-m.js +50 -0
  94. package/build/dex/usual/usual-m-smart-m.js.map +1 -0
  95. package/build/dex/usual-m-smart-m/config.d.ts +3 -0
  96. package/build/dex/usual-m-smart-m/config.js +13 -0
  97. package/build/dex/usual-m-smart-m/config.js.map +1 -0
  98. package/build/dex/usual-m-smart-m/types.d.ts +7 -0
  99. package/build/dex/usual-m-smart-m/types.js +3 -0
  100. package/build/dex/usual-m-smart-m/types.js.map +1 -0
  101. package/build/dex/usual-m-smart-m/usual-m-smart-m.d.ts +35 -0
  102. package/build/dex/usual-m-smart-m/usual-m-smart-m.js +161 -0
  103. package/build/dex/usual-m-smart-m/usual-m-smart-m.js.map +1 -0
  104. package/build/dex/usual-m-usd0/config.d.ts +3 -0
  105. package/build/dex/usual-m-usd0/config.js +14 -0
  106. package/build/dex/usual-m-usd0/config.js.map +1 -0
  107. package/build/dex/usual-m-usd0/types.d.ts +8 -0
  108. package/build/dex/usual-m-usd0/types.js +3 -0
  109. package/build/dex/usual-m-usd0/types.js.map +1 -0
  110. package/build/dex/usual-m-usd0/usual-m-usd0.d.ts +35 -0
  111. package/build/dex/usual-m-usd0/usual-m-usd0.js +159 -0
  112. package/build/dex/usual-m-usd0/usual-m-usd0.js.map +1 -0
  113. package/package.json +1 -1
  114. package/src/dex/stkgho/stkgho.ts +4 -2
  115. package/build/abi/Aave_GSM.json +0 -751
  116. package/build/abi/Balancer.json +0 -257
  117. package/build/abi/BalancerV2.json +0 -1179
  118. package/build/abi/RamsesV2Pool.abi.json +0 -1554
  119. package/build/abi/RamsesV2Quoter.abi.json +0 -274
  120. package/build/abi/USDM.json +0 -807
  121. package/build/abi/UniswapV2Router.json +0 -397
  122. package/build/abi/angle-transmuter/ChainlinkEACAggregatorProxy.json +0 -509
  123. package/build/abi/curve-v1/CurveBUSDv2.abi.json +0 -1356
  124. package/build/abi/curve-v1/CurveTokenV1.json +0 -305
  125. package/build/abi/curve-v1/CurveTokenV2.json +0 -318
  126. package/build/abi/curve-v1/CurveV1StableNg.json +0 -1452
  127. package/build/abi/curve-v1/CurveV2Swap.json +0 -700
  128. package/build/abi/curve-v1/FactoryCryptoRegistry.json +0 -316
  129. package/build/abi/curve-v1/FactoryRegistry.json +0 -508
  130. package/build/abi/curve-v1/StableSwapAave.json +0 -1152
  131. package/build/abi/curve-v1/StableSwapBUSD.json +0 -814
  132. package/build/abi/curve-v1/StableSwapCompound.json +0 -814
  133. package/build/abi/curve-v1/StableSwapIDLE.json +0 -1253
  134. package/build/abi/curve-v1/StableSwapPax.json +0 -865
  135. package/build/abi/curve-v1/StableSwapSnow.json +0 -900
  136. package/build/abi/curve-v1/StableSwapUSDN.json +0 -1004
  137. package/build/abi/curve-v1/StableSwapUSDT.json +0 -814
  138. package/build/abi/curve-v1/StableSwapY.json +0 -814
  139. package/build/abi/inception/inception-ineth.json +0 -609
  140. package/build/abi/kyberdmm/kyber-storage.abi.json +0 -824
  141. package/build/abi/kyberdmm.abi.json +0 -1148
  142. package/build/abi/maverick-v2/MaverickV2Quoter.json +0 -278
  143. package/build/abi/nerve/nerve-metapool.json +0 -790
  144. package/build/abi/uniswap-v3/UniswapV3Quoter.abi.json +0 -193
  145. package/build/abi/velodrome-slipstream/VelodromeSlipstreamQuoterV2.abi.json +0 -267
  146. package/build/dex/balancer-v1/balancer-pools.json +0 -33333
  147. package/build/dex/bebop/websocket-fetcher.d.ts +0 -35
  148. package/build/dex/bebop/websocket-fetcher.js +0 -87
  149. package/build/dex/bebop/websocket-fetcher.js.map +0 -1
  150. package/build/dex/idle-dao/idle-dao-pool.d.ts +0 -56
  151. package/build/dex/idle-dao/idle-dao-pool.js +0 -176
  152. package/build/dex/idle-dao/idle-dao-pool.js.map +0 -1
  153. package/build/dex/idle-dao/idle-dao-pooling-pool.d.ts +0 -16
  154. package/build/dex/idle-dao/idle-dao-pooling-pool.js +0 -57
  155. package/build/dex/idle-dao/idle-dao-pooling-pool.js.map +0 -1
  156. package/build/dex/idle-dao/scripts.d.ts +0 -9
  157. package/build/dex/idle-dao/scripts.js +0 -552
  158. package/build/dex/idle-dao/scripts.js.map +0 -1
  159. package/build/dex/inception/inception-native.d.ts +0 -43
  160. package/build/dex/inception/inception-native.js +0 -131
  161. package/build/dex/inception/inception-native.js.map +0 -1
  162. package/build/dex/inception/inception-pool.d.ts +0 -18
  163. package/build/dex/inception/inception-pool.js +0 -32
  164. package/build/dex/inception/inception-pool.js.map +0 -1
  165. package/build/dex/inception/inception-price-feed.d.ts +0 -19
  166. package/build/dex/inception/inception-price-feed.js +0 -51
  167. package/build/dex/inception/inception-price-feed.js.map +0 -1
  168. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-balancerv1-curvev1-eth-usdc-gusd.json +0 -16
  169. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-balancerv1-sushiv3-wbtc-eth-sushi.json +0 -16
  170. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-curvev1-eth-usdc-gusd.json +0 -16
  171. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-curvev1-gusd-usdc-eth.json +0 -16
  172. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-dai-usdc-eth.json +0 -16
  173. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-eth-usdc-dai.json +0 -16
  174. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-usdc-eth-wbtc.json +0 -16
  175. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-usdt-usdc-dai.json +0 -16
  176. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-balancerv1-eth-usdc.json +0 -9
  177. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-balancerv1-usdc-eth.json +0 -9
  178. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-balancerv1-usdc-wbtc.json +0 -9
  179. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-curvev1-eth-steth.json +0 -9
  180. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-curvev1-steth-eth.json +0 -9
  181. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-curvev1-usdc-usdt.json +0 -9
  182. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-univ3-eth-usdc.json +0 -9
  183. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-univ3-usdc-eth.json +0 -9
  184. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-univ3-usdc-usdt.json +0 -9
  185. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-balancerv1-sushiv3-wbtc-eth-sushi.json +0 -12
  186. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-curvev1-eth-usdc-gusd.json +0 -7
  187. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-curvev1-gusd-usdc-eth.json +0 -7
  188. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-dai-usdc-eth.json +0 -7
  189. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-eth-usdc-dai.json +0 -7
  190. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-usdc-eth-wbtc.json +0 -12
  191. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-simpleSwap-univ3-eth-usdc.json +0 -7
  192. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-simpleSwap-univ3-usdc-eth.json +0 -7
  193. package/build/executor/fixtures/executor01/routes/price-route-multiswap-balancerv1-curvev1-eth-usdc-gusd.json +0 -78
  194. package/build/executor/fixtures/executor01/routes/price-route-multiswap-balancerv1-sushiv3-wbtc-eth-sushi.json +0 -81
  195. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-curvev1-eth-usdc-gusd.json +0 -78
  196. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-curvev1-gusd-usdc-eth.json +0 -78
  197. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-dai-usdc-eth.json +0 -81
  198. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-eth-usdc-dai.json +0 -81
  199. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-usdc-eth-wbtc.json +0 -81
  200. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-usdt-usdc-dai.json +0 -81
  201. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-balancerv1-eth-usdc.json +0 -64
  202. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-balancerv1-usdc-eth.json +0 -85
  203. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-balancerv1-usdc-wbtc.json +0 -64
  204. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-curvev1-eth-steth.json +0 -52
  205. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-curvev1-steth-eth.json +0 -52
  206. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-curvev1-usdc-usdt.json +0 -52
  207. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-univ3-eth-usdc.json +0 -55
  208. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-univ3-usdc-eth.json +0 -55
  209. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-univ3-usdc-usdt.json +0 -55
  210. package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-balancerv1-sushiv3-univ3-bal-eth-sushi.json +0 -23
  211. package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-maverickv1-sushiv3-univ3-eth-usdc-mav.json +0 -37
  212. package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-univ3-sushiv3-sushi-eth-wbtc.json +0 -23
  213. package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-univ3-sushiv3-wbtc-eth-sushi.json +0 -23
  214. package/build/executor/fixtures/executor02/exchange-params/price-route-multiswap-curvev1-univ3-dai-usdc-eth.json +0 -51
  215. package/build/executor/fixtures/executor02/exchange-params/price-route-multiswap-univ3-usdt-dai-eth.json +0 -58
  216. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-balancerv1-eth-usdc.json +0 -23
  217. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-balancerv1-usdc-eth.json +0 -23
  218. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-univ3-eth-sushi.json +0 -9
  219. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-univ3-sushi-eth.json +0 -16
  220. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-univ3-curvev1-usdt-dai.json +0 -23
  221. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-balancerv1-sushiv3-univ3-bal-eth-sushi.json +0 -12
  222. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-maverickv1-sushiv3-univ3-eth-usdc-mav.json +0 -7
  223. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-univ3-sushiv3-sushi-eth-wbtc.json +0 -12
  224. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-univ3-sushiv3-wbtc-eth-sushi.json +0 -12
  225. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiswap-curvev1-univ3-dai-usdc-eth.json +0 -7
  226. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiswap-univ3-usdt-dai-eth.json +0 -7
  227. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-balancerv1-eth-usdc.json +0 -7
  228. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-balancerv1-usdc-eth.json +0 -7
  229. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-univ3-eth-sushi.json +0 -7
  230. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-univ3-sushi-eth.json +0 -7
  231. package/build/executor/fixtures/executor02/routes/price-route-multiSwap-balancerv1-sushiv3-univ3-bal-eth-sushi.json +0 -130
  232. package/build/executor/fixtures/executor02/routes/price-route-multiSwap-maverickv1-sushiv3-univ3-eth-usdc-mav.json +0 -136
  233. package/build/executor/fixtures/executor02/routes/price-route-multiSwap-univ3-sushiv3-sushi-eth-wbtc.json +0 -100
  234. package/build/executor/fixtures/executor02/routes/price-route-multiSwap-univ3-sushiv3-wbtc-eth-sushi.json +0 -100
  235. package/build/executor/fixtures/executor02/routes/price-route-multiswap-curvev1-univ3-dai-usdc-eth.json +0 -166
  236. package/build/executor/fixtures/executor02/routes/price-route-multiswap-univ3-usdt-dai-eth.json +0 -190
  237. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-balancerv1-eth-usdc.json +0 -114
  238. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-balancerv1-usdc-eth.json +0 -114
  239. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-univ3-eth-sushi.json +0 -55
  240. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-univ3-sushi-eth.json +0 -73
  241. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-univ3-curvev1-usdt-dai.json +0 -82
@@ -0,0 +1,732 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.balancerBatchRouterAbi = void 0;
4
+ exports.balancerBatchRouterAbi = [
5
+ {
6
+ inputs: [
7
+ { internalType: 'contract IVault', name: 'vault', type: 'address' },
8
+ { internalType: 'contract IWETH', name: 'weth', type: 'address' },
9
+ {
10
+ internalType: 'contract IPermit2',
11
+ name: 'permit2',
12
+ type: 'address',
13
+ },
14
+ ],
15
+ stateMutability: 'nonpayable',
16
+ type: 'constructor',
17
+ },
18
+ {
19
+ inputs: [{ internalType: 'address', name: 'target', type: 'address' }],
20
+ name: 'AddressEmptyCode',
21
+ type: 'error',
22
+ },
23
+ {
24
+ inputs: [{ internalType: 'address', name: 'account', type: 'address' }],
25
+ name: 'AddressInsufficientBalance',
26
+ type: 'error',
27
+ },
28
+ { inputs: [], name: 'EthTransfer', type: 'error' },
29
+ { inputs: [], name: 'FailedInnerCall', type: 'error' },
30
+ { inputs: [], name: 'InsufficientEth', type: 'error' },
31
+ { inputs: [], name: 'ReentrancyGuardReentrantCall', type: 'error' },
32
+ {
33
+ inputs: [
34
+ { internalType: 'uint8', name: 'bits', type: 'uint8' },
35
+ { internalType: 'uint256', name: 'value', type: 'uint256' },
36
+ ],
37
+ name: 'SafeCastOverflowedUintDowncast',
38
+ type: 'error',
39
+ },
40
+ {
41
+ inputs: [{ internalType: 'address', name: 'token', type: 'address' }],
42
+ name: 'SafeERC20FailedOperation',
43
+ type: 'error',
44
+ },
45
+ {
46
+ inputs: [{ internalType: 'address', name: 'sender', type: 'address' }],
47
+ name: 'SenderIsNotVault',
48
+ type: 'error',
49
+ },
50
+ { inputs: [], name: 'SwapDeadline', type: 'error' },
51
+ { inputs: [], name: 'TransientIndexOutOfBounds', type: 'error' },
52
+ {
53
+ inputs: [],
54
+ name: 'getSender',
55
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
56
+ stateMutability: 'view',
57
+ type: 'function',
58
+ },
59
+ {
60
+ inputs: [{ internalType: 'bytes[]', name: 'data', type: 'bytes[]' }],
61
+ name: 'multicall',
62
+ outputs: [{ internalType: 'bytes[]', name: 'results', type: 'bytes[]' }],
63
+ stateMutability: 'payable',
64
+ type: 'function',
65
+ },
66
+ {
67
+ inputs: [
68
+ {
69
+ components: [
70
+ { internalType: 'address', name: 'token', type: 'address' },
71
+ { internalType: 'address', name: 'owner', type: 'address' },
72
+ {
73
+ internalType: 'address',
74
+ name: 'spender',
75
+ type: 'address',
76
+ },
77
+ {
78
+ internalType: 'uint256',
79
+ name: 'amount',
80
+ type: 'uint256',
81
+ },
82
+ { internalType: 'uint256', name: 'nonce', type: 'uint256' },
83
+ {
84
+ internalType: 'uint256',
85
+ name: 'deadline',
86
+ type: 'uint256',
87
+ },
88
+ ],
89
+ internalType: 'struct IRouterCommon.PermitApproval[]',
90
+ name: 'permitBatch',
91
+ type: 'tuple[]',
92
+ },
93
+ {
94
+ internalType: 'bytes[]',
95
+ name: 'permitSignatures',
96
+ type: 'bytes[]',
97
+ },
98
+ {
99
+ components: [
100
+ {
101
+ components: [
102
+ {
103
+ internalType: 'address',
104
+ name: 'token',
105
+ type: 'address',
106
+ },
107
+ {
108
+ internalType: 'uint160',
109
+ name: 'amount',
110
+ type: 'uint160',
111
+ },
112
+ {
113
+ internalType: 'uint48',
114
+ name: 'expiration',
115
+ type: 'uint48',
116
+ },
117
+ {
118
+ internalType: 'uint48',
119
+ name: 'nonce',
120
+ type: 'uint48',
121
+ },
122
+ ],
123
+ internalType: 'struct IAllowanceTransfer.PermitDetails[]',
124
+ name: 'details',
125
+ type: 'tuple[]',
126
+ },
127
+ {
128
+ internalType: 'address',
129
+ name: 'spender',
130
+ type: 'address',
131
+ },
132
+ {
133
+ internalType: 'uint256',
134
+ name: 'sigDeadline',
135
+ type: 'uint256',
136
+ },
137
+ ],
138
+ internalType: 'struct IAllowanceTransfer.PermitBatch',
139
+ name: 'permit2Batch',
140
+ type: 'tuple',
141
+ },
142
+ { internalType: 'bytes', name: 'permit2Signature', type: 'bytes' },
143
+ { internalType: 'bytes[]', name: 'multicallData', type: 'bytes[]' },
144
+ ],
145
+ name: 'permitBatchAndCall',
146
+ outputs: [{ internalType: 'bytes[]', name: 'results', type: 'bytes[]' }],
147
+ stateMutability: 'payable',
148
+ type: 'function',
149
+ },
150
+ {
151
+ inputs: [
152
+ {
153
+ components: [
154
+ {
155
+ internalType: 'contract IERC20',
156
+ name: 'tokenIn',
157
+ type: 'address',
158
+ },
159
+ {
160
+ components: [
161
+ {
162
+ internalType: 'address',
163
+ name: 'pool',
164
+ type: 'address',
165
+ },
166
+ {
167
+ internalType: 'contract IERC20',
168
+ name: 'tokenOut',
169
+ type: 'address',
170
+ },
171
+ {
172
+ internalType: 'bool',
173
+ name: 'isBuffer',
174
+ type: 'bool',
175
+ },
176
+ ],
177
+ internalType: 'struct IBatchRouter.SwapPathStep[]',
178
+ name: 'steps',
179
+ type: 'tuple[]',
180
+ },
181
+ {
182
+ internalType: 'uint256',
183
+ name: 'exactAmountIn',
184
+ type: 'uint256',
185
+ },
186
+ {
187
+ internalType: 'uint256',
188
+ name: 'minAmountOut',
189
+ type: 'uint256',
190
+ },
191
+ ],
192
+ internalType: 'struct IBatchRouter.SwapPathExactAmountIn[]',
193
+ name: 'paths',
194
+ type: 'tuple[]',
195
+ },
196
+ { internalType: 'bytes', name: 'userData', type: 'bytes' },
197
+ ],
198
+ name: 'querySwapExactIn',
199
+ outputs: [
200
+ {
201
+ internalType: 'uint256[]',
202
+ name: 'pathAmountsOut',
203
+ type: 'uint256[]',
204
+ },
205
+ { internalType: 'address[]', name: 'tokensOut', type: 'address[]' },
206
+ {
207
+ internalType: 'uint256[]',
208
+ name: 'amountsOut',
209
+ type: 'uint256[]',
210
+ },
211
+ ],
212
+ stateMutability: 'nonpayable',
213
+ type: 'function',
214
+ },
215
+ {
216
+ inputs: [
217
+ {
218
+ components: [
219
+ {
220
+ internalType: 'address',
221
+ name: 'sender',
222
+ type: 'address',
223
+ },
224
+ {
225
+ components: [
226
+ {
227
+ internalType: 'contract IERC20',
228
+ name: 'tokenIn',
229
+ type: 'address',
230
+ },
231
+ {
232
+ components: [
233
+ {
234
+ internalType: 'address',
235
+ name: 'pool',
236
+ type: 'address',
237
+ },
238
+ {
239
+ internalType: 'contract IERC20',
240
+ name: 'tokenOut',
241
+ type: 'address',
242
+ },
243
+ {
244
+ internalType: 'bool',
245
+ name: 'isBuffer',
246
+ type: 'bool',
247
+ },
248
+ ],
249
+ internalType: 'struct IBatchRouter.SwapPathStep[]',
250
+ name: 'steps',
251
+ type: 'tuple[]',
252
+ },
253
+ {
254
+ internalType: 'uint256',
255
+ name: 'exactAmountIn',
256
+ type: 'uint256',
257
+ },
258
+ {
259
+ internalType: 'uint256',
260
+ name: 'minAmountOut',
261
+ type: 'uint256',
262
+ },
263
+ ],
264
+ internalType: 'struct IBatchRouter.SwapPathExactAmountIn[]',
265
+ name: 'paths',
266
+ type: 'tuple[]',
267
+ },
268
+ {
269
+ internalType: 'uint256',
270
+ name: 'deadline',
271
+ type: 'uint256',
272
+ },
273
+ { internalType: 'bool', name: 'wethIsEth', type: 'bool' },
274
+ { internalType: 'bytes', name: 'userData', type: 'bytes' },
275
+ ],
276
+ internalType: 'struct IBatchRouter.SwapExactInHookParams',
277
+ name: 'params',
278
+ type: 'tuple',
279
+ },
280
+ ],
281
+ name: 'querySwapExactInHook',
282
+ outputs: [
283
+ {
284
+ internalType: 'uint256[]',
285
+ name: 'pathAmountsOut',
286
+ type: 'uint256[]',
287
+ },
288
+ { internalType: 'address[]', name: 'tokensOut', type: 'address[]' },
289
+ {
290
+ internalType: 'uint256[]',
291
+ name: 'amountsOut',
292
+ type: 'uint256[]',
293
+ },
294
+ ],
295
+ stateMutability: 'nonpayable',
296
+ type: 'function',
297
+ },
298
+ {
299
+ inputs: [
300
+ {
301
+ components: [
302
+ {
303
+ internalType: 'contract IERC20',
304
+ name: 'tokenIn',
305
+ type: 'address',
306
+ },
307
+ {
308
+ components: [
309
+ {
310
+ internalType: 'address',
311
+ name: 'pool',
312
+ type: 'address',
313
+ },
314
+ {
315
+ internalType: 'contract IERC20',
316
+ name: 'tokenOut',
317
+ type: 'address',
318
+ },
319
+ {
320
+ internalType: 'bool',
321
+ name: 'isBuffer',
322
+ type: 'bool',
323
+ },
324
+ ],
325
+ internalType: 'struct IBatchRouter.SwapPathStep[]',
326
+ name: 'steps',
327
+ type: 'tuple[]',
328
+ },
329
+ {
330
+ internalType: 'uint256',
331
+ name: 'maxAmountIn',
332
+ type: 'uint256',
333
+ },
334
+ {
335
+ internalType: 'uint256',
336
+ name: 'exactAmountOut',
337
+ type: 'uint256',
338
+ },
339
+ ],
340
+ internalType: 'struct IBatchRouter.SwapPathExactAmountOut[]',
341
+ name: 'paths',
342
+ type: 'tuple[]',
343
+ },
344
+ { internalType: 'bytes', name: 'userData', type: 'bytes' },
345
+ ],
346
+ name: 'querySwapExactOut',
347
+ outputs: [
348
+ {
349
+ internalType: 'uint256[]',
350
+ name: 'pathAmountsIn',
351
+ type: 'uint256[]',
352
+ },
353
+ { internalType: 'address[]', name: 'tokensIn', type: 'address[]' },
354
+ { internalType: 'uint256[]', name: 'amountsIn', type: 'uint256[]' },
355
+ ],
356
+ stateMutability: 'nonpayable',
357
+ type: 'function',
358
+ },
359
+ {
360
+ inputs: [
361
+ {
362
+ components: [
363
+ {
364
+ internalType: 'address',
365
+ name: 'sender',
366
+ type: 'address',
367
+ },
368
+ {
369
+ components: [
370
+ {
371
+ internalType: 'contract IERC20',
372
+ name: 'tokenIn',
373
+ type: 'address',
374
+ },
375
+ {
376
+ components: [
377
+ {
378
+ internalType: 'address',
379
+ name: 'pool',
380
+ type: 'address',
381
+ },
382
+ {
383
+ internalType: 'contract IERC20',
384
+ name: 'tokenOut',
385
+ type: 'address',
386
+ },
387
+ {
388
+ internalType: 'bool',
389
+ name: 'isBuffer',
390
+ type: 'bool',
391
+ },
392
+ ],
393
+ internalType: 'struct IBatchRouter.SwapPathStep[]',
394
+ name: 'steps',
395
+ type: 'tuple[]',
396
+ },
397
+ {
398
+ internalType: 'uint256',
399
+ name: 'maxAmountIn',
400
+ type: 'uint256',
401
+ },
402
+ {
403
+ internalType: 'uint256',
404
+ name: 'exactAmountOut',
405
+ type: 'uint256',
406
+ },
407
+ ],
408
+ internalType: 'struct IBatchRouter.SwapPathExactAmountOut[]',
409
+ name: 'paths',
410
+ type: 'tuple[]',
411
+ },
412
+ {
413
+ internalType: 'uint256',
414
+ name: 'deadline',
415
+ type: 'uint256',
416
+ },
417
+ { internalType: 'bool', name: 'wethIsEth', type: 'bool' },
418
+ { internalType: 'bytes', name: 'userData', type: 'bytes' },
419
+ ],
420
+ internalType: 'struct IBatchRouter.SwapExactOutHookParams',
421
+ name: 'params',
422
+ type: 'tuple',
423
+ },
424
+ ],
425
+ name: 'querySwapExactOutHook',
426
+ outputs: [
427
+ {
428
+ internalType: 'uint256[]',
429
+ name: 'pathAmountsIn',
430
+ type: 'uint256[]',
431
+ },
432
+ { internalType: 'address[]', name: 'tokensIn', type: 'address[]' },
433
+ { internalType: 'uint256[]', name: 'amountsIn', type: 'uint256[]' },
434
+ ],
435
+ stateMutability: 'nonpayable',
436
+ type: 'function',
437
+ },
438
+ {
439
+ inputs: [
440
+ {
441
+ components: [
442
+ {
443
+ internalType: 'contract IERC20',
444
+ name: 'tokenIn',
445
+ type: 'address',
446
+ },
447
+ {
448
+ components: [
449
+ {
450
+ internalType: 'address',
451
+ name: 'pool',
452
+ type: 'address',
453
+ },
454
+ {
455
+ internalType: 'contract IERC20',
456
+ name: 'tokenOut',
457
+ type: 'address',
458
+ },
459
+ {
460
+ internalType: 'bool',
461
+ name: 'isBuffer',
462
+ type: 'bool',
463
+ },
464
+ ],
465
+ internalType: 'struct IBatchRouter.SwapPathStep[]',
466
+ name: 'steps',
467
+ type: 'tuple[]',
468
+ },
469
+ {
470
+ internalType: 'uint256',
471
+ name: 'exactAmountIn',
472
+ type: 'uint256',
473
+ },
474
+ {
475
+ internalType: 'uint256',
476
+ name: 'minAmountOut',
477
+ type: 'uint256',
478
+ },
479
+ ],
480
+ internalType: 'struct IBatchRouter.SwapPathExactAmountIn[]',
481
+ name: 'paths',
482
+ type: 'tuple[]',
483
+ },
484
+ { internalType: 'uint256', name: 'deadline', type: 'uint256' },
485
+ { internalType: 'bool', name: 'wethIsEth', type: 'bool' },
486
+ { internalType: 'bytes', name: 'userData', type: 'bytes' },
487
+ ],
488
+ name: 'swapExactIn',
489
+ outputs: [
490
+ {
491
+ internalType: 'uint256[]',
492
+ name: 'pathAmountsOut',
493
+ type: 'uint256[]',
494
+ },
495
+ { internalType: 'address[]', name: 'tokensOut', type: 'address[]' },
496
+ {
497
+ internalType: 'uint256[]',
498
+ name: 'amountsOut',
499
+ type: 'uint256[]',
500
+ },
501
+ ],
502
+ stateMutability: 'payable',
503
+ type: 'function',
504
+ },
505
+ {
506
+ inputs: [
507
+ {
508
+ components: [
509
+ {
510
+ internalType: 'address',
511
+ name: 'sender',
512
+ type: 'address',
513
+ },
514
+ {
515
+ components: [
516
+ {
517
+ internalType: 'contract IERC20',
518
+ name: 'tokenIn',
519
+ type: 'address',
520
+ },
521
+ {
522
+ components: [
523
+ {
524
+ internalType: 'address',
525
+ name: 'pool',
526
+ type: 'address',
527
+ },
528
+ {
529
+ internalType: 'contract IERC20',
530
+ name: 'tokenOut',
531
+ type: 'address',
532
+ },
533
+ {
534
+ internalType: 'bool',
535
+ name: 'isBuffer',
536
+ type: 'bool',
537
+ },
538
+ ],
539
+ internalType: 'struct IBatchRouter.SwapPathStep[]',
540
+ name: 'steps',
541
+ type: 'tuple[]',
542
+ },
543
+ {
544
+ internalType: 'uint256',
545
+ name: 'exactAmountIn',
546
+ type: 'uint256',
547
+ },
548
+ {
549
+ internalType: 'uint256',
550
+ name: 'minAmountOut',
551
+ type: 'uint256',
552
+ },
553
+ ],
554
+ internalType: 'struct IBatchRouter.SwapPathExactAmountIn[]',
555
+ name: 'paths',
556
+ type: 'tuple[]',
557
+ },
558
+ {
559
+ internalType: 'uint256',
560
+ name: 'deadline',
561
+ type: 'uint256',
562
+ },
563
+ { internalType: 'bool', name: 'wethIsEth', type: 'bool' },
564
+ { internalType: 'bytes', name: 'userData', type: 'bytes' },
565
+ ],
566
+ internalType: 'struct IBatchRouter.SwapExactInHookParams',
567
+ name: 'params',
568
+ type: 'tuple',
569
+ },
570
+ ],
571
+ name: 'swapExactInHook',
572
+ outputs: [
573
+ {
574
+ internalType: 'uint256[]',
575
+ name: 'pathAmountsOut',
576
+ type: 'uint256[]',
577
+ },
578
+ { internalType: 'address[]', name: 'tokensOut', type: 'address[]' },
579
+ {
580
+ internalType: 'uint256[]',
581
+ name: 'amountsOut',
582
+ type: 'uint256[]',
583
+ },
584
+ ],
585
+ stateMutability: 'nonpayable',
586
+ type: 'function',
587
+ },
588
+ {
589
+ inputs: [
590
+ {
591
+ components: [
592
+ {
593
+ internalType: 'contract IERC20',
594
+ name: 'tokenIn',
595
+ type: 'address',
596
+ },
597
+ {
598
+ components: [
599
+ {
600
+ internalType: 'address',
601
+ name: 'pool',
602
+ type: 'address',
603
+ },
604
+ {
605
+ internalType: 'contract IERC20',
606
+ name: 'tokenOut',
607
+ type: 'address',
608
+ },
609
+ {
610
+ internalType: 'bool',
611
+ name: 'isBuffer',
612
+ type: 'bool',
613
+ },
614
+ ],
615
+ internalType: 'struct IBatchRouter.SwapPathStep[]',
616
+ name: 'steps',
617
+ type: 'tuple[]',
618
+ },
619
+ {
620
+ internalType: 'uint256',
621
+ name: 'maxAmountIn',
622
+ type: 'uint256',
623
+ },
624
+ {
625
+ internalType: 'uint256',
626
+ name: 'exactAmountOut',
627
+ type: 'uint256',
628
+ },
629
+ ],
630
+ internalType: 'struct IBatchRouter.SwapPathExactAmountOut[]',
631
+ name: 'paths',
632
+ type: 'tuple[]',
633
+ },
634
+ { internalType: 'uint256', name: 'deadline', type: 'uint256' },
635
+ { internalType: 'bool', name: 'wethIsEth', type: 'bool' },
636
+ { internalType: 'bytes', name: 'userData', type: 'bytes' },
637
+ ],
638
+ name: 'swapExactOut',
639
+ outputs: [
640
+ {
641
+ internalType: 'uint256[]',
642
+ name: 'pathAmountsIn',
643
+ type: 'uint256[]',
644
+ },
645
+ { internalType: 'address[]', name: 'tokensIn', type: 'address[]' },
646
+ { internalType: 'uint256[]', name: 'amountsIn', type: 'uint256[]' },
647
+ ],
648
+ stateMutability: 'payable',
649
+ type: 'function',
650
+ },
651
+ {
652
+ inputs: [
653
+ {
654
+ components: [
655
+ {
656
+ internalType: 'address',
657
+ name: 'sender',
658
+ type: 'address',
659
+ },
660
+ {
661
+ components: [
662
+ {
663
+ internalType: 'contract IERC20',
664
+ name: 'tokenIn',
665
+ type: 'address',
666
+ },
667
+ {
668
+ components: [
669
+ {
670
+ internalType: 'address',
671
+ name: 'pool',
672
+ type: 'address',
673
+ },
674
+ {
675
+ internalType: 'contract IERC20',
676
+ name: 'tokenOut',
677
+ type: 'address',
678
+ },
679
+ {
680
+ internalType: 'bool',
681
+ name: 'isBuffer',
682
+ type: 'bool',
683
+ },
684
+ ],
685
+ internalType: 'struct IBatchRouter.SwapPathStep[]',
686
+ name: 'steps',
687
+ type: 'tuple[]',
688
+ },
689
+ {
690
+ internalType: 'uint256',
691
+ name: 'maxAmountIn',
692
+ type: 'uint256',
693
+ },
694
+ {
695
+ internalType: 'uint256',
696
+ name: 'exactAmountOut',
697
+ type: 'uint256',
698
+ },
699
+ ],
700
+ internalType: 'struct IBatchRouter.SwapPathExactAmountOut[]',
701
+ name: 'paths',
702
+ type: 'tuple[]',
703
+ },
704
+ {
705
+ internalType: 'uint256',
706
+ name: 'deadline',
707
+ type: 'uint256',
708
+ },
709
+ { internalType: 'bool', name: 'wethIsEth', type: 'bool' },
710
+ { internalType: 'bytes', name: 'userData', type: 'bytes' },
711
+ ],
712
+ internalType: 'struct IBatchRouter.SwapExactOutHookParams',
713
+ name: 'params',
714
+ type: 'tuple',
715
+ },
716
+ ],
717
+ name: 'swapExactOutHook',
718
+ outputs: [
719
+ {
720
+ internalType: 'uint256[]',
721
+ name: 'pathAmountsIn',
722
+ type: 'uint256[]',
723
+ },
724
+ { internalType: 'address[]', name: 'tokensIn', type: 'address[]' },
725
+ { internalType: 'uint256[]', name: 'amountsIn', type: 'uint256[]' },
726
+ ],
727
+ stateMutability: 'nonpayable',
728
+ type: 'function',
729
+ },
730
+ { stateMutability: 'payable', type: 'receive' },
731
+ ];
732
+ //# sourceMappingURL=balancerBatchRouter.js.map