@paraswap/dex-lib 4.1.4-bal-v3-hooks.1 → 4.1.4

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 (321) hide show
  1. package/build/abi/Aave_GSM.json +751 -0
  2. package/build/abi/Balancer.json +257 -0
  3. package/build/abi/{balancer-v3/stableSurgeHook.json → BalancerV2.json} +732 -529
  4. package/build/abi/{integral/relayer.json → RamsesV2Pool.abi.json} +850 -832
  5. package/build/abi/RamsesV2Quoter.abi.json +274 -0
  6. package/build/abi/USDM.json +807 -0
  7. package/build/abi/UniswapV2Router.json +397 -0
  8. package/build/abi/angle-transmuter/ChainlinkAccessControlledOffchainAggregator.json +1246 -0
  9. package/build/abi/{integral/oracle.json → angle-transmuter/ChainlinkEACAggregatorProxy.json} +247 -239
  10. package/build/abi/curve-v1/CurveBUSDv2.abi.json +1356 -0
  11. package/build/abi/curve-v1/CurveTokenV1.json +305 -0
  12. package/build/abi/curve-v1/CurveTokenV2.json +318 -0
  13. package/build/abi/curve-v1/CurveV1StableNg.json +1452 -0
  14. package/build/abi/curve-v1/CurveV2Swap.json +700 -0
  15. package/build/abi/curve-v1/FactoryCryptoRegistry.json +316 -0
  16. package/build/abi/curve-v1/FactoryRegistry.json +508 -0
  17. package/build/abi/curve-v1/StableSwapAave.json +1152 -0
  18. package/build/abi/curve-v1/StableSwapBUSD.json +814 -0
  19. package/build/abi/curve-v1/StableSwapCompound.json +814 -0
  20. package/build/abi/curve-v1/StableSwapIDLE.json +1253 -0
  21. package/build/abi/curve-v1/StableSwapPax.json +865 -0
  22. package/build/abi/curve-v1/StableSwapSnow.json +900 -0
  23. package/build/abi/{integral/pool.json → curve-v1/StableSwapUSDN.json} +450 -487
  24. package/build/abi/curve-v1/StableSwapUSDT.json +814 -0
  25. package/build/abi/curve-v1/StableSwapY.json +814 -0
  26. package/build/abi/fluid-dex/resolver.abi.json +30 -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/uniswap-v3/UniswapV3Quoter.abi.json +193 -0
  36. package/build/abi/velodrome-slipstream/VelodromeSlipstreamQuoterV2.abi.json +267 -0
  37. package/build/dex/aave-v1/aave-v1.d.ts +2 -1
  38. package/build/dex/aave-v1/aave-v1.js +22 -0
  39. package/build/dex/aave-v1/aave-v1.js.map +1 -1
  40. package/build/dex/balancer-v1/balancer-pools.json +33333 -0
  41. package/build/dex/balancer-v3/balancer-v3-pool.d.ts +1 -4
  42. package/build/dex/balancer-v3/balancer-v3-pool.js +13 -20
  43. package/build/dex/balancer-v3/balancer-v3-pool.js.map +1 -1
  44. package/build/dex/balancer-v3/balancer-v3.d.ts +0 -4
  45. package/build/dex/balancer-v3/balancer-v3.js +3 -29
  46. package/build/dex/balancer-v3/balancer-v3.js.map +1 -1
  47. package/build/dex/balancer-v3/config.js +0 -39
  48. package/build/dex/balancer-v3/config.js.map +1 -1
  49. package/build/dex/balancer-v3/getOnChainState.d.ts +2 -1
  50. package/build/dex/balancer-v3/getOnChainState.js +2 -0
  51. package/build/dex/balancer-v3/getOnChainState.js.map +1 -1
  52. package/build/dex/balancer-v3/getPoolsApi.d.ts +1 -2
  53. package/build/dex/balancer-v3/getPoolsApi.js +10 -17
  54. package/build/dex/balancer-v3/getPoolsApi.js.map +1 -1
  55. package/build/dex/balancer-v3/getTopPoolsApi.d.ts +1 -5
  56. package/build/dex/balancer-v3/getTopPoolsApi.js +3 -6
  57. package/build/dex/balancer-v3/getTopPoolsApi.js.map +1 -1
  58. package/build/dex/balancer-v3/types.d.ts +1 -4
  59. package/build/dex/bebop/websocket-fetcher.d.ts +35 -0
  60. package/build/dex/bebop/websocket-fetcher.js +87 -0
  61. package/build/dex/bebop/websocket-fetcher.js.map +1 -0
  62. package/build/dex/fluid-dex/config.js +2 -2
  63. package/build/dex/fluid-dex/constants.d.ts +1 -1
  64. package/build/dex/fluid-dex/constants.js +2 -1
  65. package/build/dex/fluid-dex/constants.js.map +1 -1
  66. package/build/dex/fluid-dex/fluid-dex-liquidity-proxy.js +3 -1
  67. package/build/dex/fluid-dex/fluid-dex-liquidity-proxy.js.map +1 -1
  68. package/build/dex/fluid-dex/fluid-dex.d.ts +4 -5
  69. package/build/dex/fluid-dex/fluid-dex.js +61 -59
  70. package/build/dex/fluid-dex/fluid-dex.js.map +1 -1
  71. package/build/dex/fluid-dex/types.d.ts +3 -0
  72. package/build/dex/idle-dao/idle-dao-pool.d.ts +56 -0
  73. package/build/dex/idle-dao/idle-dao-pool.js +176 -0
  74. package/build/dex/idle-dao/idle-dao-pool.js.map +1 -0
  75. package/build/dex/idle-dao/idle-dao-pooling-pool.d.ts +16 -0
  76. package/build/dex/idle-dao/idle-dao-pooling-pool.js +57 -0
  77. package/build/dex/idle-dao/idle-dao-pooling-pool.js.map +1 -0
  78. package/build/dex/idle-dao/scripts.d.ts +9 -0
  79. package/build/dex/idle-dao/scripts.js +552 -0
  80. package/build/dex/idle-dao/scripts.js.map +1 -0
  81. package/build/dex/inception/config.d.ts +4 -0
  82. package/build/dex/inception/config.js +109 -0
  83. package/build/dex/inception/config.js.map +1 -0
  84. package/build/dex/inception/inception-event-pool.d.ts +16 -0
  85. package/build/dex/inception/inception-event-pool.js +51 -0
  86. package/build/dex/inception/inception-event-pool.js.map +1 -0
  87. package/build/dex/{integral/integral.d.ts → inception/inception-native.d.ts} +21 -19
  88. package/build/dex/inception/inception-native.js +131 -0
  89. package/build/dex/inception/inception-native.js.map +1 -0
  90. package/build/dex/inception/inception-pool.d.ts +18 -0
  91. package/build/dex/inception/inception-pool.js +32 -0
  92. package/build/dex/inception/inception-pool.js.map +1 -0
  93. package/build/dex/inception/inception-price-feed.d.ts +19 -0
  94. package/build/dex/inception/inception-price-feed.js +51 -0
  95. package/build/dex/inception/inception-price-feed.js.map +1 -0
  96. package/build/dex/inception/inception.d.ts +43 -0
  97. package/build/dex/inception/inception.js +204 -0
  98. package/build/dex/inception/inception.js.map +1 -0
  99. package/build/dex/inception/tokens.d.ts +9 -0
  100. package/build/dex/inception/tokens.js +28 -0
  101. package/build/dex/inception/tokens.js.map +1 -0
  102. package/build/dex/inception/types.d.ts +22 -0
  103. package/build/dex/inception/types.js +3 -0
  104. package/build/dex/inception/types.js.map +1 -0
  105. package/build/dex/inception/utils.d.ts +6 -0
  106. package/build/dex/inception/utils.js +37 -0
  107. package/build/dex/inception/utils.js.map +1 -0
  108. package/build/dex/jarvis.d.ts +2 -1
  109. package/build/dex/jarvis.js +58 -0
  110. package/build/dex/jarvis.js.map +1 -1
  111. package/build/dex/platypus/platypus.d.ts +2 -1
  112. package/build/dex/platypus/platypus.js +31 -0
  113. package/build/dex/platypus/platypus.js.map +1 -1
  114. package/build/dex/swaap-v1/swaap-v1.d.ts +2 -1
  115. package/build/dex/swaap-v1/swaap-v1.js +10 -0
  116. package/build/dex/swaap-v1/swaap-v1.js.map +1 -1
  117. package/build/dex/zerox/index.d.ts +4 -26
  118. package/build/dex/zerox/index.js +50 -42
  119. package/build/dex/zerox/index.js.map +1 -1
  120. package/build/dex/zerox/types.d.ts +29 -0
  121. package/build/dex/zerox/types.js +8 -1
  122. package/build/dex/zerox/types.js.map +1 -1
  123. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-balancerv1-curvev1-eth-usdc-gusd.json +16 -0
  124. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-balancerv1-sushiv3-wbtc-eth-sushi.json +16 -0
  125. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-curvev1-eth-usdc-gusd.json +16 -0
  126. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-curvev1-gusd-usdc-eth.json +16 -0
  127. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-dai-usdc-eth.json +16 -0
  128. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-eth-usdc-dai.json +16 -0
  129. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-usdc-eth-wbtc.json +16 -0
  130. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-usdt-usdc-dai.json +16 -0
  131. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-balancerv1-eth-usdc.json +9 -0
  132. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-balancerv1-usdc-eth.json +9 -0
  133. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-balancerv1-usdc-wbtc.json +9 -0
  134. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-curvev1-eth-steth.json +9 -0
  135. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-curvev1-steth-eth.json +9 -0
  136. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-curvev1-usdc-usdt.json +9 -0
  137. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-univ3-eth-usdc.json +9 -0
  138. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-univ3-usdc-eth.json +9 -0
  139. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-univ3-usdc-usdt.json +9 -0
  140. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-balancerv1-sushiv3-wbtc-eth-sushi.json +12 -0
  141. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-curvev1-eth-usdc-gusd.json +7 -0
  142. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-curvev1-gusd-usdc-eth.json +7 -0
  143. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-dai-usdc-eth.json +7 -0
  144. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-eth-usdc-dai.json +7 -0
  145. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-usdc-eth-wbtc.json +12 -0
  146. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-simpleSwap-univ3-eth-usdc.json +7 -0
  147. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-simpleSwap-univ3-usdc-eth.json +7 -0
  148. package/build/executor/fixtures/executor01/routes/price-route-multiswap-balancerv1-curvev1-eth-usdc-gusd.json +78 -0
  149. package/build/executor/fixtures/executor01/routes/price-route-multiswap-balancerv1-sushiv3-wbtc-eth-sushi.json +81 -0
  150. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-curvev1-eth-usdc-gusd.json +78 -0
  151. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-curvev1-gusd-usdc-eth.json +78 -0
  152. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-dai-usdc-eth.json +81 -0
  153. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-eth-usdc-dai.json +81 -0
  154. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-usdc-eth-wbtc.json +81 -0
  155. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-usdt-usdc-dai.json +81 -0
  156. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-balancerv1-eth-usdc.json +64 -0
  157. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-balancerv1-usdc-eth.json +85 -0
  158. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-balancerv1-usdc-wbtc.json +64 -0
  159. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-curvev1-eth-steth.json +52 -0
  160. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-curvev1-steth-eth.json +52 -0
  161. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-curvev1-usdc-usdt.json +52 -0
  162. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-univ3-eth-usdc.json +55 -0
  163. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-univ3-usdc-eth.json +55 -0
  164. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-univ3-usdc-usdt.json +55 -0
  165. package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-balancerv1-sushiv3-univ3-bal-eth-sushi.json +23 -0
  166. package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-maverickv1-sushiv3-univ3-eth-usdc-mav.json +37 -0
  167. package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-univ3-sushiv3-sushi-eth-wbtc.json +23 -0
  168. package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-univ3-sushiv3-wbtc-eth-sushi.json +23 -0
  169. package/build/executor/fixtures/executor02/exchange-params/price-route-multiswap-curvev1-univ3-dai-usdc-eth.json +51 -0
  170. package/build/executor/fixtures/executor02/exchange-params/price-route-multiswap-univ3-usdt-dai-eth.json +58 -0
  171. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-balancerv1-eth-usdc.json +23 -0
  172. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-balancerv1-usdc-eth.json +23 -0
  173. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-univ3-eth-sushi.json +9 -0
  174. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-univ3-sushi-eth.json +16 -0
  175. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-univ3-curvev1-usdt-dai.json +23 -0
  176. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-balancerv1-sushiv3-univ3-bal-eth-sushi.json +12 -0
  177. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-maverickv1-sushiv3-univ3-eth-usdc-mav.json +7 -0
  178. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-univ3-sushiv3-sushi-eth-wbtc.json +12 -0
  179. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-univ3-sushiv3-wbtc-eth-sushi.json +12 -0
  180. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiswap-curvev1-univ3-dai-usdc-eth.json +7 -0
  181. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiswap-univ3-usdt-dai-eth.json +7 -0
  182. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-balancerv1-eth-usdc.json +7 -0
  183. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-balancerv1-usdc-eth.json +7 -0
  184. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-univ3-eth-sushi.json +7 -0
  185. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-univ3-sushi-eth.json +7 -0
  186. package/build/executor/fixtures/executor02/routes/price-route-multiSwap-balancerv1-sushiv3-univ3-bal-eth-sushi.json +130 -0
  187. package/build/executor/fixtures/executor02/routes/price-route-multiSwap-maverickv1-sushiv3-univ3-eth-usdc-mav.json +136 -0
  188. package/build/executor/fixtures/executor02/routes/price-route-multiSwap-univ3-sushiv3-sushi-eth-wbtc.json +100 -0
  189. package/build/executor/fixtures/executor02/routes/price-route-multiSwap-univ3-sushiv3-wbtc-eth-sushi.json +100 -0
  190. package/build/executor/fixtures/executor02/routes/price-route-multiswap-curvev1-univ3-dai-usdc-eth.json +166 -0
  191. package/build/executor/fixtures/executor02/routes/price-route-multiswap-univ3-usdt-dai-eth.json +190 -0
  192. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-balancerv1-eth-usdc.json +114 -0
  193. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-balancerv1-usdc-eth.json +114 -0
  194. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-univ3-eth-sushi.json +55 -0
  195. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-univ3-sushi-eth.json +73 -0
  196. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-univ3-curvev1-usdt-dai.json +82 -0
  197. package/package.json +2 -2
  198. package/scripts/run-dex-integration-v3.ts +4 -4
  199. package/src/abi/fluid-dex/resolver.abi.json +30 -0
  200. package/src/dex/balancer-v3/balancer-v3-e2e.test.ts +0 -20
  201. package/src/dex/balancer-v3/balancer-v3-integration.test.ts +197 -2
  202. package/src/dex/balancer-v3/balancer-v3-pool.ts +13 -37
  203. package/src/dex/balancer-v3/balancer-v3.ts +1 -42
  204. package/src/dex/balancer-v3/config.ts +0 -39
  205. package/src/dex/balancer-v3/getOnChainState.ts +4 -1
  206. package/src/dex/balancer-v3/getPoolsApi.ts +23 -42
  207. package/src/dex/balancer-v3/getTopPoolsApi.ts +2 -13
  208. package/src/dex/balancer-v3/types.ts +2 -4
  209. package/src/dex/fluid-dex/config.ts +2 -2
  210. package/src/dex/fluid-dex/constants.ts +2 -1
  211. package/src/dex/fluid-dex/fluid-dex-e2e.test.ts +61 -117
  212. package/src/dex/fluid-dex/fluid-dex-liquidity-proxy.ts +3 -0
  213. package/src/dex/fluid-dex/fluid-dex.ts +96 -94
  214. package/src/dex/fluid-dex/types.ts +3 -0
  215. package/tests/constants-e2e.ts +2 -7
  216. package/tests/tenderly-simulation.ts +1 -0
  217. package/.idea/aws.xml +0 -17
  218. package/.idea/codeStyles/Project.xml +0 -19
  219. package/.idea/codeStyles/codeStyleConfig.xml +0 -5
  220. package/.idea/misc.xml +0 -6
  221. package/.idea/modules.xml +0 -8
  222. package/.idea/paraswap-dex-lib.iml +0 -9
  223. package/.idea/prettier.xml +0 -7
  224. package/.idea/vcs.xml +0 -6
  225. package/build/abi/balancer-v3/directionalFeeHook.json +0 -684
  226. package/build/abi/integral/factory.json +0 -333
  227. package/build/dex/bProtocol.d.ts +0 -18
  228. package/build/dex/bProtocol.js +0 -39
  229. package/build/dex/bProtocol.js.map +0 -1
  230. package/build/dex/balancer-v3/balancer-test-helpers.d.ts +0 -5
  231. package/build/dex/balancer-v3/balancer-test-helpers.js +0 -122
  232. package/build/dex/balancer-v3/balancer-test-helpers.js.map +0 -1
  233. package/build/dex/balancer-v3/hooks/balancer-hook-event-subscriber.d.ts +0 -54
  234. package/build/dex/balancer-v3/hooks/balancer-hook-event-subscriber.js +0 -139
  235. package/build/dex/balancer-v3/hooks/balancer-hook-event-subscriber.js.map +0 -1
  236. package/build/dex/balancer-v3/hooks/directionalFeeHook.d.ts +0 -26
  237. package/build/dex/balancer-v3/hooks/directionalFeeHook.js +0 -41
  238. package/build/dex/balancer-v3/hooks/directionalFeeHook.js.map +0 -1
  239. package/build/dex/balancer-v3/hooks/loadHooksConfig.d.ts +0 -2
  240. package/build/dex/balancer-v3/hooks/loadHooksConfig.js +0 -11
  241. package/build/dex/balancer-v3/hooks/loadHooksConfig.js.map +0 -1
  242. package/build/dex/balancer-v3/hooks/stableSurgeHook.d.ts +0 -39
  243. package/build/dex/balancer-v3/hooks/stableSurgeHook.js +0 -115
  244. package/build/dex/balancer-v3/hooks/stableSurgeHook.js.map +0 -1
  245. package/build/dex/bancor.d.ts +0 -26
  246. package/build/dex/bancor.js +0 -58
  247. package/build/dex/bancor.js.map +0 -1
  248. package/build/dex/compound.d.ts +0 -18
  249. package/build/dex/compound.js +0 -46
  250. package/build/dex/compound.js.map +0 -1
  251. package/build/dex/curve-v2.d.ts +0 -58
  252. package/build/dex/curve-v2.js +0 -180
  253. package/build/dex/curve-v2.js.map +0 -1
  254. package/build/dex/dodo-v1.d.ts +0 -33
  255. package/build/dex/dodo-v1.js +0 -63
  256. package/build/dex/dodo-v1.js.map +0 -1
  257. package/build/dex/fluid-dex/fluid-dex-generate-pool.d.ts +0 -49
  258. package/build/dex/fluid-dex/fluid-dex-generate-pool.js +0 -104
  259. package/build/dex/fluid-dex/fluid-dex-generate-pool.js.map +0 -1
  260. package/build/dex/integral/config.d.ts +0 -4
  261. package/build/dex/integral/config.js +0 -20
  262. package/build/dex/integral/config.js.map +0 -1
  263. package/build/dex/integral/context.d.ts +0 -40
  264. package/build/dex/integral/context.js +0 -158
  265. package/build/dex/integral/context.js.map +0 -1
  266. package/build/dex/integral/integral-factory.d.ts +0 -24
  267. package/build/dex/integral/integral-factory.js +0 -95
  268. package/build/dex/integral/integral-factory.js.map +0 -1
  269. package/build/dex/integral/integral-pool.d.ts +0 -50
  270. package/build/dex/integral/integral-pool.js +0 -149
  271. package/build/dex/integral/integral-pool.js.map +0 -1
  272. package/build/dex/integral/integral-pricing.d.ts +0 -18
  273. package/build/dex/integral/integral-pricing.js +0 -114
  274. package/build/dex/integral/integral-pricing.js.map +0 -1
  275. package/build/dex/integral/integral-relayer.d.ts +0 -42
  276. package/build/dex/integral/integral-relayer.js +0 -192
  277. package/build/dex/integral/integral-relayer.js.map +0 -1
  278. package/build/dex/integral/integral-token.d.ts +0 -27
  279. package/build/dex/integral/integral-token.js +0 -59
  280. package/build/dex/integral/integral-token.js.map +0 -1
  281. package/build/dex/integral/integral.js +0 -376
  282. package/build/dex/integral/integral.js.map +0 -1
  283. package/build/dex/integral/types.d.ts +0 -85
  284. package/build/dex/integral/types.js +0 -9
  285. package/build/dex/integral/types.js.map +0 -1
  286. package/build/dex/integral/utils-e2e.d.ts +0 -9
  287. package/build/dex/integral/utils-e2e.js +0 -131
  288. package/build/dex/integral/utils-e2e.js.map +0 -1
  289. package/build/dex/integral/utils.d.ts +0 -17
  290. package/build/dex/integral/utils.js +0 -94
  291. package/build/dex/integral/utils.js.map +0 -1
  292. package/build/dex/lido.d.ts +0 -19
  293. package/build/dex/lido.js +0 -42
  294. package/build/dex/lido.js.map +0 -1
  295. package/build/dex/onebit.d.ts +0 -25
  296. package/build/dex/onebit.js +0 -42
  297. package/build/dex/onebit.js.map +0 -1
  298. package/build/dex/smoothy.d.ts +0 -26
  299. package/build/dex/smoothy.js +0 -48
  300. package/build/dex/smoothy.js.map +0 -1
  301. package/build/dex/stable-pool.d.ts +0 -28
  302. package/build/dex/stable-pool.js +0 -62
  303. package/build/dex/stable-pool.js.map +0 -1
  304. package/build/dex/trader-joe-v2.1/optimizer.d.ts +0 -2
  305. package/build/dex/trader-joe-v2.1/optimizer.js +0 -47
  306. package/build/dex/trader-joe-v2.1/optimizer.js.map +0 -1
  307. package/build/dex/trader-joe-v2.1/trader-joe-v2.1-new.d.ts +0 -7
  308. package/build/dex/trader-joe-v2.1/trader-joe-v2.1-new.js +0 -20
  309. package/build/dex/trader-joe-v2.1/trader-joe-v2.1-new.js.map +0 -1
  310. package/build/dex/trader-joe-v2.1.d.ts +0 -43
  311. package/build/dex/trader-joe-v2.1.js +0 -79
  312. package/build/dex/trader-joe-v2.1.js.map +0 -1
  313. package/src/abi/balancer-v3/directionalFeeHook.json +0 -684
  314. package/src/abi/balancer-v3/stableSurgeHook.json +0 -976
  315. package/src/dex/balancer-v3/balancer-hooks-events.test.ts +0 -166
  316. package/src/dex/balancer-v3/balancer-stableSurge.test.ts +0 -110
  317. package/src/dex/balancer-v3/balancer-test-helpers.ts +0 -199
  318. package/src/dex/balancer-v3/hooks/balancer-hook-event-subscriber.ts +0 -211
  319. package/src/dex/balancer-v3/hooks/directionalFeeHook.ts +0 -51
  320. package/src/dex/balancer-v3/hooks/loadHooksConfig.ts +0 -12
  321. package/src/dex/balancer-v3/hooks/stableSurgeHook.ts +0 -193
