@paraswap/dex-lib 4.0.1-cables.0 → 4.0.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 (919) hide show
  1. package/.vscode/launch.json +53 -0
  2. package/.vscode/settings.json +2 -0
  3. package/.vscode/tasks.json +15 -0
  4. package/build/abi/{integral/pool.json → inception/inception-ineth-pool.json} +558 -537
  5. package/build/abi/inception/inception-ratio-feed.json +329 -0
  6. package/build/abi/inception/inception-vault.json +991 -0
  7. package/build/abi/uniswap-v3/AlienBaseV3Router.abi.json +52 -0
  8. package/build/abi/usual-m-smart-m/usualM.abi.json +483 -0
  9. package/build/abi/usual-m-usd0/usualCollateralDao.abi.json +681 -0
  10. package/build/abi/{integral/relayer.json → wombat/pool.json} +474 -721
  11. package/build/bigint-constants.d.ts +1 -0
  12. package/build/bigint-constants.js +2 -1
  13. package/build/bigint-constants.js.map +1 -1
  14. package/build/bignumber-constants.js +2 -2
  15. package/build/bignumber-constants.js.map +1 -1
  16. package/build/calldata-gas-cost.js +2 -2
  17. package/build/calldata-gas-cost.js.map +1 -1
  18. package/build/composed-event-subscriber.js.map +1 -1
  19. package/build/config.js +33 -5
  20. package/build/config.js.map +1 -1
  21. package/build/constants.d.ts +2 -0
  22. package/build/constants.js +6 -3
  23. package/build/constants.js.map +1 -1
  24. package/build/dex/aave-gsm/aave-gsm-pool.js.map +1 -1
  25. package/build/dex/aave-gsm/aave-gsm.js +17 -7
  26. package/build/dex/aave-gsm/aave-gsm.js.map +1 -1
  27. package/build/dex/aave-gsm/types.d.ts +3 -3
  28. package/build/dex/aave-v1/aave-v1.d.ts +2 -1
  29. package/build/dex/aave-v1/aave-v1.js +23 -0
  30. package/build/dex/aave-v1/aave-v1.js.map +1 -1
  31. package/build/dex/aave-v2/aave-v2.js +17 -7
  32. package/build/dex/aave-v2/aave-v2.js.map +1 -1
  33. package/build/dex/aave-v2/tokens-avalanche.json +44 -0
  34. package/build/dex/aave-v2/tokens-mainnet.json +188 -0
  35. package/build/dex/aave-v2/tokens-polygon.json +44 -0
  36. package/build/dex/aave-v2/tokens.js +3 -3
  37. package/build/dex/aave-v2/tokens.js.map +1 -1
  38. package/build/dex/aave-v2/types.d.ts +8 -8
  39. package/build/dex/aave-v2/types.js +1 -1
  40. package/build/dex/aave-v2/types.js.map +1 -1
  41. package/build/dex/aave-v3/aave-v3.js +17 -7
  42. package/build/dex/aave-v3/aave-v3.js.map +1 -1
  43. package/build/dex/aave-v3/tokens.js +4 -4
  44. package/build/dex/aave-v3/tokens.js.map +1 -1
  45. package/build/dex/aave-v3/types.d.ts +8 -8
  46. package/build/dex/aave-v3/types.js +1 -1
  47. package/build/dex/aave-v3/types.js.map +1 -1
  48. package/build/dex/aave-v3/utils.js.map +1 -1
  49. package/build/dex/aave-v3-stata/aave-v3-stata.js +23 -13
  50. package/build/dex/aave-v3-stata/aave-v3-stata.js.map +1 -1
  51. package/build/dex/aave-v3-stata/tokens.js +4 -4
  52. package/build/dex/aave-v3-stata/tokens.js.map +1 -1
  53. package/build/dex/aave-v3-stata/types.d.ts +7 -7
  54. package/build/dex/aave-v3-stata/types.js +3 -3
  55. package/build/dex/aave-v3-stata/types.js.map +1 -1
  56. package/build/dex/aave-v3-stata/utils.d.ts +1 -1
  57. package/build/dex/aave-v3-stata/utils.js.map +1 -1
  58. package/build/dex/algebra/algebra-factory.d.ts +1 -1
  59. package/build/dex/algebra/algebra-factory.js.map +1 -1
  60. package/build/dex/algebra/algebra-pool-v1_1.js.map +1 -1
  61. package/build/dex/algebra/algebra-pool-v1_9.js.map +1 -1
  62. package/build/dex/algebra/algebra.d.ts +1 -2
  63. package/build/dex/algebra/algebra.js +18 -8
  64. package/build/dex/algebra/algebra.js.map +1 -1
  65. package/build/dex/algebra/lib/AlgebraMath.js +2 -2
  66. package/build/dex/algebra/lib/AlgebraMath.js.map +1 -1
  67. package/build/dex/algebra/lib/TickManager.js.map +1 -1
  68. package/build/dex/algebra/lib/TickTable.js.map +1 -1
  69. package/build/dex/algebra/scripts/validate-state.js.map +1 -1
  70. package/build/dex/algebra/types.d.ts +17 -17
  71. package/build/dex/algebra/types.js +1 -1
  72. package/build/dex/algebra/types.js.map +1 -1
  73. package/build/dex/algebra/utils.js +4 -5
  74. package/build/dex/algebra/utils.js.map +1 -1
  75. package/build/dex/angle-staked-stable/angle-staked-stable-pool.js.map +1 -1
  76. package/build/dex/angle-staked-stable/angle-staked-stable.js +17 -7
  77. package/build/dex/angle-staked-stable/angle-staked-stable.js.map +1 -1
  78. package/build/dex/angle-staked-stable/types.d.ts +3 -3
  79. package/build/dex/angle-transmuter/angle-transmuter-pool.d.ts +0 -1
  80. package/build/dex/angle-transmuter/angle-transmuter-pool.js.map +1 -1
  81. package/build/dex/angle-transmuter/angle-transmuter.js +17 -7
  82. package/build/dex/angle-transmuter/angle-transmuter.js.map +1 -1
  83. package/build/dex/angle-transmuter/morphoOracle.js.map +1 -1
  84. package/build/dex/angle-transmuter/morphoVault.js.map +1 -1
  85. package/build/dex/angle-transmuter/transmuter.js.map +1 -1
  86. package/build/dex/angle-transmuter/types.d.ts +24 -24
  87. package/build/dex/angle-transmuter/types.js +3 -3
  88. package/build/dex/angle-transmuter/types.js.map +1 -1
  89. package/build/dex/angle-transmuter/utils.js +6 -7
  90. package/build/dex/angle-transmuter/utils.js.map +1 -1
  91. package/build/dex/augustus-approvals.d.ts +3 -2
  92. package/build/dex/augustus-approvals.js +35 -16
  93. package/build/dex/augustus-approvals.js.map +1 -1
  94. package/build/dex/augustus-rfq.d.ts +6 -6
  95. package/build/dex/augustus-rfq.js.map +1 -1
  96. package/build/dex/balancer-v1/balancer-v1-math.js +2 -3
  97. package/build/dex/balancer-v1/balancer-v1-math.js.map +1 -1
  98. package/build/dex/balancer-v1/balancer-v1-pool.js.map +1 -1
  99. package/build/dex/balancer-v1/balancer-v1.js +17 -7
  100. package/build/dex/balancer-v1/balancer-v1.js.map +1 -1
  101. package/build/dex/balancer-v1/optimizer.js +1 -2
  102. package/build/dex/balancer-v1/optimizer.js.map +1 -1
  103. package/build/dex/balancer-v1/types.d.ts +16 -16
  104. package/build/dex/balancer-v1/types.js +1 -1
  105. package/build/dex/balancer-v1/types.js.map +1 -1
  106. package/build/dex/balancer-v1/utils.js +1 -2
  107. package/build/dex/balancer-v1/utils.js.map +1 -1
  108. package/build/dex/balancer-v2/balancer-v2-math.js.map +1 -1
  109. package/build/dex/balancer-v2/balancer-v2.d.ts +0 -1
  110. package/build/dex/balancer-v2/balancer-v2.js +17 -7
  111. package/build/dex/balancer-v2/balancer-v2.js.map +1 -1
  112. package/build/dex/balancer-v2/constants.js +2 -2
  113. package/build/dex/balancer-v2/constants.js.map +1 -1
  114. package/build/dex/balancer-v2/optimizer.js +1 -2
  115. package/build/dex/balancer-v2/optimizer.js.map +1 -1
  116. package/build/dex/balancer-v2/pools/balancer-v2-pool.js.map +1 -1
  117. package/build/dex/balancer-v2/pools/gyro/Gyro3Pool.d.ts +1 -1
  118. package/build/dex/balancer-v2/pools/gyro/Gyro3Pool.js.map +1 -1
  119. package/build/dex/balancer-v2/pools/gyro/GyroEPool.d.ts +1 -1
  120. package/build/dex/balancer-v2/pools/gyro/GyroEPool.js.map +1 -1
  121. package/build/dex/balancer-v2/pools/gyro/gyro-helpers.js +2 -3
  122. package/build/dex/balancer-v2/pools/gyro/gyro-helpers.js.map +1 -1
  123. package/build/dex/balancer-v2/pools/linear/LinearMath.d.ts +1 -1
  124. package/build/dex/balancer-v2/pools/linear/LinearMath.js +13 -14
  125. package/build/dex/balancer-v2/pools/linear/LinearMath.js.map +1 -1
  126. package/build/dex/balancer-v2/pools/linear/LinearPool.d.ts +1 -1
  127. package/build/dex/balancer-v2/pools/linear/LinearPool.js +18 -8
  128. package/build/dex/balancer-v2/pools/linear/LinearPool.js.map +1 -1
  129. package/build/dex/balancer-v2/pools/phantom-stable/PhantomStableMath.js +10 -11
  130. package/build/dex/balancer-v2/pools/phantom-stable/PhantomStableMath.js.map +1 -1
  131. package/build/dex/balancer-v2/pools/phantom-stable/PhantomStablePool.d.ts +1 -1
  132. package/build/dex/balancer-v2/pools/phantom-stable/PhantomStablePool.js +17 -7
  133. package/build/dex/balancer-v2/pools/phantom-stable/PhantomStablePool.js.map +1 -1
  134. package/build/dex/balancer-v2/pools/stable/StableMath.js.map +1 -1
  135. package/build/dex/balancer-v2/pools/stable/StablePool.d.ts +1 -1
  136. package/build/dex/balancer-v2/pools/stable/StablePool.js.map +1 -1
  137. package/build/dex/balancer-v2/pools/weighted/WeightedPool.d.ts +1 -1
  138. package/build/dex/balancer-v2/queryOnChain.js +1 -2
  139. package/build/dex/balancer-v2/queryOnChain.js.map +1 -1
  140. package/build/dex/balancer-v2/types.d.ts +17 -17
  141. package/build/dex/balancer-v2/types.js +2 -2
  142. package/build/dex/balancer-v2/types.js.map +1 -1
  143. package/build/dex/balancer-v2/utils.js +7 -7
  144. package/build/dex/balancer-v2/utils.js.map +1 -1
  145. package/build/dex/balancer-v3/abi/balancerBatchRouter.d.ts +729 -0
  146. package/build/dex/balancer-v3/abi/balancerBatchRouter.js +732 -0
  147. package/build/dex/balancer-v3/abi/balancerBatchRouter.js.map +1 -0
  148. package/build/dex/balancer-v3/abi/balancerRouter.d.ts +1406 -0
  149. package/build/dex/balancer-v3/abi/balancerRouter.js +1175 -0
  150. package/build/dex/balancer-v3/abi/balancerRouter.js.map +1 -0
  151. package/build/dex/balancer-v3/abi/vaultExtension.V3.d.ts +2081 -0
  152. package/build/dex/balancer-v3/abi/vaultExtension.V3.js +1851 -0
  153. package/build/dex/balancer-v3/abi/vaultExtension.V3.js.map +1 -0
  154. package/build/dex/balancer-v3/balancer-v3-pool.d.ts +1 -1
  155. package/build/dex/balancer-v3/balancer-v3-pool.js +12 -4
  156. package/build/dex/balancer-v3/balancer-v3-pool.js.map +1 -1
  157. package/build/dex/balancer-v3/balancer-v3-sepolia-pools.d.ts +34 -0
  158. package/build/dex/balancer-v3/balancer-v3-sepolia-pools.js +406 -0
  159. package/build/dex/balancer-v3/balancer-v3-sepolia-pools.js.map +1 -0
  160. package/build/dex/balancer-v3/balancer-v3.d.ts +5 -3
  161. package/build/dex/balancer-v3/balancer-v3.js +109 -27
  162. package/build/dex/balancer-v3/balancer-v3.js.map +1 -1
  163. package/build/dex/balancer-v3/config.js +6 -2
  164. package/build/dex/balancer-v3/config.js.map +1 -1
  165. package/build/dex/balancer-v3/getGasCost.js +1 -2
  166. package/build/dex/balancer-v3/getGasCost.js.map +1 -1
  167. package/build/dex/balancer-v3/getOnChainState.js +2 -3
  168. package/build/dex/balancer-v3/getOnChainState.js.map +1 -1
  169. package/build/dex/balancer-v3/getPoolsApi.js +1 -2
  170. package/build/dex/balancer-v3/getPoolsApi.js.map +1 -1
  171. package/build/dex/balancer-v3/getTopPoolsApi.js +5 -2
  172. package/build/dex/balancer-v3/getTopPoolsApi.js.map +1 -1
  173. package/build/dex/balancer-v3/optimizer.js +1 -2
  174. package/build/dex/balancer-v3/optimizer.js.map +1 -1
  175. package/build/dex/balancer-v3/stablePool.d.ts +1 -1
  176. package/build/dex/balancer-v3/stablePool.js +5 -5
  177. package/build/dex/balancer-v3/stablePool.js.map +1 -1
  178. package/build/dex/balancer-v3/types.d.ts +10 -10
  179. package/build/dex/bancor/types.d.ts +2 -2
  180. package/build/dex/bancor/types.js +1 -1
  181. package/build/dex/bancor/types.js.map +1 -1
  182. package/build/dex/bebop/bebop.js +18 -8
  183. package/build/dex/bebop/bebop.js.map +1 -1
  184. package/build/dex/bebop/config.js +5 -5
  185. package/build/dex/bebop/config.js.map +1 -1
  186. package/build/dex/bebop/rate-fetcher.js +2 -2
  187. package/build/dex/bebop/rate-fetcher.js.map +1 -1
  188. package/build/dex/bebop/types.d.ts +13 -13
  189. package/build/dex/cables/cables.d.ts +0 -1
  190. package/build/dex/cables/cables.js +80 -48
  191. package/build/dex/cables/cables.js.map +1 -1
  192. package/build/dex/cables/constants.js +1 -1
  193. package/build/dex/cables/constants.js.map +1 -1
  194. package/build/dex/cables/rate-fetcher.d.ts +0 -1
  195. package/build/dex/cables/rate-fetcher.js +10 -30
  196. package/build/dex/cables/rate-fetcher.js.map +1 -1
  197. package/build/dex/cables/types.d.ts +0 -1
  198. package/build/dex/cables/types.js +4 -1
  199. package/build/dex/cables/types.js.map +1 -1
  200. package/build/dex/camelot/camelot.d.ts +1 -1
  201. package/build/dex/camelot/camelot.js +19 -9
  202. package/build/dex/camelot/camelot.js.map +1 -1
  203. package/build/dex/camelot/config.js +1 -1
  204. package/build/dex/camelot/config.js.map +1 -1
  205. package/build/dex/camelot/types.d.ts +3 -3
  206. package/build/dex/compound/types.d.ts +2 -2
  207. package/build/dex/compound/types.js +1 -1
  208. package/build/dex/compound/types.js.map +1 -1
  209. package/build/dex/concentrator-arusd/concentrator-arusd-event.js.map +1 -1
  210. package/build/dex/concentrator-arusd/concentrator-arusd.js +17 -7
  211. package/build/dex/concentrator-arusd/concentrator-arusd.js.map +1 -1
  212. package/build/dex/concentrator-arusd/types.d.ts +4 -4
  213. package/build/dex/concentrator-arusd/utils.js +1 -2
  214. package/build/dex/concentrator-arusd/utils.js.map +1 -1
  215. package/build/dex/curve-v1/config.js +5 -5
  216. package/build/dex/curve-v1/config.js.map +1 -1
  217. package/build/dex/curve-v1/curve-v1.js +17 -7
  218. package/build/dex/curve-v1/curve-v1.js.map +1 -1
  219. package/build/dex/curve-v1/forks/curve-forks/curve-forks.js.map +1 -1
  220. package/build/dex/curve-v1/forks/swerve/swerve.js.map +1 -1
  221. package/build/dex/curve-v1/packer.js.map +1 -1
  222. package/build/dex/curve-v1/pools/3pool.js.map +1 -1
  223. package/build/dex/curve-v1/pools/curve-metapool.js.map +1 -1
  224. package/build/dex/curve-v1/pools/curve-pool.js.map +1 -1
  225. package/build/dex/curve-v1/pools/getstate-multicall.js +1 -2
  226. package/build/dex/curve-v1/pools/getstate-multicall.js.map +1 -1
  227. package/build/dex/curve-v1/pools/sETHpool.js.map +1 -1
  228. package/build/dex/curve-v1/types.d.ts +7 -7
  229. package/build/dex/curve-v1/types.js +2 -2
  230. package/build/dex/curve-v1/types.js.map +1 -1
  231. package/build/dex/curve-v1-factory/config.js +7 -7
  232. package/build/dex/curve-v1-factory/config.js.map +1 -1
  233. package/build/dex/curve-v1-factory/curve-v1-factory.js +17 -7
  234. package/build/dex/curve-v1-factory/curve-v1-factory.js.map +1 -1
  235. package/build/dex/curve-v1-factory/curve-v1-pool-manager.js.map +1 -1
  236. package/build/dex/curve-v1-factory/optimizer.js +1 -2
  237. package/build/dex/curve-v1-factory/optimizer.js.map +1 -1
  238. package/build/dex/curve-v1-factory/price-handlers/functions/_calc_withdraw_one_coin.js.map +1 -1
  239. package/build/dex/curve-v1-factory/price-handlers/functions/_dynamic_fee.js.map +1 -1
  240. package/build/dex/curve-v1-factory/price-handlers/functions/_rates.js.map +1 -1
  241. package/build/dex/curve-v1-factory/price-handlers/functions/_xp.js.map +1 -1
  242. package/build/dex/curve-v1-factory/price-handlers/functions/_xp_mem.js.map +1 -1
  243. package/build/dex/curve-v1-factory/price-handlers/functions/calc_token_amount.js.map +1 -1
  244. package/build/dex/curve-v1-factory/price-handlers/functions/get_D.js.map +1 -1
  245. package/build/dex/curve-v1-factory/price-handlers/functions/get_D_mem.js.map +1 -1
  246. package/build/dex/curve-v1-factory/price-handlers/functions/get_D_precisions.js.map +1 -1
  247. package/build/dex/curve-v1-factory/price-handlers/functions/get_dx.js.map +1 -1
  248. package/build/dex/curve-v1-factory/price-handlers/functions/get_dy.js.map +1 -1
  249. package/build/dex/curve-v1-factory/price-handlers/functions/get_dy_underlying.js.map +1 -1
  250. package/build/dex/curve-v1-factory/price-handlers/functions/get_y.js.map +1 -1
  251. package/build/dex/curve-v1-factory/price-handlers/functions/get_y_D.js.map +1 -1
  252. package/build/dex/curve-v1-factory/price-handlers/functions/utils.js +2 -2
  253. package/build/dex/curve-v1-factory/price-handlers/functions/utils.js.map +1 -1
  254. package/build/dex/curve-v1-factory/price-handlers/price-handler.js.map +1 -1
  255. package/build/dex/curve-v1-factory/price-handlers/types.d.ts +15 -15
  256. package/build/dex/curve-v1-factory/state-polling-pools/custom-pool-polling.d.ts +1 -1
  257. package/build/dex/curve-v1-factory/state-polling-pools/custom-pool-polling.js.map +1 -1
  258. package/build/dex/curve-v1-factory/state-polling-pools/factory-pool-polling.js +1 -1
  259. package/build/dex/curve-v1-factory/state-polling-pools/factory-pool-polling.js.map +1 -1
  260. package/build/dex/curve-v1-factory/state-polling-pools/polling-manager.js.map +1 -1
  261. package/build/dex/curve-v1-factory/state-polling-pools/pool-polling-base.d.ts +3 -3
  262. package/build/dex/curve-v1-factory/state-polling-pools/pool-polling-base.js.map +1 -1
  263. package/build/dex/curve-v1-factory/types.d.ts +17 -17
  264. package/build/dex/curve-v1-factory/types.js +6 -6
  265. package/build/dex/curve-v1-factory/types.js.map +1 -1
  266. package/build/dex/curve-v1-stable-ng/config.js +7 -7
  267. package/build/dex/curve-v1-stable-ng/config.js.map +1 -1
  268. package/build/dex/curve-v2/curve-v2.d.ts +2 -2
  269. package/build/dex/curve-v2/curve-v2.js.map +1 -1
  270. package/build/dex/curve-v2/types.d.ts +2 -2
  271. package/build/dex/curve-v2/types.js +1 -1
  272. package/build/dex/curve-v2/types.js.map +1 -1
  273. package/build/dex/dexalot/dexalot.js +57 -8
  274. package/build/dex/dexalot/dexalot.js.map +1 -1
  275. package/build/dex/dexalot/types.d.ts +17 -17
  276. package/build/dex/dexalot/types.js +1 -1
  277. package/build/dex/dexalot/types.js.map +1 -1
  278. package/build/dex/dodo-v1/types.d.ts +2 -2
  279. package/build/dex/dodo-v1/types.js +1 -1
  280. package/build/dex/dodo-v1/types.js.map +1 -1
  281. package/build/dex/dodo-v2.d.ts +5 -5
  282. package/build/dex/dodo-v2.js +1 -1
  283. package/build/dex/dodo-v2.js.map +1 -1
  284. package/build/dex/etherfi.d.ts +5 -5
  285. package/build/dex/etherfi.js.map +1 -1
  286. package/build/dex/fluid-dex/fluid-dex-factory.d.ts +1 -1
  287. package/build/dex/fluid-dex/fluid-dex-factory.js.map +1 -1
  288. package/build/dex/fluid-dex/fluid-dex-liquidity-proxy.js.map +1 -1
  289. package/build/dex/fluid-dex/fluid-dex.js +17 -7
  290. package/build/dex/fluid-dex/fluid-dex.js.map +1 -1
  291. package/build/dex/fluid-dex/types.d.ts +14 -14
  292. package/build/dex/fluid-dex/utils.js +1 -2
  293. package/build/dex/fluid-dex/utils.js.map +1 -1
  294. package/build/dex/fx-protocol-rusd/fx-protocol-rusd-event.js.map +1 -1
  295. package/build/dex/fx-protocol-rusd/fx-protocol-rusd.js +17 -7
  296. package/build/dex/fx-protocol-rusd/fx-protocol-rusd.js.map +1 -1
  297. package/build/dex/fx-protocol-rusd/types.d.ts +3 -3
  298. package/build/dex/fx-protocol-rusd/utils.js +1 -2
  299. package/build/dex/fx-protocol-rusd/utils.js.map +1 -1
  300. package/build/dex/generic-rfq/fetch-mm-api.js +1 -1
  301. package/build/dex/generic-rfq/fetch-mm-api.js.map +1 -1
  302. package/build/dex/generic-rfq/generic-rfq.js.map +1 -1
  303. package/build/dex/generic-rfq/rate-fetcher.js.map +1 -1
  304. package/build/dex/generic-rfq/security.d.ts +1 -1
  305. package/build/dex/generic-rfq/security.js.map +1 -1
  306. package/build/dex/generic-rfq/types.d.ts +23 -23
  307. package/build/dex/generic-rfq/utils.d.ts +1 -1
  308. package/build/dex/generic-rfq/utils.js.map +1 -1
  309. package/build/dex/generic-rfq/validators.js +17 -7
  310. package/build/dex/generic-rfq/validators.js.map +1 -1
  311. package/build/dex/gmx/fast-price-feed.js.map +1 -1
  312. package/build/dex/gmx/gmx.js +17 -7
  313. package/build/dex/gmx/gmx.js.map +1 -1
  314. package/build/dex/gmx/pool.js.map +1 -1
  315. package/build/dex/gmx/types.d.ts +10 -10
  316. package/build/dex/gmx/usdg.js.map +1 -1
  317. package/build/dex/gmx/vault-price-feed.js.map +1 -1
  318. package/build/dex/gmx/vault-utils.js.map +1 -1
  319. package/build/dex/gmx/vault.js.map +1 -1
  320. package/build/dex/hashflow/constants.js +10 -10
  321. package/build/dex/hashflow/constants.js.map +1 -1
  322. package/build/dex/hashflow/hashflow.js +17 -7
  323. package/build/dex/hashflow/hashflow.js.map +1 -1
  324. package/build/dex/hashflow/rate-fetcher.js.map +1 -1
  325. package/build/dex/hashflow/types.d.ts +8 -8
  326. package/build/dex/hashflow/types.js +1 -1
  327. package/build/dex/hashflow/types.js.map +1 -1
  328. package/build/dex/idex.d.ts +3 -3
  329. package/build/dex/idle-dao/idle-dao.js +17 -7
  330. package/build/dex/idle-dao/idle-dao.js.map +1 -1
  331. package/build/dex/idle-dao/tokens.js +5 -5
  332. package/build/dex/idle-dao/tokens.js.map +1 -1
  333. package/build/dex/idle-dao/types.d.ts +7 -7
  334. package/build/dex/idle-dao/types.js +1 -1
  335. package/build/dex/idle-dao/types.js.map +1 -1
  336. package/build/dex/idle-dao/utils.d.ts +1 -1
  337. package/build/dex/idle-dao/utils.js.map +1 -1
  338. package/build/dex/inception/config.d.ts +4 -0
  339. package/build/dex/inception/config.js +109 -0
  340. package/build/dex/inception/config.js.map +1 -0
  341. package/build/dex/inception/inception-event-pool.d.ts +16 -0
  342. package/build/dex/inception/inception-event-pool.js +49 -0
  343. package/build/dex/inception/inception-event-pool.js.map +1 -0
  344. package/build/dex/inception/inception.d.ts +43 -0
  345. package/build/dex/inception/inception.js +180 -0
  346. package/build/dex/inception/inception.js.map +1 -0
  347. package/build/dex/inception/tokens.d.ts +9 -0
  348. package/build/dex/inception/tokens.js +28 -0
  349. package/build/dex/inception/tokens.js.map +1 -0
  350. package/build/dex/inception/types.d.ts +22 -0
  351. package/build/dex/inception/types.js +3 -0
  352. package/build/dex/inception/types.js.map +1 -0
  353. package/build/dex/inception/utils.d.ts +7 -0
  354. package/build/dex/inception/utils.js +58 -0
  355. package/build/dex/inception/utils.js.map +1 -0
  356. package/build/dex/index.d.ts +2 -2
  357. package/build/dex/index.js +4 -2
  358. package/build/dex/index.js.map +1 -1
  359. package/build/dex/infusion/infusion-stable-pool.js.map +1 -1
  360. package/build/dex/infusion/infusion.js +1 -1
  361. package/build/dex/infusion/infusion.js.map +1 -1
  362. package/build/dex/infusion/types.d.ts +6 -6
  363. package/build/dex/infusion/utils/isStablePair.js +4 -4
  364. package/build/dex/infusion/utils/isStablePair.js.map +1 -1
  365. package/build/dex/jarvis-v6/chainLinkpriceFeed-event.js.map +1 -1
  366. package/build/dex/jarvis-v6/jarvis-v6.js +18 -8
  367. package/build/dex/jarvis-v6/jarvis-v6.js.map +1 -1
  368. package/build/dex/jarvis-v6/syntheteumPool-event.js.map +1 -1
  369. package/build/dex/jarvis-v6/types.d.ts +10 -10
  370. package/build/dex/jarvis-v6/types.js +1 -1
  371. package/build/dex/jarvis-v6/types.js.map +1 -1
  372. package/build/dex/jarvis-v6/utils.js +5 -5
  373. package/build/dex/jarvis-v6/utils.js.map +1 -1
  374. package/build/dex/jarvis.d.ts +2 -1
  375. package/build/dex/jarvis.js +58 -0
  376. package/build/dex/jarvis.js.map +1 -1
  377. package/build/dex/kyberdmm/fee-formula.d.ts +1 -1
  378. package/build/dex/kyberdmm/fee-formula.js.map +1 -1
  379. package/build/dex/kyberdmm/kyberdmm.js +17 -7
  380. package/build/dex/kyberdmm/kyberdmm.js.map +1 -1
  381. package/build/dex/kyberdmm/math-ext.js.map +1 -1
  382. package/build/dex/kyberdmm/pool.d.ts +2 -2
  383. package/build/dex/kyberdmm/pool.js.map +1 -1
  384. package/build/dex/kyberdmm/types.d.ts +8 -8
  385. package/build/dex/kyberdmm/types.js +1 -1
  386. package/build/dex/kyberdmm/types.js.map +1 -1
  387. package/build/dex/lido/types.d.ts +1 -1
  388. package/build/dex/lido/types.js +1 -1
  389. package/build/dex/lido/types.js.map +1 -1
  390. package/build/dex/limit-order-exchange.js.map +1 -1
  391. package/build/dex/lite-psm/lite-psm-event-pool.js +2 -2
  392. package/build/dex/lite-psm/lite-psm-event-pool.js.map +1 -1
  393. package/build/dex/lite-psm/lite-psm.js +18 -8
  394. package/build/dex/lite-psm/lite-psm.js.map +1 -1
  395. package/build/dex/lite-psm/types.d.ts +6 -6
  396. package/build/dex/maker-psm/maker-psm.js +17 -7
  397. package/build/dex/maker-psm/maker-psm.js.map +1 -1
  398. package/build/dex/maker-psm/scripts/gem.abi.json +136 -0
  399. package/build/dex/maker-psm/scripts/validate-state.d.ts +0 -0
  400. package/build/dex/maker-psm/scripts/validate-state.js +185 -0
  401. package/build/dex/maker-psm/scripts/validate-state.js.map +1 -0
  402. package/build/dex/maker-psm/scripts/vat.abi.json +243 -0
  403. package/build/dex/maker-psm/types.d.ts +6 -6
  404. package/build/dex/maverick-v1/maverick-math/maverick-basic-math.js.map +1 -1
  405. package/build/dex/maverick-v1/maverick-math/maverick-bin-map.d.ts +1 -1
  406. package/build/dex/maverick-v1/maverick-math/maverick-bin-map.js.map +1 -1
  407. package/build/dex/maverick-v1/maverick-math/maverick-pool-math.d.ts +1 -1
  408. package/build/dex/maverick-v1/maverick-math/maverick-pool-math.js.map +1 -1
  409. package/build/dex/maverick-v1/maverick-v1-pool.js +17 -7
  410. package/build/dex/maverick-v1/maverick-v1-pool.js.map +1 -1
  411. package/build/dex/maverick-v1/maverick-v1.js +17 -7
  412. package/build/dex/maverick-v1/maverick-v1.js.map +1 -1
  413. package/build/dex/maverick-v1/types.d.ts +7 -7
  414. package/build/dex/maverick-v1/types.js +1 -1
  415. package/build/dex/maverick-v1/types.js.map +1 -1
  416. package/build/dex/maverick-v2/maverick-math/maverick-basic-math.js.map +1 -1
  417. package/build/dex/maverick-v2/maverick-math/maverick-bin-math.js.map +1 -1
  418. package/build/dex/maverick-v2/maverick-math/maverick-delta-math.d.ts +1 -1
  419. package/build/dex/maverick-v2/maverick-math/maverick-delta-math.js.map +1 -1
  420. package/build/dex/maverick-v2/maverick-math/maverick-math.js.map +1 -1
  421. package/build/dex/maverick-v2/maverick-math/maverick-pool-lib.js.map +1 -1
  422. package/build/dex/maverick-v2/maverick-math/maverick-pool-math.js.map +1 -1
  423. package/build/dex/maverick-v2/maverick-math/maverick-swap-math.js.map +1 -1
  424. package/build/dex/maverick-v2/maverick-math/maverick-tick-math.js.map +1 -1
  425. package/build/dex/maverick-v2/maverick-v2-pool.js.map +1 -1
  426. package/build/dex/maverick-v2/maverick-v2.js +17 -7
  427. package/build/dex/maverick-v2/maverick-v2.js.map +1 -1
  428. package/build/dex/maverick-v2/types.d.ts +14 -14
  429. package/build/dex/nerve/config.js +67 -67
  430. package/build/dex/nerve/config.js.map +1 -1
  431. package/build/dex/nerve/nerve-math.js.map +1 -1
  432. package/build/dex/nerve/nerve-pool.js.map +1 -1
  433. package/build/dex/nerve/nerve.js +17 -7
  434. package/build/dex/nerve/nerve.js.map +1 -1
  435. package/build/dex/nerve/types.d.ts +6 -6
  436. package/build/dex/nerve/types.js +1 -1
  437. package/build/dex/nerve/types.js.map +1 -1
  438. package/build/dex/nerve/utils.js +2 -2
  439. package/build/dex/nerve/utils.js.map +1 -1
  440. package/build/dex/oswap/config.js +3 -3
  441. package/build/dex/oswap/config.js.map +1 -1
  442. package/build/dex/oswap/oswap-pool.js.map +1 -1
  443. package/build/dex/oswap/oswap.js +17 -7
  444. package/build/dex/oswap/oswap.js.map +1 -1
  445. package/build/dex/oswap/types.d.ts +4 -4
  446. package/build/dex/pancakeswap-v3/contract-math/BitMath.js.map +1 -1
  447. package/build/dex/pancakeswap-v3/contract-math/LiquidityMath.js.map +1 -1
  448. package/build/dex/pancakeswap-v3/contract-math/Oracle.js.map +1 -1
  449. package/build/dex/pancakeswap-v3/contract-math/SqrtPriceMath.js.map +1 -1
  450. package/build/dex/pancakeswap-v3/contract-math/SwapMath.js.map +1 -1
  451. package/build/dex/pancakeswap-v3/contract-math/Tick.js.map +1 -1
  452. package/build/dex/pancakeswap-v3/contract-math/TickBitMap.js.map +1 -1
  453. package/build/dex/pancakeswap-v3/contract-math/pancakeswap-v3-math.d.ts +1 -1
  454. package/build/dex/pancakeswap-v3/contract-math/pancakeswap-v3-math.js.map +1 -1
  455. package/build/dex/pancakeswap-v3/contract-math/utils.js +3 -4
  456. package/build/dex/pancakeswap-v3/contract-math/utils.js.map +1 -1
  457. package/build/dex/pancakeswap-v3/pancakeswap-v3-factory.d.ts +1 -1
  458. package/build/dex/pancakeswap-v3/pancakeswap-v3-factory.js.map +1 -1
  459. package/build/dex/pancakeswap-v3/pancakeswap-v3-pool.js.map +1 -1
  460. package/build/dex/pancakeswap-v3/pancakeswap-v3.d.ts +0 -1
  461. package/build/dex/pancakeswap-v3/pancakeswap-v3.js +17 -7
  462. package/build/dex/pancakeswap-v3/pancakeswap-v3.js.map +1 -1
  463. package/build/dex/pancakeswap-v3/utils.js +1 -2
  464. package/build/dex/pancakeswap-v3/utils.js.map +1 -1
  465. package/build/dex/paraswap-limit-orders/paraswap-limit-orders.js +17 -7
  466. package/build/dex/paraswap-limit-orders/paraswap-limit-orders.js.map +1 -1
  467. package/build/dex/paraswap-limit-orders/types.d.ts +11 -11
  468. package/build/dex/paraswap-limit-orders/utils.js +2 -3
  469. package/build/dex/paraswap-limit-orders/utils.js.map +1 -1
  470. package/build/dex/platypus/platypus.d.ts +2 -1
  471. package/build/dex/platypus/platypus.js +45 -0
  472. package/build/dex/platypus/platypus.js.map +1 -1
  473. package/build/dex/polygon-migrator/polygon-migrator.js +17 -7
  474. package/build/dex/polygon-migrator/polygon-migrator.js.map +1 -1
  475. package/build/dex/polygon-migrator/types.d.ts +2 -2
  476. package/build/dex/polygon-migrator/types.js +1 -1
  477. package/build/dex/polygon-migrator/types.js.map +1 -1
  478. package/build/dex/quick-perps/fast-price-feed.js.map +1 -1
  479. package/build/dex/quick-perps/pool.js.map +1 -1
  480. package/build/dex/quick-perps/quick-perps.js +17 -7
  481. package/build/dex/quick-perps/quick-perps.js.map +1 -1
  482. package/build/dex/quick-perps/types.d.ts +10 -10
  483. package/build/dex/quick-perps/usdq.js.map +1 -1
  484. package/build/dex/quick-perps/vault-price-feed.js.map +1 -1
  485. package/build/dex/quick-perps/vault-utils.js.map +1 -1
  486. package/build/dex/quick-perps/vault.js.map +1 -1
  487. package/build/dex/quickswap/quickswap-v3.d.ts +1 -1
  488. package/build/dex/quickswap/quickswap-v3.js.map +1 -1
  489. package/build/dex/simple-exchange.js.map +1 -1
  490. package/build/dex/sky-converter/config.js +2 -2
  491. package/build/dex/sky-converter/config.js.map +1 -1
  492. package/build/dex/sky-converter/sky-converter.js +17 -7
  493. package/build/dex/sky-converter/sky-converter.js.map +1 -1
  494. package/build/dex/sky-converter/types.d.ts +2 -2
  495. package/build/dex/smoothy/types.d.ts +2 -2
  496. package/build/dex/smoothy/types.js +1 -1
  497. package/build/dex/smoothy/types.js.map +1 -1
  498. package/build/dex/solidly/config.js +10 -10
  499. package/build/dex/solidly/config.js.map +1 -1
  500. package/build/dex/solidly/forks-override/aerodrome.js.map +1 -1
  501. package/build/dex/solidly/forks-override/ramses.d.ts +2 -2
  502. package/build/dex/solidly/solidly-stable-pool.js.map +1 -1
  503. package/build/dex/solidly/solidly.js.map +1 -1
  504. package/build/dex/solidly/types.d.ts +3 -3
  505. package/build/dex/solidly-v3/constants.js +1 -1
  506. package/build/dex/solidly-v3/constants.js.map +1 -1
  507. package/build/dex/solidly-v3/contract-math/BitMath.js.map +1 -1
  508. package/build/dex/solidly-v3/contract-math/LiquidityMath.js.map +1 -1
  509. package/build/dex/solidly-v3/contract-math/SqrtPriceMath.js.map +1 -1
  510. package/build/dex/solidly-v3/contract-math/SwapMath.js.map +1 -1
  511. package/build/dex/solidly-v3/contract-math/Tick.js.map +1 -1
  512. package/build/dex/solidly-v3/contract-math/TickBitMap.js.map +1 -1
  513. package/build/dex/solidly-v3/contract-math/uniswap-v3-math.d.ts +3 -3
  514. package/build/dex/solidly-v3/contract-math/uniswap-v3-math.js +2 -2
  515. package/build/dex/solidly-v3/contract-math/uniswap-v3-math.js.map +1 -1
  516. package/build/dex/solidly-v3/contract-math/utils.js +5 -6
  517. package/build/dex/solidly-v3/contract-math/utils.js.map +1 -1
  518. package/build/dex/solidly-v3/scripts/check-event-pool-event.d.ts +1 -0
  519. package/build/dex/solidly-v3/scripts/check-event-pool-event.js +53 -0
  520. package/build/dex/solidly-v3/scripts/check-event-pool-event.js.map +1 -0
  521. package/build/dex/solidly-v3/solidly-v3-factory.d.ts +1 -1
  522. package/build/dex/solidly-v3/solidly-v3-factory.js.map +1 -1
  523. package/build/dex/solidly-v3/solidly-v3-pool.js.map +1 -1
  524. package/build/dex/solidly-v3/solidly-v3.d.ts +4 -5
  525. package/build/dex/solidly-v3/solidly-v3.js +17 -7
  526. package/build/dex/solidly-v3/solidly-v3.js.map +1 -1
  527. package/build/dex/solidly-v3/types.d.ts +19 -19
  528. package/build/dex/solidly-v3/types.js +1 -1
  529. package/build/dex/solidly-v3/types.js.map +1 -1
  530. package/build/dex/solidly-v3/utils.js +2 -3
  531. package/build/dex/solidly-v3/utils.js.map +1 -1
  532. package/build/dex/spark/config.js +3 -3
  533. package/build/dex/spark/config.js.map +1 -1
  534. package/build/dex/spark/scripts/validate-state.js.map +1 -1
  535. package/build/dex/spark/spark-sdai-pool.d.ts +1 -1
  536. package/build/dex/spark/spark-sdai-pool.js.map +1 -1
  537. package/build/dex/spark/spark.js +17 -7
  538. package/build/dex/spark/spark.js.map +1 -1
  539. package/build/dex/spark/types.d.ts +3 -3
  540. package/build/dex/spark/types.js +2 -2
  541. package/build/dex/spark/types.js.map +1 -1
  542. package/build/dex/spark/utils.js +3 -4
  543. package/build/dex/spark/utils.js.map +1 -1
  544. package/build/dex/stable-pool/types.d.ts +2 -2
  545. package/build/dex/stable-pool/types.js +1 -1
  546. package/build/dex/stable-pool/types.js.map +1 -1
  547. package/build/dex/stable-pool.js +1 -8
  548. package/build/dex/stable-pool.js.map +1 -1
  549. package/build/dex/stader/stader-pool.js.map +1 -1
  550. package/build/dex/stader/stader.js +17 -7
  551. package/build/dex/stader/stader.js.map +1 -1
  552. package/build/dex/stader/types.d.ts +3 -3
  553. package/build/dex/stader/types.js +1 -1
  554. package/build/dex/stader/types.js.map +1 -1
  555. package/build/dex/stader/utils.js +1 -2
  556. package/build/dex/stader/utils.js.map +1 -1
  557. package/build/dex/stkgho/stkgho-pool.js.map +1 -1
  558. package/build/dex/stkgho/stkgho.js +17 -7
  559. package/build/dex/stkgho/stkgho.js.map +1 -1
  560. package/build/dex/stkgho/types.d.ts +3 -3
  561. package/build/dex/swaap-v1/swaap-v1.d.ts +2 -1
  562. package/build/dex/swaap-v1/swaap-v1.js +14 -0
  563. package/build/dex/swaap-v1/swaap-v1.js.map +1 -1
  564. package/build/dex/swaap-v2/rate-fetcher.js.map +1 -1
  565. package/build/dex/swaap-v2/stable-coins.js +9 -9
  566. package/build/dex/swaap-v2/stable-coins.js.map +1 -1
  567. package/build/dex/swaap-v2/swaap-v2.js +17 -7
  568. package/build/dex/swaap-v2/swaap-v2.js.map +1 -1
  569. package/build/dex/swaap-v2/types.d.ts +12 -12
  570. package/build/dex/swaap-v2/utils.js.map +1 -1
  571. package/build/dex/swaap-v2/validators.js +17 -7
  572. package/build/dex/swaap-v2/validators.js.map +1 -1
  573. package/build/dex/swell/config.d.ts +1 -1
  574. package/build/dex/swell/swell.d.ts +2 -2
  575. package/build/dex/swell/swell.js +18 -8
  576. package/build/dex/swell/swell.js.map +1 -1
  577. package/build/dex/swell/type.d.ts +2 -2
  578. package/build/dex/swell/utils.js +2 -3
  579. package/build/dex/swell/utils.js.map +1 -1
  580. package/build/dex/synthetix/config.js +18 -18
  581. package/build/dex/synthetix/config.js.map +1 -1
  582. package/build/dex/synthetix/constants.js +1 -1
  583. package/build/dex/synthetix/constants.js.map +1 -1
  584. package/build/dex/synthetix/contract-math/DexPriceAggregatorUniswapV3.js.map +1 -1
  585. package/build/dex/synthetix/contract-math/ExchangeRates.js.map +1 -1
  586. package/build/dex/synthetix/contract-math/ExchangeRatesWithDexPricing.js.map +1 -1
  587. package/build/dex/synthetix/contract-math/OracleLibrary.js.map +1 -1
  588. package/build/dex/synthetix/contract-math/SafeDecimalMath.js.map +1 -1
  589. package/build/dex/synthetix/contract-math/synthetix-math.js.map +1 -1
  590. package/build/dex/synthetix/synthetix-state.js.map +1 -1
  591. package/build/dex/synthetix/synthetix.d.ts +0 -1
  592. package/build/dex/synthetix/synthetix.js +17 -7
  593. package/build/dex/synthetix/synthetix.js.map +1 -1
  594. package/build/dex/synthetix/types.d.ts +12 -12
  595. package/build/dex/synthetix/utils.js +2 -2
  596. package/build/dex/synthetix/utils.js.map +1 -1
  597. package/build/dex/trader-joe-v2.1/types.d.ts +5 -5
  598. package/build/dex/trader-joe-v2.1/types.js +1 -1
  599. package/build/dex/trader-joe-v2.1/types.js.map +1 -1
  600. package/build/dex/uniswap-v2/config.js +6 -6
  601. package/build/dex/uniswap-v2/config.js.map +1 -1
  602. package/build/dex/uniswap-v2/nomiswap-v2.js +2 -2
  603. package/build/dex/uniswap-v2/nomiswap-v2.js.map +1 -1
  604. package/build/dex/uniswap-v2/optimizer.js +1 -2
  605. package/build/dex/uniswap-v2/optimizer.js.map +1 -1
  606. package/build/dex/uniswap-v2/types.d.ts +15 -15
  607. package/build/dex/uniswap-v2/types.js +2 -2
  608. package/build/dex/uniswap-v2/types.js.map +1 -1
  609. package/build/dex/uniswap-v2/uniswap-v2-constant-product-pool.js.map +1 -1
  610. package/build/dex/uniswap-v2/uniswap-v2-factory.d.ts +2 -2
  611. package/build/dex/uniswap-v2/uniswap-v2-factory.js.map +1 -1
  612. package/build/dex/uniswap-v2/uniswap-v2.js +19 -9
  613. package/build/dex/uniswap-v2/uniswap-v2.js.map +1 -1
  614. package/build/dex/uniswap-v3/constants.js +2 -2
  615. package/build/dex/uniswap-v3/constants.js.map +1 -1
  616. package/build/dex/uniswap-v3/contract-math/BitMath.js.map +1 -1
  617. package/build/dex/uniswap-v3/contract-math/LiquidityMath.js.map +1 -1
  618. package/build/dex/uniswap-v3/contract-math/Oracle.js.map +1 -1
  619. package/build/dex/uniswap-v3/contract-math/SqrtPriceMath.js.map +1 -1
  620. package/build/dex/uniswap-v3/contract-math/SwapMath.js.map +1 -1
  621. package/build/dex/uniswap-v3/contract-math/Tick.js.map +1 -1
  622. package/build/dex/uniswap-v3/contract-math/TickBitMap.js.map +1 -1
  623. package/build/dex/uniswap-v3/contract-math/uniswap-v3-math.d.ts +3 -3
  624. package/build/dex/uniswap-v3/contract-math/uniswap-v3-math.js +2 -2
  625. package/build/dex/uniswap-v3/contract-math/uniswap-v3-math.js.map +1 -1
  626. package/build/dex/uniswap-v3/contract-math/utils.js +5 -6
  627. package/build/dex/uniswap-v3/contract-math/utils.js.map +1 -1
  628. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.d.ts +17 -0
  629. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.js +64 -0
  630. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.js.map +1 -0
  631. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.d.ts +17 -0
  632. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.js +79 -0
  633. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.js.map +1 -0
  634. package/build/dex/uniswap-v3/forks/ramses-v2/utils.js +1 -2
  635. package/build/dex/uniswap-v3/forks/ramses-v2/utils.js.map +1 -1
  636. package/build/dex/uniswap-v3/forks/velodrome-slipstream/utils.js +1 -2
  637. package/build/dex/uniswap-v3/forks/velodrome-slipstream/utils.js.map +1 -1
  638. package/build/dex/uniswap-v3/forks/velodrome-slipstream/velodrome-slipstream-pool.js +1 -1
  639. package/build/dex/uniswap-v3/forks/velodrome-slipstream/velodrome-slipstream-pool.js.map +1 -1
  640. package/build/dex/uniswap-v3/forks/velodrome-slipstream/velodrome-slipstream.d.ts +1 -1
  641. package/build/dex/uniswap-v3/forks/velodrome-slipstream/velodrome-slipstream.js.map +1 -1
  642. package/build/dex/uniswap-v3/scripts/measure-calc-time.js +17 -7
  643. package/build/dex/uniswap-v3/scripts/measure-calc-time.js.map +1 -1
  644. package/build/dex/uniswap-v3/types.d.ts +22 -22
  645. package/build/dex/uniswap-v3/types.js +1 -1
  646. package/build/dex/uniswap-v3/types.js.map +1 -1
  647. package/build/dex/uniswap-v3/uniswap-v3-factory.d.ts +1 -1
  648. package/build/dex/uniswap-v3/uniswap-v3-factory.js.map +1 -1
  649. package/build/dex/uniswap-v3/uniswap-v3-pool.js.map +1 -1
  650. package/build/dex/uniswap-v3/uniswap-v3-pricing.d.ts +4 -0
  651. package/build/dex/uniswap-v3/uniswap-v3-pricing.js +43 -0
  652. package/build/dex/uniswap-v3/uniswap-v3-pricing.js.map +1 -0
  653. package/build/dex/uniswap-v3/uniswap-v3-worker.d.ts +1 -0
  654. package/build/dex/uniswap-v3/uniswap-v3-worker.js +10 -0
  655. package/build/dex/uniswap-v3/uniswap-v3-worker.js.map +1 -0
  656. package/build/dex/uniswap-v3/uniswap-v3.d.ts +5 -6
  657. package/build/dex/uniswap-v3/uniswap-v3.js +17 -7
  658. package/build/dex/uniswap-v3/uniswap-v3.js.map +1 -1
  659. package/build/dex/uniswap-v3/utils.js +2 -3
  660. package/build/dex/uniswap-v3/utils.js.map +1 -1
  661. package/build/dex/uniswap-v3.d.ts +4 -4
  662. package/build/dex/uniswap-v3.js.map +1 -1
  663. package/build/dex/usual/types.d.ts +13 -0
  664. package/build/dex/usual/types.js +3 -0
  665. package/build/dex/usual/types.js.map +1 -0
  666. package/build/dex/usual/usual-bond.d.ts +18 -0
  667. package/build/dex/usual/usual-bond.js +52 -0
  668. package/build/dex/usual/usual-bond.js.map +1 -0
  669. package/build/dex/usual/usual-m-smart-m.d.ts +17 -0
  670. package/build/dex/usual/usual-m-smart-m.js +50 -0
  671. package/build/dex/usual/usual-m-smart-m.js.map +1 -0
  672. package/build/dex/usual/usual-m-usd0.d.ts +17 -0
  673. package/build/dex/usual/usual-m-usd0.js +51 -0
  674. package/build/dex/usual/usual-m-usd0.js.map +1 -0
  675. package/build/dex/usual/usual.d.ts +27 -0
  676. package/build/dex/usual/usual.js +125 -0
  677. package/build/dex/usual/usual.js.map +1 -0
  678. package/build/dex/usual-bond/types.d.ts +3 -3
  679. package/build/dex/usual-bond/usual-bond.js +17 -7
  680. package/build/dex/usual-bond/usual-bond.js.map +1 -1
  681. package/build/dex/usual-m-smart-m/config.d.ts +3 -0
  682. package/build/dex/usual-m-smart-m/config.js +13 -0
  683. package/build/dex/usual-m-smart-m/config.js.map +1 -0
  684. package/build/dex/usual-m-smart-m/types.d.ts +7 -0
  685. package/build/dex/usual-m-smart-m/types.js +3 -0
  686. package/build/dex/usual-m-smart-m/types.js.map +1 -0
  687. package/build/dex/usual-m-smart-m/usual-m-smart-m.d.ts +35 -0
  688. package/build/dex/usual-m-smart-m/usual-m-smart-m.js +161 -0
  689. package/build/dex/usual-m-smart-m/usual-m-smart-m.js.map +1 -0
  690. package/build/dex/usual-m-usd0/config.d.ts +3 -0
  691. package/build/dex/usual-m-usd0/config.js +14 -0
  692. package/build/dex/usual-m-usd0/config.js.map +1 -0
  693. package/build/dex/usual-m-usd0/types.d.ts +8 -0
  694. package/build/dex/usual-m-usd0/types.js +3 -0
  695. package/build/dex/usual-m-usd0/types.js.map +1 -0
  696. package/build/dex/usual-m-usd0/usual-m-usd0.d.ts +35 -0
  697. package/build/dex/usual-m-usd0/usual-m-usd0.js +159 -0
  698. package/build/dex/usual-m-usd0/usual-m-usd0.js.map +1 -0
  699. package/build/dex/weth/config.js +3 -0
  700. package/build/dex/weth/config.js.map +1 -1
  701. package/build/dex/weth/types.d.ts +4 -4
  702. package/build/dex/weth/types.js +1 -1
  703. package/build/dex/weth/types.js.map +1 -1
  704. package/build/dex/weth/weth.js +18 -8
  705. package/build/dex/weth/weth.js.map +1 -1
  706. package/build/dex/wombat/types.d.ts +7 -7
  707. package/build/dex/wombat/utils.js +7 -7
  708. package/build/dex/wombat/utils.js.map +1 -1
  709. package/build/dex/wombat/wombat-bmw.js.map +1 -1
  710. package/build/dex/wombat/wombat-pool.js.map +1 -1
  711. package/build/dex/wombat/wombat-quoter.js.map +1 -1
  712. package/build/dex/wombat/wombat.js +17 -7
  713. package/build/dex/wombat/wombat.js.map +1 -1
  714. package/build/dex/woo-fi-v2/decoders.js +3 -4
  715. package/build/dex/woo-fi-v2/decoders.js.map +1 -1
  716. package/build/dex/woo-fi-v2/types.d.ts +9 -9
  717. package/build/dex/woo-fi-v2/woo-fi-v2-math.js.map +1 -1
  718. package/build/dex/woo-fi-v2/woo-fi-v2.js +17 -7
  719. package/build/dex/woo-fi-v2/woo-fi-v2.js.map +1 -1
  720. package/build/dex/wsteth/types.d.ts +3 -3
  721. package/build/dex/wsteth/wsteth.js +17 -7
  722. package/build/dex/wsteth/wsteth.js.map +1 -1
  723. package/build/dex/wusdm/config.js +1 -1
  724. package/build/dex/wusdm/config.js.map +1 -1
  725. package/build/dex/wusdm/types.d.ts +3 -3
  726. package/build/dex/wusdm/types.js +1 -1
  727. package/build/dex/wusdm/types.js.map +1 -1
  728. package/build/dex/wusdm/wusdm-pool.js.map +1 -1
  729. package/build/dex/wusdm/wusdm.js +17 -7
  730. package/build/dex/wusdm/wusdm.js.map +1 -1
  731. package/build/dex/zerox/index.d.ts +4 -26
  732. package/build/dex/zerox/index.js +50 -42
  733. package/build/dex/zerox/index.js.map +1 -1
  734. package/build/dex/zerox/types.d.ts +29 -0
  735. package/build/dex/zerox/types.js +8 -1
  736. package/build/dex/zerox/types.js.map +1 -1
  737. package/build/dex-helper/dummy-dex-helper.js.map +1 -1
  738. package/build/dex-helper/irequest-wrapper.d.ts +2 -2
  739. package/build/executor/Executor01BytecodeBuilder.d.ts +2 -2
  740. package/build/executor/Executor01BytecodeBuilder.js +9 -14
  741. package/build/executor/Executor01BytecodeBuilder.js.map +1 -1
  742. package/build/executor/Executor02BytecodeBuilder.d.ts +2 -2
  743. package/build/executor/Executor02BytecodeBuilder.js +23 -28
  744. package/build/executor/Executor02BytecodeBuilder.js.map +1 -1
  745. package/build/executor/Executor03BytecodeBuilder.d.ts +2 -2
  746. package/build/executor/Executor03BytecodeBuilder.js +15 -20
  747. package/build/executor/Executor03BytecodeBuilder.js.map +1 -1
  748. package/build/executor/ExecutorBytecodeBuilder.d.ts +5 -3
  749. package/build/executor/ExecutorBytecodeBuilder.js +51 -18
  750. package/build/executor/ExecutorBytecodeBuilder.js.map +1 -1
  751. package/build/executor/ExecutorDetector.js +5 -5
  752. package/build/executor/ExecutorDetector.js.map +1 -1
  753. package/build/executor/constants.js +16 -16
  754. package/build/executor/constants.js.map +1 -1
  755. package/build/executor/types.d.ts +20 -20
  756. package/build/executor/types.js +4 -4
  757. package/build/executor/types.js.map +1 -1
  758. package/build/executor/utils.js.map +1 -1
  759. package/build/generic-swap-transaction-builder.js +5 -1
  760. package/build/generic-swap-transaction-builder.js.map +1 -1
  761. package/build/implementations/local-paraswap-sdk.js +17 -7
  762. package/build/implementations/local-paraswap-sdk.js.map +1 -1
  763. package/build/lens.d.ts +2 -2
  764. package/build/lib/api3-feed.d.ts +1 -1
  765. package/build/lib/api3-feed.js.map +1 -1
  766. package/build/lib/benqi/staked-avax.d.ts +1 -1
  767. package/build/lib/benqi/staked-avax.js.map +1 -1
  768. package/build/lib/chainlink.d.ts +1 -1
  769. package/build/lib/decoders.js +2 -2
  770. package/build/lib/decoders.js.map +1 -1
  771. package/build/lib/fetcher/fetcher.d.ts +2 -2
  772. package/build/lib/fetcher/fetcher.js.map +1 -1
  773. package/build/lib/fetcher/wsFetcher.d.ts +2 -2
  774. package/build/lib/fetcher/wsFetcher.js.map +1 -1
  775. package/build/lib/generics-events-subscribers/erc20-event-subscriber-factory.js.map +1 -1
  776. package/build/lib/generics-events-subscribers/erc20-event-subscriber.js.map +1 -1
  777. package/build/lib/generics-events-subscribers/types.d.ts +6 -6
  778. package/build/lib/generics-events-subscribers/types.js +2 -2
  779. package/build/lib/generics-events-subscribers/types.js.map +1 -1
  780. package/build/lib/log-messages-suppressor.d.ts +4 -4
  781. package/build/lib/log-messages-suppressor.js.map +1 -1
  782. package/build/lib/log4js.d.ts +1 -1
  783. package/build/lib/log4js.js +18 -8
  784. package/build/lib/log4js.js.map +1 -1
  785. package/build/lib/multi-wrapper.d.ts +2 -2
  786. package/build/lib/multi-wrapper.js.map +1 -1
  787. package/build/lib/promise-scheduler.js.map +1 -1
  788. package/build/lib/stateful-rpc-poller/state-polling-manager.js.map +1 -1
  789. package/build/lib/stateful-rpc-poller/stateful-rpc-poller.js.map +1 -1
  790. package/build/lib/stateful-rpc-poller/types.d.ts +2 -2
  791. package/build/lib/stateful-rpc-poller/types.js +1 -1
  792. package/build/lib/stateful-rpc-poller/types.js.map +1 -1
  793. package/build/lib/stateful-rpc-poller/utils.js +2 -3
  794. package/build/lib/stateful-rpc-poller/utils.js.map +1 -1
  795. package/build/lib/task-scheduler.js.map +1 -1
  796. package/build/lib/token-transfer-fee.js.map +1 -1
  797. package/build/lib/tokens/balancer-fetcher.d.ts +5 -5
  798. package/build/lib/tokens/balancer-fetcher.js +1 -1
  799. package/build/lib/tokens/balancer-fetcher.js.map +1 -1
  800. package/build/lib/tokens/types.d.ts +11 -11
  801. package/build/lib/tokens/types.js +5 -5
  802. package/build/lib/tokens/types.js.map +1 -1
  803. package/build/lib/tokens/utils.js +2 -2
  804. package/build/lib/tokens/utils.js.map +1 -1
  805. package/build/lib/validators.d.ts +1 -1
  806. package/build/lib/validators.js.map +1 -1
  807. package/build/pools-helper.js.map +1 -1
  808. package/build/pricing-helper.js.map +1 -1
  809. package/build/router/buy.d.ts +1 -1
  810. package/build/router/index.js.map +1 -1
  811. package/build/router/megaswap.d.ts +1 -1
  812. package/build/router/multiswap.d.ts +1 -1
  813. package/build/router/payload-encoder.js +4 -4
  814. package/build/router/payload-encoder.js.map +1 -1
  815. package/build/router/simpleswap.d.ts +2 -2
  816. package/build/router/simpleswap.js.map +1 -1
  817. package/build/router/simpleswapnft.d.ts +1 -1
  818. package/build/router/simpleswapnft.js.map +1 -1
  819. package/build/stateful-event-subscriber.d.ts +1 -1
  820. package/build/stateful-event-subscriber.js.map +1 -1
  821. package/build/types.d.ts +39 -39
  822. package/build/utils.d.ts +7 -7
  823. package/build/utils.js +11 -11
  824. package/build/utils.js.map +1 -1
  825. package/package.json +2 -1
  826. package/scripts/run-dex-integration-v3.ts +78 -0
  827. package/src/abi/balancer-v3/batch-router.json +989 -0
  828. package/src/abi/balancer-v3/router.json +1792 -0
  829. package/src/abi/balancer-v3/vault-extension.json +2834 -0
  830. package/src/abi/permit2.json +581 -0
  831. package/src/bigint-constants.ts +1 -0
  832. package/src/config.ts +29 -0
  833. package/src/constants.ts +4 -0
  834. package/src/dex/augustus-approvals.ts +52 -19
  835. package/src/dex/balancer-v3/balancer-v3-e2e.test.ts +275 -0
  836. package/src/dex/balancer-v3/balancer-v3-events.test.ts +223 -0
  837. package/src/dex/balancer-v3/balancer-v3-integration.test.ts +879 -0
  838. package/src/dex/balancer-v3/balancer-v3-pool.ts +660 -0
  839. package/src/dex/balancer-v3/balancer-v3.ts +614 -0
  840. package/src/dex/balancer-v3/config.ts +46 -0
  841. package/src/dex/balancer-v3/getGasCost.ts +37 -0
  842. package/src/dex/balancer-v3/getOnChainState.ts +326 -0
  843. package/src/dex/balancer-v3/getPoolsApi.ts +129 -0
  844. package/src/dex/balancer-v3/getTopPoolsApi.ts +101 -0
  845. package/src/dex/balancer-v3/optimizer.ts +66 -0
  846. package/src/dex/balancer-v3/stablePool.ts +78 -0
  847. package/src/dex/balancer-v3/types.ts +86 -0
  848. package/src/dex/balancer-v3/weightedPool.ts +2 -0
  849. package/src/dex/bebop/bebop.ts +1 -1
  850. package/src/dex/dexalot/dexalot.ts +50 -2
  851. package/src/dex/index.ts +4 -2
  852. package/src/dex/weth/config.ts +3 -0
  853. package/src/executor/Executor01BytecodeBuilder.ts +13 -15
  854. package/src/executor/Executor02BytecodeBuilder.ts +11 -13
  855. package/src/executor/Executor03BytecodeBuilder.ts +11 -16
  856. package/src/executor/ExecutorBytecodeBuilder.ts +63 -2
  857. package/src/generic-swap-transaction-builder.ts +6 -2
  858. package/src/types.ts +1 -1
  859. package/tests/constants-e2e.ts +68 -2
  860. package/tests/utils-e2e.ts +8 -5
  861. package/.idea/aws.xml +0 -17
  862. package/.idea/codeStyles/Project.xml +0 -19
  863. package/.idea/codeStyles/codeStyleConfig.xml +0 -5
  864. package/.idea/misc.xml +0 -6
  865. package/.idea/modules.xml +0 -8
  866. package/.idea/paraswap-dex-lib.iml +0 -9
  867. package/.idea/prettier.xml +0 -7
  868. package/.idea/vcs.xml +0 -6
  869. package/build/abi/integral/factory.json +0 -333
  870. package/build/abi/integral/oracle.json +0 -501
  871. package/build/dex/fluid-dex/fluid-dex-generate-pool.d.ts +0 -49
  872. package/build/dex/fluid-dex/fluid-dex-generate-pool.js +0 -104
  873. package/build/dex/fluid-dex/fluid-dex-generate-pool.js.map +0 -1
  874. package/build/dex/integral/config.d.ts +0 -4
  875. package/build/dex/integral/config.js +0 -20
  876. package/build/dex/integral/config.js.map +0 -1
  877. package/build/dex/integral/context.d.ts +0 -40
  878. package/build/dex/integral/context.js +0 -158
  879. package/build/dex/integral/context.js.map +0 -1
  880. package/build/dex/integral/integral-factory.d.ts +0 -24
  881. package/build/dex/integral/integral-factory.js +0 -95
  882. package/build/dex/integral/integral-factory.js.map +0 -1
  883. package/build/dex/integral/integral-pool.d.ts +0 -50
  884. package/build/dex/integral/integral-pool.js +0 -149
  885. package/build/dex/integral/integral-pool.js.map +0 -1
  886. package/build/dex/integral/integral-pricing.d.ts +0 -18
  887. package/build/dex/integral/integral-pricing.js +0 -114
  888. package/build/dex/integral/integral-pricing.js.map +0 -1
  889. package/build/dex/integral/integral-relayer.d.ts +0 -42
  890. package/build/dex/integral/integral-relayer.js +0 -192
  891. package/build/dex/integral/integral-relayer.js.map +0 -1
  892. package/build/dex/integral/integral-token.d.ts +0 -27
  893. package/build/dex/integral/integral-token.js +0 -59
  894. package/build/dex/integral/integral-token.js.map +0 -1
  895. package/build/dex/integral/integral.d.ts +0 -41
  896. package/build/dex/integral/integral.js +0 -376
  897. package/build/dex/integral/integral.js.map +0 -1
  898. package/build/dex/integral/types.d.ts +0 -85
  899. package/build/dex/integral/types.js +0 -9
  900. package/build/dex/integral/types.js.map +0 -1
  901. package/build/dex/integral/utils-e2e.d.ts +0 -9
  902. package/build/dex/integral/utils-e2e.js +0 -131
  903. package/build/dex/integral/utils-e2e.js.map +0 -1
  904. package/build/dex/integral/utils.d.ts +0 -17
  905. package/build/dex/integral/utils.js +0 -94
  906. package/build/dex/integral/utils.js.map +0 -1
  907. package/build/dex/trader-joe-v2.1/optimizer.d.ts +0 -2
  908. package/build/dex/trader-joe-v2.1/optimizer.js +0 -47
  909. package/build/dex/trader-joe-v2.1/optimizer.js.map +0 -1
  910. package/src/abi/cables/CablesMainnetRFQ.json +0 -1083
  911. package/src/dex/cables/cables-e2e.test.ts +0 -207
  912. package/src/dex/cables/cables-integration.test.ts +0 -319
  913. package/src/dex/cables/cables.ts +0 -888
  914. package/src/dex/cables/config.ts +0 -13
  915. package/src/dex/cables/constants.ts +0 -35
  916. package/src/dex/cables/rate-fetcher.ts +0 -219
  917. package/src/dex/cables/types.ts +0 -130
  918. package/src/dex/cables/validators.test.ts +0 -151
  919. package/src/dex/cables/validators.ts +0 -61
