@paraswap/dex-lib 4.1.9 → 4.1.10-pubsub

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 (363) hide show
  1. package/build/abi/AaveV1_lending_pool.json +27 -0
  2. package/build/abi/Aave_GSM.json +751 -0
  3. package/build/abi/Balancer.json +257 -0
  4. package/build/abi/BalancerV2.json +1179 -0
  5. package/build/abi/RamsesV2Pool.abi.json +1554 -0
  6. package/build/abi/RamsesV2Quoter.abi.json +274 -0
  7. package/build/abi/USDM.json +807 -0
  8. package/build/abi/UniswapV2Router.json +397 -0
  9. package/build/abi/angle-transmuter/ChainlinkAccessControlledOffchainAggregator.json +1246 -0
  10. package/build/abi/angle-transmuter/ChainlinkEACAggregatorProxy.json +509 -0
  11. package/build/abi/curve-v1/CurveBUSDv2.abi.json +1356 -0
  12. package/build/abi/curve-v1/CurveTokenV1.json +305 -0
  13. package/build/abi/curve-v1/CurveTokenV2.json +318 -0
  14. package/build/abi/curve-v1/CurveV1StableNg.json +1452 -0
  15. package/build/abi/curve-v1/CurveV2Swap.json +700 -0
  16. package/build/abi/curve-v1/FactoryCryptoRegistry.json +316 -0
  17. package/build/abi/curve-v1/FactoryRegistry.json +508 -0
  18. package/build/abi/curve-v1/StableSwapAave.json +1152 -0
  19. package/build/abi/curve-v1/StableSwapBUSD.json +814 -0
  20. package/build/abi/curve-v1/StableSwapCompound.json +814 -0
  21. package/build/abi/curve-v1/StableSwapIDLE.json +1253 -0
  22. package/build/abi/curve-v1/StableSwapPax.json +865 -0
  23. package/build/abi/curve-v1/StableSwapSnow.json +900 -0
  24. package/build/abi/curve-v1/StableSwapUSDN.json +1004 -0
  25. package/build/abi/curve-v1/StableSwapUSDT.json +814 -0
  26. package/build/abi/curve-v1/StableSwapY.json +814 -0
  27. package/build/abi/ekubo/core.json +1266 -0
  28. package/build/abi/ekubo/data-fetcher.json +161 -0
  29. package/build/abi/ekubo/router.json +803 -0
  30. package/build/abi/inception/inception-ineth-pool.json +1062 -0
  31. package/build/abi/inception/inception-ineth.json +609 -0
  32. package/build/abi/inception/inception-ratio-feed.json +329 -0
  33. package/build/abi/inception/inception-vault.json +991 -0
  34. package/build/abi/kyberdmm/kyber-storage.abi.json +824 -0
  35. package/build/abi/kyberdmm.abi.json +1148 -0
  36. package/build/abi/maverick-v2/MaverickV2Quoter.json +278 -0
  37. package/build/abi/nerve/nerve-metapool.json +790 -0
  38. package/build/abi/platypus/asset.json +490 -0
  39. package/build/abi/platypus/avax-pool.json +820 -0
  40. package/build/abi/platypus/oracle.json +119 -0
  41. package/build/abi/platypus/pool.json +677 -0
  42. package/build/abi/smardex/all/smardex-router.json +648 -0
  43. package/build/abi/smardex/layer-1/smardex-factory.json +242 -0
  44. package/build/abi/smardex/layer-1/smardex-pool.json +506 -0
  45. package/build/abi/smardex/layer-2/smardex-factory.json +185 -0
  46. package/build/abi/smardex/layer-2/smardex-pool.json +578 -0
  47. package/build/abi/swaap-v1/pool.json +1346 -0
  48. package/build/abi/uniswap-v3/UniswapV3Quoter.abi.json +193 -0
  49. package/build/abi/velodrome-slipstream/VelodromeSlipstreamQuoterV2.abi.json +267 -0
  50. package/build/dex/aave-v1/aave-v1.d.ts +34 -0
  51. package/build/dex/aave-v1/aave-v1.js +180 -0
  52. package/build/dex/aave-v1/aave-v1.js.map +1 -0
  53. package/build/dex/aave-v1/config.d.ts +11 -0
  54. package/build/dex/aave-v1/config.js +20 -0
  55. package/build/dex/aave-v1/config.js.map +1 -0
  56. package/build/dex/aave-v1/tokens-mainnet.json +134 -0
  57. package/build/dex/aave-v1/tokens.d.ts +3 -0
  58. package/build/dex/aave-v1/tokens.js +50 -0
  59. package/build/dex/aave-v1/tokens.js.map +1 -0
  60. package/build/dex/aave-v1/types.d.ts +12 -0
  61. package/build/dex/aave-v1/types.js +3 -0
  62. package/build/dex/aave-v1/types.js.map +1 -0
  63. package/build/dex/aave-v3-stata/config.js +8 -8
  64. package/build/dex/aave-v3-stata/config.js.map +1 -1
  65. package/build/dex/aave-v3-stata-v2/aave-v3-stata-v2.js +2 -2
  66. package/build/dex/aave-v3-stata-v2/aave-v3-stata-v2.js.map +1 -1
  67. package/build/dex/aave-v3-stata-v2/config.js +31 -24
  68. package/build/dex/aave-v3-stata-v2/config.js.map +1 -1
  69. package/build/dex/aave-v3-stata-v2/types.d.ts +3 -2
  70. package/build/dex/aave-v3-stata-v2/types.js.map +1 -1
  71. package/build/dex/aave-v3-stata-v2/utils.d.ts +2 -2
  72. package/build/dex/aave-v3-stata-v2/utils.js +7 -6
  73. package/build/dex/aave-v3-stata-v2/utils.js.map +1 -1
  74. package/build/dex/balancer-v1/balancer-pools.json +33333 -0
  75. package/build/dex/bebop/websocket-fetcher.d.ts +35 -0
  76. package/build/dex/bebop/websocket-fetcher.js +87 -0
  77. package/build/dex/bebop/websocket-fetcher.js.map +1 -0
  78. package/build/dex/ekubo/config.d.ts +3 -0
  79. package/build/dex/ekubo/config.js +23 -0
  80. package/build/dex/ekubo/config.js.map +1 -0
  81. package/build/dex/ekubo/ekubo.d.ts +49 -0
  82. package/build/dex/ekubo/ekubo.js +418 -0
  83. package/build/dex/ekubo/ekubo.js.map +1 -0
  84. package/build/dex/ekubo/pools/base-pool.d.ts +47 -0
  85. package/build/dex/ekubo/pools/base-pool.js +184 -0
  86. package/build/dex/ekubo/pools/base-pool.js.map +1 -0
  87. package/build/dex/ekubo/pools/math/constants.d.ts +3 -0
  88. package/build/dex/ekubo/pools/math/constants.js +7 -0
  89. package/build/dex/ekubo/pools/math/constants.js.map +1 -0
  90. package/build/dex/ekubo/pools/math/delta.d.ts +2 -0
  91. package/build/dex/ekubo/pools/math/delta.js +51 -0
  92. package/build/dex/ekubo/pools/math/delta.js.map +1 -0
  93. package/build/dex/ekubo/pools/math/price.d.ts +7 -0
  94. package/build/dex/ekubo/pools/math/price.js +116 -0
  95. package/build/dex/ekubo/pools/math/price.js.map +1 -0
  96. package/build/dex/ekubo/pools/math/swap.d.ts +18 -0
  97. package/build/dex/ekubo/pools/math/swap.js +128 -0
  98. package/build/dex/ekubo/pools/math/swap.js.map +1 -0
  99. package/build/dex/ekubo/pools/math/tick.d.ts +7 -0
  100. package/build/dex/ekubo/pools/math/tick.js +112 -0
  101. package/build/dex/ekubo/pools/math/tick.js.map +1 -0
  102. package/build/dex/ekubo/pools/oracle-pool.d.ts +10 -0
  103. package/build/dex/ekubo/pools/oracle-pool.js +19 -0
  104. package/build/dex/ekubo/pools/oracle-pool.js.map +1 -0
  105. package/build/dex/ekubo/types.d.ts +88 -0
  106. package/build/dex/ekubo/types.js +238 -0
  107. package/build/dex/ekubo/types.js.map +1 -0
  108. package/build/dex/ekubo/utils.d.ts +6 -0
  109. package/build/dex/ekubo/utils.js +30 -0
  110. package/build/dex/ekubo/utils.js.map +1 -0
  111. package/build/dex/generic-rfq/generic-rfq.js +1 -2
  112. package/build/dex/generic-rfq/generic-rfq.js.map +1 -1
  113. package/build/dex/generic-rfq/rate-fetcher.d.ts +4 -1
  114. package/build/dex/generic-rfq/rate-fetcher.js +84 -23
  115. package/build/dex/generic-rfq/rate-fetcher.js.map +1 -1
  116. package/build/dex/hashflow/hashflow.js +4 -0
  117. package/build/dex/hashflow/hashflow.js.map +1 -1
  118. package/build/dex/idle-dao/idle-dao-pool.d.ts +56 -0
  119. package/build/dex/idle-dao/idle-dao-pool.js +176 -0
  120. package/build/dex/idle-dao/idle-dao-pool.js.map +1 -0
  121. package/build/dex/idle-dao/idle-dao-pooling-pool.d.ts +16 -0
  122. package/build/dex/idle-dao/idle-dao-pooling-pool.js +57 -0
  123. package/build/dex/idle-dao/idle-dao-pooling-pool.js.map +1 -0
  124. package/build/dex/idle-dao/scripts.d.ts +9 -0
  125. package/build/dex/idle-dao/scripts.js +552 -0
  126. package/build/dex/idle-dao/scripts.js.map +1 -0
  127. package/build/dex/inception/config.d.ts +4 -0
  128. package/build/dex/inception/config.js +109 -0
  129. package/build/dex/inception/config.js.map +1 -0
  130. package/build/dex/inception/inception-event-pool.d.ts +16 -0
  131. package/build/dex/inception/inception-event-pool.js +51 -0
  132. package/build/dex/inception/inception-event-pool.js.map +1 -0
  133. package/build/dex/inception/inception-native.d.ts +43 -0
  134. package/build/dex/inception/inception-native.js +131 -0
  135. package/build/dex/inception/inception-native.js.map +1 -0
  136. package/build/dex/inception/inception-pool.d.ts +18 -0
  137. package/build/dex/inception/inception-pool.js +32 -0
  138. package/build/dex/inception/inception-pool.js.map +1 -0
  139. package/build/dex/inception/inception-price-feed.d.ts +19 -0
  140. package/build/dex/inception/inception-price-feed.js +51 -0
  141. package/build/dex/inception/inception-price-feed.js.map +1 -0
  142. package/build/dex/inception/inception.d.ts +43 -0
  143. package/build/dex/inception/inception.js +204 -0
  144. package/build/dex/inception/inception.js.map +1 -0
  145. package/build/dex/inception/tokens.d.ts +9 -0
  146. package/build/dex/inception/tokens.js +28 -0
  147. package/build/dex/inception/tokens.js.map +1 -0
  148. package/build/dex/inception/types.d.ts +22 -0
  149. package/build/dex/inception/types.js +3 -0
  150. package/build/dex/inception/types.js.map +1 -0
  151. package/build/dex/inception/utils.d.ts +6 -0
  152. package/build/dex/inception/utils.js +37 -0
  153. package/build/dex/inception/utils.js.map +1 -0
  154. package/build/dex/platypus/asset.d.ts +14 -0
  155. package/build/dex/platypus/asset.js +97 -0
  156. package/build/dex/platypus/asset.js.map +1 -0
  157. package/build/dex/platypus/config.d.ts +11 -0
  158. package/build/dex/platypus/config.js +69 -0
  159. package/build/dex/platypus/config.js.map +1 -0
  160. package/build/dex/platypus/platypus.d.ts +63 -0
  161. package/build/dex/platypus/platypus.js +473 -0
  162. package/build/dex/platypus/platypus.js.map +1 -0
  163. package/build/dex/platypus/pool-avax.d.ts +8 -0
  164. package/build/dex/platypus/pool-avax.js +54 -0
  165. package/build/dex/platypus/pool-avax.js.map +1 -0
  166. package/build/dex/platypus/pool-base.d.ts +19 -0
  167. package/build/dex/platypus/pool-base.js +86 -0
  168. package/build/dex/platypus/pool-base.js.map +1 -0
  169. package/build/dex/platypus/pool-pure.d.ts +8 -0
  170. package/build/dex/platypus/pool-pure.js +37 -0
  171. package/build/dex/platypus/pool-pure.js.map +1 -0
  172. package/build/dex/platypus/pool-subscriber.d.ts +14 -0
  173. package/build/dex/platypus/pool-subscriber.js +167 -0
  174. package/build/dex/platypus/pool-subscriber.js.map +1 -0
  175. package/build/dex/platypus/pool.d.ts +8 -0
  176. package/build/dex/platypus/pool.js +58 -0
  177. package/build/dex/platypus/pool.js.map +1 -0
  178. package/build/dex/platypus/types.d.ts +92 -0
  179. package/build/dex/platypus/types.js +10 -0
  180. package/build/dex/platypus/types.js.map +1 -0
  181. package/build/dex/quickswap/spiritswap-v3.d.ts +6 -0
  182. package/build/dex/quickswap/spiritswap-v3.js +19 -0
  183. package/build/dex/quickswap/spiritswap-v3.js.map +1 -0
  184. package/build/dex/smardex/config.d.ts +4 -0
  185. package/build/dex/smardex/config.js +64 -0
  186. package/build/dex/smardex/config.js.map +1 -0
  187. package/build/dex/smardex/constants.d.ts +18 -0
  188. package/build/dex/smardex/constants.js +33 -0
  189. package/build/dex/smardex/constants.js.map +1 -0
  190. package/build/dex/smardex/sdk/constants.d.ts +6 -0
  191. package/build/dex/smardex/sdk/constants.js +13 -0
  192. package/build/dex/smardex/sdk/constants.js.map +1 -0
  193. package/build/dex/smardex/sdk/core.d.ts +113 -0
  194. package/build/dex/smardex/sdk/core.js +499 -0
  195. package/build/dex/smardex/sdk/core.js.map +1 -0
  196. package/build/dex/smardex/sdk/errors.d.ts +15 -0
  197. package/build/dex/smardex/sdk/errors.js +22 -0
  198. package/build/dex/smardex/sdk/errors.js.map +1 -0
  199. package/build/dex/smardex/sdk/types.d.ts +62 -0
  200. package/build/dex/smardex/sdk/types.js +3 -0
  201. package/build/dex/smardex/sdk/types.js.map +1 -0
  202. package/build/dex/smardex/sdk/utils.d.ts +44 -0
  203. package/build/dex/smardex/sdk/utils.js +133 -0
  204. package/build/dex/smardex/sdk/utils.js.map +1 -0
  205. package/build/dex/smardex/smardex-event-pool.d.ts +28 -0
  206. package/build/dex/smardex/smardex-event-pool.js +119 -0
  207. package/build/dex/smardex/smardex-event-pool.js.map +1 -0
  208. package/build/dex/smardex/smardex.d.ts +65 -0
  209. package/build/dex/smardex/smardex.js +519 -0
  210. package/build/dex/smardex/smardex.js.map +1 -0
  211. package/build/dex/smardex/types.d.ts +55 -0
  212. package/build/dex/smardex/types.js +3 -0
  213. package/build/dex/smardex/types.js.map +1 -0
  214. package/build/dex/solidly/forks-override/cone.d.ts +22 -0
  215. package/build/dex/solidly/forks-override/cone.js +53 -0
  216. package/build/dex/solidly/forks-override/cone.js.map +1 -0
  217. package/build/dex/solidly/forks-override/solisnek.d.ts +8 -0
  218. package/build/dex/solidly/forks-override/solisnek.js +15 -0
  219. package/build/dex/solidly/forks-override/solisnek.js.map +1 -0
  220. package/build/dex/swaap-v1/config.d.ts +17 -0
  221. package/build/dex/swaap-v1/config.js +56 -0
  222. package/build/dex/swaap-v1/config.js.map +1 -0
  223. package/build/dex/swaap-v1/constants.d.ts +6 -0
  224. package/build/dex/swaap-v1/constants.js +17 -0
  225. package/build/dex/swaap-v1/constants.js.map +1 -0
  226. package/build/dex/swaap-v1/libraries/ChainlinkUtils.d.ts +25 -0
  227. package/build/dex/swaap-v1/libraries/ChainlinkUtils.js +62 -0
  228. package/build/dex/swaap-v1/libraries/ChainlinkUtils.js.map +1 -0
  229. package/build/dex/swaap-v1/libraries/Const.d.ts +18 -0
  230. package/build/dex/swaap-v1/libraries/Const.js +26 -0
  231. package/build/dex/swaap-v1/libraries/Const.js.map +1 -0
  232. package/build/dex/swaap-v1/libraries/GeometricBrownianMotion.d.ts +77 -0
  233. package/build/dex/swaap-v1/libraries/GeometricBrownianMotion.js +316 -0
  234. package/build/dex/swaap-v1/libraries/GeometricBrownianMotion.js.map +1 -0
  235. package/build/dex/swaap-v1/libraries/LogExpMath.d.ts +75 -0
  236. package/build/dex/swaap-v1/libraries/LogExpMath.js +418 -0
  237. package/build/dex/swaap-v1/libraries/LogExpMath.js.map +1 -0
  238. package/build/dex/swaap-v1/libraries/MathMMM.d.ts +185 -0
  239. package/build/dex/swaap-v1/libraries/MathMMM.js +453 -0
  240. package/build/dex/swaap-v1/libraries/MathMMM.js.map +1 -0
  241. package/build/dex/swaap-v1/libraries/Num.d.ts +31 -0
  242. package/build/dex/swaap-v1/libraries/Num.js +167 -0
  243. package/build/dex/swaap-v1/libraries/Num.js.map +1 -0
  244. package/build/dex/swaap-v1/libraries/PoolQuotations.d.ts +23 -0
  245. package/build/dex/swaap-v1/libraries/PoolQuotations.js +131 -0
  246. package/build/dex/swaap-v1/libraries/PoolQuotations.js.map +1 -0
  247. package/build/dex/swaap-v1/libraries/Struct.d.ts +56 -0
  248. package/build/dex/swaap-v1/libraries/Struct.js +3 -0
  249. package/build/dex/swaap-v1/libraries/Struct.js.map +1 -0
  250. package/build/dex/swaap-v1/swaap-v1-pool.d.ts +45 -0
  251. package/build/dex/swaap-v1/swaap-v1-pool.js +656 -0
  252. package/build/dex/swaap-v1/swaap-v1-pool.js.map +1 -0
  253. package/build/dex/swaap-v1/swaap-v1.d.ts +62 -0
  254. package/build/dex/swaap-v1/swaap-v1.js +379 -0
  255. package/build/dex/swaap-v1/swaap-v1.js.map +1 -0
  256. package/build/dex/swaap-v1/types.d.ts +106 -0
  257. package/build/dex/swaap-v1/types.js +9 -0
  258. package/build/dex/swaap-v1/types.js.map +1 -0
  259. package/build/dex/zerox/index.d.ts +1 -1
  260. package/build/dex/zerox/index.js.map +1 -1
  261. package/build/dex-helper/dummy-dex-helper.js +3 -0
  262. package/build/dex-helper/dummy-dex-helper.js.map +1 -1
  263. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-balancerv1-curvev1-eth-usdc-gusd.json +16 -0
  264. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-balancerv1-sushiv3-wbtc-eth-sushi.json +16 -0
  265. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-curvev1-eth-usdc-gusd.json +16 -0
  266. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-curvev1-gusd-usdc-eth.json +16 -0
  267. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-dai-usdc-eth.json +16 -0
  268. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-eth-usdc-dai.json +16 -0
  269. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-usdc-eth-wbtc.json +16 -0
  270. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-usdt-usdc-dai.json +16 -0
  271. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-balancerv1-eth-usdc.json +9 -0
  272. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-balancerv1-usdc-eth.json +9 -0
  273. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-balancerv1-usdc-wbtc.json +9 -0
  274. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-curvev1-eth-steth.json +9 -0
  275. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-curvev1-steth-eth.json +9 -0
  276. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-curvev1-usdc-usdt.json +9 -0
  277. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-univ3-eth-usdc.json +9 -0
  278. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-univ3-usdc-eth.json +9 -0
  279. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-univ3-usdc-usdt.json +9 -0
  280. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-balancerv1-sushiv3-wbtc-eth-sushi.json +12 -0
  281. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-curvev1-eth-usdc-gusd.json +7 -0
  282. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-curvev1-gusd-usdc-eth.json +7 -0
  283. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-dai-usdc-eth.json +7 -0
  284. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-eth-usdc-dai.json +7 -0
  285. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-usdc-eth-wbtc.json +12 -0
  286. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-simpleSwap-univ3-eth-usdc.json +7 -0
  287. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-simpleSwap-univ3-usdc-eth.json +7 -0
  288. package/build/executor/fixtures/executor01/routes/price-route-multiswap-balancerv1-curvev1-eth-usdc-gusd.json +78 -0
  289. package/build/executor/fixtures/executor01/routes/price-route-multiswap-balancerv1-sushiv3-wbtc-eth-sushi.json +81 -0
  290. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-curvev1-eth-usdc-gusd.json +78 -0
  291. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-curvev1-gusd-usdc-eth.json +78 -0
  292. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-dai-usdc-eth.json +81 -0
  293. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-eth-usdc-dai.json +81 -0
  294. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-usdc-eth-wbtc.json +81 -0
  295. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-usdt-usdc-dai.json +81 -0
  296. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-balancerv1-eth-usdc.json +64 -0
  297. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-balancerv1-usdc-eth.json +85 -0
  298. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-balancerv1-usdc-wbtc.json +64 -0
  299. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-curvev1-eth-steth.json +52 -0
  300. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-curvev1-steth-eth.json +52 -0
  301. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-curvev1-usdc-usdt.json +52 -0
  302. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-univ3-eth-usdc.json +55 -0
  303. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-univ3-usdc-eth.json +55 -0
  304. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-univ3-usdc-usdt.json +55 -0
  305. package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-balancerv1-sushiv3-univ3-bal-eth-sushi.json +23 -0
  306. package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-maverickv1-sushiv3-univ3-eth-usdc-mav.json +37 -0
  307. package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-univ3-sushiv3-sushi-eth-wbtc.json +23 -0
  308. package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-univ3-sushiv3-wbtc-eth-sushi.json +23 -0
  309. package/build/executor/fixtures/executor02/exchange-params/price-route-multiswap-curvev1-univ3-dai-usdc-eth.json +51 -0
  310. package/build/executor/fixtures/executor02/exchange-params/price-route-multiswap-univ3-usdt-dai-eth.json +58 -0
  311. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-balancerv1-eth-usdc.json +23 -0
  312. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-balancerv1-usdc-eth.json +23 -0
  313. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-univ3-eth-sushi.json +9 -0
  314. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-univ3-sushi-eth.json +16 -0
  315. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-univ3-curvev1-usdt-dai.json +23 -0
  316. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-balancerv1-sushiv3-univ3-bal-eth-sushi.json +12 -0
  317. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-maverickv1-sushiv3-univ3-eth-usdc-mav.json +7 -0
  318. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-univ3-sushiv3-sushi-eth-wbtc.json +12 -0
  319. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-univ3-sushiv3-wbtc-eth-sushi.json +12 -0
  320. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiswap-curvev1-univ3-dai-usdc-eth.json +7 -0
  321. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiswap-univ3-usdt-dai-eth.json +7 -0
  322. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-balancerv1-eth-usdc.json +7 -0
  323. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-balancerv1-usdc-eth.json +7 -0
  324. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-univ3-eth-sushi.json +7 -0
  325. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-univ3-sushi-eth.json +7 -0
  326. package/build/executor/fixtures/executor02/routes/price-route-multiSwap-balancerv1-sushiv3-univ3-bal-eth-sushi.json +130 -0
  327. package/build/executor/fixtures/executor02/routes/price-route-multiSwap-maverickv1-sushiv3-univ3-eth-usdc-mav.json +136 -0
  328. package/build/executor/fixtures/executor02/routes/price-route-multiSwap-univ3-sushiv3-sushi-eth-wbtc.json +100 -0
  329. package/build/executor/fixtures/executor02/routes/price-route-multiSwap-univ3-sushiv3-wbtc-eth-sushi.json +100 -0
  330. package/build/executor/fixtures/executor02/routes/price-route-multiswap-curvev1-univ3-dai-usdc-eth.json +166 -0
  331. package/build/executor/fixtures/executor02/routes/price-route-multiswap-univ3-usdt-dai-eth.json +190 -0
  332. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-balancerv1-eth-usdc.json +114 -0
  333. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-balancerv1-usdc-eth.json +114 -0
  334. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-univ3-eth-sushi.json +55 -0
  335. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-univ3-sushi-eth.json +73 -0
  336. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-univ3-curvev1-usdt-dai.json +82 -0
  337. package/build/lib/pub-sub.d.ts +20 -0
  338. package/build/lib/pub-sub.js +112 -4
  339. package/build/lib/pub-sub.js.map +1 -1
  340. package/package.json +2 -2
  341. package/src/abi/balancer-v3/directionalFeeHook.json +677 -677
  342. package/src/abi/balancer-v3/stableSurgeHook.json +975 -975
  343. package/src/dex/aave-v3-stata/config.ts +8 -8
  344. package/src/dex/aave-v3-stata-v2/aave-v3-stata-v2-e2e.test.ts +5 -5
  345. package/src/dex/aave-v3-stata-v2/aave-v3-stata-v2.ts +2 -2
  346. package/src/dex/aave-v3-stata-v2/config.ts +31 -24
  347. package/src/dex/aave-v3-stata-v2/types.ts +3 -2
  348. package/src/dex/aave-v3-stata-v2/utils.ts +18 -10
  349. package/src/dex/generic-rfq/generic-rfq.ts +1 -6
  350. package/src/dex/generic-rfq/rate-fetcher.ts +130 -58
  351. package/src/dex/hashflow/hashflow.ts +12 -0
  352. package/src/dex-helper/dummy-dex-helper.ts +10 -0
  353. package/src/lib/pub-sub.ts +145 -5
  354. package/tests/constants-e2e.ts +10 -0
  355. package/tests/utils-e2e.ts +0 -1
  356. package/.idea/codeStyles/Project.xml +0 -59
  357. package/.idea/codeStyles/codeStyleConfig.xml +0 -5
  358. package/.idea/inspectionProfiles/Project_Default.xml +0 -6
  359. package/.idea/modules.xml +0 -8
  360. package/.idea/paraswap-dex-lib.iml +0 -12
  361. package/.idea/prettier.xml +0 -7
  362. package/.idea/vcs.xml +0 -6
  363. package/scripts/get-uniswap-v3-dexes.ts +0 -64