@@ -2,18 +2,23 @@
2
2
  {
3
3
  "inputs": [
4
4
  {
5
- "internalType": "contract IVault",
6
- "name": "vault",
5
+ "internalType": "contract IAuthorizer",
6
+ "name": "authorizer",
7
+ "type": "address"
8
+ },
9
+ {
10
+ "internalType": "contract IWETH",
11
+ "name": "weth",
7
12
  "type": "address"
8
13
  },
9
14
  {
10
15
  "internalType": "uint256",
11
- "name": "defaultMaxSurgeFeePercentage",
16
+ "name": "pauseWindowDuration",
12
17
  "type": "uint256"
13
18
  },
14
19
  {
15
20
  "internalType": "uint256",
16
- "name": "defaultSurgeThresholdPercentage",
21
+ "name": "bufferPeriodDuration",
17
22
  "type": "uint256"
18
23
  }
19
24
  ],
@@ -21,339 +26,539 @@
21
26
  "type": "constructor"
22
27
  },
23
28
  {
24
- "inputs": [],
25
- "name": "InputLengthMismatch",
26
- "type": "error"
29
+ "anonymous": false,
30
+ "inputs": [
31
+ {
32
+ "indexed": true,
33
+ "internalType": "contract IAuthorizer",
34
+ "name": "newAuthorizer",
35
+ "type": "address"
36
+ }
37
+ ],
38
+ "name": "AuthorizerChanged",
39
+ "type": "event"
27
40
  },