@@ -0,0 +1,1175 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.balancerRouterAbi = void 0;
4
+ exports.balancerRouterAbi = [
5
+ {
6
+ inputs: [
7
+ { internalType: 'contract IVault', name: 'vault', type: 'address' },
8
+ { internalType: 'contract IWETH', name: 'weth', type: 'address' },
9
+ {
10
+ internalType: 'contract IPermit2',
11
+ name: 'permit2',
12
+ type: 'address',
13
+ },
14
+ ],
15
+ stateMutability: 'nonpayable',
16
+ type: 'constructor',
17
+ },
18
+ {
19
+ inputs: [{ internalType: 'address', name: 'target', type: 'address' }],
20
+ name: 'AddressEmptyCode',
21
+ type: 'error',
22
+ },
23
+ {
24
+ inputs: [{ internalType: 'address', name: 'account', type: 'address' }],
25
+ name: 'AddressInsufficientBalance',
26
+ type: 'error',
27
+ },
28
+ { inputs: [], name: 'EthTransfer', type: 'error' },
29
+ { inputs: [], name: 'FailedInnerCall', type: 'error' },
30
+ { inputs: [], name: 'InsufficientEth', type: 'error' },
31
+ { inputs: [], name: 'ReentrancyGuardReentrantCall', type: 'error' },
32
+ {
33
+ inputs: [
34
+ { internalType: 'uint8', name: 'bits', type: 'uint8' },
35
+ { internalType: 'uint256', name: 'value', type: 'uint256' },
36
+ ],
37
+ name: 'SafeCastOverflowedUintDowncast',
38
+ type: 'error',
39
+ },
40
+ {
41
+ inputs: [{ internalType: 'address', name: 'token', type: 'address' }],
42
+ name: 'SafeERC20FailedOperation',
43
+ type: 'error',
44
+ },
45
+ {
46
+ inputs: [{ internalType: 'address', name: 'sender', type: 'address' }],
47
+ name: 'SenderIsNotVault',
48
+ type: 'error',
49
+ },
50
+ { inputs: [], name: 'SwapDeadline', type: 'error' },
51
+ {
52
+ inputs: [
53
+ { internalType: 'address', name: 'pool', type: 'address' },
54
+ {
55
+ internalType: 'uint256[]',
56
+ name: 'maxAmountsIn',
57
+ type: 'uint256[]',
58
+ },
59
+ {
60
+ internalType: 'uint256',
61
+ name: 'minBptAmountOut',
62
+ type: 'uint256',
63
+ },
64
+ { internalType: 'bool', name: 'wethIsEth', type: 'bool' },
65
+ { internalType: 'bytes', name: 'userData', type: 'bytes' },
66
+ ],
67
+ name: 'addLiquidityCustom',
68
+ outputs: [
69
+ { internalType: 'uint256[]', name: 'amountsIn', type: 'uint256[]' },
70
+ { internalType: 'uint256', name: 'bptAmountOut', type: 'uint256' },
71
+ { internalType: 'bytes', name: 'returnData', type: 'bytes' },
72
+ ],
73
+ stateMutability: 'payable',
74
+ type: 'function',
75
+ },
76
+ {
77
+ inputs: [
78
+ {
79
+ components: [
80
+ {
81
+ internalType: 'address',
82
+ name: 'sender',
83
+ type: 'address',
84
+ },
85
+ { internalType: 'address', name: 'pool', type: 'address' },
86
+ {
87
+ internalType: 'uint256[]',
88
+ name: 'maxAmountsIn',
89
+ type: 'uint256[]',
90
+ },
91
+ {
92
+ internalType: 'uint256',
93
+ name: 'minBptAmountOut',
94
+ type: 'uint256',
95
+ },
96
+ {
97
+ internalType: 'enum AddLiquidityKind',
98
+ name: 'kind',
99
+ type: 'uint8',
100
+ },
101
+ { internalType: 'bool', name: 'wethIsEth', type: 'bool' },
102
+ { internalType: 'bytes', name: 'userData', type: 'bytes' },
103
+ ],
104
+ internalType: 'struct IRouterCommon.AddLiquidityHookParams',
105
+ name: 'params',
106
+ type: 'tuple',
107
+ },
108
+ ],
109
+ name: 'addLiquidityHook',
110
+ outputs: [
111
+ { internalType: 'uint256[]', name: 'amountsIn', type: 'uint256[]' },
112
+ { internalType: 'uint256', name: 'bptAmountOut', type: 'uint256' },
113
+ { internalType: 'bytes', name: 'returnData', type: 'bytes' },
114
+ ],
115
+ stateMutability: 'nonpayable',
116
+ type: 'function',
117
+ },
118
+ {
119
+ inputs: [
120
+ { internalType: 'address', name: 'pool', type: 'address' },
121
+ {
122
+ internalType: 'uint256[]',
123
+ name: 'maxAmountsIn',
124
+ type: 'uint256[]',
125
+ },
126
+ {
127
+ internalType: 'uint256',
128
+ name: 'exactBptAmountOut',
129
+ type: 'uint256',
130
+ },
131
+ { internalType: 'bool', name: 'wethIsEth', type: 'bool' },
132
+ { internalType: 'bytes', name: 'userData', type: 'bytes' },
133
+ ],
134
+ name: 'addLiquidityProportional',
135
+ outputs: [
136
+ { internalType: 'uint256[]', name: 'amountsIn', type: 'uint256[]' },
137
+ ],
138
+ stateMutability: 'payable',
139
+ type: 'function',
140
+ },
141
+ {
142
+ inputs: [
143
+ { internalType: 'address', name: 'pool', type: 'address' },
144
+ {
145
+ internalType: 'contract IERC20',
146
+ name: 'tokenIn',
147
+ type: 'address',
148
+ },
149
+ { internalType: 'uint256', name: 'maxAmountIn', type: 'uint256' },
150
+ {
151
+ internalType: 'uint256',
152
+ name: 'exactBptAmountOut',
153
+ type: 'uint256',
154
+ },
155
+ { internalType: 'bool', name: 'wethIsEth', type: 'bool' },
156
+ { internalType: 'bytes', name: 'userData', type: 'bytes' },
157
+ ],
158
+ name: 'addLiquiditySingleTokenExactOut',
159
+ outputs: [{ internalType: 'uint256', name: 'amountIn', type: 'uint256' }],
160
+ stateMutability: 'payable',
161
+ type: 'function',
162
+ },
163
+ {
164
+ inputs: [
165
+ {
166
+ internalType: 'contract IERC4626',
167
+ name: 'wrappedToken',
168
+ type: 'address',
169
+ },
170
+ {
171
+ internalType: 'uint256',
172
+ name: 'exactSharesToIssue',
173
+ type: 'uint256',
174
+ },
175
+ ],
176
+ name: 'addLiquidityToBuffer',
177
+ outputs: [
178
+ {
179
+ internalType: 'uint256',
180
+ name: 'amountUnderlyingRaw',
181
+ type: 'uint256',
182
+ },
183
+ {
184
+ internalType: 'uint256',
185
+ name: 'amountWrappedRaw',
186
+ type: 'uint256',
187
+ },
188
+ ],
189
+ stateMutability: 'nonpayable',
190
+ type: 'function',
191
+ },
192
+ {
193
+ inputs: [
194
+ {
195
+ internalType: 'contract IERC4626',
196
+ name: 'wrappedToken',
197
+ type: 'address',
198
+ },
199
+ {
200
+ internalType: 'uint256',
201
+ name: 'exactSharesToIssue',
202
+ type: 'uint256',
203
+ },
204
+ { internalType: 'address', name: 'sharesOwner', type: 'address' },
205
+ ],
206
+ name: 'addLiquidityToBufferHook',
207
+ outputs: [
208
+ {
209
+ internalType: 'uint256',
210
+ name: 'amountUnderlyingRaw',
211
+ type: 'uint256',
212
+ },
213
+ {
214
+ internalType: 'uint256',
215
+ name: 'amountWrappedRaw',
216
+ type: 'uint256',
217
+ },
218
+ ],
219
+ stateMutability: 'nonpayable',
220
+ type: 'function',
221
+ },
222
+ {
223
+ inputs: [
224
+ { internalType: 'address', name: 'pool', type: 'address' },
225
+ {
226
+ internalType: 'uint256[]',
227
+ name: 'exactAmountsIn',
228
+ type: 'uint256[]',
229
+ },
230
+ {
231
+ internalType: 'uint256',
232
+ name: 'minBptAmountOut',
233
+ type: 'uint256',
234
+ },
235
+ { internalType: 'bool', name: 'wethIsEth', type: 'bool' },
236
+ { internalType: 'bytes', name: 'userData', type: 'bytes' },
237
+ ],
238
+ name: 'addLiquidityUnbalanced',
239
+ outputs: [
240
+ { internalType: 'uint256', name: 'bptAmountOut', type: 'uint256' },
241
+ ],
242
+ stateMutability: 'payable',
243
+ type: 'function',
244
+ },
245
+ {
246
+ inputs: [
247
+ { internalType: 'address', name: 'pool', type: 'address' },
248
+ { internalType: 'uint256[]', name: 'amountsIn', type: 'uint256[]' },
249
+ { internalType: 'bool', name: 'wethIsEth', type: 'bool' },
250
+ { internalType: 'bytes', name: 'userData', type: 'bytes' },
251
+ ],
252
+ name: 'donate',
253
+ outputs: [],
254
+ stateMutability: 'payable',
255
+ type: 'function',
256
+ },
257
+ {
258
+ inputs: [],
259
+ name: 'getSender',
260
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
261
+ stateMutability: 'view',
262
+ type: 'function',
263
+ },
264
+ {
265
+ inputs: [
266
+ { internalType: 'address', name: 'pool', type: 'address' },
267
+ {
268
+ internalType: 'contract IERC20[]',
269
+ name: 'tokens',
270
+ type: 'address[]',
271
+ },
272
+ {
273
+ internalType: 'uint256[]',
274
+ name: 'exactAmountsIn',
275
+ type: 'uint256[]',
276
+ },
277
+ {
278
+ internalType: 'uint256',
279
+ name: 'minBptAmountOut',
280
+ type: 'uint256',
281
+ },
282
+ { internalType: 'bool', name: 'wethIsEth', type: 'bool' },
283
+ { internalType: 'bytes', name: 'userData', type: 'bytes' },
284
+ ],
285
+ name: 'initialize',
286
+ outputs: [
287
+ { internalType: 'uint256', name: 'bptAmountOut', type: 'uint256' },
288
+ ],
289
+ stateMutability: 'payable',
290
+ type: 'function',
291
+ },
292
+ {
293
+ inputs: [
294
+ {
295
+ internalType: 'contract IERC4626',
296
+ name: 'wrappedToken',
297
+ type: 'address',
298
+ },
299
+ {
300
+ internalType: 'uint256',
301
+ name: 'amountUnderlyingRaw',
302
+ type: 'uint256',
303
+ },
304
+ {
305
+ internalType: 'uint256',
306
+ name: 'amountWrappedRaw',
307
+ type: 'uint256',
308
+ },
309
+ ],
310
+ name: 'initializeBuffer',
311
+ outputs: [
312
+ { internalType: 'uint256', name: 'issuedShares', type: 'uint256' },
313
+ ],
314
+ stateMutability: 'nonpayable',
315
+ type: 'function',
316
+ },
317
+ {
318
+ inputs: [
319
+ {
320
+ internalType: 'contract IERC4626',
321
+ name: 'wrappedToken',
322
+ type: 'address',
323
+ },
324
+ {
325
+ internalType: 'uint256',
326
+ name: 'amountUnderlyingRaw',
327
+ type: 'uint256',
328
+ },
329
+ {
330
+ internalType: 'uint256',
331
+ name: 'amountWrappedRaw',
332
+ type: 'uint256',
333
+ },
334
+ { internalType: 'address', name: 'sharesOwner', type: 'address' },
335
+ ],
336
+ name: 'initializeBufferHook',
337
+ outputs: [
338
+ { internalType: 'uint256', name: 'issuedShares', type: 'uint256' },
339
+ ],
340
+ stateMutability: 'nonpayable',
341
+ type: 'function',
342
+ },
343
+ {
344
+ inputs: [
345
+ {
346
+ components: [
347
+ {
348
+ internalType: 'address',
349
+ name: 'sender',
350
+ type: 'address',
351
+ },
352
+ { internalType: 'address', name: 'pool', type: 'address' },
353
+ {
354
+ internalType: 'contract IERC20[]',
355
+ name: 'tokens',
356
+ type: 'address[]',
357
+ },
358
+ {
359
+ internalType: 'uint256[]',
360
+ name: 'exactAmountsIn',
361
+ type: 'uint256[]',
362
+ },
363
+ {
364
+ internalType: 'uint256',
365
+ name: 'minBptAmountOut',
366
+ type: 'uint256',
367
+ },
368
+ { internalType: 'bool', name: 'wethIsEth', type: 'bool' },
369
+ { internalType: 'bytes', name: 'userData', type: 'bytes' },
370
+ ],
371
+ internalType: 'struct IRouter.InitializeHookParams',
372
+ name: 'params',
373
+ type: 'tuple',
374
+ },
375
+ ],
376
+ name: 'initializeHook',
377
+ outputs: [
378
+ { internalType: 'uint256', name: 'bptAmountOut', type: 'uint256' },
379
+ ],
380
+ stateMutability: 'nonpayable',
381
+ type: 'function',
382
+ },
383
+ {
384
+ inputs: [{ internalType: 'bytes[]', name: 'data', type: 'bytes[]' }],
385
+ name: 'multicall',
386
+ outputs: [{ internalType: 'bytes[]', name: 'results', type: 'bytes[]' }],
387
+ stateMutability: 'payable',
388
+ type: 'function',
389
+ },
390
+ {
391
+ inputs: [
392
+ {
393
+ components: [
394
+ { internalType: 'address', name: 'token', type: 'address' },
395
+ { internalType: 'address', name: 'owner', type: 'address' },
396
+ {
397
+ internalType: 'address',
398
+ name: 'spender',
399
+ type: 'address',
400
+ },
401
+ {
402
+ internalType: 'uint256',
403
+ name: 'amount',
404
+ type: 'uint256',
405
+ },
406
+ { internalType: 'uint256', name: 'nonce', type: 'uint256' },
407
+ {
408
+ internalType: 'uint256',
409
+ name: 'deadline',
410
+ type: 'uint256',
411
+ },
412
+ ],
413
+ internalType: 'struct IRouterCommon.PermitApproval[]',
414
+ name: 'permitBatch',
415
+ type: 'tuple[]',
416
+ },
417
+ {
418
+ internalType: 'bytes[]',
419
+ name: 'permitSignatures',
420
+ type: 'bytes[]',
421
+ },
422
+ {
423
+ components: [
424
+ {
425
+ components: [
426
+ {
427
+ internalType: 'address',
428
+ name: 'token',
429
+ type: 'address',
430
+ },
431
+ {
432
+ internalType: 'uint160',
433
+ name: 'amount',
434
+ type: 'uint160',
435
+ },
436
+ {
437
+ internalType: 'uint48',
438
+ name: 'expiration',
439
+ type: 'uint48',
440
+ },
441
+ {
442
+ internalType: 'uint48',
443
+ name: 'nonce',
444
+ type: 'uint48',
445
+ },
446
+ ],
447
+ internalType: 'struct IAllowanceTransfer.PermitDetails[]',
448
+ name: 'details',
449
+ type: 'tuple[]',
450
+ },
451
+ {
452
+ internalType: 'address',
453
+ name: 'spender',
454
+ type: 'address',
455
+ },
456
+ {
457
+ internalType: 'uint256',
458
+ name: 'sigDeadline',
459
+ type: 'uint256',
460
+ },
461
+ ],
462
+ internalType: 'struct IAllowanceTransfer.PermitBatch',
463
+ name: 'permit2Batch',
464
+ type: 'tuple',
465
+ },
466
+ { internalType: 'bytes', name: 'permit2Signature', type: 'bytes' },
467
+ { internalType: 'bytes[]', name: 'multicallData', type: 'bytes[]' },
468
+ ],
469
+ name: 'permitBatchAndCall',
470
+ outputs: [{ internalType: 'bytes[]', name: 'results', type: 'bytes[]' }],
471
+ stateMutability: 'payable',
472
+ type: 'function',
473
+ },
474
+ {
475
+ inputs: [
476
+ { internalType: 'address', name: 'pool', type: 'address' },
477
+ {
478
+ internalType: 'uint256[]',
479
+ name: 'maxAmountsIn',
480
+ type: 'uint256[]',
481
+ },
482
+ {
483
+ internalType: 'uint256',
484
+ name: 'minBptAmountOut',
485
+ type: 'uint256',
486
+ },
487
+ { internalType: 'bytes', name: 'userData', type: 'bytes' },
488
+ ],
489
+ name: 'queryAddLiquidityCustom',
490
+ outputs: [
491
+ { internalType: 'uint256[]', name: 'amountsIn', type: 'uint256[]' },
492
+ { internalType: 'uint256', name: 'bptAmountOut', type: 'uint256' },
493
+ { internalType: 'bytes', name: 'returnData', type: 'bytes' },
494
+ ],
495
+ stateMutability: 'nonpayable',
496
+ type: 'function',
497
+ },
498
+ {
499
+ inputs: [
500
+ {
501
+ components: [
502
+ {
503
+ internalType: 'address',
504
+ name: 'sender',
505
+ type: 'address',
506
+ },
507
+ { internalType: 'address', name: 'pool', type: 'address' },
508
+ {
509
+ internalType: 'uint256[]',
510
+ name: 'maxAmountsIn',
511
+ type: 'uint256[]',
512
+ },
513
+ {
514
+ internalType: 'uint256',
515
+ name: 'minBptAmountOut',
516
+ type: 'uint256',
517
+ },
518
+ {
519
+ internalType: 'enum AddLiquidityKind',
520
+ name: 'kind',
521
+ type: 'uint8',
522
+ },
523
+ { internalType: 'bool', name: 'wethIsEth', type: 'bool' },
524
+ { internalType: 'bytes', name: 'userData', type: 'bytes' },
525
+ ],
526
+ internalType: 'struct IRouterCommon.AddLiquidityHookParams',
527
+ name: 'params',
528
+ type: 'tuple',
529
+ },
530
+ ],
531
+ name: 'queryAddLiquidityHook',
532
+ outputs: [
533
+ { internalType: 'uint256[]', name: 'amountsIn', type: 'uint256[]' },
534
+ { internalType: 'uint256', name: 'bptAmountOut', type: 'uint256' },
535
+ { internalType: 'bytes', name: 'returnData', type: 'bytes' },
536
+ ],
537
+ stateMutability: 'nonpayable',
538
+ type: 'function',
539
+ },
540
+ {
541
+ inputs: [
542
+ { internalType: 'address', name: 'pool', type: 'address' },
543
+ {
544
+ internalType: 'uint256',
545
+ name: 'exactBptAmountOut',
546
+ type: 'uint256',
547
+ },
548
+ { internalType: 'bytes', name: 'userData', type: 'bytes' },
549
+ ],
550
+ name: 'queryAddLiquidityProportional',
551
+ outputs: [
552
+ { internalType: 'uint256[]', name: 'amountsIn', type: 'uint256[]' },
553
+ ],
554
+ stateMutability: 'nonpayable',
555
+ type: 'function',
556
+ },
557
+ {
558
+ inputs: [
559
+ { internalType: 'address', name: 'pool', type: 'address' },
560
+ {
561
+ internalType: 'contract IERC20',
562
+ name: 'tokenIn',
563
+ type: 'address',
564
+ },
565
+ {
566
+ internalType: 'uint256',
567
+ name: 'exactBptAmountOut',
568
+ type: 'uint256',
569
+ },
570
+ { internalType: 'bytes', name: 'userData', type: 'bytes' },
571
+ ],
572
+ name: 'queryAddLiquiditySingleTokenExactOut',
573
+ outputs: [{ internalType: 'uint256', name: 'amountIn', type: 'uint256' }],
574
+ stateMutability: 'nonpayable',
575
+ type: 'function',
576
+ },
577
+ {
578
+ inputs: [
579
+ { internalType: 'address', name: 'pool', type: 'address' },
580
+ {
581
+ internalType: 'uint256[]',
582
+ name: 'exactAmountsIn',
583
+ type: 'uint256[]',
584
+ },
585
+ { internalType: 'bytes', name: 'userData', type: 'bytes' },
586
+ ],
587
+ name: 'queryAddLiquidityUnbalanced',
588
+ outputs: [
589
+ { internalType: 'uint256', name: 'bptAmountOut', type: 'uint256' },
590
+ ],
591
+ stateMutability: 'nonpayable',
592
+ type: 'function',
593
+ },
594
+ {
595
+ inputs: [
596
+ { internalType: 'address', name: 'pool', type: 'address' },
597
+ {
598
+ internalType: 'uint256',
599
+ name: 'maxBptAmountIn',
600
+ type: 'uint256',
601
+ },
602
+ {
603
+ internalType: 'uint256[]',
604
+ name: 'minAmountsOut',
605
+ type: 'uint256[]',
606
+ },
607
+ { internalType: 'bytes', name: 'userData', type: 'bytes' },
608
+ ],
609
+ name: 'queryRemoveLiquidityCustom',
610
+ outputs: [
611
+ { internalType: 'uint256', name: 'bptAmountIn', type: 'uint256' },
612
+ {
613
+ internalType: 'uint256[]',
614
+ name: 'amountsOut',
615
+ type: 'uint256[]',
616
+ },
617
+ { internalType: 'bytes', name: 'returnData', type: 'bytes' },
618
+ ],
619
+ stateMutability: 'nonpayable',
620
+ type: 'function',
621
+ },
622
+ {
623
+ inputs: [
624
+ {
625
+ components: [
626
+ {
627
+ internalType: 'address',
628
+ name: 'sender',
629
+ type: 'address',
630
+ },
631
+ { internalType: 'address', name: 'pool', type: 'address' },
632
+ {
633
+ internalType: 'uint256[]',
634
+ name: 'minAmountsOut',
635
+ type: 'uint256[]',
636
+ },
637
+ {
638
+ internalType: 'uint256',
639
+ name: 'maxBptAmountIn',
640
+ type: 'uint256',
641
+ },
642
+ {
643
+ internalType: 'enum RemoveLiquidityKind',
644
+ name: 'kind',
645
+ type: 'uint8',
646
+ },
647
+ { internalType: 'bool', name: 'wethIsEth', type: 'bool' },
648
+ { internalType: 'bytes', name: 'userData', type: 'bytes' },
649
+ ],
650
+ internalType: 'struct IRouterCommon.RemoveLiquidityHookParams',
651
+ name: 'params',
652
+ type: 'tuple',
653
+ },
654
+ ],
655
+ name: 'queryRemoveLiquidityHook',
656
+ outputs: [
657
+ { internalType: 'uint256', name: 'bptAmountIn', type: 'uint256' },
658
+ {
659
+ internalType: 'uint256[]',
660
+ name: 'amountsOut',
661
+ type: 'uint256[]',
662
+ },
663
+ { internalType: 'bytes', name: 'returnData', type: 'bytes' },
664
+ ],
665
+ stateMutability: 'nonpayable',
666
+ type: 'function',
667
+ },
668
+ {
669
+ inputs: [
670
+ { internalType: 'address', name: 'pool', type: 'address' },
671
+ {
672
+ internalType: 'uint256',
673
+ name: 'exactBptAmountIn',
674
+ type: 'uint256',
675
+ },
676
+ { internalType: 'bytes', name: 'userData', type: 'bytes' },
677
+ ],
678
+ name: 'queryRemoveLiquidityProportional',
679
+ outputs: [
680
+ {
681
+ internalType: 'uint256[]',
682
+ name: 'amountsOut',
683
+ type: 'uint256[]',
684
+ },
685
+ ],
686
+ stateMutability: 'nonpayable',
687
+ type: 'function',
688
+ },
689
+ {
690
+ inputs: [
691
+ { internalType: 'address', name: 'pool', type: 'address' },
692
+ {
693
+ internalType: 'uint256',
694
+ name: 'exactBptAmountIn',
695
+ type: 'uint256',
696
+ },
697
+ ],
698
+ name: 'queryRemoveLiquidityRecovery',
699
+ outputs: [
700
+ {
701
+ internalType: 'uint256[]',
702
+ name: 'amountsOut',
703
+ type: 'uint256[]',
704
+ },
705
+ ],
706
+ stateMutability: 'nonpayable',
707
+ type: 'function',
708
+ },
709
+ {
710
+ inputs: [
711
+ { internalType: 'address', name: 'pool', type: 'address' },
712
+ { internalType: 'address', name: 'sender', type: 'address' },
713
+ {
714
+ internalType: 'uint256',
715
+ name: 'exactBptAmountIn',
716
+ type: 'uint256',
717
+ },
718
+ ],
719
+ name: 'queryRemoveLiquidityRecoveryHook',
720
+ outputs: [
721
+ {
722
+ internalType: 'uint256[]',
723
+ name: 'amountsOut',
724
+ type: 'uint256[]',
725
+ },
726
+ ],
727
+ stateMutability: 'nonpayable',
728
+ type: 'function',
729
+ },
730
+ {
731
+ inputs: [
732
+ { internalType: 'address', name: 'pool', type: 'address' },
733
+ {
734
+ internalType: 'uint256',
735
+ name: 'exactBptAmountIn',
736
+ type: 'uint256',
737
+ },
738
+ {
739
+ internalType: 'contract IERC20',
740
+ name: 'tokenOut',
741
+ type: 'address',
742
+ },
743
+ { internalType: 'bytes', name: 'userData', type: 'bytes' },
744
+ ],
745
+ name: 'queryRemoveLiquiditySingleTokenExactIn',
746
+ outputs: [{ internalType: 'uint256', name: 'amountOut', type: 'uint256' }],
747
+ stateMutability: 'nonpayable',
748
+ type: 'function',
749
+ },
750
+ {
751
+ inputs: [
752
+ { internalType: 'address', name: 'pool', type: 'address' },
753
+ {
754
+ internalType: 'contract IERC20',
755
+ name: 'tokenOut',
756
+ type: 'address',
757
+ },
758
+ {
759
+ internalType: 'uint256',
760
+ name: 'exactAmountOut',
761
+ type: 'uint256',
762
+ },
763
+ { internalType: 'bytes', name: 'userData', type: 'bytes' },
764
+ ],
765
+ name: 'queryRemoveLiquiditySingleTokenExactOut',
766
+ outputs: [
767
+ { internalType: 'uint256', name: 'bptAmountIn', type: 'uint256' },
768
+ ],
769
+ stateMutability: 'nonpayable',
770
+ type: 'function',
771
+ },
772
+ {
773
+ inputs: [
774
+ {
775
+ components: [
776
+ {
777
+ internalType: 'address',
778
+ name: 'sender',
779
+ type: 'address',
780
+ },
781
+ {
782
+ internalType: 'enum SwapKind',
783
+ name: 'kind',
784
+ type: 'uint8',
785
+ },
786
+ { internalType: 'address', name: 'pool', type: 'address' },
787
+ {
788
+ internalType: 'contract IERC20',
789
+ name: 'tokenIn',
790
+ type: 'address',
791
+ },
792
+ {
793
+ internalType: 'contract IERC20',
794
+ name: 'tokenOut',
795
+ type: 'address',
796
+ },
797
+ {
798
+ internalType: 'uint256',
799
+ name: 'amountGiven',
800
+ type: 'uint256',
801
+ },
802
+ { internalType: 'uint256', name: 'limit', type: 'uint256' },
803
+ {
804
+ internalType: 'uint256',
805
+ name: 'deadline',
806
+ type: 'uint256',
807
+ },
808
+ { internalType: 'bool', name: 'wethIsEth', type: 'bool' },
809
+ { internalType: 'bytes', name: 'userData', type: 'bytes' },
810
+ ],
811
+ internalType: 'struct IRouter.SwapSingleTokenHookParams',
812
+ name: 'params',
813
+ type: 'tuple',
814
+ },
815
+ ],
816
+ name: 'querySwapHook',
817
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
818
+ stateMutability: 'nonpayable',
819
+ type: 'function',
820
+ },
821
+ {
822
+ inputs: [
823
+ { internalType: 'address', name: 'pool', type: 'address' },
824
+ {
825
+ internalType: 'contract IERC20',
826
+ name: 'tokenIn',
827
+ type: 'address',
828
+ },
829
+ {
830
+ internalType: 'contract IERC20',
831
+ name: 'tokenOut',
832
+ type: 'address',
833
+ },
834
+ { internalType: 'uint256', name: 'exactAmountIn', type: 'uint256' },
835
+ { internalType: 'bytes', name: 'userData', type: 'bytes' },
836
+ ],
837
+ name: 'querySwapSingleTokenExactIn',
838
+ outputs: [
839
+ {
840
+ internalType: 'uint256',
841
+ name: 'amountCalculated',
842
+ type: 'uint256',
843
+ },
844
+ ],
845
+ stateMutability: 'nonpayable',
846
+ type: 'function',
847
+ },
848
+ {
849
+ inputs: [
850
+ { internalType: 'address', name: 'pool', type: 'address' },
851
+ {
852
+ internalType: 'contract IERC20',
853
+ name: 'tokenIn',
854
+ type: 'address',
855
+ },
856
+ {
857
+ internalType: 'contract IERC20',
858
+ name: 'tokenOut',
859
+ type: 'address',
860
+ },
861
+ {
862
+ internalType: 'uint256',
863
+ name: 'exactAmountOut',
864
+ type: 'uint256',
865
+ },
866
+ { internalType: 'bytes', name: 'userData', type: 'bytes' },
867
+ ],
868
+ name: 'querySwapSingleTokenExactOut',
869
+ outputs: [
870
+ {
871
+ internalType: 'uint256',
872
+ name: 'amountCalculated',
873
+ type: 'uint256',
874
+ },
875
+ ],
876
+ stateMutability: 'nonpayable',
877
+ type: 'function',
878
+ },
879
+ {
880
+ inputs: [
881
+ { internalType: 'address', name: 'pool', type: 'address' },
882
+ {
883
+ internalType: 'uint256',
884
+ name: 'maxBptAmountIn',
885
+ type: 'uint256',
886
+ },
887
+ {
888
+ internalType: 'uint256[]',
889
+ name: 'minAmountsOut',
890
+ type: 'uint256[]',
891
+ },
892
+ { internalType: 'bool', name: 'wethIsEth', type: 'bool' },
893
+ { internalType: 'bytes', name: 'userData', type: 'bytes' },
894
+ ],
895
+ name: 'removeLiquidityCustom',
896
+ outputs: [
897
+ { internalType: 'uint256', name: 'bptAmountIn', type: 'uint256' },
898
+ {
899
+ internalType: 'uint256[]',
900
+ name: 'amountsOut',
901
+ type: 'uint256[]',
902
+ },
903
+ { internalType: 'bytes', name: 'returnData', type: 'bytes' },
904
+ ],
905
+ stateMutability: 'nonpayable',
906
+ type: 'function',
907
+ },
908
+ {
909
+ inputs: [
910
+ {
911
+ components: [
912
+ {
913
+ internalType: 'address',
914
+ name: 'sender',
915
+ type: 'address',
916
+ },
917
+ { internalType: 'address', name: 'pool', type: 'address' },
918
+ {
919
+ internalType: 'uint256[]',
920
+ name: 'minAmountsOut',
921
+ type: 'uint256[]',
922
+ },
923
+ {
924
+ internalType: 'uint256',
925
+ name: 'maxBptAmountIn',
926
+ type: 'uint256',
927
+ },
928
+ {
929
+ internalType: 'enum RemoveLiquidityKind',
930
+ name: 'kind',
931
+ type: 'uint8',
932
+ },
933
+ { internalType: 'bool', name: 'wethIsEth', type: 'bool' },
934
+ { internalType: 'bytes', name: 'userData', type: 'bytes' },
935
+ ],
936
+ internalType: 'struct IRouterCommon.RemoveLiquidityHookParams',
937
+ name: 'params',
938
+ type: 'tuple',
939
+ },
940
+ ],
941
+ name: 'removeLiquidityHook',
942
+ outputs: [
943
+ { internalType: 'uint256', name: 'bptAmountIn', type: 'uint256' },
944
+ {
945
+ internalType: 'uint256[]',
946
+ name: 'amountsOut',
947
+ type: 'uint256[]',
948
+ },
949
+ { internalType: 'bytes', name: 'returnData', type: 'bytes' },
950
+ ],
951
+ stateMutability: 'nonpayable',
952
+ type: 'function',
953
+ },
954
+ {
955
+ inputs: [
956
+ { internalType: 'address', name: 'pool', type: 'address' },
957
+ {
958
+ internalType: 'uint256',
959
+ name: 'exactBptAmountIn',
960
+ type: 'uint256',
961
+ },
962
+ {
963
+ internalType: 'uint256[]',
964
+ name: 'minAmountsOut',
965
+ type: 'uint256[]',
966
+ },
967
+ { internalType: 'bool', name: 'wethIsEth', type: 'bool' },
968
+ { internalType: 'bytes', name: 'userData', type: 'bytes' },
969
+ ],
970
+ name: 'removeLiquidityProportional',
971
+ outputs: [
972
+ {
973
+ internalType: 'uint256[]',
974
+ name: 'amountsOut',
975
+ type: 'uint256[]',
976
+ },
977
+ ],
978
+ stateMutability: 'payable',
979
+ type: 'function',
980
+ },
981
+ {
982
+ inputs: [
983
+ { internalType: 'address', name: 'pool', type: 'address' },
984
+ {
985
+ internalType: 'uint256',
986
+ name: 'exactBptAmountIn',
987
+ type: 'uint256',
988
+ },
989
+ ],
990
+ name: 'removeLiquidityRecovery',
991
+ outputs: [
992
+ {
993
+ internalType: 'uint256[]',
994
+ name: 'amountsOut',
995
+ type: 'uint256[]',
996
+ },
997
+ ],
998
+ stateMutability: 'nonpayable',
999
+ type: 'function',
1000
+ },
1001
+ {
1002
+ inputs: [
1003
+ { internalType: 'address', name: 'pool', type: 'address' },
1004
+ { internalType: 'address', name: 'sender', type: 'address' },
1005
+ {
1006
+ internalType: 'uint256',
1007
+ name: 'exactBptAmountIn',
1008
+ type: 'uint256',
1009
+ },
1010
+ ],
1011
+ name: 'removeLiquidityRecoveryHook',
1012
+ outputs: [
1013
+ {
1014
+ internalType: 'uint256[]',
1015
+ name: 'amountsOut',
1016
+ type: 'uint256[]',
1017
+ },
1018
+ ],
1019
+ stateMutability: 'nonpayable',
1020
+ type: 'function',
1021
+ },
1022
+ {
1023
+ inputs: [
1024
+ { internalType: 'address', name: 'pool', type: 'address' },
1025
+ {
1026
+ internalType: 'uint256',
1027
+ name: 'exactBptAmountIn',
1028
+ type: 'uint256',
1029
+ },
1030
+ {
1031
+ internalType: 'contract IERC20',
1032
+ name: 'tokenOut',
1033
+ type: 'address',
1034
+ },
1035
+ { internalType: 'uint256', name: 'minAmountOut', type: 'uint256' },
1036
+ { internalType: 'bool', name: 'wethIsEth', type: 'bool' },
1037
+ { internalType: 'bytes', name: 'userData', type: 'bytes' },
1038
+ ],
1039
+ name: 'removeLiquiditySingleTokenExactIn',
1040
+ outputs: [{ internalType: 'uint256', name: 'amountOut', type: 'uint256' }],
1041
+ stateMutability: 'payable',
1042
+ type: 'function',
1043
+ },
1044
+ {
1045
+ inputs: [
1046
+ { internalType: 'address', name: 'pool', type: 'address' },
1047
+ {
1048
+ internalType: 'uint256',
1049
+ name: 'maxBptAmountIn',
1050
+ type: 'uint256',
1051
+ },
1052
+ {
1053
+ internalType: 'contract IERC20',
1054
+ name: 'tokenOut',
1055
+ type: 'address',
1056
+ },
1057
+ {
1058
+ internalType: 'uint256',
1059
+ name: 'exactAmountOut',
1060
+ type: 'uint256',
1061
+ },
1062
+ { internalType: 'bool', name: 'wethIsEth', type: 'bool' },
1063
+ { internalType: 'bytes', name: 'userData', type: 'bytes' },
1064
+ ],
1065
+ name: 'removeLiquiditySingleTokenExactOut',
1066
+ outputs: [
1067
+ { internalType: 'uint256', name: 'bptAmountIn', type: 'uint256' },
1068
+ ],
1069
+ stateMutability: 'payable',
1070
+ type: 'function',
1071
+ },
1072
+ {
1073
+ inputs: [
1074
+ { internalType: 'address', name: 'pool', type: 'address' },
1075
+ {
1076
+ internalType: 'contract IERC20',
1077
+ name: 'tokenIn',
1078
+ type: 'address',
1079
+ },
1080
+ {
1081
+ internalType: 'contract IERC20',
1082
+ name: 'tokenOut',
1083
+ type: 'address',
1084
+ },
1085
+ { internalType: 'uint256', name: 'exactAmountIn', type: 'uint256' },
1086
+ { internalType: 'uint256', name: 'minAmountOut', type: 'uint256' },
1087
+ { internalType: 'uint256', name: 'deadline', type: 'uint256' },
1088
+ { internalType: 'bool', name: 'wethIsEth', type: 'bool' },
1089
+ { internalType: 'bytes', name: 'userData', type: 'bytes' },
1090
+ ],
1091
+ name: 'swapSingleTokenExactIn',
1092
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
1093
+ stateMutability: 'payable',
1094
+ type: 'function',
1095
+ },
1096
+ {
1097
+ inputs: [
1098
+ { internalType: 'address', name: 'pool', type: 'address' },
1099
+ {
1100
+ internalType: 'contract IERC20',
1101
+ name: 'tokenIn',
1102
+ type: 'address',
1103
+ },
1104
+ {
1105
+ internalType: 'contract IERC20',
1106
+ name: 'tokenOut',
1107
+ type: 'address',
1108
+ },
1109
+ {
1110
+ internalType: 'uint256',
1111
+ name: 'exactAmountOut',
1112
+ type: 'uint256',
1113
+ },
1114
+ { internalType: 'uint256', name: 'maxAmountIn', type: 'uint256' },
1115
+ { internalType: 'uint256', name: 'deadline', type: 'uint256' },
1116
+ { internalType: 'bool', name: 'wethIsEth', type: 'bool' },
1117
+ { internalType: 'bytes', name: 'userData', type: 'bytes' },
1118
+ ],
1119
+ name: 'swapSingleTokenExactOut',
1120
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
1121
+ stateMutability: 'payable',
1122
+ type: 'function',
1123
+ },
1124
+ {
1125
+ inputs: [
1126
+ {
1127
+ components: [
1128
+ {
1129
+ internalType: 'address',
1130
+ name: 'sender',
1131
+ type: 'address',
1132
+ },
1133
+ {
1134
+ internalType: 'enum SwapKind',
1135
+ name: 'kind',
1136
+ type: 'uint8',
1137
+ },
1138
+ { internalType: 'address', name: 'pool', type: 'address' },
1139
+ {
1140
+ internalType: 'contract IERC20',
1141
+ name: 'tokenIn',
1142
+ type: 'address',
1143
+ },
1144
+ {
1145
+ internalType: 'contract IERC20',
1146
+ name: 'tokenOut',
1147
+ type: 'address',
1148
+ },
1149
+ {
1150
+ internalType: 'uint256',
1151
+ name: 'amountGiven',
1152
+ type: 'uint256',
1153
+ },
1154
+ { internalType: 'uint256', name: 'limit', type: 'uint256' },
1155
+ {
1156
+ internalType: 'uint256',
1157
+ name: 'deadline',
1158
+ type: 'uint256',
1159
+ },
1160
+ { internalType: 'bool', name: 'wethIsEth', type: 'bool' },
1161
+ { internalType: 'bytes', name: 'userData', type: 'bytes' },
1162
+ ],
1163
+ internalType: 'struct IRouter.SwapSingleTokenHookParams',
1164
+ name: 'params',
1165
+ type: 'tuple',
1166
+ },
1167
+ ],
1168
+ name: 'swapSingleTokenHook',
1169
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
1170
+ stateMutability: 'nonpayable',
1171
+ type: 'function',
1172
+ },
1173
+ { stateMutability: 'payable', type: 'receive' },
1174
+ ];
1175
+ //# sourceMappingURL=balancerRouter.js.map