@paraswap/dex-lib 3.0.6 → 3.2.5-return-amount-pos.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 (548) hide show
  1. package/.idea/aws.xml +17 -0
  2. package/.idea/codeStyles/Project.xml +55 -0
  3. package/.idea/codeStyles/codeStyleConfig.xml +5 -0
  4. package/.idea/inspectionProfiles/Project_Default.xml +6 -0
  5. package/.idea/misc.xml +6 -0
  6. package/.idea/modules.xml +8 -0
  7. package/.idea/paraswap-dex-lib-private.iml +9 -0
  8. package/.idea/prettier.xml +7 -0
  9. package/.idea/vcs.xml +6 -0
  10. package/README.md +327 -10
  11. package/build/abi/AugustusV6.abi.json +1454 -0
  12. package/build/abi/angle/stagToken.json +963 -0
  13. package/build/abi/augustus-v6/ABI.json +1084 -587
  14. package/build/abi/balancer-v2/gyro-e.abi.json +1595 -0
  15. package/build/abi/etherfi/eETHPool.json +9 -0
  16. package/build/abi/etherfi/weETH.json +20 -0
  17. package/build/abi/maker-psm/pot.json +322 -0
  18. package/build/abi/rswETH.json +1142 -0
  19. package/build/abi/sdai/SavingsDai.abi.json +877 -0
  20. package/build/abi/velodrome-slipstream/VelodromeSlipstreamFactory.abi.json +579 -0
  21. package/build/abi/velodrome-slipstream/VelodromeSlipstreamPool.abi.json +1275 -0
  22. package/build/abi/velodrome-slipstream/VelodromeSlipstreamStateMulticall.abi.json +766 -0
  23. package/build/config.js +51 -46
  24. package/build/config.js.map +1 -1
  25. package/build/dex/aave-v1/aave-v1.js +1 -0
  26. package/build/dex/aave-v1/aave-v1.js.map +1 -1
  27. package/build/dex/aave-v2/aave-v2.js +1 -0
  28. package/build/dex/aave-v2/aave-v2.js.map +1 -1
  29. package/build/dex/aave-v3/aave-v3.js +1 -0
  30. package/build/dex/aave-v3/aave-v3.js.map +1 -1
  31. package/build/dex/algebra/algebra-factory.js +1 -1
  32. package/build/dex/algebra/algebra-factory.js.map +1 -1
  33. package/build/dex/algebra/algebra-pool-v1_1.d.ts +7 -2
  34. package/build/dex/algebra/algebra-pool-v1_1.js +9 -2
  35. package/build/dex/algebra/algebra-pool-v1_1.js.map +1 -1
  36. package/build/dex/algebra/algebra-pool-v1_9.d.ts +4 -0
  37. package/build/dex/algebra/algebra-pool-v1_9.js +6 -0
  38. package/build/dex/algebra/algebra-pool-v1_9.js.map +1 -1
  39. package/build/dex/algebra/algebra-pool-v1_9_bidirectional_fee.d.ts +16 -0
  40. package/build/dex/algebra/algebra-pool-v1_9_bidirectional_fee.js +26 -0
  41. package/build/dex/algebra/algebra-pool-v1_9_bidirectional_fee.js.map +1 -0
  42. package/build/dex/algebra/algebra.d.ts +2 -1
  43. package/build/dex/algebra/algebra.js +13 -7
  44. package/build/dex/algebra/algebra.js.map +1 -1
  45. package/build/dex/algebra/config.js +4 -0
  46. package/build/dex/algebra/config.js.map +1 -1
  47. package/build/dex/algebra/types.d.ts +1 -1
  48. package/build/dex/angle-staked-stable/angle-staked-stable-pool.d.ts +56 -0
  49. package/build/dex/angle-staked-stable/angle-staked-stable-pool.js +197 -0
  50. package/build/dex/angle-staked-stable/angle-staked-stable-pool.js.map +1 -0
  51. package/build/dex/angle-staked-stable/angle-staked-stable.d.ts +49 -0
  52. package/build/dex/angle-staked-stable/angle-staked-stable.js +239 -0
  53. package/build/dex/angle-staked-stable/angle-staked-stable.js.map +1 -0
  54. package/build/dex/angle-staked-stable/config.d.ts +4 -0
  55. package/build/dex/angle-staked-stable/config.js +139 -0
  56. package/build/dex/angle-staked-stable/config.js.map +1 -0
  57. package/build/dex/angle-staked-stable/types.d.ts +15 -0
  58. package/build/dex/angle-staked-stable/types.js +3 -0
  59. package/build/dex/angle-staked-stable/types.js.map +1 -0
  60. package/build/dex/bProtocol/bProtocol.js +5 -0
  61. package/build/dex/bProtocol/bProtocol.js.map +1 -1
  62. package/build/dex/balancer-v1/balancer-v1.js +4 -0
  63. package/build/dex/balancer-v1/balancer-v1.js.map +1 -1
  64. package/build/dex/balancer-v2/balancer-v2.d.ts +9 -4
  65. package/build/dex/balancer-v2/balancer-v2.js +111 -84
  66. package/build/dex/balancer-v2/balancer-v2.js.map +1 -1
  67. package/build/dex/balancer-v2/pools/gyro/Gyro3Pool.d.ts +32 -0
  68. package/build/dex/balancer-v2/pools/gyro/Gyro3Pool.js +149 -0
  69. package/build/dex/balancer-v2/pools/gyro/Gyro3Pool.js.map +1 -0
  70. package/build/dex/balancer-v2/pools/gyro/GyroEPool.d.ts +37 -0
  71. package/build/dex/balancer-v2/pools/gyro/GyroEPool.js +222 -0
  72. package/build/dex/balancer-v2/pools/gyro/GyroEPool.js.map +1 -0
  73. package/build/dex/balancer-v2/pools/gyro/gyro-helpers.d.ts +2 -0
  74. package/build/dex/balancer-v2/pools/gyro/gyro-helpers.js +19 -0
  75. package/build/dex/balancer-v2/pools/gyro/gyro-helpers.js.map +1 -0
  76. package/build/dex/balancer-v2/queryOnChain.d.ts +1 -0
  77. package/build/dex/balancer-v2/queryOnChain.js +40 -0
  78. package/build/dex/balancer-v2/queryOnChain.js.map +1 -0
  79. package/build/dex/balancer-v2/types.d.ts +41 -2
  80. package/build/dex/balancer-v2/types.js +2 -0
  81. package/build/dex/balancer-v2/types.js.map +1 -1
  82. package/build/dex/balancer-v2/utils.d.ts +8 -0
  83. package/build/dex/balancer-v2/utils.js +17 -1
  84. package/build/dex/balancer-v2/utils.js.map +1 -1
  85. package/build/dex/bancor/bancor.js +4 -0
  86. package/build/dex/bancor/bancor.js.map +1 -1
  87. package/build/dex/camelot/camelot.js +1 -0
  88. package/build/dex/camelot/camelot.js.map +1 -1
  89. package/build/dex/compound/compound.js +1 -0
  90. package/build/dex/compound/compound.js.map +1 -1
  91. package/build/dex/curve-v1/curve-v1.js +1 -0
  92. package/build/dex/curve-v1/curve-v1.js.map +1 -1
  93. package/build/dex/curve-v1-factory/config.js +128 -11
  94. package/build/dex/curve-v1-factory/config.js.map +1 -1
  95. package/build/dex/curve-v1-factory/curve-v1-factory.d.ts +1 -0
  96. package/build/dex/curve-v1-factory/curve-v1-factory.js +30 -17
  97. package/build/dex/curve-v1-factory/curve-v1-factory.js.map +1 -1
  98. package/build/dex/curve-v1-factory/curve-v1-pool-manager.js +1 -0
  99. package/build/dex/curve-v1-factory/curve-v1-pool-manager.js.map +1 -1
  100. package/build/dex/curve-v1-factory/price-handlers/functions/_calc_withdraw_one_coin.js +1 -0
  101. package/build/dex/curve-v1-factory/price-handlers/functions/_calc_withdraw_one_coin.js.map +1 -1
  102. package/build/dex/curve-v1-factory/price-handlers/functions/_dynamic_fee.js +4 -1
  103. package/build/dex/curve-v1-factory/price-handlers/functions/_dynamic_fee.js.map +1 -1
  104. package/build/dex/curve-v1-factory/price-handlers/functions/_rates.js +1 -0
  105. package/build/dex/curve-v1-factory/price-handlers/functions/_rates.js.map +1 -1
  106. package/build/dex/curve-v1-factory/price-handlers/functions/_xp.js +1 -0
  107. package/build/dex/curve-v1-factory/price-handlers/functions/_xp.js.map +1 -1
  108. package/build/dex/curve-v1-factory/price-handlers/functions/_xp_mem.js +1 -0
  109. package/build/dex/curve-v1-factory/price-handlers/functions/_xp_mem.js.map +1 -1
  110. package/build/dex/curve-v1-factory/price-handlers/functions/calc_token_amount.js +1 -0
  111. package/build/dex/curve-v1-factory/price-handlers/functions/calc_token_amount.js.map +1 -1
  112. package/build/dex/curve-v1-factory/price-handlers/functions/calc_withdraw_one_coin.js +1 -0
  113. package/build/dex/curve-v1-factory/price-handlers/functions/calc_withdraw_one_coin.js.map +1 -1
  114. package/build/dex/curve-v1-factory/price-handlers/functions/constants.js +10 -0
  115. package/build/dex/curve-v1-factory/price-handlers/functions/constants.js.map +1 -1
  116. package/build/dex/curve-v1-factory/price-handlers/functions/get_D.js +40 -0
  117. package/build/dex/curve-v1-factory/price-handlers/functions/get_D.js.map +1 -1
  118. package/build/dex/curve-v1-factory/price-handlers/functions/get_D_mem.js +1 -0
  119. package/build/dex/curve-v1-factory/price-handlers/functions/get_D_mem.js.map +1 -1
  120. package/build/dex/curve-v1-factory/price-handlers/functions/get_D_precisions.js +1 -0
  121. package/build/dex/curve-v1-factory/price-handlers/functions/get_D_precisions.js.map +1 -1
  122. package/build/dex/curve-v1-factory/price-handlers/functions/get_dy.js +24 -0
  123. package/build/dex/curve-v1-factory/price-handlers/functions/get_dy.js.map +1 -1
  124. package/build/dex/curve-v1-factory/price-handlers/functions/get_dy_underlying.js +1 -0
  125. package/build/dex/curve-v1-factory/price-handlers/functions/get_dy_underlying.js.map +1 -1
  126. package/build/dex/curve-v1-factory/price-handlers/functions/get_y.js +53 -0
  127. package/build/dex/curve-v1-factory/price-handlers/functions/get_y.js.map +1 -1
  128. package/build/dex/curve-v1-factory/price-handlers/functions/get_y_D.js +1 -0
  129. package/build/dex/curve-v1-factory/price-handlers/functions/get_y_D.js.map +1 -1
  130. package/build/dex/curve-v1-factory/price-handlers/functions/utils.d.ts +1 -0
  131. package/build/dex/curve-v1-factory/price-handlers/functions/utils.js +5 -1
  132. package/build/dex/curve-v1-factory/price-handlers/functions/utils.js.map +1 -1
  133. package/build/dex/curve-v1-factory/price-handlers/types.d.ts +2 -2
  134. package/build/dex/curve-v1-factory/state-polling-pools/factory-pool-polling.d.ts +3 -2
  135. package/build/dex/curve-v1-factory/state-polling-pools/factory-pool-polling.js +38 -6
  136. package/build/dex/curve-v1-factory/state-polling-pools/factory-pool-polling.js.map +1 -1
  137. package/build/dex/curve-v1-factory/state-polling-pools/pool-polling-base.js.map +1 -1
  138. package/build/dex/curve-v1-factory/types.d.ts +11 -2
  139. package/build/dex/curve-v1-factory/types.js +3 -0
  140. package/build/dex/curve-v1-factory/types.js.map +1 -1
  141. package/build/dex/curve-v2/curve-v2.js +1 -0
  142. package/build/dex/curve-v2/curve-v2.js.map +1 -1
  143. package/build/dex/dexalot/config.js +7 -0
  144. package/build/dex/dexalot/config.js.map +1 -1
  145. package/build/dex/dexalot/dexalot.js +2 -0
  146. package/build/dex/dexalot/dexalot.js.map +1 -1
  147. package/build/dex/dodo-v1/dodo-v1.js +4 -0
  148. package/build/dex/dodo-v1/dodo-v1.js.map +1 -1
  149. package/build/dex/dodo-v2.js +4 -0
  150. package/build/dex/dodo-v2.js.map +1 -1
  151. package/build/dex/etherfi.d.ts +27 -0
  152. package/build/dex/etherfi.js +146 -0
  153. package/build/dex/etherfi.js.map +1 -0
  154. package/build/dex/generic-rfq/generic-rfq.js +4 -3
  155. package/build/dex/generic-rfq/generic-rfq.js.map +1 -1
  156. package/build/dex/generic-rfq/rate-fetcher.d.ts +1 -1
  157. package/build/dex/generic-rfq/rate-fetcher.js +2 -1
  158. package/build/dex/generic-rfq/rate-fetcher.js.map +1 -1
  159. package/build/dex/generic-rfq/types.d.ts +1 -0
  160. package/build/dex/generic-rfq/types.js.map +1 -1
  161. package/build/dex/gmx/gmx.js +4 -0
  162. package/build/dex/gmx/gmx.js.map +1 -1
  163. package/build/dex/hashflow/constants.d.ts +27 -0
  164. package/build/dex/hashflow/constants.js +29 -1
  165. package/build/dex/hashflow/constants.js.map +1 -1
  166. package/build/dex/hashflow/hashflow.d.ts +3 -2
  167. package/build/dex/hashflow/hashflow.js +72 -13
  168. package/build/dex/hashflow/hashflow.js.map +1 -1
  169. package/build/dex/hashflow/types.d.ts +11 -0
  170. package/build/dex/hashflow/types.js +9 -0
  171. package/build/dex/hashflow/types.js.map +1 -1
  172. package/build/dex/idex.d.ts +2 -2
  173. package/build/dex/index.d.ts +2 -2
  174. package/build/dex/index.js +10 -0
  175. package/build/dex/index.js.map +1 -1
  176. package/build/dex/jarvis-v6/jarvis-v6.js +1 -0
  177. package/build/dex/jarvis-v6/jarvis-v6.js.map +1 -1
  178. package/build/dex/jarvis.js +8 -0
  179. package/build/dex/jarvis.js.map +1 -1
  180. package/build/dex/kyberdmm/kyberdmm.js +4 -0
  181. package/build/dex/kyberdmm/kyberdmm.js.map +1 -1
  182. package/build/dex/lido/lido.d.ts +4 -1
  183. package/build/dex/lido/lido.js +18 -1
  184. package/build/dex/lido/lido.js.map +1 -1
  185. package/build/dex/maker-psm/maker-psm.js +1 -0
  186. package/build/dex/maker-psm/maker-psm.js.map +1 -1
  187. package/build/dex/maverick-v1/maverick-v1.js +4 -0
  188. package/build/dex/maverick-v1/maverick-v1.js.map +1 -1
  189. package/build/dex/nerve/nerve.js +4 -0
  190. package/build/dex/nerve/nerve.js.map +1 -1
  191. package/build/dex/onebit/onebit.js +5 -0
  192. package/build/dex/onebit/onebit.js.map +1 -1
  193. package/build/dex/pancakeswap-v3/config.js +30 -0
  194. package/build/dex/pancakeswap-v3/config.js.map +1 -1
  195. package/build/dex/pancakeswap-v3/pancakeswap-v3-factory.js +1 -1
  196. package/build/dex/pancakeswap-v3/pancakeswap-v3-factory.js.map +1 -1
  197. package/build/dex/pancakeswap-v3/pancakeswap-v3-pool.d.ts +5 -0
  198. package/build/dex/pancakeswap-v3/pancakeswap-v3-pool.js +7 -0
  199. package/build/dex/pancakeswap-v3/pancakeswap-v3-pool.js.map +1 -1
  200. package/build/dex/pancakeswap-v3/pancakeswap-v3.js +16 -8
  201. package/build/dex/pancakeswap-v3/pancakeswap-v3.js.map +1 -1
  202. package/build/dex/paraswap-limit-orders/paraswap-limit-orders.js +1 -0
  203. package/build/dex/paraswap-limit-orders/paraswap-limit-orders.js.map +1 -1
  204. package/build/dex/platypus/platypus.js +17 -3
  205. package/build/dex/platypus/platypus.js.map +1 -1
  206. package/build/dex/polygon-migrator/polygon-migrator.js +1 -0
  207. package/build/dex/polygon-migrator/polygon-migrator.js.map +1 -1
  208. package/build/dex/quick-perps/quick-perps.js +7 -1
  209. package/build/dex/quick-perps/quick-perps.js.map +1 -1
  210. package/build/dex/simple-exchange.d.ts +0 -1
  211. package/build/dex/simple-exchange.js +0 -2
  212. package/build/dex/simple-exchange.js.map +1 -1
  213. package/build/dex/smoothy/smoothy.js +1 -0
  214. package/build/dex/smoothy/smoothy.js.map +1 -1
  215. package/build/dex/smoothy.d.ts +1 -1
  216. package/build/dex/smoothy.js +2 -3
  217. package/build/dex/smoothy.js.map +1 -1
  218. package/build/dex/solidly/config.js +12 -0
  219. package/build/dex/solidly/config.js.map +1 -1
  220. package/build/dex/solidly/forks-override/pharaohV1.d.ts +8 -0
  221. package/build/dex/solidly/forks-override/pharaohV1.js +15 -0
  222. package/build/dex/solidly/forks-override/pharaohV1.js.map +1 -0
  223. package/build/dex/solidly/solidly.js +2 -0
  224. package/build/dex/solidly/solidly.js.map +1 -1
  225. package/build/dex/solidly-v3/config.js +13 -1
  226. package/build/dex/solidly-v3/config.js.map +1 -1
  227. package/build/dex/solidly-v3/solidly-v3-factory.js +1 -1
  228. package/build/dex/solidly-v3/solidly-v3-factory.js.map +1 -1
  229. package/build/dex/solidly-v3/solidly-v3-pool.d.ts +5 -0
  230. package/build/dex/solidly-v3/solidly-v3-pool.js +7 -0
  231. package/build/dex/solidly-v3/solidly-v3-pool.js.map +1 -1
  232. package/build/dex/solidly-v3/solidly-v3.d.ts +1 -2
  233. package/build/dex/solidly-v3/solidly-v3.js +5 -11
  234. package/build/dex/solidly-v3/solidly-v3.js.map +1 -1
  235. package/build/dex/solidly-v3/types.d.ts +0 -1
  236. package/build/dex/solidly-v3/types.js.map +1 -1
  237. package/build/dex/spark/config.d.ts +11 -0
  238. package/build/dex/spark/config.js +21 -0
  239. package/build/dex/spark/config.js.map +1 -0
  240. package/build/dex/spark/constants.d.ts +2 -0
  241. package/build/dex/spark/constants.js +6 -0
  242. package/build/dex/spark/constants.js.map +1 -0
  243. package/build/dex/spark/scripts/validate-state.d.ts +1 -0
  244. package/build/dex/spark/scripts/validate-state.js +102 -0
  245. package/build/dex/spark/scripts/validate-state.js.map +1 -0
  246. package/build/dex/spark/spark-sdai-pool.d.ts +16 -0
  247. package/build/dex/spark/spark-sdai-pool.js +85 -0
  248. package/build/dex/spark/spark-sdai-pool.js.map +1 -0
  249. package/build/dex/spark/spark.d.ts +52 -0
  250. package/build/dex/spark/spark.js +195 -0
  251. package/build/dex/spark/spark.js.map +1 -0
  252. package/build/dex/spark/types.d.ts +21 -0
  253. package/build/dex/spark/types.js +11 -0
  254. package/build/dex/spark/types.js.map +1 -0
  255. package/build/dex/spark/utils.d.ts +4 -0
  256. package/build/dex/spark/utils.js +39 -0
  257. package/build/dex/spark/utils.js.map +1 -0
  258. package/build/dex/stable-pool/stable-pool.js +4 -0
  259. package/build/dex/stable-pool/stable-pool.js.map +1 -1
  260. package/build/dex/swaap-v1/swaap-v1.js +4 -0
  261. package/build/dex/swaap-v1/swaap-v1.js.map +1 -1
  262. package/build/dex/swaap-v2/swaap-v2.js +1 -0
  263. package/build/dex/swaap-v2/swaap-v2.js.map +1 -1
  264. package/build/dex/swell/config.d.ts +1 -0
  265. package/build/dex/swell/config.js +1 -0
  266. package/build/dex/swell/config.js.map +1 -1
  267. package/build/dex/swell/rsweth-pool.d.ts +16 -0
  268. package/build/dex/swell/rsweth-pool.js +38 -0
  269. package/build/dex/swell/rsweth-pool.js.map +1 -0
  270. package/build/dex/swell/swell.d.ts +7 -2
  271. package/build/dex/swell/swell.js +58 -27
  272. package/build/dex/swell/swell.js.map +1 -1
  273. package/build/dex/swell/sweth-pool.js +1 -1
  274. package/build/dex/swell/sweth-pool.js.map +1 -1
  275. package/build/dex/swell/type.d.ts +3 -0
  276. package/build/dex/swell/utils.d.ts +3 -2
  277. package/build/dex/swell/utils.js +19 -3
  278. package/build/dex/swell/utils.js.map +1 -1
  279. package/build/dex/synthetix/synthetix.js +6 -0
  280. package/build/dex/synthetix/synthetix.js.map +1 -1
  281. package/build/dex/trader-joe-v2.1/trader-joe-v2.1.js +4 -0
  282. package/build/dex/trader-joe-v2.1/trader-joe-v2.1.js.map +1 -1
  283. package/build/dex/uniswap-v2/config.js +56 -0
  284. package/build/dex/uniswap-v2/config.js.map +1 -1
  285. package/build/dex/uniswap-v2/types.d.ts +1 -1
  286. package/build/dex/uniswap-v2/uniswap-v2.js +2 -1
  287. package/build/dex/uniswap-v2/uniswap-v2.js.map +1 -1
  288. package/build/dex/uniswap-v3/config.js +102 -1
  289. package/build/dex/uniswap-v3/config.js.map +1 -1
  290. package/build/dex/uniswap-v3/forks/velodrome-slipstream/utils.d.ts +4 -0
  291. package/build/dex/uniswap-v3/forks/velodrome-slipstream/utils.js +56 -0
  292. package/build/dex/uniswap-v3/forks/velodrome-slipstream/utils.js.map +1 -0
  293. package/build/dex/uniswap-v3/forks/velodrome-slipstream/velodrome-slipstream-factory.d.ts +7 -0
  294. package/build/dex/uniswap-v3/forks/velodrome-slipstream/velodrome-slipstream-factory.js +23 -0
  295. package/build/dex/uniswap-v3/forks/velodrome-slipstream/velodrome-slipstream-factory.js.map +1 -0
  296. package/build/dex/uniswap-v3/forks/velodrome-slipstream/velodrome-slipstream-pool.d.ts +13 -0
  297. package/build/dex/uniswap-v3/forks/velodrome-slipstream/velodrome-slipstream-pool.js +137 -0
  298. package/build/dex/uniswap-v3/forks/velodrome-slipstream/velodrome-slipstream-pool.js.map +1 -0
  299. package/build/dex/uniswap-v3/forks/velodrome-slipstream/velodrome-slipstream.d.ts +46 -0
  300. package/build/dex/uniswap-v3/forks/velodrome-slipstream/velodrome-slipstream.js +117 -0
  301. package/build/dex/uniswap-v3/forks/velodrome-slipstream/velodrome-slipstream.js.map +1 -0
  302. package/build/dex/uniswap-v3/types.d.ts +8 -2
  303. package/build/dex/uniswap-v3/types.js.map +1 -1
  304. package/build/dex/uniswap-v3/uniswap-v3-factory.js +1 -1
  305. package/build/dex/uniswap-v3/uniswap-v3-factory.js.map +1 -1
  306. package/build/dex/uniswap-v3/uniswap-v3-pool.d.ts +9 -2
  307. package/build/dex/uniswap-v3/uniswap-v3-pool.js +15 -2
  308. package/build/dex/uniswap-v3/uniswap-v3-pool.js.map +1 -1
  309. package/build/dex/uniswap-v3/uniswap-v3.d.ts +27 -12
  310. package/build/dex/uniswap-v3/uniswap-v3.js +108 -76
  311. package/build/dex/uniswap-v3/uniswap-v3.js.map +1 -1
  312. package/build/dex/uniswap-v3.js +4 -0
  313. package/build/dex/uniswap-v3.js.map +1 -1
  314. package/build/dex/weth/weth.js +1 -0
  315. package/build/dex/weth/weth.js.map +1 -1
  316. package/build/dex/wombat/wombat.js +4 -0
  317. package/build/dex/wombat/wombat.js.map +1 -1
  318. package/build/dex/woo-fi-v2/config.js +16 -16
  319. package/build/dex/woo-fi-v2/woo-fi-v2.js +4 -0
  320. package/build/dex/woo-fi-v2/woo-fi-v2.js.map +1 -1
  321. package/build/dex/wsteth/wsteth.js +8 -1
  322. package/build/dex/wsteth/wsteth.js.map +1 -1
  323. package/build/dex/zerox/index.js +1 -0
  324. package/build/dex/zerox/index.js.map +1 -1
  325. package/build/executor/Executor01BytecodeBuilder.d.ts +6 -8
  326. package/build/executor/Executor01BytecodeBuilder.js +47 -8
  327. package/build/executor/Executor01BytecodeBuilder.js.map +1 -1
  328. package/build/executor/Executor02BytecodeBuilder.d.ts +18 -12
  329. package/build/executor/Executor02BytecodeBuilder.js +55 -10
  330. package/build/executor/Executor02BytecodeBuilder.js.map +1 -1
  331. package/build/executor/Executor03BytecodeBuilder.d.ts +11 -8
  332. package/build/executor/Executor03BytecodeBuilder.js +27 -5
  333. package/build/executor/Executor03BytecodeBuilder.js.map +1 -1
  334. package/build/executor/ExecutorBytecodeBuilder.d.ts +29 -6
  335. package/build/executor/ExecutorBytecodeBuilder.js +23 -4
  336. package/build/executor/ExecutorBytecodeBuilder.js.map +1 -1
  337. package/build/executor/ExecutorDetector.d.ts +2 -0
  338. package/build/executor/ExecutorDetector.js +12 -0
  339. package/build/executor/ExecutorDetector.js.map +1 -1
  340. package/build/executor/IExecutorBytecodeBuilder.d.ts +10 -0
  341. package/build/executor/IExecutorBytecodeBuilder.js +3 -0
  342. package/build/executor/IExecutorBytecodeBuilder.js.map +1 -0
  343. package/build/executor/WETHBytecodeBuilder.d.ts +14 -0
  344. package/build/executor/WETHBytecodeBuilder.js +47 -0
  345. package/build/executor/WETHBytecodeBuilder.js.map +1 -0
  346. package/build/executor/constants.d.ts +3 -1
  347. package/build/executor/constants.js +8 -3
  348. package/build/executor/constants.js.map +1 -1
  349. package/build/executor/types.d.ts +1 -0
  350. package/build/executor/types.js +1 -0
  351. package/build/executor/types.js.map +1 -1
  352. package/build/executor/utils.d.ts +2 -0
  353. package/build/executor/utils.js +30 -0
  354. package/build/executor/utils.js.map +1 -0
  355. package/build/generic-swap-transaction-builder.js +11 -5
  356. package/build/generic-swap-transaction-builder.js.map +1 -1
  357. package/build/implementations/local-paraswap-sdk.js +1 -1
  358. package/build/implementations/local-paraswap-sdk.js.map +1 -1
  359. package/build/stateful-event-subscriber.d.ts +1 -0
  360. package/build/stateful-event-subscriber.js +8 -1
  361. package/build/stateful-event-subscriber.js.map +1 -1
  362. package/build/types.d.ts +3 -0
  363. package/package.json +4 -3
  364. package/src/abi/angle/stagToken.json +963 -0
  365. package/src/abi/augustus-v6/ABI.json +1084 -587
  366. package/src/abi/balancer-v2/gyro-e.abi.json +1595 -0
  367. package/src/abi/etherfi/eETHPool.json +9 -0
  368. package/src/abi/etherfi/weETH.json +20 -0
  369. package/src/abi/maker-psm/pot.json +322 -0
  370. package/src/abi/rswETH.json +1142 -0
  371. package/src/abi/sdai/SavingsDai.abi.json +877 -0
  372. package/src/abi/velodrome-slipstream/VelodromeSlipstreamFactory.abi.json +579 -0
  373. package/src/abi/velodrome-slipstream/VelodromeSlipstreamPool.abi.json +1275 -0
  374. package/src/abi/velodrome-slipstream/VelodromeSlipstreamQuoterV2.abi.json +267 -0
  375. package/src/abi/velodrome-slipstream/VelodromeSlipstreamStateMulticall.abi.json +766 -0
  376. package/src/config.ts +51 -46
  377. package/src/dex/aave-v1/aave-v1.ts +1 -0
  378. package/src/dex/aave-v2/aave-v2.ts +1 -0
  379. package/src/dex/aave-v3/aave-v3.ts +1 -0
  380. package/src/dex/algebra/algebra-e2e.test.ts +22 -0
  381. package/src/dex/algebra/algebra-factory.ts +8 -1
  382. package/src/dex/algebra/algebra-pool-v1_1.ts +10 -2
  383. package/src/dex/algebra/algebra-pool-v1_9.ts +7 -0
  384. package/src/dex/algebra/algebra-pool-v1_9_bidirectional_fee.ts +55 -0
  385. package/src/dex/algebra/algebra.ts +28 -14
  386. package/src/dex/algebra/config.ts +4 -0
  387. package/src/dex/algebra/types.ts +1 -1
  388. package/src/dex/angle-staked-stable/angle-staked-stable-e2e.test.ts +146 -0
  389. package/src/dex/angle-staked-stable/angle-staked-stable-events.test.ts +95 -0
  390. package/src/dex/angle-staked-stable/angle-staked-stable-integration.test.ts +476 -0
  391. package/src/dex/angle-staked-stable/angle-staked-stable-pool.ts +325 -0
  392. package/src/dex/angle-staked-stable/angle-staked-stable.ts +351 -0
  393. package/src/dex/angle-staked-stable/config.ts +139 -0
  394. package/src/dex/angle-staked-stable/types.ts +16 -0
  395. package/src/dex/bProtocol/bProtocol.ts +8 -0
  396. package/src/dex/balancer-v1/balancer-v1.ts +9 -0
  397. package/src/dex/balancer-v2/balancer-v2-e2e.test.ts +94 -0
  398. package/src/dex/balancer-v2/balancer-v2-gyro3.test.ts +268 -0
  399. package/src/dex/balancer-v2/balancer-v2-gyroE.test.ts +401 -0
  400. package/src/dex/balancer-v2/balancer-v2-integration.test.ts +253 -112
  401. package/src/dex/balancer-v2/balancer-v2.ts +203 -143
  402. package/src/dex/balancer-v2/pools/gyro/Gyro3Pool.ts +255 -0
  403. package/src/dex/balancer-v2/pools/gyro/GyroEPool.ts +403 -0
  404. package/src/dex/balancer-v2/pools/gyro/gyro-helpers.ts +15 -0
  405. package/src/dex/balancer-v2/queryOnChain.ts +48 -0
  406. package/src/dex/balancer-v2/types.ts +45 -1
  407. package/src/dex/balancer-v2/utils.ts +16 -0
  408. package/src/dex/bancor/bancor.ts +8 -0
  409. package/src/dex/camelot/camelot.ts +1 -0
  410. package/src/dex/compound/compound.ts +1 -0
  411. package/src/dex/curve-v1/curve-v1.ts +1 -0
  412. package/src/dex/curve-v1-factory/config.ts +128 -11
  413. package/src/dex/curve-v1-factory/curve-v1-factory-e2e.test.ts +122 -1
  414. package/src/dex/curve-v1-factory/curve-v1-factory-integration.test.ts +392 -0
  415. package/src/dex/curve-v1-factory/curve-v1-factory.ts +62 -39
  416. package/src/dex/curve-v1-factory/curve-v1-pool-manager.ts +1 -0
  417. package/src/dex/curve-v1-factory/price-handlers/functions/_calc_withdraw_one_coin.ts +2 -0
  418. package/src/dex/curve-v1-factory/price-handlers/functions/_dynamic_fee.ts +6 -2
  419. package/src/dex/curve-v1-factory/price-handlers/functions/_rates.ts +2 -0
  420. package/src/dex/curve-v1-factory/price-handlers/functions/_xp.ts +2 -0
  421. package/src/dex/curve-v1-factory/price-handlers/functions/_xp_mem.ts +2 -0
  422. package/src/dex/curve-v1-factory/price-handlers/functions/calc_token_amount.ts +2 -0
  423. package/src/dex/curve-v1-factory/price-handlers/functions/calc_withdraw_one_coin.ts +2 -0
  424. package/src/dex/curve-v1-factory/price-handlers/functions/constants.ts +11 -0
  425. package/src/dex/curve-v1-factory/price-handlers/functions/get_D.ts +59 -1
  426. package/src/dex/curve-v1-factory/price-handlers/functions/get_D_mem.ts +2 -0
  427. package/src/dex/curve-v1-factory/price-handlers/functions/get_D_precisions.ts +2 -0
  428. package/src/dex/curve-v1-factory/price-handlers/functions/get_dy.ts +51 -0
  429. package/src/dex/curve-v1-factory/price-handlers/functions/get_dy_underlying.ts +2 -0
  430. package/src/dex/curve-v1-factory/price-handlers/functions/get_y.ts +68 -1
  431. package/src/dex/curve-v1-factory/price-handlers/functions/get_y_D.ts +2 -0
  432. package/src/dex/curve-v1-factory/price-handlers/functions/utils.ts +4 -0
  433. package/src/dex/curve-v1-factory/price-handlers/types.ts +8 -1
  434. package/src/dex/curve-v1-factory/state-polling-pools/factory-pool-polling.ts +71 -18
  435. package/src/dex/curve-v1-factory/state-polling-pools/pool-polling-base.ts +1 -0
  436. package/src/dex/curve-v1-factory/types.ts +12 -1
  437. package/src/dex/curve-v2/curve-v2.ts +1 -0
  438. package/src/dex/dexalot/config.ts +7 -0
  439. package/src/dex/dexalot/dexalot-e2e.test.ts +23 -1
  440. package/src/dex/dexalot/dexalot-integration.test.ts +121 -0
  441. package/src/dex/dexalot/dexalot.ts +2 -0
  442. package/src/dex/dodo-v1/dodo-v1.ts +9 -0
  443. package/src/dex/dodo-v2.ts +9 -0
  444. package/src/dex/etherfi.ts +239 -0
  445. package/src/dex/generic-rfq/generic-rfq.ts +4 -2
  446. package/src/dex/generic-rfq/rate-fetcher.ts +2 -0
  447. package/src/dex/generic-rfq/types.ts +1 -0
  448. package/src/dex/gmx/gmx.ts +8 -0
  449. package/src/dex/hashflow/constants.ts +32 -0
  450. package/src/dex/hashflow/hashflow.ts +126 -20
  451. package/src/dex/hashflow/types.ts +20 -2
  452. package/src/dex/idex.ts +2 -1
  453. package/src/dex/index.ts +12 -2
  454. package/src/dex/jarvis-v6/jarvis-v6.ts +1 -0
  455. package/src/dex/jarvis.ts +14 -0
  456. package/src/dex/kyberdmm/kyberdmm.ts +9 -0
  457. package/src/dex/lido/lido-e2e.test.ts +10 -0
  458. package/src/dex/lido/lido.ts +25 -2
  459. package/src/dex/maker-psm/maker-psm.ts +1 -0
  460. package/src/dex/maverick-v1/maverick-v1.ts +9 -0
  461. package/src/dex/nerve/nerve.ts +8 -0
  462. package/src/dex/onebit/onebit.ts +8 -0
  463. package/src/dex/pancakeswap-v3/config.ts +32 -0
  464. package/src/dex/pancakeswap-v3/pancakeswap-v3-e2e.test.ts +21 -0
  465. package/src/dex/pancakeswap-v3/pancakeswap-v3-factory.ts +8 -1
  466. package/src/dex/pancakeswap-v3/pancakeswap-v3-pool.ts +8 -0
  467. package/src/dex/pancakeswap-v3/pancakeswap-v3.ts +27 -13
  468. package/src/dex/paraswap-limit-orders/paraswap-limit-orders.ts +1 -0
  469. package/src/dex/platypus/platypus.ts +20 -3
  470. package/src/dex/polygon-migrator/polygon-migrator.ts +1 -0
  471. package/src/dex/quick-perps/quick-perps.ts +11 -1
  472. package/src/dex/simple-exchange.ts +0 -4
  473. package/src/dex/smoothy/smoothy.ts +1 -0
  474. package/src/dex/solidly/config.ts +14 -0
  475. package/src/dex/solidly/forks-override/pharaohV1.ts +10 -0
  476. package/src/dex/solidly/solidly-e2e.test.ts +21 -0
  477. package/src/dex/solidly/solidly-integration.test.ts +143 -0
  478. package/src/dex/solidly/solidly.ts +2 -0
  479. package/src/dex/solidly-v3/config.ts +15 -1
  480. package/src/dex/solidly-v3/solidly-v3-e2e.test.ts +33 -0
  481. package/src/dex/solidly-v3/solidly-v3-factory.ts +8 -1
  482. package/src/dex/solidly-v3/solidly-v3-pool.ts +8 -0
  483. package/src/dex/solidly-v3/solidly-v3.ts +8 -16
  484. package/src/dex/solidly-v3/types.ts +0 -1
  485. package/src/dex/spark/config.ts +25 -0
  486. package/src/dex/spark/constants.ts +2 -0
  487. package/src/dex/spark/scripts/validate-state.ts +144 -0
  488. package/src/dex/spark/spark-e2e.test.ts +96 -0
  489. package/src/dex/spark/spark-events.test.ts +102 -0
  490. package/src/dex/spark/spark-integration.test.ts +151 -0
  491. package/src/dex/spark/spark-sdai-pool.ts +114 -0
  492. package/src/dex/spark/spark.ts +284 -0
  493. package/src/dex/spark/types.ts +23 -0
  494. package/src/dex/spark/utils.ts +47 -0
  495. package/src/dex/stable-pool/stable-pool.ts +8 -0
  496. package/src/dex/swaap-v1/swaap-v1.ts +9 -0
  497. package/src/dex/swaap-v2/swaap-v2.ts +1 -0
  498. package/src/dex/swell/config.ts +2 -0
  499. package/src/dex/swell/rsweth-pool.ts +58 -0
  500. package/src/dex/swell/swell-e2e.test.ts +33 -31
  501. package/src/dex/swell/swell.ts +88 -35
  502. package/src/dex/swell/sweth-pool.ts +2 -2
  503. package/src/dex/swell/type.ts +4 -0
  504. package/src/dex/swell/utils.ts +26 -2
  505. package/src/dex/synthetix/synthetix-state.ts +2 -2
  506. package/src/dex/synthetix/synthetix.ts +11 -0
  507. package/src/dex/trader-joe-v2.1/trader-joe-v2.1.ts +9 -0
  508. package/src/dex/uniswap-v2/config.ts +58 -0
  509. package/src/dex/uniswap-v2/types.ts +2 -2
  510. package/src/dex/uniswap-v2/uniswap-v2-e2e-base.test.ts +48 -0
  511. package/src/dex/uniswap-v2/uniswap-v2.ts +2 -1
  512. package/src/dex/uniswap-v3/config.ts +112 -3
  513. package/src/dex/uniswap-v3/forks/velodrome-slipstream/utils.ts +65 -0
  514. package/src/dex/uniswap-v3/forks/velodrome-slipstream/velodrome-slipstream-factory.ts +16 -0
  515. package/src/dex/uniswap-v3/forks/velodrome-slipstream/velodrome-slipstream-pool.ts +197 -0
  516. package/src/dex/uniswap-v3/forks/velodrome-slipstream/velodrome-slipstream.ts +237 -0
  517. package/src/dex/uniswap-v3/types.ts +6 -2
  518. package/src/dex/uniswap-v3/uniswap-v3-e2e.test.ts +184 -3
  519. package/src/dex/uniswap-v3/uniswap-v3-factory.ts +8 -1
  520. package/src/dex/uniswap-v3/uniswap-v3-integration.test.ts +741 -6
  521. package/src/dex/uniswap-v3/uniswap-v3-pool.ts +17 -9
  522. package/src/dex/uniswap-v3/uniswap-v3.ts +204 -121
  523. package/src/dex/uniswap-v3.ts +9 -0
  524. package/src/dex/weth/weth-e2e-v6.test.ts +117 -0
  525. package/src/dex/weth/weth.ts +1 -0
  526. package/src/dex/wombat/wombat.ts +9 -0
  527. package/src/dex/woo-fi-v2/config.ts +16 -16
  528. package/src/dex/woo-fi-v2/woo-fi-v2.ts +5 -0
  529. package/src/dex/wsteth/wsteth.ts +13 -4
  530. package/src/dex/zerox/index.ts +1 -0
  531. package/src/executor/Executor01BytecodeBuilder.ts +69 -29
  532. package/src/executor/Executor02BytecodeBuilder.ts +99 -44
  533. package/src/executor/Executor03BytecodeBuilder.ts +52 -33
  534. package/src/executor/ExecutorBytecodeBuilder.ts +57 -18
  535. package/src/executor/ExecutorDetector.ts +14 -0
  536. package/src/executor/WETHBytecodeBuilder.ts +57 -0
  537. package/src/executor/constants.ts +8 -2
  538. package/src/executor/executor01-bytecode-builder-e2e.test.ts +39 -0
  539. package/src/executor/executor02-bytecode-builder-e2e.test.ts +35 -0
  540. package/src/executor/types.ts +1 -0
  541. package/src/executor/utils.ts +44 -0
  542. package/src/generic-swap-transaction-builder.ts +14 -4
  543. package/src/implementations/local-paraswap-sdk.ts +1 -1
  544. package/src/stateful-event-subscriber.ts +13 -1
  545. package/src/types.ts +3 -0
  546. package/tests/constants-e2e.ts +233 -12
  547. package/tests/utils-e2e.ts +82 -2
  548. package/tests/debug-price-route.json +0 -87