28
41
  {
29
- "inputs": [],
30
- "name": "InvalidPercentage",
31
- "type": "error"
42
+ "anonymous": false,
43
+ "inputs": [
44
+ {
45
+ "indexed": true,
46
+ "internalType": "contract IERC20",
47
+ "name": "token",
48
+ "type": "address"
49
+ },
50
+ {
51
+ "indexed": true,
52
+ "internalType": "address",
53
+ "name": "sender",
54
+ "type": "address"
55
+ },
56
+ {
57
+ "indexed": false,
58
+ "internalType": "address",
59
+ "name": "recipient",
60
+ "type": "address"
61
+ },
62
+ {
63
+ "indexed": false,
64
+ "internalType": "uint256",
65
+ "name": "amount",
66
+ "type": "uint256"
67
+ }
68
+ ],
69
+ "name": "ExternalBalanceTransfer",
70
+ "type": "event"
32
71
  },
33
72
  {
73
+ "anonymous": false,
34
74
  "inputs": [
35
75
  {
36
- "internalType": "uint8",
37
- "name": "bits",
38
- "type": "uint8"
76
+ "indexed": true,
77
+ "internalType": "contract IFlashLoanRecipient",
78
+ "name": "recipient",
79
+ "type": "address"
80
+ },
81
+ {
82
+ "indexed": true,
83
+ "internalType": "contract IERC20",
84
+ "name": "token",
85
+ "type": "address"
86
+ },
87
+ {
88
+ "indexed": false,
89
+ "internalType": "uint256",
90
+ "name": "amount",
91
+ "type": "uint256"
39
92
  },
40
93
  {
94
+ "indexed": false,
41
95
  "internalType": "uint256",
42
- "name": "value",
96
+ "name": "feeAmount",
43
97
  "type": "uint256"
44
98
  }
45
99
  ],
46
- "name": "SafeCastOverflowedUintDowncast",
47
- "type": "error"
100
+ "name": "FlashLoan",
101
+ "type": "event"
48
102
  },
