@paraswap/dex-lib 3.11.1 → 3.11.2

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 (280) hide show
  1. package/build/abi/Aave_GSM.json +751 -0
  2. package/build/abi/Balancer.json +257 -0
  3. package/build/abi/BalancerV2.json +1179 -0
  4. package/build/abi/RamsesV2Pool.abi.json +1554 -0
  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/{wombat/pool.json → angle-transmuter/ChainlinkAccessControlledOffchainAggregator.json} +594 -637
  9. package/build/abi/angle-transmuter/ChainlinkEACAggregatorProxy.json +509 -0
  10. package/build/abi/cables/CablesMainnetRFQ.json +1083 -0
  11. package/build/abi/curve-v1/CurveBUSDv2.abi.json +1356 -0
  12. package/build/abi/curve-v1/CurveTokenV1.json +305 -0
  13. package/build/abi/curve-v1/CurveTokenV2.json +318 -0
  14. package/build/abi/curve-v1/CurveV1StableNg.json +1452 -0
  15. package/build/abi/curve-v1/CurveV2Swap.json +700 -0
  16. package/build/abi/curve-v1/FactoryCryptoRegistry.json +316 -0
  17. package/build/abi/curve-v1/FactoryRegistry.json +508 -0
  18. package/build/abi/curve-v1/StableSwapAave.json +1152 -0
  19. package/build/abi/curve-v1/StableSwapBUSD.json +814 -0
  20. package/build/abi/curve-v1/StableSwapCompound.json +814 -0
  21. package/build/abi/curve-v1/StableSwapIDLE.json +1253 -0
  22. package/build/abi/curve-v1/StableSwapPax.json +865 -0
  23. package/build/abi/curve-v1/StableSwapSnow.json +900 -0
  24. package/build/abi/curve-v1/StableSwapUSDN.json +1004 -0
  25. package/build/abi/curve-v1/StableSwapUSDT.json +814 -0
  26. package/build/abi/curve-v1/StableSwapY.json +814 -0
  27. package/build/abi/inception/inception-ineth.json +609 -0
  28. package/build/abi/kyberdmm/kyber-storage.abi.json +824 -0
  29. package/build/abi/kyberdmm.abi.json +1148 -0
  30. package/build/abi/maverick-v2/MaverickV2Quoter.json +278 -0
  31. package/build/abi/nerve/nerve-metapool.json +790 -0
  32. package/build/abi/uniswap-v3/UniswapV3Quoter.abi.json +193 -0
  33. package/build/abi/velodrome-slipstream/VelodromeSlipstreamQuoterV2.abi.json +267 -0
  34. package/build/config.js +1 -0
  35. package/build/config.js.map +1 -1
  36. package/build/dex/aave-v1/aave-v1.js +0 -1
  37. package/build/dex/aave-v1/aave-v1.js.map +1 -1
  38. package/build/dex/balancer-v1/balancer-pools.json +33333 -0
  39. package/build/dex/bebop/bebop.js +1 -1
  40. package/build/dex/bebop/bebop.js.map +1 -1
  41. package/build/dex/bebop/config.js +5 -0
  42. package/build/dex/bebop/config.js.map +1 -1
  43. package/build/dex/bebop/rate-fetcher.d.ts +3 -1
  44. package/build/dex/bebop/rate-fetcher.js +42 -2
  45. package/build/dex/bebop/rate-fetcher.js.map +1 -1
  46. package/build/dex/bebop/validators.d.ts +2 -0
  47. package/build/dex/bebop/validators.js +9 -1
  48. package/build/dex/bebop/validators.js.map +1 -1
  49. package/build/dex/bebop/websocket-fetcher.d.ts +35 -0
  50. package/build/dex/bebop/websocket-fetcher.js +87 -0
  51. package/build/dex/bebop/websocket-fetcher.js.map +1 -0
  52. package/build/dex/cables/cables.d.ts +57 -0
  53. package/build/dex/cables/cables.js +471 -0
  54. package/build/dex/cables/cables.js.map +1 -0
  55. package/build/dex/cables/config.d.ts +4 -0
  56. package/build/dex/cables/config.js +15 -0
  57. package/build/dex/cables/config.js.map +1 -0
  58. package/build/dex/cables/constants.d.ts +19 -0
  59. package/build/dex/cables/constants.js +26 -0
  60. package/build/dex/cables/constants.js.map +1 -0
  61. package/build/dex/cables/rate-fetcher.d.ts +34 -0
  62. package/build/dex/cables/rate-fetcher.js +106 -0
  63. package/build/dex/cables/rate-fetcher.js.map +1 -0
  64. package/build/dex/cables/types.d.ts +106 -0
  65. package/build/dex/cables/types.js +12 -0
  66. package/build/dex/cables/types.js.map +1 -0
  67. package/build/dex/cables/validators.d.ts +5 -0
  68. package/build/dex/cables/validators.js +49 -0
  69. package/build/dex/cables/validators.js.map +1 -0
  70. package/build/dex/idle-dao/idle-dao-pool.d.ts +56 -0
  71. package/build/dex/idle-dao/idle-dao-pool.js +176 -0
  72. package/build/dex/idle-dao/idle-dao-pool.js.map +1 -0
  73. package/build/dex/idle-dao/idle-dao-pooling-pool.d.ts +16 -0
  74. package/build/dex/idle-dao/idle-dao-pooling-pool.js +57 -0
  75. package/build/dex/idle-dao/idle-dao-pooling-pool.js.map +1 -0
  76. package/build/dex/idle-dao/scripts.d.ts +9 -0
  77. package/build/dex/idle-dao/scripts.js +552 -0
  78. package/build/dex/idle-dao/scripts.js.map +1 -0
  79. package/build/dex/inception/inception-event-pool.d.ts +4 -4
  80. package/build/dex/inception/inception-event-pool.js +9 -7
  81. package/build/dex/inception/inception-event-pool.js.map +1 -1
  82. package/build/dex/inception/inception-native.d.ts +43 -0
  83. package/build/dex/inception/inception-native.js +131 -0
  84. package/build/dex/inception/inception-native.js.map +1 -0
  85. package/build/dex/inception/inception-pool.d.ts +18 -0
  86. package/build/dex/inception/inception-pool.js +32 -0
  87. package/build/dex/inception/inception-pool.js.map +1 -0
  88. package/build/dex/inception/inception-price-feed.d.ts +19 -0
  89. package/build/dex/inception/inception-price-feed.js +51 -0
  90. package/build/dex/inception/inception-price-feed.js.map +1 -0
  91. package/build/dex/inception/inception.d.ts +6 -6
  92. package/build/dex/inception/inception.js +40 -16
  93. package/build/dex/inception/inception.js.map +1 -1
  94. package/build/dex/inception/utils.d.ts +0 -1
  95. package/build/dex/inception/utils.js +1 -22
  96. package/build/dex/inception/utils.js.map +1 -1
  97. package/build/dex/platypus/platypus.js +3 -17
  98. package/build/dex/platypus/platypus.js.map +1 -1
  99. package/build/dex/swaap-v1/swaap-v1.js +0 -4
  100. package/build/dex/swaap-v1/swaap-v1.js.map +1 -1
  101. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-balancerv1-curvev1-eth-usdc-gusd.json +16 -0
  102. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-balancerv1-sushiv3-wbtc-eth-sushi.json +16 -0
  103. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-curvev1-eth-usdc-gusd.json +16 -0
  104. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-curvev1-gusd-usdc-eth.json +16 -0
  105. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-dai-usdc-eth.json +16 -0
  106. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-eth-usdc-dai.json +16 -0
  107. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-usdc-eth-wbtc.json +16 -0
  108. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-usdt-usdc-dai.json +16 -0
  109. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-balancerv1-eth-usdc.json +9 -0
  110. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-balancerv1-usdc-eth.json +9 -0
  111. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-balancerv1-usdc-wbtc.json +9 -0
  112. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-curvev1-eth-steth.json +9 -0
  113. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-curvev1-steth-eth.json +9 -0
  114. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-curvev1-usdc-usdt.json +9 -0
  115. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-univ3-eth-usdc.json +9 -0
  116. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-univ3-usdc-eth.json +9 -0
  117. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-univ3-usdc-usdt.json +9 -0
  118. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-balancerv1-sushiv3-wbtc-eth-sushi.json +12 -0
  119. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-curvev1-eth-usdc-gusd.json +7 -0
  120. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-curvev1-gusd-usdc-eth.json +7 -0
  121. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-dai-usdc-eth.json +7 -0
  122. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-eth-usdc-dai.json +7 -0
  123. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-usdc-eth-wbtc.json +12 -0
  124. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-simpleSwap-univ3-eth-usdc.json +7 -0
  125. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-simpleSwap-univ3-usdc-eth.json +7 -0
  126. package/build/executor/fixtures/executor01/routes/price-route-multiswap-balancerv1-curvev1-eth-usdc-gusd.json +78 -0
  127. package/build/executor/fixtures/executor01/routes/price-route-multiswap-balancerv1-sushiv3-wbtc-eth-sushi.json +81 -0
  128. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-curvev1-eth-usdc-gusd.json +78 -0
  129. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-curvev1-gusd-usdc-eth.json +78 -0
  130. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-dai-usdc-eth.json +81 -0
  131. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-eth-usdc-dai.json +81 -0
  132. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-usdc-eth-wbtc.json +81 -0
  133. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-usdt-usdc-dai.json +81 -0
  134. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-balancerv1-eth-usdc.json +64 -0
  135. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-balancerv1-usdc-eth.json +85 -0
  136. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-balancerv1-usdc-wbtc.json +64 -0
  137. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-curvev1-eth-steth.json +52 -0
  138. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-curvev1-steth-eth.json +52 -0
  139. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-curvev1-usdc-usdt.json +52 -0
  140. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-univ3-eth-usdc.json +55 -0
  141. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-univ3-usdc-eth.json +55 -0
  142. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-univ3-usdc-usdt.json +55 -0
  143. package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-balancerv1-sushiv3-univ3-bal-eth-sushi.json +23 -0
  144. package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-maverickv1-sushiv3-univ3-eth-usdc-mav.json +37 -0
  145. package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-univ3-sushiv3-sushi-eth-wbtc.json +23 -0
  146. package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-univ3-sushiv3-wbtc-eth-sushi.json +23 -0
  147. package/build/executor/fixtures/executor02/exchange-params/price-route-multiswap-curvev1-univ3-dai-usdc-eth.json +51 -0
  148. package/build/executor/fixtures/executor02/exchange-params/price-route-multiswap-univ3-usdt-dai-eth.json +58 -0
  149. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-balancerv1-eth-usdc.json +23 -0
  150. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-balancerv1-usdc-eth.json +23 -0
  151. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-univ3-eth-sushi.json +9 -0
  152. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-univ3-sushi-eth.json +16 -0
  153. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-univ3-curvev1-usdt-dai.json +23 -0
  154. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-balancerv1-sushiv3-univ3-bal-eth-sushi.json +12 -0
  155. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-maverickv1-sushiv3-univ3-eth-usdc-mav.json +7 -0
  156. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-univ3-sushiv3-sushi-eth-wbtc.json +12 -0
  157. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-univ3-sushiv3-wbtc-eth-sushi.json +12 -0
  158. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiswap-curvev1-univ3-dai-usdc-eth.json +7 -0
  159. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiswap-univ3-usdt-dai-eth.json +7 -0
  160. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-balancerv1-eth-usdc.json +7 -0
  161. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-balancerv1-usdc-eth.json +7 -0
  162. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-univ3-eth-sushi.json +7 -0
  163. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-univ3-sushi-eth.json +7 -0
  164. package/build/executor/fixtures/executor02/routes/price-route-multiSwap-balancerv1-sushiv3-univ3-bal-eth-sushi.json +130 -0
  165. package/build/executor/fixtures/executor02/routes/price-route-multiSwap-maverickv1-sushiv3-univ3-eth-usdc-mav.json +136 -0
  166. package/build/executor/fixtures/executor02/routes/price-route-multiSwap-univ3-sushiv3-sushi-eth-wbtc.json +100 -0
  167. package/build/executor/fixtures/executor02/routes/price-route-multiSwap-univ3-sushiv3-wbtc-eth-sushi.json +100 -0
  168. package/build/executor/fixtures/executor02/routes/price-route-multiswap-curvev1-univ3-dai-usdc-eth.json +166 -0
  169. package/build/executor/fixtures/executor02/routes/price-route-multiswap-univ3-usdt-dai-eth.json +190 -0
  170. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-balancerv1-eth-usdc.json +114 -0
  171. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-balancerv1-usdc-eth.json +114 -0
  172. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-univ3-eth-sushi.json +55 -0
  173. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-univ3-sushi-eth.json +73 -0
  174. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-univ3-curvev1-usdt-dai.json +82 -0
  175. package/build/lib/fetcher/wsFetcher.d.ts +7 -3
  176. package/build/lib/fetcher/wsFetcher.js +64 -51
  177. package/build/lib/fetcher/wsFetcher.js.map +1 -1
  178. package/package.json +4 -2
  179. package/src/config.ts +1 -0
  180. package/src/dex/bebop/bebop-e2e.test.ts +21 -0
  181. package/src/dex/bebop/bebop.json +72 -0
  182. package/src/dex/bebop/bebop.proto +15 -0
  183. package/src/dex/bebop/bebop.ts +1 -1
  184. package/src/dex/bebop/config.ts +5 -0
  185. package/src/dex/bebop/rate-fetcher.ts +51 -6
  186. package/src/dex/bebop/validators.ts +10 -0
  187. package/src/lib/fetcher/wsFetcher.ts +79 -66
  188. package/.vscode/launch.json +0 -53
  189. package/.vscode/settings.json +0 -2
  190. package/.vscode/tasks.json +0 -15
  191. package/build/abi/uniswap-v3/AlienBaseV3Router.abi.json +0 -52
  192. package/build/dex/aave-v2/tokens-avalanche.json +0 -44
  193. package/build/dex/aave-v2/tokens-mainnet.json +0 -188
  194. package/build/dex/aave-v2/tokens-polygon.json +0 -44
  195. package/build/dex/bProtocol.d.ts +0 -18
  196. package/build/dex/bProtocol.js +0 -39
  197. package/build/dex/bProtocol.js.map +0 -1
  198. package/build/dex/balancer-v3/abi/balancerBatchRouter.d.ts +0 -729
  199. package/build/dex/balancer-v3/abi/balancerBatchRouter.js +0 -732
  200. package/build/dex/balancer-v3/abi/balancerBatchRouter.js.map +0 -1
  201. package/build/dex/balancer-v3/abi/balancerRouter.d.ts +0 -1406
  202. package/build/dex/balancer-v3/abi/balancerRouter.js +0 -1175
  203. package/build/dex/balancer-v3/abi/balancerRouter.js.map +0 -1
  204. package/build/dex/balancer-v3/abi/vaultExtension.V3.d.ts +0 -2081
  205. package/build/dex/balancer-v3/abi/vaultExtension.V3.js +0 -1851
  206. package/build/dex/balancer-v3/abi/vaultExtension.V3.js.map +0 -1
  207. package/build/dex/balancer-v3/balancer-v3-pool.d.ts +0 -76
  208. package/build/dex/balancer-v3/balancer-v3-pool.js +0 -383
  209. package/build/dex/balancer-v3/balancer-v3-pool.js.map +0 -1
  210. package/build/dex/balancer-v3/balancer-v3.d.ts +0 -57
  211. package/build/dex/balancer-v3/balancer-v3.js +0 -373
  212. package/build/dex/balancer-v3/balancer-v3.js.map +0 -1
  213. package/build/dex/balancer-v3/config.d.ts +0 -8
  214. package/build/dex/balancer-v3/config.js +0 -24
  215. package/build/dex/balancer-v3/config.js.map +0 -1
  216. package/build/dex/balancer-v3/getOnChainState.d.ts +0 -10
  217. package/build/dex/balancer-v3/getOnChainState.js +0 -158
  218. package/build/dex/balancer-v3/getOnChainState.js.map +0 -1
  219. package/build/dex/balancer-v3/getPoolsApi.d.ts +0 -2
  220. package/build/dex/balancer-v3/getPoolsApi.js +0 -81
  221. package/build/dex/balancer-v3/getPoolsApi.js.map +0 -1
  222. package/build/dex/balancer-v3/getTopPoolsApi.d.ts +0 -13
  223. package/build/dex/balancer-v3/getTopPoolsApi.js +0 -62
  224. package/build/dex/balancer-v3/getTopPoolsApi.js.map +0 -1
  225. package/build/dex/balancer-v3/types.d.ts +0 -63
  226. package/build/dex/balancer-v3/types.js +0 -3
  227. package/build/dex/balancer-v3/types.js.map +0 -1
  228. package/build/dex/bancor.d.ts +0 -26
  229. package/build/dex/bancor.js +0 -58
  230. package/build/dex/bancor.js.map +0 -1
  231. package/build/dex/compound.d.ts +0 -18
  232. package/build/dex/compound.js +0 -46
  233. package/build/dex/compound.js.map +0 -1
  234. package/build/dex/curve-v2.d.ts +0 -58
  235. package/build/dex/curve-v2.js +0 -180
  236. package/build/dex/curve-v2.js.map +0 -1
  237. package/build/dex/dodo-v1.d.ts +0 -33
  238. package/build/dex/dodo-v1.js +0 -63
  239. package/build/dex/dodo-v1.js.map +0 -1
  240. package/build/dex/fluid-dex/fluid-dex-pool.d.ts +0 -47
  241. package/build/dex/fluid-dex/fluid-dex-pool.js +0 -119
  242. package/build/dex/fluid-dex/fluid-dex-pool.js.map +0 -1
  243. package/build/dex/lido.d.ts +0 -19
  244. package/build/dex/lido.js +0 -42
  245. package/build/dex/lido.js.map +0 -1
  246. package/build/dex/maker-psm/scripts/gem.abi.json +0 -136
  247. package/build/dex/maker-psm/scripts/validate-state.d.ts +0 -0
  248. package/build/dex/maker-psm/scripts/validate-state.js +0 -185
  249. package/build/dex/maker-psm/scripts/validate-state.js.map +0 -1
  250. package/build/dex/maker-psm/scripts/vat.abi.json +0 -243
  251. package/build/dex/onebit.d.ts +0 -25
  252. package/build/dex/onebit.js +0 -42
  253. package/build/dex/onebit.js.map +0 -1
  254. package/build/dex/smoothy.d.ts +0 -26
  255. package/build/dex/smoothy.js +0 -48
  256. package/build/dex/smoothy.js.map +0 -1
  257. package/build/dex/solidly-v3/scripts/check-event-pool-event.d.ts +0 -1
  258. package/build/dex/solidly-v3/scripts/check-event-pool-event.js +0 -53
  259. package/build/dex/solidly-v3/scripts/check-event-pool-event.js.map +0 -1
  260. package/build/dex/stable-pool.d.ts +0 -28
  261. package/build/dex/stable-pool.js +0 -55
  262. package/build/dex/stable-pool.js.map +0 -1
  263. package/build/dex/trader-joe-v2.1/trader-joe-v2.1-new.d.ts +0 -7
  264. package/build/dex/trader-joe-v2.1/trader-joe-v2.1-new.js +0 -20
  265. package/build/dex/trader-joe-v2.1/trader-joe-v2.1-new.js.map +0 -1
  266. package/build/dex/trader-joe-v2.1.d.ts +0 -43
  267. package/build/dex/trader-joe-v2.1.js +0 -79
  268. package/build/dex/trader-joe-v2.1.js.map +0 -1
  269. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.d.ts +0 -17
  270. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.js +0 -64
  271. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.js.map +0 -1
  272. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.d.ts +0 -17
  273. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.js +0 -79
  274. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.js.map +0 -1
  275. package/build/dex/uniswap-v3/uniswap-v3-pricing.d.ts +0 -4
  276. package/build/dex/uniswap-v3/uniswap-v3-pricing.js +0 -43
  277. package/build/dex/uniswap-v3/uniswap-v3-pricing.js.map +0 -1
  278. package/build/dex/uniswap-v3/uniswap-v3-worker.d.ts +0 -1
  279. package/build/dex/uniswap-v3/uniswap-v3-worker.js +0 -10
  280. package/build/dex/uniswap-v3/uniswap-v3-worker.js.map +0 -1