@@ -0,0 +1,1266 @@
1
+ [
2
+ {
3
+ "type": "constructor",
4
+ "inputs": [
5
+ {
6
+ "name": "owner",
7
+ "type": "address",
8
+ "internalType": "address"
9
+ }
10
+ ],
11
+ "stateMutability": "nonpayable"
12
+ },
13
+ {
14
+ "type": "receive",
15
+ "stateMutability": "payable"
16
+ },
17
+ {
18
+ "type": "function",
19
+ "name": "accumulateAsFees",
20
+ "inputs": [
21
+ {
22
+ "name": "poolKey",
23
+ "type": "tuple",
24
+ "internalType": "struct PoolKey",
25
+ "components": [
26
+ {
27
+ "name": "token0",
28
+ "type": "address",
29
+ "internalType": "address"
30
+ },
31
+ {
32
+ "name": "token1",
33
+ "type": "address",
34
+ "internalType": "address"
35
+ },
36
+ {
37
+ "name": "config",
38
+ "type": "bytes32",
39
+ "internalType": "Config"
40
+ }
41
+ ]
42
+ },
43
+ {
44
+ "name": "amount0",
45
+ "type": "uint128",
46
+ "internalType": "uint128"
47
+ },
48
+ {
49
+ "name": "amount1",
50
+ "type": "uint128",
51
+ "internalType": "uint128"
52
+ }
53
+ ],
54
+ "outputs": [],
55
+ "stateMutability": "payable"
56
+ },
57
+ {
58
+ "type": "function",
59
+ "name": "cancelOwnershipHandover",
60
+ "inputs": [],
61
+ "outputs": [],
62
+ "stateMutability": "payable"
63
+ },
64
+ {
65
+ "type": "function",
66
+ "name": "collectFees",
67
+ "inputs": [
68
+ {
69
+ "name": "poolKey",
70
+ "type": "tuple",
71
+ "internalType": "struct PoolKey",
72
+ "components": [
73
+ {
74
+ "name": "token0",
75
+ "type": "address",
76
+ "internalType": "address"
77
+ },
78
+ {
79
+ "name": "token1",
80
+ "type": "address",
81
+ "internalType": "address"
82
+ },
83
+ {
84
+ "name": "config",
85
+ "type": "bytes32",
86
+ "internalType": "Config"
87
+ }
88
+ ]
89
+ },
90
+ {
91
+ "name": "salt",
92
+ "type": "bytes32",
93
+ "internalType": "bytes32"
94
+ },
95
+ {
96
+ "name": "bounds",
97
+ "type": "tuple",
98
+ "internalType": "struct Bounds",
99
+ "components": [
100
+ {
101
+ "name": "lower",
102
+ "type": "int32",
103
+ "internalType": "int32"
104
+ },
105
+ {
106
+ "name": "upper",
107
+ "type": "int32",
108
+ "internalType": "int32"
109
+ }
110
+ ]
111
+ }
112
+ ],
113
+ "outputs": [
114
+ {
115
+ "name": "amount0",
116
+ "type": "uint128",
117
+ "internalType": "uint128"
118
+ },
119
+ {
120
+ "name": "amount1",
121
+ "type": "uint128",
122
+ "internalType": "uint128"
123
+ }
124
+ ],
125
+ "stateMutability": "nonpayable"
126
+ },
127
+ {
128
+ "type": "function",
129
+ "name": "completeOwnershipHandover",
130
+ "inputs": [
131
+ {
132
+ "name": "pendingOwner",
133
+ "type": "address",
134
+ "internalType": "address"
135
+ }
136
+ ],
137
+ "outputs": [],
138
+ "stateMutability": "payable"
139
+ },
140
+ {
141
+ "type": "function",
142
+ "name": "forward",
143
+ "inputs": [
144
+ {
145
+ "name": "to",
146
+ "type": "address",
147
+ "internalType": "address"
148
+ }
149
+ ],
150
+ "outputs": [],
151
+ "stateMutability": "nonpayable"
152
+ },
153
+ {
154
+ "type": "function",
155
+ "name": "getPoolFeesPerLiquidityInside",
156
+ "inputs": [
157
+ {
158
+ "name": "poolKey",
159
+ "type": "tuple",
160
+ "internalType": "struct PoolKey",
161
+ "components": [
162
+ {
163
+ "name": "token0",
164
+ "type": "address",
165
+ "internalType": "address"
166
+ },
167
+ {
168
+ "name": "token1",
169
+ "type": "address",
170
+ "internalType": "address"
171
+ },
172
+ {
173
+ "name": "config",
174
+ "type": "bytes32",
175
+ "internalType": "Config"
176
+ }
177
+ ]
178
+ },
179
+ {
180
+ "name": "bounds",
181
+ "type": "tuple",
182
+ "internalType": "struct Bounds",
183
+ "components": [
184
+ {
185
+ "name": "lower",
186
+ "type": "int32",
187
+ "internalType": "int32"
188
+ },
189
+ {
190
+ "name": "upper",
191
+ "type": "int32",
192
+ "internalType": "int32"
193
+ }
194
+ ]
195
+ }
196
+ ],
197
+ "outputs": [
198
+ {
199
+ "name": "",
200
+ "type": "tuple",
201
+ "internalType": "struct FeesPerLiquidity",
202
+ "components": [
203
+ {
204
+ "name": "value0",
205
+ "type": "uint256",
206
+ "internalType": "uint256"
207
+ },
208
+ {
209
+ "name": "value1",
210
+ "type": "uint256",
211
+ "internalType": "uint256"
212
+ }
213
+ ]
214
+ }
215
+ ],
216
+ "stateMutability": "view"
217
+ },
218
+ {
219
+ "type": "function",
220
+ "name": "initializePool",
221
+ "inputs": [
222
+ {
223
+ "name": "poolKey",
224
+ "type": "tuple",
225
+ "internalType": "struct PoolKey",
226
+ "components": [
227
+ {
228
+ "name": "token0",
229
+ "type": "address",
230
+ "internalType": "address"
231
+ },
232
+ {
233
+ "name": "token1",
234
+ "type": "address",
235
+ "internalType": "address"
236
+ },
237
+ {
238
+ "name": "config",
239
+ "type": "bytes32",
240
+ "internalType": "Config"
241
+ }
242
+ ]
243
+ },
244
+ {
245
+ "name": "tick",
246
+ "type": "int32",
247
+ "internalType": "int32"
248
+ }
249
+ ],
250
+ "outputs": [
251
+ {
252
+ "name": "sqrtRatio",
253
+ "type": "uint96",
254
+ "internalType": "SqrtRatio"
255
+ }
256
+ ],
257
+ "stateMutability": "nonpayable"
258
+ },
259
+ {
260
+ "type": "function",
261
+ "name": "load",
262
+ "inputs": [
263
+ {
264
+ "name": "token",
265
+ "type": "address",
266
+ "internalType": "address"
267
+ },
268
+ {
269
+ "name": "salt",
270
+ "type": "bytes32",
271
+ "internalType": "bytes32"
272
+ },
273
+ {
274
+ "name": "amount",
275
+ "type": "uint128",
276
+ "internalType": "uint128"
277
+ }
278
+ ],
279
+ "outputs": [],
280
+ "stateMutability": "nonpayable"
281
+ },
282
+ {
283
+ "type": "function",
284
+ "name": "lock",
285
+ "inputs": [],
286
+ "outputs": [],
287
+ "stateMutability": "nonpayable"
288
+ },
289
+ {
290
+ "type": "function",
291
+ "name": "nextInitializedTick",
292
+ "inputs": [
293
+ {
294
+ "name": "poolId",
295
+ "type": "bytes32",
296
+ "internalType": "bytes32"
297
+ },
298
+ {
299
+ "name": "fromTick",
300
+ "type": "int32",
301
+ "internalType": "int32"
302
+ },
303
+ {
304
+ "name": "tickSpacing",
305
+ "type": "uint32",
306
+ "internalType": "uint32"
307
+ },
308
+ {
309
+ "name": "skipAhead",
310
+ "type": "uint256",
311
+ "internalType": "uint256"
312
+ }
313
+ ],
314
+ "outputs": [
315
+ {
316
+ "name": "tick",
317
+ "type": "int32",
318
+ "internalType": "int32"
319
+ },
320
+ {
321
+ "name": "isInitialized",
322
+ "type": "bool",
323
+ "internalType": "bool"
324
+ }
325
+ ],
326
+ "stateMutability": "view"
327
+ },
328
+ {
329
+ "type": "function",
330
+ "name": "owner",
331
+ "inputs": [],
332
+ "outputs": [
333
+ {
334
+ "name": "result",
335
+ "type": "address",
336
+ "internalType": "address"
337
+ }
338
+ ],
339
+ "stateMutability": "view"
340
+ },
341
+ {
342
+ "type": "function",
343
+ "name": "ownershipHandoverExpiresAt",
344
+ "inputs": [
345
+ {
346
+ "name": "pendingOwner",
347
+ "type": "address",
348
+ "internalType": "address"
349
+ }
350
+ ],
351
+ "outputs": [
352
+ {
353
+ "name": "result",
354
+ "type": "uint256",
355
+ "internalType": "uint256"
356
+ }
357
+ ],
358
+ "stateMutability": "view"
359
+ },
360
+ {
361
+ "type": "function",
362
+ "name": "pay",
363
+ "inputs": [
364
+ {
365
+ "name": "token",
366
+ "type": "address",
367
+ "internalType": "address"
368
+ }
369
+ ],
370
+ "outputs": [
371
+ {
372
+ "name": "payment",
373
+ "type": "uint128",
374
+ "internalType": "uint128"
375
+ }
376
+ ],
377
+ "stateMutability": "nonpayable"
378
+ },
379
+ {
380
+ "type": "function",
381
+ "name": "prevInitializedTick",
382
+ "inputs": [
383
+ {
384
+ "name": "poolId",
385
+ "type": "bytes32",
386
+ "internalType": "bytes32"
387
+ },
388
+ {
389
+ "name": "fromTick",
390
+ "type": "int32",
391
+ "internalType": "int32"
392
+ },
393
+ {
394
+ "name": "tickSpacing",
395
+ "type": "uint32",
396
+ "internalType": "uint32"
397
+ },
398
+ {
399
+ "name": "skipAhead",
400
+ "type": "uint256",
401
+ "internalType": "uint256"
402
+ }
403
+ ],
404
+ "outputs": [
405
+ {
406
+ "name": "tick",
407
+ "type": "int32",
408
+ "internalType": "int32"
409
+ },
410
+ {
411
+ "name": "isInitialized",
412
+ "type": "bool",
413
+ "internalType": "bool"
414
+ }
415
+ ],
416
+ "stateMutability": "view"
417
+ },
418
+ {
419
+ "type": "function",
420
+ "name": "registerExtension",
421
+ "inputs": [
422
+ {
423
+ "name": "expectedCallPoints",
424
+ "type": "tuple",
425
+ "internalType": "struct CallPoints",
426
+ "components": [
427
+ {
428
+ "name": "beforeInitializePool",
429
+ "type": "bool",
430
+ "internalType": "bool"
431
+ },
432
+ {
433
+ "name": "afterInitializePool",
434
+ "type": "bool",
435
+ "internalType": "bool"
436
+ },
437
+ {
438
+ "name": "beforeSwap",
439
+ "type": "bool",
440
+ "internalType": "bool"
441
+ },
442
+ {
443
+ "name": "afterSwap",
444
+ "type": "bool",
445
+ "internalType": "bool"
446
+ },
447
+ {
448
+ "name": "beforeUpdatePosition",
449
+ "type": "bool",
450
+ "internalType": "bool"
451
+ },
452
+ {
453
+ "name": "afterUpdatePosition",
454
+ "type": "bool",
455
+ "internalType": "bool"
456
+ },
457
+ {
458
+ "name": "beforeCollectFees",
459
+ "type": "bool",
460
+ "internalType": "bool"
461
+ },
462
+ {
463
+ "name": "afterCollectFees",
464
+ "type": "bool",
465
+ "internalType": "bool"
466
+ }
467
+ ]
468
+ }
469
+ ],
470
+ "outputs": [],
471
+ "stateMutability": "nonpayable"
472
+ },
473
+ {
474
+ "type": "function",
475
+ "name": "renounceOwnership",
476
+ "inputs": [],
477
+ "outputs": [],
478
+ "stateMutability": "payable"
479
+ },
480
+ {
481
+ "type": "function",
482
+ "name": "requestOwnershipHandover",
483
+ "inputs": [],
484
+ "outputs": [],
485
+ "stateMutability": "payable"
486
+ },
487
+ {
488
+ "type": "function",
489
+ "name": "save",
490
+ "inputs": [
491
+ {
492
+ "name": "owner",
493
+ "type": "address",
494
+ "internalType": "address"
495
+ },
496
+ {
497
+ "name": "token",
498
+ "type": "address",
499
+ "internalType": "address"
500
+ },
501
+ {
502
+ "name": "salt",
503
+ "type": "bytes32",
504
+ "internalType": "bytes32"
505
+ },
506
+ {
507
+ "name": "amount",
508
+ "type": "uint128",
509
+ "internalType": "uint128"
510
+ }
511
+ ],
512
+ "outputs": [],
513
+ "stateMutability": "payable"
514
+ },
515
+ {
516
+ "type": "function",
517
+ "name": "sload",
518
+ "inputs": [
519
+ {
520
+ "name": "slot",
521
+ "type": "bytes32",
522
+ "internalType": "bytes32"
523
+ }
524
+ ],
525
+ "outputs": [
526
+ {
527
+ "name": "",
528
+ "type": "bytes32",
529
+ "internalType": "bytes32"
530
+ }
531
+ ],
532
+ "stateMutability": "view"
533
+ },
534
+ {
535
+ "type": "function",
536
+ "name": "swap",
537
+ "inputs": [
538
+ {
539
+ "name": "poolKey",
540
+ "type": "tuple",
541
+ "internalType": "struct PoolKey",
542
+ "components": [
543
+ {
544
+ "name": "token0",
545
+ "type": "address",
546
+ "internalType": "address"
547
+ },
548
+ {
549
+ "name": "token1",
550
+ "type": "address",
551
+ "internalType": "address"
552
+ },
553
+ {
554
+ "name": "config",
555
+ "type": "bytes32",
556
+ "internalType": "Config"
557
+ }
558
+ ]
559
+ },
560
+ {
561
+ "name": "params",
562
+ "type": "tuple",
563
+ "internalType": "struct SwapParameters",
564
+ "components": [
565
+ {
566
+ "name": "amount",
567
+ "type": "int128",
568
+ "internalType": "int128"
569
+ },
570
+ {
571
+ "name": "isToken1",
572
+ "type": "bool",
573
+ "internalType": "bool"
574
+ },
575
+ {
576
+ "name": "sqrtRatioLimit",
577
+ "type": "uint96",
578
+ "internalType": "SqrtRatio"
579
+ },
580
+ {
581
+ "name": "skipAhead",
582
+ "type": "uint256",
583
+ "internalType": "uint256"
584
+ }
585
+ ]
586
+ }
587
+ ],
588
+ "outputs": [
589
+ {
590
+ "name": "delta0",
591
+ "type": "int128",
592
+ "internalType": "int128"
593
+ },
594
+ {
595
+ "name": "delta1",
596
+ "type": "int128",
597
+ "internalType": "int128"
598
+ }
599
+ ],
600
+ "stateMutability": "payable"
601
+ },
602
+ {
603
+ "type": "function",
604
+ "name": "tload",
605
+ "inputs": [
606
+ {
607
+ "name": "slot",
608
+ "type": "bytes32",
609
+ "internalType": "bytes32"
610
+ }
611
+ ],
612
+ "outputs": [
613
+ {
614
+ "name": "",
615
+ "type": "bytes32",
616
+ "internalType": "bytes32"
617
+ }
618
+ ],
619
+ "stateMutability": "view"
620
+ },
621
+ {
622
+ "type": "function",
623
+ "name": "transferOwnership",
624
+ "inputs": [
625
+ {
626
+ "name": "newOwner",
627
+ "type": "address",
628
+ "internalType": "address"
629
+ }
630
+ ],
631
+ "outputs": [],
632
+ "stateMutability": "payable"
633
+ },
634
+ {
635
+ "type": "function",
636
+ "name": "updatePosition",
637
+ "inputs": [
638
+ {
639
+ "name": "poolKey",
640
+ "type": "tuple",
641
+ "internalType": "struct PoolKey",
642
+ "components": [
643
+ {
644
+ "name": "token0",
645
+ "type": "address",
646
+ "internalType": "address"
647
+ },
648
+ {
649
+ "name": "token1",
650
+ "type": "address",
651
+ "internalType": "address"
652
+ },
653
+ {
654
+ "name": "config",
655
+ "type": "bytes32",
656
+ "internalType": "Config"
657
+ }
658
+ ]
659
+ },
660
+ {
661
+ "name": "params",
662
+ "type": "tuple",
663
+ "internalType": "struct UpdatePositionParameters",
664
+ "components": [
665
+ {
666
+ "name": "salt",
667
+ "type": "bytes32",
668
+ "internalType": "bytes32"
669
+ },
670
+ {
671
+ "name": "bounds",
672
+ "type": "tuple",
673
+ "internalType": "struct Bounds",
674
+ "components": [
675
+ {
676
+ "name": "lower",
677
+ "type": "int32",
678
+ "internalType": "int32"
679
+ },
680
+ {
681
+ "name": "upper",
682
+ "type": "int32",
683
+ "internalType": "int32"
684
+ }
685
+ ]
686
+ },
687
+ {
688
+ "name": "liquidityDelta",
689
+ "type": "int128",
690
+ "internalType": "int128"
691
+ }
692
+ ]
693
+ }
694
+ ],
695
+ "outputs": [
696
+ {
697
+ "name": "delta0",
698
+ "type": "int128",
699
+ "internalType": "int128"
700
+ },
701
+ {
702
+ "name": "delta1",
703
+ "type": "int128",
704
+ "internalType": "int128"
705
+ }
706
+ ],
707
+ "stateMutability": "payable"
708
+ },
709
+ {
710
+ "type": "function",
711
+ "name": "withdraw",
712
+ "inputs": [
713
+ {
714
+ "name": "token",
715
+ "type": "address",
716
+ "internalType": "address"
717
+ },
718
+ {
719
+ "name": "recipient",
720
+ "type": "address",
721
+ "internalType": "address"
722
+ },
723
+ {
724
+ "name": "amount",
725
+ "type": "uint128",
726
+ "internalType": "uint128"
727
+ }
728
+ ],
729
+ "outputs": [],
730
+ "stateMutability": "nonpayable"
731
+ },
732
+ {
733
+ "type": "function",
734
+ "name": "withdrawProtocolFees",
735
+ "inputs": [
736
+ {
737
+ "name": "recipient",
738
+ "type": "address",
739
+ "internalType": "address"
740
+ },
741
+ {
742
+ "name": "token",
743
+ "type": "address",
744
+ "internalType": "address"
745
+ },
746
+ {
747
+ "name": "amount",
748
+ "type": "uint256",
749
+ "internalType": "uint256"
750
+ }
751
+ ],
752
+ "outputs": [],
753
+ "stateMutability": "nonpayable"
754
+ },
755
+ {
756
+ "type": "event",
757
+ "name": "ExtensionRegistered",
758
+ "inputs": [
759
+ {
760
+ "name": "extension",
761
+ "type": "address",
762
+ "indexed": false,
763
+ "internalType": "address"
764
+ }
765
+ ],
766
+ "anonymous": false
767
+ },
768
+ {
769
+ "type": "event",
770
+ "name": "FeesAccumulated",
771
+ "inputs": [
772
+ {
773
+ "name": "poolId",
774
+ "type": "bytes32",
775
+ "indexed": false,
776
+ "internalType": "bytes32"
777
+ },
778
+ {
779
+ "name": "amount0",
780
+ "type": "uint128",
781
+ "indexed": false,
782
+ "internalType": "uint128"
783
+ },
784
+ {
785
+ "name": "amount1",
786
+ "type": "uint128",
787
+ "indexed": false,
788
+ "internalType": "uint128"
789
+ }
790
+ ],
791
+ "anonymous": false
792
+ },
793
+ {
794
+ "type": "event",
795
+ "name": "LoadedBalance",
796
+ "inputs": [
797
+ {
798
+ "name": "owner",
799
+ "type": "address",
800
+ "indexed": false,
801
+ "internalType": "address"
802
+ },
803
+ {
804
+ "name": "token",
805
+ "type": "address",
806
+ "indexed": false,
807
+ "internalType": "address"
808
+ },
809
+ {
810
+ "name": "salt",
811
+ "type": "bytes32",
812
+ "indexed": false,
813
+ "internalType": "bytes32"
814
+ },
815
+ {
816
+ "name": "amount",
817
+ "type": "uint128",
818
+ "indexed": false,
819
+ "internalType": "uint128"
820
+ }
821
+ ],
822
+ "anonymous": false
823
+ },
824
+ {
825
+ "type": "event",
826
+ "name": "OwnershipHandoverCanceled",
827
+ "inputs": [
828
+ {
829
+ "name": "pendingOwner",
830
+ "type": "address",
831
+ "indexed": true,
832
+ "internalType": "address"
833
+ }
834
+ ],
835
+ "anonymous": false
836
+ },
837
+ {
838
+ "type": "event",
839
+ "name": "OwnershipHandoverRequested",
840
+ "inputs": [
841
+ {
842
+ "name": "pendingOwner",
843
+ "type": "address",
844
+ "indexed": true,
845
+ "internalType": "address"
846
+ }
847
+ ],
848
+ "anonymous": false
849
+ },
850
+ {
851
+ "type": "event",
852
+ "name": "OwnershipTransferred",
853
+ "inputs": [
854
+ {
855
+ "name": "oldOwner",
856
+ "type": "address",
857
+ "indexed": true,
858
+ "internalType": "address"
859
+ },
860
+ {
861
+ "name": "newOwner",
862
+ "type": "address",
863
+ "indexed": true,
864
+ "internalType": "address"
865
+ }
866
+ ],
867
+ "anonymous": false
868
+ },
869
+ {
870
+ "type": "event",
871
+ "name": "PoolInitialized",
872
+ "inputs": [
873
+ {
874
+ "name": "poolId",
875
+ "type": "bytes32",
876
+ "indexed": false,
877
+ "internalType": "bytes32"
878
+ },
879
+ {
880
+ "name": "poolKey",
881
+ "type": "tuple",
882
+ "indexed": false,
883
+ "internalType": "struct PoolKey",
884
+ "components": [
885
+ {
886
+ "name": "token0",
887
+ "type": "address",
888
+ "internalType": "address"
889
+ },
890
+ {
891
+ "name": "token1",
892
+ "type": "address",
893
+ "internalType": "address"
894
+ },
895
+ {
896
+ "name": "config",
897
+ "type": "bytes32",
898
+ "internalType": "Config"
899
+ }
900
+ ]
901
+ },
902
+ {
903
+ "name": "tick",
904
+ "type": "int32",
905
+ "indexed": false,
906
+ "internalType": "int32"
907
+ },
908
+ {
909
+ "name": "sqrtRatio",
910
+ "type": "uint96",
911
+ "indexed": false,
912
+ "internalType": "SqrtRatio"
913
+ }
914
+ ],
915
+ "anonymous": false
916
+ },
917
+ {
918
+ "type": "event",
919
+ "name": "PositionFeesCollected",
920
+ "inputs": [
921
+ {
922
+ "name": "poolId",
923
+ "type": "bytes32",
924
+ "indexed": false,
925
+ "internalType": "bytes32"
926
+ },
927
+ {
928
+ "name": "positionKey",
929
+ "type": "tuple",
930
+ "indexed": false,
931
+ "internalType": "struct PositionKey",
932
+ "components": [
933
+ {
934
+ "name": "salt",
935
+ "type": "bytes32",
936
+ "internalType": "bytes32"
937
+ },
938
+ {
939
+ "name": "owner",
940
+ "type": "address",
941
+ "internalType": "address"
942
+ },
943
+ {
944
+ "name": "bounds",
945
+ "type": "tuple",
946
+ "internalType": "struct Bounds",
947
+ "components": [
948
+ {
949
+ "name": "lower",
950
+ "type": "int32",
951
+ "internalType": "int32"
952
+ },
953
+ {
954
+ "name": "upper",
955
+ "type": "int32",
956
+ "internalType": "int32"
957
+ }
958
+ ]
959
+ }
960
+ ]
961
+ },
962
+ {
963
+ "name": "amount0",
964
+ "type": "uint128",
965
+ "indexed": false,
966
+ "internalType": "uint128"
967
+ },
968
+ {
969
+ "name": "amount1",
970
+ "type": "uint128",
971
+ "indexed": false,
972
+ "internalType": "uint128"
973
+ }
974
+ ],
975
+ "anonymous": false
976
+ },
977
+ {
978
+ "type": "event",
979
+ "name": "PositionUpdated",
980
+ "inputs": [
981
+ {
982
+ "name": "locker",
983
+ "type": "address",
984
+ "indexed": false,
985
+ "internalType": "address"
986
+ },
987
+ {
988
+ "name": "poolId",
989
+ "type": "bytes32",
990
+ "indexed": false,
991
+ "internalType": "bytes32"
992
+ },
993
+ {
994
+ "name": "params",
995
+ "type": "tuple",
996
+ "indexed": false,
997
+ "internalType": "struct UpdatePositionParameters",
998
+ "components": [
999
+ {
1000
+ "name": "salt",
1001
+ "type": "bytes32",
1002
+ "internalType": "bytes32"
1003
+ },
1004
+ {
1005
+ "name": "bounds",
1006
+ "type": "tuple",
1007
+ "internalType": "struct Bounds",
1008
+ "components": [
1009
+ {
1010
+ "name": "lower",
1011
+ "type": "int32",
1012
+ "internalType": "int32"
1013
+ },
1014
+ {
1015
+ "name": "upper",
1016
+ "type": "int32",
1017
+ "internalType": "int32"
1018
+ }
1019
+ ]
1020
+ },
1021
+ {
1022
+ "name": "liquidityDelta",
1023
+ "type": "int128",
1024
+ "internalType": "int128"
1025
+ }
1026
+ ]
1027
+ },
1028
+ {
1029
+ "name": "delta0",
1030
+ "type": "int128",
1031
+ "indexed": false,
1032
+ "internalType": "int128"
1033
+ },
1034
+ {
1035
+ "name": "delta1",
1036
+ "type": "int128",
1037
+ "indexed": false,
1038
+ "internalType": "int128"
1039
+ }
1040
+ ],
1041
+ "anonymous": false
1042
+ },
1043
+ {
1044
+ "type": "event",
1045
+ "name": "ProtocolFeesWithdrawn",
1046
+ "inputs": [
1047
+ {
1048
+ "name": "recipient",
1049
+ "type": "address",
1050
+ "indexed": false,
1051
+ "internalType": "address"
1052
+ },
1053
+ {
1054
+ "name": "token",
1055
+ "type": "address",
1056
+ "indexed": false,
1057
+ "internalType": "address"
1058
+ },
1059
+ {
1060
+ "name": "amount",
1061
+ "type": "uint256",
1062
+ "indexed": false,
1063
+ "internalType": "uint256"
1064
+ }
1065
+ ],
1066
+ "anonymous": false
1067
+ },
1068
+ {
1069
+ "type": "event",
1070
+ "name": "SavedBalance",
1071
+ "inputs": [
1072
+ {
1073
+ "name": "owner",
1074
+ "type": "address",
1075
+ "indexed": false,
1076
+ "internalType": "address"
1077
+ },
1078
+ {
1079
+ "name": "token",
1080
+ "type": "address",
1081
+ "indexed": false,
1082
+ "internalType": "address"
1083
+ },
1084
+ {
1085
+ "name": "salt",
1086
+ "type": "bytes32",
1087
+ "indexed": false,
1088
+ "internalType": "bytes32"
1089
+ },
1090
+ {
1091
+ "name": "amount",
1092
+ "type": "uint128",
1093
+ "indexed": false,
1094
+ "internalType": "uint128"
1095
+ }
1096
+ ],
1097
+ "anonymous": false
1098
+ },
1099
+ {
1100
+ "type": "error",
1101
+ "name": "AlreadyInitialized",
1102
+ "inputs": []
1103
+ },
1104
+ {
1105
+ "type": "error",
1106
+ "name": "Amount0DeltaOverflow",
1107
+ "inputs": []
1108
+ },
1109
+ {
1110
+ "type": "error",
1111
+ "name": "Amount1DeltaOverflow",
1112
+ "inputs": []
1113
+ },
1114
+ {
1115
+ "type": "error",
1116
+ "name": "AmountBeforeFeeOverflow",
1117
+ "inputs": []
1118
+ },
1119
+ {
1120
+ "type": "error",
1121
+ "name": "BoundsOrder",
1122
+ "inputs": []
1123
+ },
1124
+ {
1125
+ "type": "error",
1126
+ "name": "BoundsTickSpacing",
1127
+ "inputs": []
1128
+ },
1129
+ {
1130
+ "type": "error",
1131
+ "name": "DebtsNotZeroed",
1132
+ "inputs": [
1133
+ {
1134
+ "name": "id",
1135
+ "type": "uint256",
1136
+ "internalType": "uint256"
1137
+ }
1138
+ ]
1139
+ },
1140
+ {
1141
+ "type": "error",
1142
+ "name": "ExtensionAlreadyRegistered",
1143
+ "inputs": []
1144
+ },
1145
+ {
1146
+ "type": "error",
1147
+ "name": "ExtensionNotRegistered",
1148
+ "inputs": []
1149
+ },
1150
+ {
1151
+ "type": "error",
1152
+ "name": "FailedRegisterInvalidCallPoints",
1153
+ "inputs": []
1154
+ },
1155
+ {
1156
+ "type": "error",
1157
+ "name": "FullRangeOnlyPool",
1158
+ "inputs": []
1159
+ },
1160
+ {
1161
+ "type": "error",
1162
+ "name": "InsufficientSavedBalance",
1163
+ "inputs": []
1164
+ },
1165
+ {
1166
+ "type": "error",
1167
+ "name": "InvalidSqrtRatioLimit",
1168
+ "inputs": []
1169
+ },
1170
+ {
1171
+ "type": "error",
1172
+ "name": "InvalidTick",
1173
+ "inputs": [
1174
+ {
1175
+ "name": "tick",
1176
+ "type": "int32",
1177
+ "internalType": "int32"
1178
+ }
1179
+ ]
1180
+ },
1181
+ {
1182
+ "type": "error",
1183
+ "name": "InvalidTickSpacing",
1184
+ "inputs": []
1185
+ },
1186
+ {
1187
+ "type": "error",
1188
+ "name": "LockerOnly",
1189
+ "inputs": []
1190
+ },
1191
+ {
1192
+ "type": "error",
1193
+ "name": "MinMaxBounds",
1194
+ "inputs": []
1195
+ },
1196
+ {
1197
+ "type": "error",
1198
+ "name": "MustCollectFeesBeforeWithdrawingAllLiquidity",
1199
+ "inputs": []
1200
+ },
1201
+ {
1202
+ "type": "error",
1203
+ "name": "NewOwnerIsZeroAddress",
1204
+ "inputs": []
1205
+ },
1206
+ {
1207
+ "type": "error",
1208
+ "name": "NoHandoverRequest",
1209
+ "inputs": []
1210
+ },
1211
+ {
1212
+ "type": "error",
1213
+ "name": "NoPaymentMade",
1214
+ "inputs": []
1215
+ },
1216
+ {
1217
+ "type": "error",
1218
+ "name": "NotLocked",
1219
+ "inputs": []
1220
+ },
1221
+ {
1222
+ "type": "error",
1223
+ "name": "PaymentOverflow",
1224
+ "inputs": []
1225
+ },
1226
+ {
1227
+ "type": "error",
1228
+ "name": "PoolAlreadyInitialized",
1229
+ "inputs": []
1230
+ },
1231
+ {
1232
+ "type": "error",
1233
+ "name": "PoolNotInitialized",
1234
+ "inputs": []
1235
+ },
1236
+ {
1237
+ "type": "error",
1238
+ "name": "SqrtRatioLimitOutOfRange",
1239
+ "inputs": []
1240
+ },
1241
+ {
1242
+ "type": "error",
1243
+ "name": "SqrtRatioLimitWrongDirection",
1244
+ "inputs": []
1245
+ },
1246
+ {
1247
+ "type": "error",
1248
+ "name": "TokensMustBeSorted",
1249
+ "inputs": []
1250
+ },
1251
+ {
1252
+ "type": "error",
1253
+ "name": "Unauthorized",
1254
+ "inputs": []
1255
+ },
1256
+ {
1257
+ "type": "error",
1258
+ "name": "ZeroLiquidityNextSqrtRatioFromAmount0",
1259
+ "inputs": []
1260
+ },
1261
+ {
1262
+ "type": "error",
1263
+ "name": "ZeroLiquidityNextSqrtRatioFromAmount1",
1264
+ "inputs": []
1265
+ }
1266
+ ]