49
103
  {
104
+ "anonymous": false,
50
105
  "inputs": [
51
106
  {
107
+ "indexed": true,
52
108
  "internalType": "address",
53
- "name": "sender",
109
+ "name": "user",
110
+ "type": "address"
111
+ },
112
+ {
113
+ "indexed": true,
114
+ "internalType": "contract IERC20",
115
+ "name": "token",
54
116
  "type": "address"
117
+ },
118
+ {
119
+ "indexed": false,
120
+ "internalType": "int256",
121
+ "name": "delta",
122
+ "type": "int256"
55
123
  }
56
124
  ],
57
- "name": "SenderIsNotVault",
58
- "type": "error"
125
+ "name": "InternalBalanceChanged",
126
+ "type": "event"
59
127
  },
60
128
  {
61
- "inputs": [],
62
- "name": "SenderNotAllowed",
63
- "type": "error"
129
+ "anonymous": false,
130
+ "inputs": [
131
+ {
132
+ "indexed": false,
133
+ "internalType": "bool",
134
+ "name": "paused",
135
+ "type": "bool"
136
+ }
137
+ ],
138
+ "name": "PausedStateChanged",
139
+ "type": "event"
64
140
  },
65
141
  {
66
142
  "anonymous": false,
67
143
  "inputs": [
144
+ {
145
+ "indexed": true,
146
+ "internalType": "bytes32",
147
+ "name": "poolId",
148
+ "type": "bytes32"
149
+ },
68
150
  {
69
151
  "indexed": true,
70
152
  "internalType": "address",
71
- "name": "pool",
153
+ "name": "liquidityProvider",
72
154
  "type": "address"
73
155
  },
74
156
  {
75
157
  "indexed": false,
76
- "internalType": "uint256",
77
- "name": "newMaxSurgeFeePercentage",
78
- "type": "uint256"
158
+ "internalType": "contract IERC20[]",
159
+ "name": "tokens",
160
+ "type": "address[]"
161
+ },
162
+ {
163
+ "indexed": false,
164
+ "internalType": "int256[]",
165
+ "name": "deltas",
166
+ "type": "int256[]"
167
+ },
168
+ {
169
+ "indexed": false,
170
+ "internalType": "uint256[]",
171
+ "name": "protocolFeeAmounts",
172
+ "type": "uint256[]"
79
173
  }
80
174
  ],
81
- "name": "MaxSurgeFeePercentageChanged",
175
+ "name": "PoolBalanceChanged",
82
176
  "type": "event"
83
177
  },
84
178
  {
85
179
  "anonymous": false,
86
180
  "inputs": [
181
+ {
182
+ "indexed": true,
183
+ "internalType": "bytes32",
184
+ "name": "poolId",
185
+ "type": "bytes32"
186
+ },
87
187
  {
88
188
  "indexed": true,
89
189
  "internalType": "address",
90
- "name": "pool",
190
+ "name": "assetManager",
91
191
  "type": "address"
92
192
  },
93
193
  {
94
194
  "indexed": true,
95
- "internalType": "address",
96
- "name": "factory",
195
+ "internalType": "contract IERC20",
196
+ "name": "token",
97
197
  "type": "address"
198
+ },
199
+ {
200
+ "indexed": false,
201
+ "internalType": "int256",
202
+ "name": "cashDelta",
203
+ "type": "int256"
204
+ },
205
+ {
206
+ "indexed": false,
207
+ "internalType": "int256",
208
+ "name": "managedDelta",
209
+ "type": "int256"
98
210
  }
99
211
  ],
100
- "name": "StableSurgeHookRegistered",
212
+ "name": "PoolBalanceManaged",
101
213
  "type": "event"
102
214
  },
103
215
  {
104
216
  "anonymous": false,
105
217
  "inputs": [
218
+ {
219
+ "indexed": true,
220
+ "internalType": "bytes32",
221
+ "name": "poolId",
222
+ "type": "bytes32"
223
+ },
106
224
  {
107
225
  "indexed": true,
108
226
  "internalType": "address",
109
- "name": "pool",
227
+ "name": "poolAddress",
110
228
  "type": "address"
111
229
  },
112
230
  {
113
231
  "indexed": false,
114
- "internalType": "uint256",
115
- "name": "newSurgeThresholdPercentage",
116
- "type": "uint256"
232
+ "internalType": "enum IVault.PoolSpecialization",
233
+ "name": "specialization",
234
+ "type": "uint8"
117
235
  }
118
236
  ],
119
- "name": "ThresholdSurgePercentageChanged",
237
+ "name": "PoolRegistered",
120
238
  "type": "event"
121
239
  },
122
240
  {
241
+ "anonymous": false,
123
242
  "inputs": [
124
243
  {
125
- "internalType": "bytes4",
126
- "name": "selector",
127
- "type": "bytes4"
128
- }
129
- ],
130
- "name": "getActionId",
131
- "outputs": [
244
+ "indexed": true,
245
+ "internalType": "address",
246
+ "name": "relayer",
247
+ "type": "address"
248
+ },
132
249
  {
133
- "internalType": "bytes32",
134
- "name": "",
135
- "type": "bytes32"
250
+ "indexed": true,
251
+ "internalType": "address",
252
+ "name": "sender",
253
+ "type": "address"
254
+ },
255
+ {
256
+ "indexed": false,
257
+ "internalType": "bool",
258
+ "name": "approved",
259
+ "type": "bool"
136
260
  }
137
261
  ],
138
- "stateMutability": "view",
139
- "type": "function"
262
+ "name": "RelayerApprovalChanged",
263
+ "type": "event"
140
264
  },