@@ -0,0 +1,1179 @@
1
+ [
2
+ {
3
+ "inputs": [
4
+ {
5
+ "internalType": "contract IAuthorizer",
6
+ "name": "authorizer",
7
+ "type": "address"
8
+ },
9
+ {
10
+ "internalType": "contract IWETH",
11
+ "name": "weth",
12
+ "type": "address"
13
+ },
14
+ {
15
+ "internalType": "uint256",
16
+ "name": "pauseWindowDuration",
17
+ "type": "uint256"
18
+ },
19
+ {
20
+ "internalType": "uint256",
21
+ "name": "bufferPeriodDuration",
22
+ "type": "uint256"
23
+ }
24
+ ],
25
+ "stateMutability": "nonpayable",
26
+ "type": "constructor"
27
+ },
28
+ {
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"
40
+ },
41
+ {
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"
71
+ },
72
+ {
73
+ "anonymous": false,
74
+ "inputs": [
75
+ {
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"
92
+ },
93
+ {
94
+ "indexed": false,
95
+ "internalType": "uint256",
96
+ "name": "feeAmount",
97
+ "type": "uint256"
98
+ }
99
+ ],
100
+ "name": "FlashLoan",
101
+ "type": "event"
102
+ },
103
+ {
104
+ "anonymous": false,
105
+ "inputs": [
106
+ {
107
+ "indexed": true,
108
+ "internalType": "address",
109
+ "name": "user",
110
+ "type": "address"
111
+ },
112
+ {
113
+ "indexed": true,
114
+ "internalType": "contract IERC20",
115
+ "name": "token",
116
+ "type": "address"
117
+ },
118
+ {
119
+ "indexed": false,
120
+ "internalType": "int256",
121
+ "name": "delta",
122
+ "type": "int256"
123
+ }
124
+ ],
125
+ "name": "InternalBalanceChanged",
126
+ "type": "event"
127
+ },
128
+ {
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"
140
+ },
141
+ {
142
+ "anonymous": false,
143
+ "inputs": [
144
+ {
145
+ "indexed": true,
146
+ "internalType": "bytes32",
147
+ "name": "poolId",
148
+ "type": "bytes32"
149
+ },
150
+ {
151
+ "indexed": true,
152
+ "internalType": "address",
153
+ "name": "liquidityProvider",
154
+ "type": "address"
155
+ },
156
+ {
157
+ "indexed": false,
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[]"
173
+ }
174
+ ],
175
+ "name": "PoolBalanceChanged",
176
+ "type": "event"
177
+ },
178
+ {
179
+ "anonymous": false,
180
+ "inputs": [
181
+ {
182
+ "indexed": true,
183
+ "internalType": "bytes32",
184
+ "name": "poolId",
185
+ "type": "bytes32"
186
+ },
187
+ {
188
+ "indexed": true,
189
+ "internalType": "address",
190
+ "name": "assetManager",
191
+ "type": "address"
192
+ },
193
+ {
194
+ "indexed": true,
195
+ "internalType": "contract IERC20",
196
+ "name": "token",
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"
210
+ }
211
+ ],
212
+ "name": "PoolBalanceManaged",
213
+ "type": "event"
214
+ },
215
+ {
216
+ "anonymous": false,
217
+ "inputs": [
218
+ {
219
+ "indexed": true,
220
+ "internalType": "bytes32",
221
+ "name": "poolId",
222
+ "type": "bytes32"
223
+ },
224
+ {
225
+ "indexed": true,
226
+ "internalType": "address",
227
+ "name": "poolAddress",
228
+ "type": "address"
229
+ },
230
+ {
231
+ "indexed": false,
232
+ "internalType": "enum IVault.PoolSpecialization",
233
+ "name": "specialization",
234
+ "type": "uint8"
235
+ }
236
+ ],
237
+ "name": "PoolRegistered",
238
+ "type": "event"
239
+ },
240
+ {
241
+ "anonymous": false,
242
+ "inputs": [
243
+ {
244
+ "indexed": true,
245
+ "internalType": "address",
246
+ "name": "relayer",
247
+ "type": "address"
248
+ },
249
+ {
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"
260
+ }
261
+ ],
262
+ "name": "RelayerApprovalChanged",
263
+ "type": "event"
264
+ },
265
+ {
266
+ "anonymous": false,
267
+ "inputs": [
268
+ {
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",
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"
297
+ }
298
+ ],
299
+ "name": "Swap",
300
+ "type": "event"
301
+ },
302
+ {
303
+ "anonymous": false,
304
+ "inputs": [
305
+ {
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[]"
316
+ }
317
+ ],
318
+ "name": "TokensDeregistered",
319
+ "type": "event"
320
+ },
321
+ {
322
+ "anonymous": false,
323
+ "inputs": [
324
+ {
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[]"
341
+ }
342
+ ],
343
+ "name": "TokensRegistered",
344
+ "type": "event"
345
+ },
346
+ {
347
+ "inputs": [],
348
+ "name": "WETH",
349
+ "outputs": [
350
+ {
351
+ "internalType": "contract IWETH",
352
+ "name": "",
353
+ "type": "address"
354
+ }
355
+ ],
356
+ "stateMutability": "view",
357
+ "type": "function"
358
+ },
359
+ {
360
+ "inputs": [
361
+ {
362
+ "internalType": "enum IVault.SwapKind",
363
+ "name": "kind",
364
+ "type": "uint8"
365
+ },
366
+ {
367
+ "components": [
368
+ {
369
+ "internalType": "bytes32",
370
+ "name": "poolId",
371
+ "type": "bytes32"
372
+ },
373
+ {
374
+ "internalType": "uint256",
375
+ "name": "assetInIndex",
376
+ "type": "uint256"
377
+ },
378
+ {
379
+ "internalType": "uint256",
380
+ "name": "assetOutIndex",
381
+ "type": "uint256"
382
+ },
383
+ {
384
+ "internalType": "uint256",
385
+ "name": "amount",
386
+ "type": "uint256"
387
+ },
388
+ {
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": [
405
+ {
406
+ "internalType": "address",
407
+ "name": "sender",
408
+ "type": "address"
409
+ },
410
+ {
411
+ "internalType": "bool",
412
+ "name": "fromInternalBalance",
413
+ "type": "bool"
414
+ },
415
+ {
416
+ "internalType": "address payable",
417
+ "name": "recipient",
418
+ "type": "address"
419
+ },
420
+ {
421
+ "internalType": "bool",
422
+ "name": "toInternalBalance",
423
+ "type": "bool"
424
+ }
425
+ ],
426
+ "internalType": "struct IVault.FundManagement",
427
+ "name": "funds",
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"
439
+ }
440
+ ],
441
+ "name": "batchSwap",
442
+ "outputs": [
443
+ {
444
+ "internalType": "int256[]",
445
+ "name": "assetDeltas",
446
+ "type": "int256[]"
447
+ }
448
+ ],
449
+ "stateMutability": "payable",
450
+ "type": "function"
451
+ },
452
+ {
453
+ "inputs": [
454
+ {
455
+ "internalType": "bytes32",
456
+ "name": "poolId",
457
+ "type": "bytes32"
458
+ },
459
+ {
460
+ "internalType": "contract IERC20[]",
461
+ "name": "tokens",
462
+ "type": "address[]"
463
+ }
464
+ ],
465
+ "name": "deregisterTokens",
466
+ "outputs": [],
467
+ "stateMutability": "nonpayable",
468
+ "type": "function"
469
+ },
470
+ {
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
+ },
487
+ {
488
+ "components": [
489
+ {
490
+ "internalType": "contract IAsset[]",
491
+ "name": "assets",
492
+ "type": "address[]"
493
+ },
494
+ {
495
+ "internalType": "uint256[]",
496
+ "name": "minAmountsOut",
497
+ "type": "uint256[]"
498
+ },
499
+ {
500
+ "internalType": "bytes",
501
+ "name": "userData",
502
+ "type": "bytes"
503
+ },
504
+ {
505
+ "internalType": "bool",
506
+ "name": "toInternalBalance",
507
+ "type": "bool"
508
+ }
509
+ ],
510
+ "internalType": "struct IVault.ExitPoolRequest",
511
+ "name": "request",
512
+ "type": "tuple"
513
+ }
514
+ ],
515
+ "name": "exitPool",
516
+ "outputs": [],
517
+ "stateMutability": "nonpayable",
518
+ "type": "function"
519
+ },
520
+ {
521
+ "inputs": [
522
+ {
523
+ "internalType": "contract IFlashLoanRecipient",
524
+ "name": "recipient",
525
+ "type": "address"
526
+ },
527
+ {
528
+ "internalType": "contract IERC20[]",
529
+ "name": "tokens",
530
+ "type": "address[]"
531
+ },
532
+ {
533
+ "internalType": "uint256[]",
534
+ "name": "amounts",
535
+ "type": "uint256[]"
536
+ },
537
+ {
538
+ "internalType": "bytes",
539
+ "name": "userData",
540
+ "type": "bytes"
541
+ }
542
+ ],
543
+ "name": "flashLoan",
544
+ "outputs": [],
545
+ "stateMutability": "nonpayable",
546
+ "type": "function"
547
+ },
548
+ {
549
+ "inputs": [
550
+ {
551
+ "internalType": "bytes4",
552
+ "name": "selector",
553
+ "type": "bytes4"
554
+ }
555
+ ],
556
+ "name": "getActionId",
557
+ "outputs": [
558
+ {
559
+ "internalType": "bytes32",
560
+ "name": "",
561
+ "type": "bytes32"
562
+ }
563
+ ],
564
+ "stateMutability": "view",
565
+ "type": "function"
566
+ },
567
+ {
568
+ "inputs": [],
569
+ "name": "getAuthorizer",
570
+ "outputs": [
571
+ {
572
+ "internalType": "contract IAuthorizer",
573
+ "name": "",
574
+ "type": "address"
575
+ }
576
+ ],
577
+ "stateMutability": "view",
578
+ "type": "function"
579
+ },
580
+ {
581
+ "inputs": [],
582
+ "name": "getDomainSeparator",
583
+ "outputs": [
584
+ {
585
+ "internalType": "bytes32",
586
+ "name": "",
587
+ "type": "bytes32"
588
+ }
589
+ ],
590
+ "stateMutability": "view",
591
+ "type": "function"
592
+ },
593
+ {
594
+ "inputs": [
595
+ {
596
+ "internalType": "address",
597
+ "name": "user",
598
+ "type": "address"
599
+ },
600
+ {
601
+ "internalType": "contract IERC20[]",
602
+ "name": "tokens",
603
+ "type": "address[]"
604
+ }
605
+ ],
606
+ "name": "getInternalBalance",
607
+ "outputs": [
608
+ {
609
+ "internalType": "uint256[]",
610
+ "name": "balances",
611
+ "type": "uint256[]"
612
+ }
613
+ ],
614
+ "stateMutability": "view",
615
+ "type": "function"
616
+ },
617
+ {
618
+ "inputs": [
619
+ {
620
+ "internalType": "address",
621
+ "name": "user",
622
+ "type": "address"
623
+ }
624
+ ],
625
+ "name": "getNextNonce",
626
+ "outputs": [
627
+ {
628
+ "internalType": "uint256",
629
+ "name": "",
630
+ "type": "uint256"
631
+ }
632
+ ],
633
+ "stateMutability": "view",
634
+ "type": "function"
635
+ },
636
+ {
637
+ "inputs": [],
638
+ "name": "getPausedState",
639
+ "outputs": [
640
+ {
641
+ "internalType": "bool",
642
+ "name": "paused",
643
+ "type": "bool"
644
+ },
645
+ {
646
+ "internalType": "uint256",
647
+ "name": "pauseWindowEndTime",
648
+ "type": "uint256"
649
+ },
650
+ {
651
+ "internalType": "uint256",
652
+ "name": "bufferPeriodEndTime",
653
+ "type": "uint256"
654
+ }
655
+ ],
656
+ "stateMutability": "view",
657
+ "type": "function"
658
+ },
659
+ {
660
+ "inputs": [
661
+ {
662
+ "internalType": "bytes32",
663
+ "name": "poolId",
664
+ "type": "bytes32"
665
+ }
666
+ ],
667
+ "name": "getPool",
668
+ "outputs": [
669
+ {
670
+ "internalType": "address",
671
+ "name": "",
672
+ "type": "address"
673
+ },
674
+ {
675
+ "internalType": "enum IVault.PoolSpecialization",
676
+ "name": "",
677
+ "type": "uint8"
678
+ }
679
+ ],
680
+ "stateMutability": "view",
681
+ "type": "function"
682
+ },
683
+ {
684
+ "inputs": [
685
+ {
686
+ "internalType": "bytes32",
687
+ "name": "poolId",
688
+ "type": "bytes32"
689
+ },
690
+ {
691
+ "internalType": "contract IERC20",
692
+ "name": "token",
693
+ "type": "address"
694
+ }
695
+ ],
696
+ "name": "getPoolTokenInfo",
697
+ "outputs": [
698
+ {
699
+ "internalType": "uint256",
700
+ "name": "cash",
701
+ "type": "uint256"
702
+ },
703
+ {
704
+ "internalType": "uint256",
705
+ "name": "managed",
706
+ "type": "uint256"
707
+ },
708
+ {
709
+ "internalType": "uint256",
710
+ "name": "lastChangeBlock",
711
+ "type": "uint256"
712
+ },
713
+ {
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[]"
736
+ },
737
+ {
738
+ "internalType": "uint256[]",
739
+ "name": "balances",
740
+ "type": "uint256[]"
741
+ },
742
+ {
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",
757
+ "name": "",
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"
770
+ },
771
+ {
772
+ "internalType": "address",
773
+ "name": "relayer",
774
+ "type": "address"
775
+ }
776
+ ],
777
+ "name": "hasApprovedRelayer",
778
+ "outputs": [
779
+ {
780
+ "internalType": "bool",
781
+ "name": "",
782
+ "type": "bool"
783
+ }
784
+ ],
785
+ "stateMutability": "view",
786
+ "type": "function"
787
+ },
788
+ {
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
+ },
805
+ {
806
+ "components": [
807
+ {
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",
844
+ "name": "kind",
845
+ "type": "uint8"
846
+ },
847
+ {
848
+ "internalType": "bytes32",
849
+ "name": "poolId",
850
+ "type": "bytes32"
851
+ },
852
+ {
853
+ "internalType": "contract IERC20",
854
+ "name": "token",
855
+ "type": "address"
856
+ },
857
+ {
858
+ "internalType": "uint256",
859
+ "name": "amount",
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"
881
+ },
882
+ {
883
+ "internalType": "contract IAsset",
884
+ "name": "asset",
885
+ "type": "address"
886
+ },
887
+ {
888
+ "internalType": "uint256",
889
+ "name": "amount",
890
+ "type": "uint256"
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
+ },
927
+ {
928
+ "internalType": "uint256",
929
+ "name": "assetInIndex",
930
+ "type": "uint256"
931
+ },
932
+ {
933
+ "internalType": "uint256",
934
+ "name": "assetOutIndex",
935
+ "type": "uint256"
936
+ },
937
+ {
938
+ "internalType": "uint256",
939
+ "name": "amount",
940
+ "type": "uint256"
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": [
959
+ {
960
+ "internalType": "address",
961
+ "name": "sender",
962
+ "type": "address"
963
+ },
964
+ {
965
+ "internalType": "bool",
966
+ "name": "fromInternalBalance",
967
+ "type": "bool"
968
+ },
969
+ {
970
+ "internalType": "address payable",
971
+ "name": "recipient",
972
+ "type": "address"
973
+ },
974
+ {
975
+ "internalType": "bool",
976
+ "name": "toInternalBalance",
977
+ "type": "bool"
978
+ }
979
+ ],
980
+ "internalType": "struct IVault.FundManagement",
981
+ "name": "funds",
982
+ "type": "tuple"
983
+ }
984
+ ],
985
+ "name": "queryBatchSwap",
986
+ "outputs": [
987
+ {
988
+ "internalType": "int256[]",
989
+ "name": "",
990
+ "type": "int256[]"
991
+ }
992
+ ],
993
+ "stateMutability": "nonpayable",
994
+ "type": "function"
995
+ },
996
+ {
997
+ "inputs": [
998
+ {
999
+ "internalType": "enum IVault.PoolSpecialization",
1000
+ "name": "specialization",
1001
+ "type": "uint8"
1002
+ }
1003
+ ],
1004
+ "name": "registerPool",
1005
+ "outputs": [
1006
+ {
1007
+ "internalType": "bytes32",
1008
+ "name": "",
1009
+ "type": "bytes32"
1010
+ }
1011
+ ],
1012
+ "stateMutability": "nonpayable",
1013
+ "type": "function"
1014
+ },
1015
+ {
1016
+ "inputs": [
1017
+ {
1018
+ "internalType": "bytes32",
1019
+ "name": "poolId",
1020
+ "type": "bytes32"
1021
+ },
1022
+ {
1023
+ "internalType": "contract IERC20[]",
1024
+ "name": "tokens",
1025
+ "type": "address[]"
1026
+ },
1027
+ {
1028
+ "internalType": "address[]",
1029
+ "name": "assetManagers",
1030
+ "type": "address[]"
1031
+ }
1032
+ ],
1033
+ "name": "registerTokens",
1034
+ "outputs": [],
1035
+ "stateMutability": "nonpayable",
1036
+ "type": "function"
1037
+ },
1038
+ {
1039
+ "inputs": [
1040
+ {
1041
+ "internalType": "contract IAuthorizer",
1042
+ "name": "newAuthorizer",
1043
+ "type": "address"
1044
+ }
1045
+ ],
1046
+ "name": "setAuthorizer",
1047
+ "outputs": [],
1048
+ "stateMutability": "nonpayable",
1049
+ "type": "function"
1050
+ },
1051
+ {
1052
+ "inputs": [
1053
+ {
1054
+ "internalType": "bool",
1055
+ "name": "paused",
1056
+ "type": "bool"
1057
+ }
1058
+ ],
1059
+ "name": "setPaused",
1060
+ "outputs": [],
1061
+ "stateMutability": "nonpayable",
1062
+ "type": "function"
1063
+ },
1064
+ {
1065
+ "inputs": [
1066
+ {
1067
+ "internalType": "address",
1068
+ "name": "sender",
1069
+ "type": "address"
1070
+ },
1071
+ {
1072
+ "internalType": "address",
1073
+ "name": "relayer",
1074
+ "type": "address"
1075
+ },
1076
+ {
1077
+ "internalType": "bool",
1078
+ "name": "approved",
1079
+ "type": "bool"
1080
+ }
1081
+ ],
1082
+ "name": "setRelayerApproval",
1083
+ "outputs": [],
1084
+ "stateMutability": "nonpayable",
1085
+ "type": "function"
1086
+ },
1087
+ {
1088
+ "inputs": [
1089
+ {
1090
+ "components": [
1091
+ {
1092
+ "internalType": "bytes32",
1093
+ "name": "poolId",
1094
+ "type": "bytes32"
1095
+ },
1096
+ {
1097
+ "internalType": "enum IVault.SwapKind",
1098
+ "name": "kind",
1099
+ "type": "uint8"
1100
+ },
1101
+ {
1102
+ "internalType": "contract IAsset",
1103
+ "name": "assetIn",
1104
+ "type": "address"
1105
+ },
1106
+ {
1107
+ "internalType": "contract IAsset",
1108
+ "name": "assetOut",
1109
+ "type": "address"
1110
+ },
1111
+ {
1112
+ "internalType": "uint256",
1113
+ "name": "amount",
1114
+ "type": "uint256"
1115
+ },
1116
+ {
1117
+ "internalType": "bytes",
1118
+ "name": "userData",
1119
+ "type": "bytes"
1120
+ }
1121
+ ],
1122
+ "internalType": "struct IVault.SingleSwap",
1123
+ "name": "singleSwap",
1124
+ "type": "tuple"
1125
+ },
1126
+ {
1127
+ "components": [
1128
+ {
1129
+ "internalType": "address",
1130
+ "name": "sender",
1131
+ "type": "address"
1132
+ },
1133
+ {
1134
+ "internalType": "bool",
1135
+ "name": "fromInternalBalance",
1136
+ "type": "bool"
1137
+ },
1138
+ {
1139
+ "internalType": "address payable",
1140
+ "name": "recipient",
1141
+ "type": "address"
1142
+ },
1143
+ {
1144
+ "internalType": "bool",
1145
+ "name": "toInternalBalance",
1146
+ "type": "bool"
1147
+ }
1148
+ ],
1149
+ "internalType": "struct IVault.FundManagement",
1150
+ "name": "funds",
1151
+ "type": "tuple"
1152
+ },
1153
+ {
1154
+ "internalType": "uint256",
1155
+ "name": "limit",
1156
+ "type": "uint256"
1157
+ },
1158
+ {
1159
+ "internalType": "uint256",
1160
+ "name": "deadline",
1161
+ "type": "uint256"
1162
+ }
1163
+ ],
1164
+ "name": "swap",
1165
+ "outputs": [
1166
+ {
1167
+ "internalType": "uint256",
1168
+ "name": "amountCalculated",
1169
+ "type": "uint256"
1170
+ }
1171
+ ],
1172
+ "stateMutability": "payable",
1173
+ "type": "function"
1174
+ },
1175
+ {
1176
+ "stateMutability": "payable",
1177
+ "type": "receive"
1178
+ }
1179
+ ]