@@ -0,0 +1,1595 @@
1
+ [
2
+ {
3
+ "inputs": [
4
+ {
5
+ "components": [
6
+ {
7
+ "components": [
8
+ {
9
+ "internalType": "contract IVault",
10
+ "name": "vault",
11
+ "type": "address"
12
+ },
13
+ {
14
+ "internalType": "string",
15
+ "name": "name",
16
+ "type": "string"
17
+ },
18
+ {
19
+ "internalType": "string",
20
+ "name": "symbol",
21
+ "type": "string"
22
+ },
23
+ {
24
+ "internalType": "contract IERC20",
25
+ "name": "token0",
26
+ "type": "address"
27
+ },
28
+ {
29
+ "internalType": "contract IERC20",
30
+ "name": "token1",
31
+ "type": "address"
32
+ },
33
+ {
34
+ "internalType": "uint256",
35
+ "name": "swapFeePercentage",
36
+ "type": "uint256"
37
+ },
38
+ {
39
+ "internalType": "uint256",
40
+ "name": "pauseWindowDuration",
41
+ "type": "uint256"
42
+ },
43
+ {
44
+ "internalType": "uint256",
45
+ "name": "bufferPeriodDuration",
46
+ "type": "uint256"
47
+ },
48
+ {
49
+ "internalType": "address",
50
+ "name": "owner",
51
+ "type": "address"
52
+ }
53
+ ],
54
+ "internalType": "struct ExtensibleWeightedPool2Tokens.NewPoolParams",
55
+ "name": "baseParams",
56
+ "type": "tuple"
57
+ },
58
+ {
59
+ "components": [
60
+ {
61
+ "internalType": "int256",
62
+ "name": "alpha",
63
+ "type": "int256"
64
+ },
65
+ {
66
+ "internalType": "int256",
67
+ "name": "beta",
68
+ "type": "int256"
69
+ },
70
+ {
71
+ "internalType": "int256",
72
+ "name": "c",
73
+ "type": "int256"
74
+ },
75
+ {
76
+ "internalType": "int256",
77
+ "name": "s",
78
+ "type": "int256"
79
+ },
80
+ {
81
+ "internalType": "int256",
82
+ "name": "lambda",
83
+ "type": "int256"
84
+ }
85
+ ],
86
+ "internalType": "struct GyroECLPMath.Params",
87
+ "name": "eclpParams",
88
+ "type": "tuple"
89
+ },
90
+ {
91
+ "components": [
92
+ {
93
+ "components": [
94
+ {
95
+ "internalType": "int256",
96
+ "name": "x",
97
+ "type": "int256"
98
+ },
99
+ {
100
+ "internalType": "int256",
101
+ "name": "y",
102
+ "type": "int256"
103
+ }
104
+ ],
105
+ "internalType": "struct GyroECLPMath.Vector2",
106
+ "name": "tauAlpha",
107
+ "type": "tuple"
108
+ },
109
+ {
110
+ "components": [
111
+ {
112
+ "internalType": "int256",
113
+ "name": "x",
114
+ "type": "int256"
115
+ },
116
+ {
117
+ "internalType": "int256",
118
+ "name": "y",
119
+ "type": "int256"
120
+ }
121
+ ],
122
+ "internalType": "struct GyroECLPMath.Vector2",
123
+ "name": "tauBeta",
124
+ "type": "tuple"
125
+ },
126
+ {
127
+ "internalType": "int256",
128
+ "name": "u",
129
+ "type": "int256"
130
+ },
131
+ {
132
+ "internalType": "int256",
133
+ "name": "v",
134
+ "type": "int256"
135
+ },
136
+ {
137
+ "internalType": "int256",
138
+ "name": "w",
139
+ "type": "int256"
140
+ },
141
+ {
142
+ "internalType": "int256",
143
+ "name": "z",
144
+ "type": "int256"
145
+ },
146
+ {
147
+ "internalType": "int256",
148
+ "name": "dSq",
149
+ "type": "int256"
150
+ }
151
+ ],
152
+ "internalType": "struct GyroECLPMath.DerivedParams",
153
+ "name": "derivedEclpParams",
154
+ "type": "tuple"
155
+ },
156
+ {
157
+ "internalType": "address",
158
+ "name": "rateProvider0",
159
+ "type": "address"
160
+ },
161
+ {
162
+ "internalType": "address",
163
+ "name": "rateProvider1",
164
+ "type": "address"
165
+ },
166
+ {
167
+ "internalType": "address",
168
+ "name": "capManager",
169
+ "type": "address"
170
+ },
171
+ {
172
+ "components": [
173
+ {
174
+ "internalType": "bool",
175
+ "name": "capEnabled",
176
+ "type": "bool"
177
+ },
178
+ {
179
+ "internalType": "uint120",
180
+ "name": "perAddressCap",
181
+ "type": "uint120"
182
+ },
183
+ {
184
+ "internalType": "uint128",
185
+ "name": "globalCap",
186
+ "type": "uint128"
187
+ }
188
+ ],
189
+ "internalType": "struct ICappedLiquidity.CapParams",
190
+ "name": "capParams",
191
+ "type": "tuple"
192
+ },
193
+ {
194
+ "internalType": "address",
195
+ "name": "pauseManager",
196
+ "type": "address"
197
+ }
198
+ ],
199
+ "internalType": "struct GyroECLPPool.GyroParams",
200
+ "name": "params",
201
+ "type": "tuple"
202
+ },
203
+ {
204
+ "internalType": "address",
205
+ "name": "configAddress",
206
+ "type": "address"
207
+ }
208
+ ],
209
+ "stateMutability": "nonpayable",
210
+ "type": "constructor"
211
+ },
212
+ {
213
+ "anonymous": false,
214
+ "inputs": [
215
+ {
216
+ "indexed": true,
217
+ "internalType": "address",
218
+ "name": "owner",
219
+ "type": "address"
220
+ },
221
+ {
222
+ "indexed": true,
223
+ "internalType": "address",
224
+ "name": "spender",
225
+ "type": "address"
226
+ },
227
+ {
228
+ "indexed": false,
229
+ "internalType": "uint256",
230
+ "name": "value",
231
+ "type": "uint256"
232
+ }
233
+ ],
234
+ "name": "Approval",
235
+ "type": "event"
236
+ },
237
+ {
238
+ "anonymous": false,
239
+ "inputs": [
240
+ {
241
+ "indexed": false,
242
+ "internalType": "address",
243
+ "name": "capManager",
244
+ "type": "address"
245
+ }
246
+ ],
247
+ "name": "CapManagerUpdated",
248
+ "type": "event"
249
+ },
250
+ {
251
+ "anonymous": false,
252
+ "inputs": [
253
+ {
254
+ "components": [
255
+ {
256
+ "internalType": "bool",
257
+ "name": "capEnabled",
258
+ "type": "bool"
259
+ },
260
+ {
261
+ "internalType": "uint120",
262
+ "name": "perAddressCap",
263
+ "type": "uint120"
264
+ },
265
+ {
266
+ "internalType": "uint128",
267
+ "name": "globalCap",
268
+ "type": "uint128"
269
+ }
270
+ ],
271
+ "indexed": false,
272
+ "internalType": "struct ICappedLiquidity.CapParams",
273
+ "name": "params",
274
+ "type": "tuple"
275
+ }
276
+ ],
277
+ "name": "CapParamsUpdated",
278
+ "type": "event"
279
+ },
280
+ {
281
+ "anonymous": false,
282
+ "inputs": [
283
+ {
284
+ "indexed": false,
285
+ "internalType": "bool",
286
+ "name": "derivedParamsValidated",
287
+ "type": "bool"
288
+ }
289
+ ],
290
+ "name": "ECLPDerivedParamsValidated",
291
+ "type": "event"
292
+ },
293
+ {
294
+ "anonymous": false,
295
+ "inputs": [
296
+ {
297
+ "indexed": false,
298
+ "internalType": "bool",
299
+ "name": "paramsValidated",
300
+ "type": "bool"
301
+ }
302
+ ],
303
+ "name": "ECLPParamsValidated",
304
+ "type": "event"
305
+ },
306
+ {
307
+ "anonymous": false,
308
+ "inputs": [
309
+ {
310
+ "indexed": false,
311
+ "internalType": "uint256",
312
+ "name": "invariantAfterJoin",
313
+ "type": "uint256"
314
+ }
315
+ ],
316
+ "name": "InvariantAterInitializeJoin",
317
+ "type": "event"
318
+ },
319
+ {
320
+ "anonymous": false,
321
+ "inputs": [
322
+ {
323
+ "indexed": false,
324
+ "internalType": "uint256",
325
+ "name": "oldInvariant",
326
+ "type": "uint256"
327
+ },
328
+ {
329
+ "indexed": false,
330
+ "internalType": "uint256",
331
+ "name": "newInvariant",
332
+ "type": "uint256"
333
+ }
334
+ ],
335
+ "name": "InvariantOldAndNew",
336
+ "type": "event"
337
+ },
338
+ {
339
+ "anonymous": false,
340
+ "inputs": [
341
+ {
342
+ "indexed": false,
343
+ "internalType": "address",
344
+ "name": "oldPauseManager",
345
+ "type": "address"
346
+ },
347
+ {
348
+ "indexed": false,
349
+ "internalType": "address",
350
+ "name": "newPauseManager",
351
+ "type": "address"
352
+ }
353
+ ],
354
+ "name": "PauseManagerChanged",
355
+ "type": "event"
356
+ },
357
+ {
358
+ "anonymous": false,
359
+ "inputs": [],
360
+ "name": "PausedLocally",
361
+ "type": "event"
362
+ },
363
+ {
364
+ "anonymous": false,
365
+ "inputs": [
366
+ {
367
+ "indexed": false,
368
+ "internalType": "bool",
369
+ "name": "paused",
370
+ "type": "bool"
371
+ }
372
+ ],
373
+ "name": "PausedStateChanged",
374
+ "type": "event"
375
+ },
376
+ {
377
+ "anonymous": false,
378
+ "inputs": [
379
+ {
380
+ "indexed": false,
381
+ "internalType": "uint256",
382
+ "name": "swapFeePercentage",
383
+ "type": "uint256"
384
+ }
385
+ ],
386
+ "name": "SwapFeePercentageChanged",
387
+ "type": "event"
388
+ },
389
+ {
390
+ "anonymous": false,
391
+ "inputs": [
392
+ {
393
+ "indexed": false,
394
+ "internalType": "uint256[]",
395
+ "name": "balances",
396
+ "type": "uint256[]"
397
+ },
398
+ {
399
+ "components": [
400
+ {
401
+ "internalType": "int256",
402
+ "name": "x",
403
+ "type": "int256"
404
+ },
405
+ {
406
+ "internalType": "int256",
407
+ "name": "y",
408
+ "type": "int256"
409
+ }
410
+ ],
411
+ "indexed": false,
412
+ "internalType": "struct GyroECLPMath.Vector2",
413
+ "name": "invariant",
414
+ "type": "tuple"
415
+ },
416
+ {
417
+ "indexed": false,
418
+ "internalType": "uint256",
419
+ "name": "amount",
420
+ "type": "uint256"
421
+ }
422
+ ],
423
+ "name": "SwapParams",
424
+ "type": "event"
425
+ },
426
+ {
427
+ "anonymous": false,
428
+ "inputs": [
429
+ {
430
+ "indexed": true,
431
+ "internalType": "address",
432
+ "name": "from",
433
+ "type": "address"
434
+ },
435
+ {
436
+ "indexed": true,
437
+ "internalType": "address",
438
+ "name": "to",
439
+ "type": "address"
440
+ },
441
+ {
442
+ "indexed": false,
443
+ "internalType": "uint256",
444
+ "name": "value",
445
+ "type": "uint256"
446
+ }
447
+ ],
448
+ "name": "Transfer",
449
+ "type": "event"
450
+ },
451
+ {
452
+ "anonymous": false,
453
+ "inputs": [],
454
+ "name": "UnpausedLocally",
455
+ "type": "event"
456
+ },
457
+ {
458
+ "inputs": [],
459
+ "name": "DOMAIN_SEPARATOR",
460
+ "outputs": [
461
+ {
462
+ "internalType": "bytes32",
463
+ "name": "",
464
+ "type": "bytes32"
465
+ }
466
+ ],
467
+ "stateMutability": "view",
468
+ "type": "function"
469
+ },
470
+ {
471
+ "inputs": [
472
+ {
473
+ "internalType": "address",
474
+ "name": "owner",
475
+ "type": "address"
476
+ },
477
+ {
478
+ "internalType": "address",
479
+ "name": "spender",
480
+ "type": "address"
481
+ }
482
+ ],
483
+ "name": "allowance",
484
+ "outputs": [
485
+ {
486
+ "internalType": "uint256",
487
+ "name": "",
488
+ "type": "uint256"
489
+ }
490
+ ],
491
+ "stateMutability": "view",
492
+ "type": "function"
493
+ },
494
+ {
495
+ "inputs": [
496
+ {
497
+ "internalType": "address",
498
+ "name": "spender",
499
+ "type": "address"
500
+ },
501
+ {
502
+ "internalType": "uint256",
503
+ "name": "amount",
504
+ "type": "uint256"
505
+ }
506
+ ],
507
+ "name": "approve",
508
+ "outputs": [
509
+ {
510
+ "internalType": "bool",
511
+ "name": "",
512
+ "type": "bool"
513
+ }
514
+ ],
515
+ "stateMutability": "nonpayable",
516
+ "type": "function"
517
+ },
518
+ {
519
+ "inputs": [
520
+ {
521
+ "internalType": "address",
522
+ "name": "account",
523
+ "type": "address"
524
+ }
525
+ ],
526
+ "name": "balanceOf",
527
+ "outputs": [
528
+ {
529
+ "internalType": "uint256",
530
+ "name": "",
531
+ "type": "uint256"
532
+ }
533
+ ],
534
+ "stateMutability": "view",
535
+ "type": "function"
536
+ },
537
+ {
538
+ "inputs": [],
539
+ "name": "capManager",
540
+ "outputs": [
541
+ {
542
+ "internalType": "address",
543
+ "name": "",
544
+ "type": "address"
545
+ }
546
+ ],
547
+ "stateMutability": "view",
548
+ "type": "function"
549
+ },
550
+ {
551
+ "inputs": [],
552
+ "name": "capParams",
553
+ "outputs": [
554
+ {
555
+ "components": [
556
+ {
557
+ "internalType": "bool",
558
+ "name": "capEnabled",
559
+ "type": "bool"
560
+ },
561
+ {
562
+ "internalType": "uint120",
563
+ "name": "perAddressCap",
564
+ "type": "uint120"
565
+ },
566
+ {
567
+ "internalType": "uint128",
568
+ "name": "globalCap",
569
+ "type": "uint128"
570
+ }
571
+ ],
572
+ "internalType": "struct ICappedLiquidity.CapParams",
573
+ "name": "",
574
+ "type": "tuple"
575
+ }
576
+ ],
577
+ "stateMutability": "view",
578
+ "type": "function"
579
+ },
580
+ {
581
+ "inputs": [
582
+ {
583
+ "internalType": "address",
584
+ "name": "_pauseManager",
585
+ "type": "address"
586
+ }
587
+ ],
588
+ "name": "changePauseManager",
589
+ "outputs": [],
590
+ "stateMutability": "nonpayable",
591
+ "type": "function"
592
+ },
593
+ {
594
+ "inputs": [],
595
+ "name": "decimals",
596
+ "outputs": [
597
+ {
598
+ "internalType": "uint8",
599
+ "name": "",
600
+ "type": "uint8"
601
+ }
602
+ ],
603
+ "stateMutability": "view",
604
+ "type": "function"
605
+ },
606
+ {
607
+ "inputs": [
608
+ {
609
+ "internalType": "address",
610
+ "name": "spender",
611
+ "type": "address"
612
+ },
613
+ {
614
+ "internalType": "uint256",
615
+ "name": "amount",
616
+ "type": "uint256"
617
+ }
618
+ ],
619
+ "name": "decreaseAllowance",
620
+ "outputs": [
621
+ {
622
+ "internalType": "bool",
623
+ "name": "",
624
+ "type": "bool"
625
+ }
626
+ ],
627
+ "stateMutability": "nonpayable",
628
+ "type": "function"
629
+ },
630
+ {
631
+ "inputs": [
632
+ {
633
+ "internalType": "bytes4",
634
+ "name": "selector",
635
+ "type": "bytes4"
636
+ }
637
+ ],
638
+ "name": "getActionId",
639
+ "outputs": [
640
+ {
641
+ "internalType": "bytes32",
642
+ "name": "",
643
+ "type": "bytes32"
644
+ }
645
+ ],
646
+ "stateMutability": "view",
647
+ "type": "function"
648
+ },
649
+ {
650
+ "inputs": [],
651
+ "name": "getActualSupply",
652
+ "outputs": [
653
+ {
654
+ "internalType": "uint256",
655
+ "name": "",
656
+ "type": "uint256"
657
+ }
658
+ ],
659
+ "stateMutability": "view",
660
+ "type": "function"
661
+ },
662
+ {
663
+ "inputs": [],
664
+ "name": "getAuthorizer",
665
+ "outputs": [
666
+ {
667
+ "internalType": "contract IAuthorizer",
668
+ "name": "",
669
+ "type": "address"
670
+ }
671
+ ],
672
+ "stateMutability": "view",
673
+ "type": "function"
674
+ },
675
+ {
676
+ "inputs": [],
677
+ "name": "getECLPParams",
678
+ "outputs": [
679
+ {
680
+ "components": [
681
+ {
682
+ "internalType": "int256",
683
+ "name": "alpha",
684
+ "type": "int256"
685
+ },
686
+ {
687
+ "internalType": "int256",
688
+ "name": "beta",
689
+ "type": "int256"
690
+ },
691
+ {
692
+ "internalType": "int256",
693
+ "name": "c",
694
+ "type": "int256"
695
+ },
696
+ {
697
+ "internalType": "int256",
698
+ "name": "s",
699
+ "type": "int256"
700
+ },
701
+ {
702
+ "internalType": "int256",
703
+ "name": "lambda",
704
+ "type": "int256"
705
+ }
706
+ ],
707
+ "internalType": "struct GyroECLPMath.Params",
708
+ "name": "params",
709
+ "type": "tuple"
710
+ },
711
+ {
712
+ "components": [
713
+ {
714
+ "components": [
715
+ {
716
+ "internalType": "int256",
717
+ "name": "x",
718
+ "type": "int256"
719
+ },
720
+ {
721
+ "internalType": "int256",
722
+ "name": "y",
723
+ "type": "int256"
724
+ }
725
+ ],
726
+ "internalType": "struct GyroECLPMath.Vector2",
727
+ "name": "tauAlpha",
728
+ "type": "tuple"
729
+ },
730
+ {
731
+ "components": [
732
+ {
733
+ "internalType": "int256",
734
+ "name": "x",
735
+ "type": "int256"
736
+ },
737
+ {
738
+ "internalType": "int256",
739
+ "name": "y",
740
+ "type": "int256"
741
+ }
742
+ ],
743
+ "internalType": "struct GyroECLPMath.Vector2",
744
+ "name": "tauBeta",
745
+ "type": "tuple"
746
+ },
747
+ {
748
+ "internalType": "int256",
749
+ "name": "u",
750
+ "type": "int256"
751
+ },
752
+ {
753
+ "internalType": "int256",
754
+ "name": "v",
755
+ "type": "int256"
756
+ },
757
+ {
758
+ "internalType": "int256",
759
+ "name": "w",
760
+ "type": "int256"
761
+ },
762
+ {
763
+ "internalType": "int256",
764
+ "name": "z",
765
+ "type": "int256"
766
+ },
767
+ {
768
+ "internalType": "int256",
769
+ "name": "dSq",
770
+ "type": "int256"
771
+ }
772
+ ],
773
+ "internalType": "struct GyroECLPMath.DerivedParams",
774
+ "name": "d",
775
+ "type": "tuple"
776
+ }
777
+ ],
778
+ "stateMutability": "view",
779
+ "type": "function"
780
+ },
781
+ {
782
+ "inputs": [],
783
+ "name": "getInvariant",
784
+ "outputs": [
785
+ {
786
+ "internalType": "uint256",
787
+ "name": "",
788
+ "type": "uint256"
789
+ }
790
+ ],
791
+ "stateMutability": "view",
792
+ "type": "function"
793
+ },
794
+ {
795
+ "inputs": [],
796
+ "name": "getInvariantDivActualSupply",
797
+ "outputs": [
798
+ {
799
+ "internalType": "uint256",
800
+ "name": "",
801
+ "type": "uint256"
802
+ }
803
+ ],
804
+ "stateMutability": "view",
805
+ "type": "function"
806
+ },
807
+ {
808
+ "inputs": [],
809
+ "name": "getLastInvariant",
810
+ "outputs": [
811
+ {
812
+ "internalType": "uint256",
813
+ "name": "",
814
+ "type": "uint256"
815
+ }
816
+ ],
817
+ "stateMutability": "view",
818
+ "type": "function"
819
+ },
820
+ {
821
+ "inputs": [],
822
+ "name": "getMiscData",
823
+ "outputs": [
824
+ {
825
+ "internalType": "int256",
826
+ "name": "logInvariant",
827
+ "type": "int256"
828
+ },
829
+ {
830
+ "internalType": "int256",
831
+ "name": "logTotalSupply",
832
+ "type": "int256"
833
+ },
834
+ {
835
+ "internalType": "uint256",
836
+ "name": "oracleSampleCreationTimestamp",
837
+ "type": "uint256"
838
+ },
839
+ {
840
+ "internalType": "uint256",
841
+ "name": "oracleIndex",
842
+ "type": "uint256"
843
+ },
844
+ {
845
+ "internalType": "bool",
846
+ "name": "oracleEnabled",
847
+ "type": "bool"
848
+ },
849
+ {
850
+ "internalType": "uint256",
851
+ "name": "swapFeePercentage",
852
+ "type": "uint256"
853
+ }
854
+ ],
855
+ "stateMutability": "view",
856
+ "type": "function"
857
+ },
858
+ {
859
+ "inputs": [],
860
+ "name": "getNormalizedWeights",
861
+ "outputs": [
862
+ {
863
+ "internalType": "uint256[]",
864
+ "name": "",
865
+ "type": "uint256[]"
866
+ }
867
+ ],
868
+ "stateMutability": "view",
869
+ "type": "function"
870
+ },
871
+ {
872
+ "inputs": [],
873
+ "name": "getOwner",
874
+ "outputs": [
875
+ {
876
+ "internalType": "address",
877
+ "name": "",
878
+ "type": "address"
879
+ }
880
+ ],
881
+ "stateMutability": "view",
882
+ "type": "function"
883
+ },
884
+ {
885
+ "inputs": [],
886
+ "name": "getPausedState",
887
+ "outputs": [
888
+ {
889
+ "internalType": "bool",
890
+ "name": "paused",
891
+ "type": "bool"
892
+ },
893
+ {
894
+ "internalType": "uint256",
895
+ "name": "pauseWindowEndTime",
896
+ "type": "uint256"
897
+ },
898
+ {
899
+ "internalType": "uint256",
900
+ "name": "bufferPeriodEndTime",
901
+ "type": "uint256"
902
+ }
903
+ ],
904
+ "stateMutability": "view",
905
+ "type": "function"
906
+ },
907
+ {
908
+ "inputs": [],
909
+ "name": "getPoolId",
910
+ "outputs": [
911
+ {
912
+ "internalType": "bytes32",
913
+ "name": "",
914
+ "type": "bytes32"
915
+ }
916
+ ],
917
+ "stateMutability": "view",
918
+ "type": "function"
919
+ },
920
+ {
921
+ "inputs": [],
922
+ "name": "getPrice",
923
+ "outputs": [
924
+ {
925
+ "internalType": "uint256",
926
+ "name": "spotPrice",
927
+ "type": "uint256"
928
+ }
929
+ ],
930
+ "stateMutability": "view",
931
+ "type": "function"
932
+ },
933
+ {
934
+ "inputs": [],
935
+ "name": "getRate",
936
+ "outputs": [
937
+ {
938
+ "internalType": "uint256",
939
+ "name": "",
940
+ "type": "uint256"
941
+ }
942
+ ],
943
+ "stateMutability": "view",
944
+ "type": "function"
945
+ },
946
+ {
947
+ "inputs": [],
948
+ "name": "getSwapFeePercentage",
949
+ "outputs": [
950
+ {
951
+ "internalType": "uint256",
952
+ "name": "",
953
+ "type": "uint256"
954
+ }
955
+ ],
956
+ "stateMutability": "view",
957
+ "type": "function"
958
+ },
959
+ {
960
+ "inputs": [],
961
+ "name": "getTokenRates",
962
+ "outputs": [
963
+ {
964
+ "internalType": "uint256",
965
+ "name": "rate0",
966
+ "type": "uint256"
967
+ },
968
+ {
969
+ "internalType": "uint256",
970
+ "name": "rate1",
971
+ "type": "uint256"
972
+ }
973
+ ],
974
+ "stateMutability": "view",
975
+ "type": "function"
976
+ },
977
+ {
978
+ "inputs": [],
979
+ "name": "getVault",
980
+ "outputs": [
981
+ {
982
+ "internalType": "contract IVault",
983
+ "name": "",
984
+ "type": "address"
985
+ }
986
+ ],
987
+ "stateMutability": "view",
988
+ "type": "function"
989
+ },
990
+ {
991
+ "inputs": [],
992
+ "name": "gyroConfig",
993
+ "outputs": [
994
+ {
995
+ "internalType": "contract IGyroConfig",
996
+ "name": "",
997
+ "type": "address"
998
+ }
999
+ ],
1000
+ "stateMutability": "view",
1001
+ "type": "function"
1002
+ },
1003
+ {
1004
+ "inputs": [
1005
+ {
1006
+ "internalType": "address",
1007
+ "name": "spender",
1008
+ "type": "address"
1009
+ },
1010
+ {
1011
+ "internalType": "uint256",
1012
+ "name": "addedValue",
1013
+ "type": "uint256"
1014
+ }
1015
+ ],
1016
+ "name": "increaseAllowance",
1017
+ "outputs": [
1018
+ {
1019
+ "internalType": "bool",
1020
+ "name": "",
1021
+ "type": "bool"
1022
+ }
1023
+ ],
1024
+ "stateMutability": "nonpayable",
1025
+ "type": "function"
1026
+ },
1027
+ {
1028
+ "inputs": [],
1029
+ "name": "name",
1030
+ "outputs": [
1031
+ {
1032
+ "internalType": "string",
1033
+ "name": "",
1034
+ "type": "string"
1035
+ }
1036
+ ],
1037
+ "stateMutability": "view",
1038
+ "type": "function"
1039
+ },
1040
+ {
1041
+ "inputs": [
1042
+ {
1043
+ "internalType": "address",
1044
+ "name": "owner",
1045
+ "type": "address"
1046
+ }
1047
+ ],
1048
+ "name": "nonces",
1049
+ "outputs": [
1050
+ {
1051
+ "internalType": "uint256",
1052
+ "name": "",
1053
+ "type": "uint256"
1054
+ }
1055
+ ],
1056
+ "stateMutability": "view",
1057
+ "type": "function"
1058
+ },
1059
+ {
1060
+ "inputs": [
1061
+ {
1062
+ "internalType": "bytes32",
1063
+ "name": "poolId",
1064
+ "type": "bytes32"
1065
+ },
1066
+ {
1067
+ "internalType": "address",
1068
+ "name": "sender",
1069
+ "type": "address"
1070
+ },
1071
+ {
1072
+ "internalType": "address",
1073
+ "name": "recipient",
1074
+ "type": "address"
1075
+ },
1076
+ {
1077
+ "internalType": "uint256[]",
1078
+ "name": "balances",
1079
+ "type": "uint256[]"
1080
+ },
1081
+ {
1082
+ "internalType": "uint256",
1083
+ "name": "lastChangeBlock",
1084
+ "type": "uint256"
1085
+ },
1086
+ {
1087
+ "internalType": "uint256",
1088
+ "name": "protocolSwapFeePercentage",
1089
+ "type": "uint256"
1090
+ },
1091
+ {
1092
+ "internalType": "bytes",
1093
+ "name": "userData",
1094
+ "type": "bytes"
1095
+ }
1096
+ ],
1097
+ "name": "onExitPool",
1098
+ "outputs": [
1099
+ {
1100
+ "internalType": "uint256[]",
1101
+ "name": "",
1102
+ "type": "uint256[]"
1103
+ },
1104
+ {
1105
+ "internalType": "uint256[]",
1106
+ "name": "",
1107
+ "type": "uint256[]"
1108
+ }
1109
+ ],
1110
+ "stateMutability": "nonpayable",
1111
+ "type": "function"
1112
+ },
1113
+ {
1114
+ "inputs": [
1115
+ {
1116
+ "internalType": "bytes32",
1117
+ "name": "poolId",
1118
+ "type": "bytes32"
1119
+ },
1120
+ {
1121
+ "internalType": "address",
1122
+ "name": "sender",
1123
+ "type": "address"
1124
+ },
1125
+ {
1126
+ "internalType": "address",
1127
+ "name": "recipient",
1128
+ "type": "address"
1129
+ },
1130
+ {
1131
+ "internalType": "uint256[]",
1132
+ "name": "balances",
1133
+ "type": "uint256[]"
1134
+ },
1135
+ {
1136
+ "internalType": "uint256",
1137
+ "name": "lastChangeBlock",
1138
+ "type": "uint256"
1139
+ },
1140
+ {
1141
+ "internalType": "uint256",
1142
+ "name": "protocolSwapFeePercentage",
1143
+ "type": "uint256"
1144
+ },
1145
+ {
1146
+ "internalType": "bytes",
1147
+ "name": "userData",
1148
+ "type": "bytes"
1149
+ }
1150
+ ],
1151
+ "name": "onJoinPool",
1152
+ "outputs": [
1153
+ {
1154
+ "internalType": "uint256[]",
1155
+ "name": "amountsIn",
1156
+ "type": "uint256[]"
1157
+ },
1158
+ {
1159
+ "internalType": "uint256[]",
1160
+ "name": "dueProtocolFeeAmounts",
1161
+ "type": "uint256[]"
1162
+ }
1163
+ ],
1164
+ "stateMutability": "nonpayable",
1165
+ "type": "function"
1166
+ },
1167
+ {
1168
+ "inputs": [
1169
+ {
1170
+ "components": [
1171
+ {
1172
+ "internalType": "enum IVault.SwapKind",
1173
+ "name": "kind",
1174
+ "type": "uint8"
1175
+ },
1176
+ {
1177
+ "internalType": "contract IERC20",
1178
+ "name": "tokenIn",
1179
+ "type": "address"
1180
+ },
1181
+ {
1182
+ "internalType": "contract IERC20",
1183
+ "name": "tokenOut",
1184
+ "type": "address"
1185
+ },
1186
+ {
1187
+ "internalType": "uint256",
1188
+ "name": "amount",
1189
+ "type": "uint256"
1190
+ },
1191
+ {
1192
+ "internalType": "bytes32",
1193
+ "name": "poolId",
1194
+ "type": "bytes32"
1195
+ },
1196
+ {
1197
+ "internalType": "uint256",
1198
+ "name": "lastChangeBlock",
1199
+ "type": "uint256"
1200
+ },
1201
+ {
1202
+ "internalType": "address",
1203
+ "name": "from",
1204
+ "type": "address"
1205
+ },
1206
+ {
1207
+ "internalType": "address",
1208
+ "name": "to",
1209
+ "type": "address"
1210
+ },
1211
+ {
1212
+ "internalType": "bytes",
1213
+ "name": "userData",
1214
+ "type": "bytes"
1215
+ }
1216
+ ],
1217
+ "internalType": "struct IPoolSwapStructs.SwapRequest",
1218
+ "name": "request",
1219
+ "type": "tuple"
1220
+ },
1221
+ {
1222
+ "internalType": "uint256",
1223
+ "name": "balanceTokenIn",
1224
+ "type": "uint256"
1225
+ },
1226
+ {
1227
+ "internalType": "uint256",
1228
+ "name": "balanceTokenOut",
1229
+ "type": "uint256"
1230
+ }
1231
+ ],
1232
+ "name": "onSwap",
1233
+ "outputs": [
1234
+ {
1235
+ "internalType": "uint256",
1236
+ "name": "",
1237
+ "type": "uint256"
1238
+ }
1239
+ ],
1240
+ "stateMutability": "nonpayable",
1241
+ "type": "function"
1242
+ },
1243
+ {
1244
+ "inputs": [],
1245
+ "name": "pause",
1246
+ "outputs": [],
1247
+ "stateMutability": "nonpayable",
1248
+ "type": "function"
1249
+ },
1250
+ {
1251
+ "inputs": [],
1252
+ "name": "pauseManager",
1253
+ "outputs": [
1254
+ {
1255
+ "internalType": "address",
1256
+ "name": "",
1257
+ "type": "address"
1258
+ }
1259
+ ],
1260
+ "stateMutability": "view",
1261
+ "type": "function"
1262
+ },
1263
+ {
1264
+ "inputs": [
1265
+ {
1266
+ "internalType": "address",
1267
+ "name": "owner",
1268
+ "type": "address"
1269
+ },
1270
+ {
1271
+ "internalType": "address",
1272
+ "name": "spender",
1273
+ "type": "address"
1274
+ },
1275
+ {
1276
+ "internalType": "uint256",
1277
+ "name": "value",
1278
+ "type": "uint256"
1279
+ },
1280
+ {
1281
+ "internalType": "uint256",
1282
+ "name": "deadline",
1283
+ "type": "uint256"
1284
+ },
1285
+ {
1286
+ "internalType": "uint8",
1287
+ "name": "v",
1288
+ "type": "uint8"
1289
+ },
1290
+ {
1291
+ "internalType": "bytes32",
1292
+ "name": "r",
1293
+ "type": "bytes32"
1294
+ },
1295
+ {
1296
+ "internalType": "bytes32",
1297
+ "name": "s",
1298
+ "type": "bytes32"
1299
+ }
1300
+ ],
1301
+ "name": "permit",
1302
+ "outputs": [],
1303
+ "stateMutability": "nonpayable",
1304
+ "type": "function"
1305
+ },
1306
+ {
1307
+ "inputs": [
1308
+ {
1309
+ "internalType": "bytes32",
1310
+ "name": "poolId",
1311
+ "type": "bytes32"
1312
+ },
1313
+ {
1314
+ "internalType": "address",
1315
+ "name": "sender",
1316
+ "type": "address"
1317
+ },
1318
+ {
1319
+ "internalType": "address",
1320
+ "name": "recipient",
1321
+ "type": "address"
1322
+ },
1323
+ {
1324
+ "internalType": "uint256[]",
1325
+ "name": "balances",
1326
+ "type": "uint256[]"
1327
+ },
1328
+ {
1329
+ "internalType": "uint256",
1330
+ "name": "lastChangeBlock",
1331
+ "type": "uint256"
1332
+ },
1333
+ {
1334
+ "internalType": "uint256",
1335
+ "name": "protocolSwapFeePercentage",
1336
+ "type": "uint256"
1337
+ },
1338
+ {
1339
+ "internalType": "bytes",
1340
+ "name": "userData",
1341
+ "type": "bytes"
1342
+ }
1343
+ ],
1344
+ "name": "queryExit",
1345
+ "outputs": [
1346
+ {
1347
+ "internalType": "uint256",
1348
+ "name": "bptIn",
1349
+ "type": "uint256"
1350
+ },
1351
+ {
1352
+ "internalType": "uint256[]",
1353
+ "name": "amountsOut",
1354
+ "type": "uint256[]"
1355
+ }
1356
+ ],
1357
+ "stateMutability": "nonpayable",
1358
+ "type": "function"
1359
+ },
1360
+ {
1361
+ "inputs": [
1362
+ {
1363
+ "internalType": "bytes32",
1364
+ "name": "poolId",
1365
+ "type": "bytes32"
1366
+ },
1367
+ {
1368
+ "internalType": "address",
1369
+ "name": "sender",
1370
+ "type": "address"
1371
+ },
1372
+ {
1373
+ "internalType": "address",
1374
+ "name": "recipient",
1375
+ "type": "address"
1376
+ },
1377
+ {
1378
+ "internalType": "uint256[]",
1379
+ "name": "balances",
1380
+ "type": "uint256[]"
1381
+ },
1382
+ {
1383
+ "internalType": "uint256",
1384
+ "name": "lastChangeBlock",
1385
+ "type": "uint256"
1386
+ },
1387
+ {
1388
+ "internalType": "uint256",
1389
+ "name": "protocolSwapFeePercentage",
1390
+ "type": "uint256"
1391
+ },
1392
+ {
1393
+ "internalType": "bytes",
1394
+ "name": "userData",
1395
+ "type": "bytes"
1396
+ }
1397
+ ],
1398
+ "name": "queryJoin",
1399
+ "outputs": [
1400
+ {
1401
+ "internalType": "uint256",
1402
+ "name": "bptOut",
1403
+ "type": "uint256"
1404
+ },
1405
+ {
1406
+ "internalType": "uint256[]",
1407
+ "name": "amountsIn",
1408
+ "type": "uint256[]"
1409
+ }
1410
+ ],
1411
+ "stateMutability": "nonpayable",
1412
+ "type": "function"
1413
+ },
1414
+ {
1415
+ "inputs": [],
1416
+ "name": "rateProvider0",
1417
+ "outputs": [
1418
+ {
1419
+ "internalType": "contract IRateProvider",
1420
+ "name": "",
1421
+ "type": "address"
1422
+ }
1423
+ ],
1424
+ "stateMutability": "view",
1425
+ "type": "function"
1426
+ },
1427
+ {
1428
+ "inputs": [],
1429
+ "name": "rateProvider1",
1430
+ "outputs": [
1431
+ {
1432
+ "internalType": "contract IRateProvider",
1433
+ "name": "",
1434
+ "type": "address"
1435
+ }
1436
+ ],
1437
+ "stateMutability": "view",
1438
+ "type": "function"
1439
+ },
1440
+ {
1441
+ "inputs": [
1442
+ {
1443
+ "internalType": "address",
1444
+ "name": "_capManager",
1445
+ "type": "address"
1446
+ }
1447
+ ],
1448
+ "name": "setCapManager",
1449
+ "outputs": [],
1450
+ "stateMutability": "nonpayable",
1451
+ "type": "function"
1452
+ },
1453
+ {
1454
+ "inputs": [
1455
+ {
1456
+ "components": [
1457
+ {
1458
+ "internalType": "bool",
1459
+ "name": "capEnabled",
1460
+ "type": "bool"
1461
+ },
1462
+ {
1463
+ "internalType": "uint120",
1464
+ "name": "perAddressCap",
1465
+ "type": "uint120"
1466
+ },
1467
+ {
1468
+ "internalType": "uint128",
1469
+ "name": "globalCap",
1470
+ "type": "uint128"
1471
+ }
1472
+ ],
1473
+ "internalType": "struct ICappedLiquidity.CapParams",
1474
+ "name": "params",
1475
+ "type": "tuple"
1476
+ }
1477
+ ],
1478
+ "name": "setCapParams",
1479
+ "outputs": [],
1480
+ "stateMutability": "nonpayable",
1481
+ "type": "function"
1482
+ },
1483
+ {
1484
+ "inputs": [
1485
+ {
1486
+ "internalType": "bool",
1487
+ "name": "paused",
1488
+ "type": "bool"
1489
+ }
1490
+ ],
1491
+ "name": "setPaused",
1492
+ "outputs": [],
1493
+ "stateMutability": "nonpayable",
1494
+ "type": "function"
1495
+ },
1496
+ {
1497
+ "inputs": [
1498
+ {
1499
+ "internalType": "uint256",
1500
+ "name": "swapFeePercentage",
1501
+ "type": "uint256"
1502
+ }
1503
+ ],
1504
+ "name": "setSwapFeePercentage",
1505
+ "outputs": [],
1506
+ "stateMutability": "nonpayable",
1507
+ "type": "function"
1508
+ },
1509
+ {
1510
+ "inputs": [],
1511
+ "name": "symbol",
1512
+ "outputs": [
1513
+ {
1514
+ "internalType": "string",
1515
+ "name": "",
1516
+ "type": "string"
1517
+ }
1518
+ ],
1519
+ "stateMutability": "view",
1520
+ "type": "function"
1521
+ },
1522
+ {
1523
+ "inputs": [],
1524
+ "name": "totalSupply",
1525
+ "outputs": [
1526
+ {
1527
+ "internalType": "uint256",
1528
+ "name": "",
1529
+ "type": "uint256"
1530
+ }
1531
+ ],
1532
+ "stateMutability": "view",
1533
+ "type": "function"
1534
+ },
1535
+ {
1536
+ "inputs": [
1537
+ {
1538
+ "internalType": "address",
1539
+ "name": "recipient",
1540
+ "type": "address"
1541
+ },
1542
+ {
1543
+ "internalType": "uint256",
1544
+ "name": "amount",
1545
+ "type": "uint256"
1546
+ }
1547
+ ],
1548
+ "name": "transfer",
1549
+ "outputs": [
1550
+ {
1551
+ "internalType": "bool",
1552
+ "name": "",
1553
+ "type": "bool"
1554
+ }
1555
+ ],
1556
+ "stateMutability": "nonpayable",
1557
+ "type": "function"
1558
+ },
1559
+ {
1560
+ "inputs": [
1561
+ {
1562
+ "internalType": "address",
1563
+ "name": "sender",
1564
+ "type": "address"
1565
+ },
1566
+ {
1567
+ "internalType": "address",
1568
+ "name": "recipient",
1569
+ "type": "address"
1570
+ },
1571
+ {
1572
+ "internalType": "uint256",
1573
+ "name": "amount",
1574
+ "type": "uint256"
1575
+ }
1576
+ ],
1577
+ "name": "transferFrom",
1578
+ "outputs": [
1579
+ {
1580
+ "internalType": "bool",
1581
+ "name": "",
1582
+ "type": "bool"
1583
+ }
1584
+ ],
1585
+ "stateMutability": "nonpayable",
1586
+ "type": "function"
1587
+ },
1588
+ {
1589
+ "inputs": [],
1590
+ "name": "unpause",
1591
+ "outputs": [],
1592
+ "stateMutability": "nonpayable",
1593
+ "type": "function"
1594
+ }
1595
+ ]