141
265
  {
142
- "inputs": [],
143
- "name": "getAllowedPoolFactory",
144
- "outputs": [
266
+ "anonymous": false,
267
+ "inputs": [
145
268
  {
146
- "internalType": "address",
147
- "name": "",
269
+ "indexed": true,
270
+ "internalType": "bytes32",
271
+ "name": "poolId",
272
+ "type": "bytes32"
273
+ },
274
+ {
275
+ "indexed": true,
276
+ "internalType": "contract IERC20",
277
+ "name": "tokenIn",
278
+ "type": "address"
279
+ },
280
+ {
281
+ "indexed": true,
282
+ "internalType": "contract IERC20",
283
+ "name": "tokenOut",
148
284
  "type": "address"
285
+ },
286
+ {
287
+ "indexed": false,
288
+ "internalType": "uint256",
289
+ "name": "amountIn",
290
+ "type": "uint256"
291
+ },
292
+ {
293
+ "indexed": false,
294
+ "internalType": "uint256",
295
+ "name": "amountOut",
296
+ "type": "uint256"
149
297
  }
150
298
  ],
151
- "stateMutability": "view",
152
- "type": "function"
299
+ "name": "Swap",
300
+ "type": "event"
153
301
  },
154
302
  {
155
- "inputs": [],
156
- "name": "getAuthorizer",
157
- "outputs": [
303
+ "anonymous": false,
304
+ "inputs": [
158
305
  {
159
- "internalType": "contract IAuthorizer",
160
- "name": "",
161
- "type": "address"
306
+ "indexed": true,
307
+ "internalType": "bytes32",
308
+ "name": "poolId",
309
+ "type": "bytes32"
310
+ },
311
+ {
312
+ "indexed": false,
313
+ "internalType": "contract IERC20[]",
314
+ "name": "tokens",
315
+ "type": "address[]"
162
316
  }
163
317
  ],
164
- "stateMutability": "view",
165
- "type": "function"
318
+ "name": "TokensDeregistered",
319
+ "type": "event"
166
320
  },
167
321
  {
168
- "inputs": [],
169
- "name": "getDefaultMaxSurgeFeePercentage",
170
- "outputs": [
322
+ "anonymous": false,
323
+ "inputs": [
171
324
  {
172
- "internalType": "uint256",
173
- "name": "",
174
- "type": "uint256"
325
+ "indexed": true,
326
+ "internalType": "bytes32",
327
+ "name": "poolId",
328
+ "type": "bytes32"
329
+ },
330
+ {
331
+ "indexed": false,
332
+ "internalType": "contract IERC20[]",
333
+ "name": "tokens",
334
+ "type": "address[]"
335
+ },
336
+ {
337
+ "indexed": false,
338
+ "internalType": "address[]",
339
+ "name": "assetManagers",
340
+ "type": "address[]"
175
341
  }
176
342
  ],
177
- "stateMutability": "view",
178
- "type": "function"
343
+ "name": "TokensRegistered",
344
+ "type": "event"
179
345
  },
180
346
  {
181
347
  "inputs": [],
182
- "name": "getDefaultSurgeThresholdPercentage",
348
+ "name": "WETH",
183
349
  "outputs": [
184
350
  {
185
- "internalType": "uint256",
351
+ "internalType": "contract IWETH",
186
352
  "name": "",
187
- "type": "uint256"
353
+ "type": "address"
188
354
  }
189
355
  ],
190
356
  "stateMutability": "view",
191
357
  "type": "function"
192
358
  },
193
359
  {
194
- "inputs": [],
195
- "name": "getHookFlags",
196
- "outputs": [
360
+ "inputs": [
361
+ {
362
+ "internalType": "enum IVault.SwapKind",
363
+ "name": "kind",
364
+ "type": "uint8"
365
+ },
197
366
  {
198
367
  "components": [
199
368
  {
200
- "internalType": "bool",
201
- "name": "enableHookAdjustedAmounts",
202
- "type": "bool"
203
- },
204
- {
205
- "internalType": "bool",
206
- "name": "shouldCallBeforeInitialize",
207
- "type": "bool"
369
+ "internalType": "bytes32",
370
+ "name": "poolId",
371
+ "type": "bytes32"
208
372
  },
209
373
  {
210
- "internalType": "bool",
211
- "name": "shouldCallAfterInitialize",
212
- "type": "bool"
374
+ "internalType": "uint256",
375
+ "name": "assetInIndex",
376
+ "type": "uint256"
213
377
  },
214
378
  {
215
- "internalType": "bool",
216
- "name": "shouldCallComputeDynamicSwapFee",
217
- "type": "bool"
379
+ "internalType": "uint256",
380
+ "name": "assetOutIndex",
381
+ "type": "uint256"
218
382
  },
219
383
  {
220
- "internalType": "bool",
221
- "name": "shouldCallBeforeSwap",
222
- "type": "bool"
384
+ "internalType": "uint256",
385
+ "name": "amount",
386
+ "type": "uint256"
223
387
  },
224
388
  {
225
- "internalType": "bool",
226
- "name": "shouldCallAfterSwap",
227
- "type": "bool"
228
- },
389
+ "internalType": "bytes",
390
+ "name": "userData",
391
+ "type": "bytes"
392
+ }
393
+ ],
394
+ "internalType": "struct IVault.BatchSwapStep[]",
395
+ "name": "swaps",
396
+ "type": "tuple[]"
397
+ },
398
+ {
399
+ "internalType": "contract IAsset[]",
400
+ "name": "assets",
401
+ "type": "address[]"
402
+ },
403
+ {
404
+ "components": [
229
405
  {
230
- "internalType": "bool",
231
- "name": "shouldCallBeforeAddLiquidity",
232
- "type": "bool"
406
+ "internalType": "address",
407
+ "name": "sender",
408
+ "type": "address"
233
409
  },
234
410
  {
235
411
  "internalType": "bool",
236
- "name": "shouldCallAfterAddLiquidity",
412
+ "name": "fromInternalBalance",
237
413
  "type": "bool"
238
414
  },
239
415
  {
240
- "internalType": "bool",
241
- "name": "shouldCallBeforeRemoveLiquidity",
242
- "type": "bool"
416
+ "internalType": "address payable",
417
+ "name": "recipient",
418
+ "type": "address"
243
419
  },
244
420
  {
245
421
  "internalType": "bool",
246
- "name": "shouldCallAfterRemoveLiquidity",
422
+ "name": "toInternalBalance",
247
423
  "type": "bool"
248
424
  }
249
425
  ],
250
- "internalType": "struct HookFlags",
251
- "name": "hookFlags",
426
+ "internalType": "struct IVault.FundManagement",
427
+ "name": "funds",
252
428
  "type": "tuple"
429
+ },
430
+ {
431
+ "internalType": "int256[]",
432
+ "name": "limits",
433
+ "type": "int256[]"
434
+ },
435
+ {
436
+ "internalType": "uint256",
437
+ "name": "deadline",
438
+ "type": "uint256"
253
439
  }
254
440
  ],
255
- "stateMutability": "pure",
441
+ "name": "batchSwap",
442
+ "outputs": [
443
+ {
444
+ "internalType": "int256[]",
445
+ "name": "assetDeltas",
446
+ "type": "int256[]"
447
+ }
448
+ ],
449
+ "stateMutability": "payable",
256
450
  "type": "function"
257
451
  },
258
452
  {
259
453
  "inputs": [
260
454
  {
261
- "internalType": "address",
262
- "name": "pool",
263
- "type": "address"
264
- }
265
- ],
266
- "name": "getMaxSurgeFeePercentage",
267
- "outputs": [
455
+ "internalType": "bytes32",
456
+ "name": "poolId",
457
+ "type": "bytes32"
458
+ },
268
459
  {
269
- "internalType": "uint256",
270
- "name": "",
271
- "type": "uint256"
460
+ "internalType": "contract IERC20[]",
461
+ "name": "tokens",
462
+ "type": "address[]"
272
463
  }
273
464
  ],
274
- "stateMutability": "view",
465
+ "name": "deregisterTokens",
466
+ "outputs": [],
467
+ "stateMutability": "nonpayable",
275
468
  "type": "function"
276
469
  },
277
470
  {
278
471
  "inputs": [
472
+ {
473
+ "internalType": "bytes32",
474
+ "name": "poolId",
475
+ "type": "bytes32"
476
+ },
477
+ {
478
+ "internalType": "address",
479
+ "name": "sender",
480
+ "type": "address"
481
+ },
482
+ {
483
+ "internalType": "address payable",
484
+ "name": "recipient",
485
+ "type": "address"
486
+ },
279
487
  {
280
488
  "components": [
281
489
  {
282
- "internalType": "enum SwapKind",
283
- "name": "kind",
284
- "type": "uint8"
285
- },
286
- {
287
- "internalType": "uint256",
288
- "name": "amountGivenScaled18",
289
- "type": "uint256"
490
+ "internalType": "contract IAsset[]",
491
+ "name": "assets",
492
+ "type": "address[]"
290
493
  },
291
494
  {
292
495
  "internalType": "uint256[]",
293
- "name": "balancesScaled18",
496
+ "name": "minAmountsOut",
294
497
  "type": "uint256[]"
295
498
  },
296
- {
297
- "internalType": "uint256",
298
- "name": "indexIn",
299
- "type": "uint256"
300
- },
301
- {
302
- "internalType": "uint256",
303
- "name": "indexOut",
304
- "type": "uint256"
305
- },
306
- {
307
- "internalType": "address",
308
- "name": "router",
309
- "type": "address"
310
- },
311
499
  {
312
500
  "internalType": "bytes",
313
501
  "name": "userData",
314
502
  "type": "bytes"
503
+ },
504
+ {
505
+ "internalType": "bool",
506
+ "name": "toInternalBalance",
507
+ "type": "bool"
315
508
  }
316
509
  ],
317
- "internalType": "struct PoolSwapParams",
318
- "name": "params",
510
+ "internalType": "struct IVault.ExitPoolRequest",
511
+ "name": "request",
319
512
  "type": "tuple"
320
- },
513
+ }
514
+ ],
515
+ "name": "exitPool",
516
+ "outputs": [],
517
+ "stateMutability": "nonpayable",
518
+ "type": "function"
519
+ },
520
+ {
521
+ "inputs": [
321
522
  {
322
- "internalType": "address",
323
- "name": "pool",
523
+ "internalType": "contract IFlashLoanRecipient",
524
+ "name": "recipient",
324
525
  "type": "address"
325
526
  },
326
527
  {
327
- "internalType": "uint256",
328
- "name": "staticFeePercentage",
329
- "type": "uint256"
330
- }
331
- ],
332
- "name": "getSurgeFeePercentage",
333
- "outputs": [
528
+ "internalType": "contract IERC20[]",
529
+ "name": "tokens",
530
+ "type": "address[]"
531
+ },
334
532
  {
335
- "internalType": "uint256",
336
- "name": "",
337
- "type": "uint256"
533
+ "internalType": "uint256[]",
534
+ "name": "amounts",
535
+ "type": "uint256[]"
536
+ },
537
+ {
538
+ "internalType": "bytes",
539
+ "name": "userData",
540
+ "type": "bytes"
338
541
  }
339
542
  ],
340
- "stateMutability": "view",
543
+ "name": "flashLoan",
544
+ "outputs": [],
545
+ "stateMutability": "nonpayable",
341
546
  "type": "function"
342
547
  },
343
548
  {
344
549
  "inputs": [
345
550
  {
346
- "internalType": "address",
347
- "name": "pool",
348
- "type": "address"
551
+ "internalType": "bytes4",
552
+ "name": "selector",
553
+ "type": "bytes4"
349
554
  }
350
555
  ],
351
- "name": "getSurgeThresholdPercentage",
556
+ "name": "getActionId",
352
557
  "outputs": [
353
558
  {
354
- "internalType": "uint256",
559
+ "internalType": "bytes32",
355
560
  "name": "",
356
- "type": "uint256"
561
+ "type": "bytes32"
357
562
  }
358
563
  ],
359
564
  "stateMutability": "view",
@@ -361,10 +566,10 @@
361
566
  },
362
567
  {
363
568
  "inputs": [],
364
- "name": "getVault",
569
+ "name": "getAuthorizer",
365
570
  "outputs": [
366
571
  {
367
- "internalType": "contract IVault",
572
+ "internalType": "contract IAuthorizer",
368
573
  "name": "",
369
574
  "type": "address"
370
575
  }
@@ -373,233 +578,416 @@
373
578
  "type": "function"
374
579
  },
375
580
  {
376
- "inputs": [
581
+ "inputs": [],
582
+ "name": "getDomainSeparator",
583
+ "outputs": [
377
584
  {
378
- "internalType": "address",
585
+ "internalType": "bytes32",
379
586
  "name": "",
380
- "type": "address"
381
- },
587
+ "type": "bytes32"
588
+ }
589
+ ],
590
+ "stateMutability": "view",
591
+ "type": "function"
592
+ },
593
+ {
594
+ "inputs": [
382
595
  {
383
596
  "internalType": "address",
384
- "name": "",
597
+ "name": "user",
385
598
  "type": "address"
386
599
  },
387
600
  {
388
- "internalType": "enum AddLiquidityKind",
389
- "name": "",
390
- "type": "uint8"
391
- },
601
+ "internalType": "contract IERC20[]",
602
+ "name": "tokens",
603
+ "type": "address[]"
604
+ }
605
+ ],
606
+ "name": "getInternalBalance",
607
+ "outputs": [
392
608
  {
393
609
  "internalType": "uint256[]",
394
- "name": "",
610
+ "name": "balances",
395
611
  "type": "uint256[]"
396
- },
612
+ }
613
+ ],
614
+ "stateMutability": "view",
615
+ "type": "function"
616
+ },
617
+ {
618
+ "inputs": [
397
619
  {
398
- "internalType": "uint256[]",
399
- "name": "amountsInRaw",
400
- "type": "uint256[]"
401
- },
620
+ "internalType": "address",
621
+ "name": "user",
622
+ "type": "address"
623
+ }
624
+ ],
625
+ "name": "getNextNonce",
626
+ "outputs": [
402
627
  {
403
628
  "internalType": "uint256",
404
629
  "name": "",
405
630
  "type": "uint256"
406
- },
407
- {
408
- "internalType": "uint256[]",
409
- "name": "",
410
- "type": "uint256[]"
411
- },
412
- {
413
- "internalType": "bytes",
414
- "name": "",
415
- "type": "bytes"
416
631
  }
417
632
  ],
418
- "name": "onAfterAddLiquidity",
633
+ "stateMutability": "view",
634
+ "type": "function"
635
+ },
636
+ {
637
+ "inputs": [],
638
+ "name": "getPausedState",
419
639
  "outputs": [
420
640
  {
421
641
  "internalType": "bool",
422
- "name": "",
642
+ "name": "paused",
423
643
  "type": "bool"
424
644
  },
425
645
  {
426
- "internalType": "uint256[]",
427
- "name": "",
428
- "type": "uint256[]"
646
+ "internalType": "uint256",
647
+ "name": "pauseWindowEndTime",
648
+ "type": "uint256"
649
+ },
650
+ {
651
+ "internalType": "uint256",
652
+ "name": "bufferPeriodEndTime",
653
+ "type": "uint256"
429
654
  }
430
655
  ],
431
- "stateMutability": "nonpayable",
656
+ "stateMutability": "view",
432
657
  "type": "function"
433
658
  },
434
659
  {
435
660
  "inputs": [
436
661
  {
437
- "internalType": "uint256[]",
438
- "name": "",
439
- "type": "uint256[]"
440
- },
441
- {
442
- "internalType": "uint256",
443
- "name": "",
444
- "type": "uint256"
445
- },
446
- {
447
- "internalType": "bytes",
448
- "name": "",
449
- "type": "bytes"
662
+ "internalType": "bytes32",
663
+ "name": "poolId",
664
+ "type": "bytes32"
450
665
  }
451
666
  ],
452
- "name": "onAfterInitialize",
667
+ "name": "getPool",
453
668
  "outputs": [
454
669
  {
455
- "internalType": "bool",
670
+ "internalType": "address",
456
671
  "name": "",
457
- "type": "bool"
672
+ "type": "address"
673
+ },
674
+ {
675
+ "internalType": "enum IVault.PoolSpecialization",
676
+ "name": "",
677
+ "type": "uint8"
458
678
  }
459
679
  ],
460
- "stateMutability": "nonpayable",
680
+ "stateMutability": "view",
461
681
  "type": "function"
462
682
  },
463
683
  {
464
684
  "inputs": [
465
685
  {
466
- "internalType": "address",
467
- "name": "",
468
- "type": "address"
686
+ "internalType": "bytes32",
687
+ "name": "poolId",
688
+ "type": "bytes32"
469
689
  },
470
690
  {
471
- "internalType": "address",
472
- "name": "",
691
+ "internalType": "contract IERC20",
692
+ "name": "token",
473
693
  "type": "address"
694
+ }
695
+ ],
696
+ "name": "getPoolTokenInfo",
697
+ "outputs": [
698
+ {
699
+ "internalType": "uint256",
700
+ "name": "cash",
701
+ "type": "uint256"
474
702
  },
475
703
  {
476
- "internalType": "enum RemoveLiquidityKind",
477
- "name": "",
478
- "type": "uint8"
704
+ "internalType": "uint256",
705
+ "name": "managed",
706
+ "type": "uint256"
479
707
  },
480
708
  {
481
709
  "internalType": "uint256",
482
- "name": "",
710
+ "name": "lastChangeBlock",
483
711
  "type": "uint256"
484
712
  },
485
713
  {
486
- "internalType": "uint256[]",
487
- "name": "",
488
- "type": "uint256[]"
714
+ "internalType": "address",
715
+ "name": "assetManager",
716
+ "type": "address"
717
+ }
718
+ ],
719
+ "stateMutability": "view",
720
+ "type": "function"
721
+ },
722
+ {
723
+ "inputs": [
724
+ {
725
+ "internalType": "bytes32",
726
+ "name": "poolId",
727
+ "type": "bytes32"
728
+ }
729
+ ],
730
+ "name": "getPoolTokens",
731
+ "outputs": [
732
+ {
733
+ "internalType": "contract IERC20[]",
734
+ "name": "tokens",
735
+ "type": "address[]"
489
736
  },
490
737
  {
491
738
  "internalType": "uint256[]",
492
- "name": "amountsOutRaw",
739
+ "name": "balances",
493
740
  "type": "uint256[]"
494
741
  },
495
742
  {
496
- "internalType": "uint256[]",
743
+ "internalType": "uint256",
744
+ "name": "lastChangeBlock",
745
+ "type": "uint256"
746
+ }
747
+ ],
748
+ "stateMutability": "view",
749
+ "type": "function"
750
+ },
751
+ {
752
+ "inputs": [],
753
+ "name": "getProtocolFeesCollector",
754
+ "outputs": [
755
+ {
756
+ "internalType": "contract ProtocolFeesCollector",
497
757
  "name": "",
498
- "type": "uint256[]"
758
+ "type": "address"
759
+ }
760
+ ],
761
+ "stateMutability": "view",
762
+ "type": "function"
763
+ },
764
+ {
765
+ "inputs": [
766
+ {
767
+ "internalType": "address",
768
+ "name": "user",
769
+ "type": "address"
499
770
  },
500
771
  {
501
- "internalType": "bytes",
502
- "name": "",
503
- "type": "bytes"
772
+ "internalType": "address",
773
+ "name": "relayer",
774
+ "type": "address"
504
775
  }
505
776
  ],
506
- "name": "onAfterRemoveLiquidity",
777
+ "name": "hasApprovedRelayer",
507
778
  "outputs": [
508
779
  {
509
780
  "internalType": "bool",
510
781
  "name": "",
511
782
  "type": "bool"
512
- },
513
- {
514
- "internalType": "uint256[]",
515
- "name": "",
516
- "type": "uint256[]"
517
783
  }
518
784
  ],
519
- "stateMutability": "nonpayable",
785
+ "stateMutability": "view",
520
786
  "type": "function"
521
787
  },
522
788
  {
523
789
  "inputs": [
790
+ {
791
+ "internalType": "bytes32",
792
+ "name": "poolId",
793
+ "type": "bytes32"
794
+ },
795
+ {
796
+ "internalType": "address",
797
+ "name": "sender",
798
+ "type": "address"
799
+ },
800
+ {
801
+ "internalType": "address",
802
+ "name": "recipient",
803
+ "type": "address"
804
+ },
524
805
  {
525
806
  "components": [
526
807
  {
527
- "internalType": "enum SwapKind",
808
+ "internalType": "contract IAsset[]",
809
+ "name": "assets",
810
+ "type": "address[]"
811
+ },
812
+ {
813
+ "internalType": "uint256[]",
814
+ "name": "maxAmountsIn",
815
+ "type": "uint256[]"
816
+ },
817
+ {
818
+ "internalType": "bytes",
819
+ "name": "userData",
820
+ "type": "bytes"
821
+ },
822
+ {
823
+ "internalType": "bool",
824
+ "name": "fromInternalBalance",
825
+ "type": "bool"
826
+ }
827
+ ],
828
+ "internalType": "struct IVault.JoinPoolRequest",
829
+ "name": "request",
830
+ "type": "tuple"
831
+ }
832
+ ],
833
+ "name": "joinPool",
834
+ "outputs": [],
835
+ "stateMutability": "payable",
836
+ "type": "function"
837
+ },
838
+ {
839
+ "inputs": [
840
+ {
841
+ "components": [
842
+ {
843
+ "internalType": "enum IVault.PoolBalanceOpKind",
528
844
  "name": "kind",
529
845
  "type": "uint8"
530
846
  },
531
847
  {
532
- "internalType": "contract IERC20",
533
- "name": "tokenIn",
534
- "type": "address"
848
+ "internalType": "bytes32",
849
+ "name": "poolId",
850
+ "type": "bytes32"
535
851
  },
536
852
  {
537
853
  "internalType": "contract IERC20",
538
- "name": "tokenOut",
854
+ "name": "token",
539
855
  "type": "address"
540
856
  },
541
857
  {
542
858
  "internalType": "uint256",
543
- "name": "amountInScaled18",
859
+ "name": "amount",
544
860
  "type": "uint256"
861
+ }
862
+ ],
863
+ "internalType": "struct IVault.PoolBalanceOp[]",
864
+ "name": "ops",
865
+ "type": "tuple[]"
866
+ }
867
+ ],
868
+ "name": "managePoolBalance",
869
+ "outputs": [],
870
+ "stateMutability": "nonpayable",
871
+ "type": "function"
872
+ },
873
+ {
874
+ "inputs": [
875
+ {
876
+ "components": [
877
+ {
878
+ "internalType": "enum IVault.UserBalanceOpKind",
879
+ "name": "kind",
880
+ "type": "uint8"
545
881
  },
546
882
  {
547
- "internalType": "uint256",
548
- "name": "amountOutScaled18",
549
- "type": "uint256"
883
+ "internalType": "contract IAsset",
884
+ "name": "asset",
885
+ "type": "address"
550
886
  },
551
887
  {
552
888
  "internalType": "uint256",
553
- "name": "tokenInBalanceScaled18",
889
+ "name": "amount",
554
890
  "type": "uint256"
555
891
  },
892
+ {
893
+ "internalType": "address",
894
+ "name": "sender",
895
+ "type": "address"
896
+ },
897
+ {
898
+ "internalType": "address payable",
899
+ "name": "recipient",
900
+ "type": "address"
901
+ }
902
+ ],
903
+ "internalType": "struct IVault.UserBalanceOp[]",
904
+ "name": "ops",
905
+ "type": "tuple[]"
906
+ }
907
+ ],
908
+ "name": "manageUserBalance",
909
+ "outputs": [],
910
+ "stateMutability": "payable",
911
+ "type": "function"
912
+ },
913
+ {
914
+ "inputs": [
915
+ {
916
+ "internalType": "enum IVault.SwapKind",
917
+ "name": "kind",
918
+ "type": "uint8"
919
+ },
920
+ {
921
+ "components": [
922
+ {
923
+ "internalType": "bytes32",
924
+ "name": "poolId",
925
+ "type": "bytes32"
926
+ },
556
927
  {
557
928
  "internalType": "uint256",
558
- "name": "tokenOutBalanceScaled18",
929
+ "name": "assetInIndex",
559
930
  "type": "uint256"
560
931
  },
561
932
  {
562
933
  "internalType": "uint256",
563
- "name": "amountCalculatedScaled18",
934
+ "name": "assetOutIndex",
564
935
  "type": "uint256"
565
936
  },
566
937
  {
567
938
  "internalType": "uint256",
568
- "name": "amountCalculatedRaw",
939
+ "name": "amount",
569
940
  "type": "uint256"
570
941
  },
942
+ {
943
+ "internalType": "bytes",
944
+ "name": "userData",
945
+ "type": "bytes"
946
+ }
947
+ ],
948
+ "internalType": "struct IVault.BatchSwapStep[]",
949
+ "name": "swaps",
950
+ "type": "tuple[]"
951
+ },
952
+ {
953
+ "internalType": "contract IAsset[]",
954
+ "name": "assets",
955
+ "type": "address[]"
956
+ },
957
+ {
958
+ "components": [
571
959
  {
572
960
  "internalType": "address",
573
- "name": "router",
961
+ "name": "sender",
574
962
  "type": "address"
575
963
  },
576
964
  {
577
- "internalType": "address",
578
- "name": "pool",
965
+ "internalType": "bool",
966
+ "name": "fromInternalBalance",
967
+ "type": "bool"
968
+ },
969
+ {
970
+ "internalType": "address payable",
971
+ "name": "recipient",
579
972
  "type": "address"
580
973
  },
581
974
  {
582
- "internalType": "bytes",
583
- "name": "userData",
584
- "type": "bytes"
975
+ "internalType": "bool",
976
+ "name": "toInternalBalance",
977
+ "type": "bool"
585
978
  }
586
979
  ],
587
- "internalType": "struct AfterSwapParams",
588
- "name": "",
980
+ "internalType": "struct IVault.FundManagement",
981
+ "name": "funds",
589
982
  "type": "tuple"
590
983
  }
591
984
  ],
592
- "name": "onAfterSwap",
985
+ "name": "queryBatchSwap",
593
986
  "outputs": [
594
987
  {
595
- "internalType": "bool",
596
- "name": "",
597
- "type": "bool"
598
- },
599
- {
600
- "internalType": "uint256",
988
+ "internalType": "int256[]",
601
989
  "name": "",
602
- "type": "uint256"
990
+ "type": "int256[]"
603
991
  }
604
992
  ],
605
993
  "stateMutability": "nonpayable",
@@ -608,47 +996,17 @@
608
996
  {
609
997
  "inputs": [
610
998
  {
611
- "internalType": "address",
612
- "name": "",
613
- "type": "address"
614
- },
615
- {
616
- "internalType": "address",
617
- "name": "",
618
- "type": "address"
619
- },
620
- {
621
- "internalType": "enum AddLiquidityKind",
622
- "name": "",
999
+ "internalType": "enum IVault.PoolSpecialization",
1000
+ "name": "specialization",
623
1001
  "type": "uint8"
624
- },
625
- {
626
- "internalType": "uint256[]",
627
- "name": "",
628
- "type": "uint256[]"
629
- },
630
- {
631
- "internalType": "uint256",
632
- "name": "",
633
- "type": "uint256"
634
- },
635
- {
636
- "internalType": "uint256[]",
637
- "name": "",
638
- "type": "uint256[]"
639
- },
640
- {
641
- "internalType": "bytes",
642
- "name": "",
643
- "type": "bytes"
644
1002
  }
645
1003
  ],
646
- "name": "onBeforeAddLiquidity",
1004
+ "name": "registerPool",
647
1005
  "outputs": [
648
1006
  {
649
- "internalType": "bool",
1007
+ "internalType": "bytes32",
650
1008
  "name": "",
651
- "type": "bool"
1009
+ "type": "bytes32"
652
1010
  }
653
1011
  ],
654
1012
  "stateMutability": "nonpayable",
@@ -657,134 +1015,72 @@
657
1015
  {
658
1016
  "inputs": [
659
1017
  {
660
- "internalType": "uint256[]",
661
- "name": "",
662
- "type": "uint256[]"
1018
+ "internalType": "bytes32",
1019
+ "name": "poolId",
1020
+ "type": "bytes32"
663
1021
  },
664
1022
  {
665
- "internalType": "bytes",
666
- "name": "",
667
- "type": "bytes"
668
- }
669
- ],
670
- "name": "onBeforeInitialize",
671
- "outputs": [
1023
+ "internalType": "contract IERC20[]",
1024
+ "name": "tokens",
1025
+ "type": "address[]"
1026
+ },
672
1027
  {
673
- "internalType": "bool",
674
- "name": "",
675
- "type": "bool"
1028
+ "internalType": "address[]",
1029
+ "name": "assetManagers",
1030
+ "type": "address[]"
676
1031
  }
677
1032
  ],
1033
+ "name": "registerTokens",
1034
+ "outputs": [],
678
1035
  "stateMutability": "nonpayable",
679
1036
  "type": "function"
680
1037
  },
681
1038
  {
682
1039
  "inputs": [
683
1040
  {
684
- "internalType": "address",
685
- "name": "",
686
- "type": "address"
687
- },
688
- {
689
- "internalType": "address",
690
- "name": "",
1041
+ "internalType": "contract IAuthorizer",
1042
+ "name": "newAuthorizer",
691
1043
  "type": "address"
692
- },
693
- {
694
- "internalType": "enum RemoveLiquidityKind",
695
- "name": "",
696
- "type": "uint8"
697
- },
698
- {
699
- "internalType": "uint256",
700
- "name": "",
701
- "type": "uint256"
702
- },
703
- {
704
- "internalType": "uint256[]",
705
- "name": "",
706
- "type": "uint256[]"
707
- },
708
- {
709
- "internalType": "uint256[]",
710
- "name": "",
711
- "type": "uint256[]"
712
- },
713
- {
714
- "internalType": "bytes",
715
- "name": "",
716
- "type": "bytes"
717
1044
  }
718
1045
  ],
719
- "name": "onBeforeRemoveLiquidity",
720
- "outputs": [
1046
+ "name": "setAuthorizer",
1047
+ "outputs": [],
1048
+ "stateMutability": "nonpayable",
1049
+ "type": "function"
1050
+ },
1051
+ {
1052
+ "inputs": [
721
1053
  {
722
1054
  "internalType": "bool",
723
- "name": "",
1055
+ "name": "paused",
724
1056
  "type": "bool"
725
1057
  }
726
1058
  ],
1059
+ "name": "setPaused",
1060
+ "outputs": [],
727
1061
  "stateMutability": "nonpayable",
728
1062
  "type": "function"
729
1063
  },
730
1064
  {
731
1065
  "inputs": [
732
1066
  {
733
- "components": [
734
- {
735
- "internalType": "enum SwapKind",
736
- "name": "kind",
737
- "type": "uint8"
738
- },
739
- {
740
- "internalType": "uint256",
741
- "name": "amountGivenScaled18",
742
- "type": "uint256"
743
- },
744
- {
745
- "internalType": "uint256[]",
746
- "name": "balancesScaled18",
747
- "type": "uint256[]"
748
- },
749
- {
750
- "internalType": "uint256",
751
- "name": "indexIn",
752
- "type": "uint256"
753
- },
754
- {
755
- "internalType": "uint256",
756
- "name": "indexOut",
757
- "type": "uint256"
758
- },
759
- {
760
- "internalType": "address",
761
- "name": "router",
762
- "type": "address"
763
- },
764
- {
765
- "internalType": "bytes",
766
- "name": "userData",
767
- "type": "bytes"
768
- }
769
- ],
770
- "internalType": "struct PoolSwapParams",
771
- "name": "",
772
- "type": "tuple"
1067
+ "internalType": "address",
1068
+ "name": "sender",
1069
+ "type": "address"
773
1070
  },
774
1071
  {
775
1072
  "internalType": "address",
776
- "name": "",
1073
+ "name": "relayer",
777
1074
  "type": "address"
778
- }
779
- ],
780
- "name": "onBeforeSwap",
781
- "outputs": [
1075
+ },
782
1076
  {
783
1077
  "internalType": "bool",
784
- "name": "",
1078
+ "name": "approved",
785
1079
  "type": "bool"
786
1080
  }
787
1081
  ],
1082
+ "name": "setRelayerApproval",
1083
+ "outputs": [],
788
1084
  "stateMutability": "nonpayable",
789
1085
  "type": "function"
790
1086
  },
@@ -793,184 +1089,91 @@
793
1089
  {
794
1090
  "components": [
795
1091
  {
796
- "internalType": "enum SwapKind",
797
- "name": "kind",
798
- "type": "uint8"
1092
+ "internalType": "bytes32",
1093
+ "name": "poolId",
1094
+ "type": "bytes32"
799
1095
  },
800
1096
  {
801
- "internalType": "uint256",
802
- "name": "amountGivenScaled18",
803
- "type": "uint256"
1097
+ "internalType": "enum IVault.SwapKind",
1098
+ "name": "kind",
1099
+ "type": "uint8"
804
1100
  },
805
1101
  {
806
- "internalType": "uint256[]",
807
- "name": "balancesScaled18",
808
- "type": "uint256[]"
1102
+ "internalType": "contract IAsset",
1103
+ "name": "assetIn",
1104
+ "type": "address"
809
1105
  },
810
1106
  {
811
- "internalType": "uint256",
812
- "name": "indexIn",
813
- "type": "uint256"
1107
+ "internalType": "contract IAsset",
1108
+ "name": "assetOut",
1109
+ "type": "address"
814
1110
  },
815
1111
  {
816
1112
  "internalType": "uint256",
817
- "name": "indexOut",
1113
+ "name": "amount",
818
1114
  "type": "uint256"
819
1115
  },
820
- {
821
- "internalType": "address",
822
- "name": "router",
823
- "type": "address"
824
- },
825
1116
  {
826
1117
  "internalType": "bytes",
827
1118
  "name": "userData",
828
1119
  "type": "bytes"
829
1120
  }
830
1121
  ],
831
- "internalType": "struct PoolSwapParams",
832
- "name": "params",
1122
+ "internalType": "struct IVault.SingleSwap",
1123
+ "name": "singleSwap",
833
1124
  "type": "tuple"
834
1125
  },
835
- {
836
- "internalType": "address",
837
- "name": "pool",
838
- "type": "address"
839
- },
840
- {
841
- "internalType": "uint256",
842
- "name": "staticSwapFeePercentage",
843
- "type": "uint256"
844
- }
845
- ],
846
- "name": "onComputeDynamicSwapFeePercentage",
847
- "outputs": [
848
- {
849
- "internalType": "bool",
850
- "name": "",
851
- "type": "bool"
852
- },
853
- {
854
- "internalType": "uint256",
855
- "name": "",
856
- "type": "uint256"
857
- }
858
- ],
859
- "stateMutability": "view",
860
- "type": "function"
861
- },
862
- {
863
- "inputs": [
864
- {
865
- "internalType": "address",
866
- "name": "factory",
867
- "type": "address"
868
- },
869
- {
870
- "internalType": "address",
871
- "name": "pool",
872
- "type": "address"
873
- },
874
1126
  {
875
1127
  "components": [
876
1128
  {
877
- "internalType": "contract IERC20",
878
- "name": "token",
879
- "type": "address"
880
- },
881
- {
882
- "internalType": "enum TokenType",
883
- "name": "tokenType",
884
- "type": "uint8"
885
- },
886
- {
887
- "internalType": "contract IRateProvider",
888
- "name": "rateProvider",
1129
+ "internalType": "address",
1130
+ "name": "sender",
889
1131
  "type": "address"
890
1132
  },
891
1133
  {
892
1134
  "internalType": "bool",
893
- "name": "paysYieldFees",
894
- "type": "bool"
895
- }
896
- ],
897
- "internalType": "struct TokenConfig[]",
898
- "name": "",
899
- "type": "tuple[]"
900
- },
901
- {
902
- "components": [
903
- {
904
- "internalType": "bool",
905
- "name": "disableUnbalancedLiquidity",
906
- "type": "bool"
907
- },
908
- {
909
- "internalType": "bool",
910
- "name": "enableAddLiquidityCustom",
1135
+ "name": "fromInternalBalance",
911
1136
  "type": "bool"
912
1137
  },
913
1138
  {
914
- "internalType": "bool",
915
- "name": "enableRemoveLiquidityCustom",
916
- "type": "bool"
1139
+ "internalType": "address payable",
1140
+ "name": "recipient",
1141
+ "type": "address"
917
1142
  },
918
1143
  {
919
1144
  "internalType": "bool",
920
- "name": "enableDonation",
1145
+ "name": "toInternalBalance",
921
1146
  "type": "bool"
922
1147
  }
923
1148
  ],
924
- "internalType": "struct LiquidityManagement",
925
- "name": "",
1149
+ "internalType": "struct IVault.FundManagement",
1150
+ "name": "funds",
926
1151
  "type": "tuple"
927
- }
928
- ],
929
- "name": "onRegister",
930
- "outputs": [
931
- {
932
- "internalType": "bool",
933
- "name": "",
934
- "type": "bool"
935
- }
936
- ],
937
- "stateMutability": "nonpayable",
938
- "type": "function"
939
- },
940
- {
941
- "inputs": [
1152
+ },
942
1153
  {
943
- "internalType": "address",
944
- "name": "pool",
945
- "type": "address"
1154
+ "internalType": "uint256",
1155
+ "name": "limit",
1156
+ "type": "uint256"
946
1157
  },
947
1158
  {
948
1159
  "internalType": "uint256",
949
- "name": "newMaxSurgeSurgeFeePercentage",
1160
+ "name": "deadline",
950
1161
  "type": "uint256"
951
1162
  }
952
1163
  ],
953
- "name": "setMaxSurgeFeePercentage",
954
- "outputs": [],
955
- "stateMutability": "nonpayable",
956
- "type": "function"
957
- },
958
- {
959
- "inputs": [
960
- {
961
- "internalType": "address",
962
- "name": "pool",
963
- "type": "address"
964
- },
1164
+ "name": "swap",
1165
+ "outputs": [
965
1166
  {
966
1167
  "internalType": "uint256",
967
- "name": "newSurgeThresholdPercentage",
1168
+ "name": "amountCalculated",
968
1169
  "type": "uint256"
969
1170
  }
970
1171
  ],
971
- "name": "setSurgeThresholdPercentage",
972
- "outputs": [],
973
- "stateMutability": "nonpayable",
1172
+ "stateMutability": "payable",
974
1173
  "type": "function"
1174
+ },
1175
+ {
1176
+ "stateMutability": "payable",
1177
+ "type": "receive"
975
1178
  }
976
1179
  ]