@paraswap/dex-lib 3.6.1 → 3.6.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 (281) 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/maverick-v2/MaverickV2Pool.json +1234 -0
  5. package/build/abi/maverick-v2/MaverickV2PoolLens.json +1232 -0
  6. package/build/abi/uniswap-v3/AlienBaseV3Router.abi.json +52 -0
  7. package/build/abi/{integral/relayer.json → wombat/pool.json} +587 -446
  8. package/build/dex/maker-psm/maker-psm.js +1 -1
  9. package/build/dex/maker-psm/maker-psm.js.map +1 -1
  10. package/build/dex/maker-psm/scripts/gem.abi.json +136 -0
  11. package/build/dex/maker-psm/scripts/validate-state.d.ts +0 -0
  12. package/build/dex/maker-psm/scripts/validate-state.js +185 -0
  13. package/build/dex/maker-psm/scripts/validate-state.js.map +1 -0
  14. package/build/dex/maker-psm/scripts/vat.abi.json +243 -0
  15. package/build/dex/maverick-v2/config.d.ts +6 -0
  16. package/build/dex/maverick-v2/config.js +21 -0
  17. package/build/dex/maverick-v2/config.js.map +1 -0
  18. package/build/dex/maverick-v2/maverick-math/maverick-basic-math.d.ts +24 -0
  19. package/build/dex/maverick-v2/maverick-math/maverick-basic-math.js +117 -0
  20. package/build/dex/maverick-v2/maverick-math/maverick-basic-math.js.map +1 -0
  21. package/build/dex/maverick-v2/maverick-math/maverick-bin-math.d.ts +17 -0
  22. package/build/dex/maverick-v2/maverick-math/maverick-bin-math.js +114 -0
  23. package/build/dex/maverick-v2/maverick-math/maverick-bin-math.js.map +1 -0
  24. package/build/dex/maverick-v2/maverick-math/maverick-delta-math.d.ts +19 -0
  25. package/build/dex/maverick-v2/maverick-math/maverick-delta-math.js +20 -0
  26. package/build/dex/maverick-v2/maverick-math/maverick-delta-math.js.map +1 -0
  27. package/build/dex/maverick-v2/maverick-math/maverick-math.d.ts +5 -0
  28. package/build/dex/maverick-v2/maverick-math/maverick-math.js +33 -0
  29. package/build/dex/maverick-v2/maverick-math/maverick-math.js.map +1 -0
  30. package/build/dex/maverick-v2/maverick-math/maverick-pool-lib.d.ts +6 -0
  31. package/build/dex/maverick-v2/maverick-math/maverick-pool-lib.js +24 -0
  32. package/build/dex/maverick-v2/maverick-math/maverick-pool-lib.js.map +1 -0
  33. package/build/dex/maverick-v2/maverick-math/maverick-pool-math.d.ts +37 -0
  34. package/build/dex/maverick-v2/maverick-math/maverick-pool-math.js +440 -0
  35. package/build/dex/maverick-v2/maverick-math/maverick-pool-math.js.map +1 -0
  36. package/build/dex/maverick-v2/maverick-math/maverick-swap-math.d.ts +9 -0
  37. package/build/dex/maverick-v2/maverick-math/maverick-swap-math.js +102 -0
  38. package/build/dex/maverick-v2/maverick-math/maverick-swap-math.js.map +1 -0
  39. package/build/dex/maverick-v2/maverick-math/maverick-tick-math.d.ts +8 -0
  40. package/build/dex/maverick-v2/maverick-math/maverick-tick-math.js +109 -0
  41. package/build/dex/maverick-v2/maverick-math/maverick-tick-math.js.map +1 -0
  42. package/build/dex/maverick-v2/maverick-math/maverick-twa-math.d.ts +7 -0
  43. package/build/dex/maverick-v2/maverick-math/maverick-twa-math.js +35 -0
  44. package/build/dex/maverick-v2/maverick-math/maverick-twa-math.js.map +1 -0
  45. package/build/dex/maverick-v2/maverick-v2-pool.d.ts +57 -0
  46. package/build/dex/maverick-v2/maverick-v2-pool.js +184 -0
  47. package/build/dex/maverick-v2/maverick-v2-pool.js.map +1 -0
  48. package/build/dex/maverick-v2/maverick-v2.d.ts +47 -0
  49. package/build/dex/maverick-v2/maverick-v2.js +294 -0
  50. package/build/dex/maverick-v2/maverick-v2.js.map +1 -0
  51. package/build/dex/maverick-v2/types.d.ts +144 -0
  52. package/build/dex/{woo-fi → maverick-v2}/types.js.map +1 -1
  53. package/build/dex/solidly-v3/scripts/check-event-pool-event.d.ts +1 -0
  54. package/build/dex/solidly-v3/scripts/check-event-pool-event.js +53 -0
  55. package/build/dex/solidly-v3/scripts/check-event-pool-event.js.map +1 -0
  56. package/build/dex/stable-pool.js +1 -8
  57. package/build/dex/stable-pool.js.map +1 -1
  58. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.d.ts +17 -0
  59. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.js +64 -0
  60. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.js.map +1 -0
  61. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.d.ts +17 -0
  62. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.js +79 -0
  63. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.js.map +1 -0
  64. package/package.json +1 -1
  65. package/src/dex/maker-psm/maker-psm.ts +2 -3
  66. package/src/dex/maker-psm/scripts/gem.abi.json +136 -0
  67. package/src/dex/maker-psm/scripts/validate-state.ts +221 -0
  68. package/src/dex/maker-psm/scripts/vat.abi.json +243 -0
  69. package/.idea/aws.xml +0 -17
  70. package/.idea/codeStyles/Project.xml +0 -19
  71. package/.idea/codeStyles/codeStyleConfig.xml +0 -5
  72. package/.idea/misc.xml +0 -6
  73. package/.idea/modules.xml +0 -8
  74. package/.idea/paraswap-dex-lib.iml +0 -9
  75. package/.idea/prettier.xml +0 -7
  76. package/.idea/vcs.xml +0 -6
  77. package/build/abi/AugustusV6.abi.json +0 -395
  78. package/build/abi/algebra/AlgebraPool.abi.json +0 -727
  79. package/build/abi/curve-v1/StableSwapFRXETH.json +0 -889
  80. package/build/abi/curve-v1/StableSwapWBETH.json +0 -1223
  81. package/build/abi/sushiswap-v3/QuoterV2.json +0 -267
  82. package/build/abi/sushiswap-v3/RouterProcessor3.json +0 -289
  83. package/build/abi/uniswap-v3/UniswapV3Quoter.abi.json +0 -193
  84. package/build/abi/uniswap-v3/pancakeswap-v3/PancakeswapV3QuoterV2.abi.json +0 -285
  85. package/build/abi/uniswap-v3/pancakeswap-v3/PancakeswapV3Router.abi.json +0 -583
  86. package/build/abi/wBETH.json +0 -1527
  87. package/build/abi/woo-fi/WooFeeManager.abi.json +0 -318
  88. package/build/abi/woo-fi/WooPP.abi.json +0 -548
  89. package/build/abi/woo-fi/Wooracle.abi.json +0 -260
  90. package/build/dex/aave-v3/tokens/arbitrum.json +0 -50
  91. package/build/dex/aave-v3/tokens/avalanche.json +0 -74
  92. package/build/dex/aave-v3/tokens/fantom.json +0 -62
  93. package/build/dex/aave-v3/tokens/optimism.json +0 -50
  94. package/build/dex/aave-v3/tokens/polygon.json +0 -116
  95. package/build/dex/algebra/algebra-pool.d.ts +0 -114
  96. package/build/dex/algebra/algebra-pool.js +0 -448
  97. package/build/dex/algebra/algebra-pool.js.map +0 -1
  98. package/build/dex/balancer-v2/Gyro3Pool.d.ts +0 -43
  99. package/build/dex/balancer-v2/Gyro3Pool.js +0 -160
  100. package/build/dex/balancer-v2/Gyro3Pool.js.map +0 -1
  101. package/build/dex/balancer-v2/LinearMath.d.ts +0 -88
  102. package/build/dex/balancer-v2/LinearMath.js +0 -285
  103. package/build/dex/balancer-v2/LinearMath.js.map +0 -1
  104. package/build/dex/balancer-v2/LinearPool.d.ts +0 -81
  105. package/build/dex/balancer-v2/LinearPool.js +0 -444
  106. package/build/dex/balancer-v2/LinearPool.js.map +0 -1
  107. package/build/dex/balancer-v2/PhantomStablePool.d.ts +0 -90
  108. package/build/dex/balancer-v2/PhantomStablePool.js +0 -418
  109. package/build/dex/balancer-v2/PhantomStablePool.js.map +0 -1
  110. package/build/dex/balancer-v2/StableMath.d.ts +0 -9
  111. package/build/dex/balancer-v2/StableMath.js +0 -272
  112. package/build/dex/balancer-v2/StableMath.js.map +0 -1
  113. package/build/dex/balancer-v2/balancer-v2-pool.d.ts +0 -140
  114. package/build/dex/balancer-v2/balancer-v2-pool.js +0 -647
  115. package/build/dex/balancer-v2/balancer-v2-pool.js.map +0 -1
  116. package/build/dex/curve-v1/pools/frxETHpool.d.ts +0 -7
  117. package/build/dex/curve-v1/pools/frxETHpool.js +0 -27
  118. package/build/dex/curve-v1/pools/frxETHpool.js.map +0 -1
  119. package/build/dex/curve-v1/pools/wbETHpool.d.ts +0 -29
  120. package/build/dex/curve-v1/pools/wbETHpool.js +0 -408
  121. package/build/dex/curve-v1/pools/wbETHpool.js.map +0 -1
  122. package/build/dex/curve-v1-factory/price-handlers/functions/get_dx.d.ts +0 -4
  123. package/build/dex/curve-v1-factory/price-handlers/functions/get_dx.js +0 -80
  124. package/build/dex/curve-v1-factory/price-handlers/functions/get_dx.js.map +0 -1
  125. package/build/dex/curve-v1-stable-ng/config.d.ts +0 -5
  126. package/build/dex/curve-v1-stable-ng/config.js +0 -268
  127. package/build/dex/curve-v1-stable-ng/config.js.map +0 -1
  128. package/build/dex/curve-v1-stable-ng/curve-v1-stable-ng.d.ts +0 -18
  129. package/build/dex/curve-v1-stable-ng/curve-v1-stable-ng.js +0 -23
  130. package/build/dex/curve-v1-stable-ng/curve-v1-stable-ng.js.map +0 -1
  131. package/build/dex/integral/config.d.ts +0 -4
  132. package/build/dex/integral/config.js +0 -18
  133. package/build/dex/integral/config.js.map +0 -1
  134. package/build/dex/integral/integral-pool.d.ts +0 -39
  135. package/build/dex/integral/integral-pool.js +0 -67
  136. package/build/dex/integral/integral-pool.js.map +0 -1
  137. package/build/dex/integral/integral.d.ts +0 -48
  138. package/build/dex/integral/integral.js +0 -402
  139. package/build/dex/integral/integral.js.map +0 -1
  140. package/build/dex/integral/types.d.ts +0 -25
  141. package/build/dex/integral/types.js +0 -9
  142. package/build/dex/integral/types.js.map +0 -1
  143. package/build/dex/lighter-v1/abi/erc20.json +0 -222
  144. package/build/dex/lighter-v1/abi/factory.json +0 -291
  145. package/build/dex/lighter-v1/abi/order_book.json +0 -594
  146. package/build/dex/lighter-v1/abi/order_book_helper.json +0 -176
  147. package/build/dex/lighter-v1/abi/router.json +0 -488
  148. package/build/dex/lighter-v1/config.d.ts +0 -4
  149. package/build/dex/lighter-v1/config.js +0 -17
  150. package/build/dex/lighter-v1/config.js.map +0 -1
  151. package/build/dex/lighter-v1/constants.d.ts +0 -2
  152. package/build/dex/lighter-v1/constants.js +0 -13
  153. package/build/dex/lighter-v1/constants.js.map +0 -1
  154. package/build/dex/lighter-v1/lighter-v1-pool.d.ts +0 -57
  155. package/build/dex/lighter-v1/lighter-v1-pool.js +0 -310
  156. package/build/dex/lighter-v1/lighter-v1-pool.js.map +0 -1
  157. package/build/dex/lighter-v1/lighter-v1.d.ts +0 -45
  158. package/build/dex/lighter-v1/lighter-v1.js +0 -331
  159. package/build/dex/lighter-v1/lighter-v1.js.map +0 -1
  160. package/build/dex/lighter-v1/types.d.ts +0 -40
  161. package/build/dex/lighter-v1/types.js.map +0 -1
  162. package/build/dex/pancakeswap-v3/types.d.ts +0 -14
  163. package/build/dex/pancakeswap-v3/types.js +0 -3
  164. package/build/dex/pancakeswap-v3/types.js.map +0 -1
  165. package/build/dex/quickswap/camelot-v3.d.ts +0 -6
  166. package/build/dex/quickswap/camelot-v3.js +0 -19
  167. package/build/dex/quickswap/camelot-v3.js.map +0 -1
  168. package/build/dex/quickswap/zyberswap-v3.d.ts +0 -6
  169. package/build/dex/quickswap/zyberswap-v3.js +0 -19
  170. package/build/dex/quickswap/zyberswap-v3.js.map +0 -1
  171. package/build/dex/quickswap-v3.d.ts +0 -21
  172. package/build/dex/quickswap-v3.js +0 -40
  173. package/build/dex/quickswap-v3.js.map +0 -1
  174. package/build/dex/ramses-v2/config.d.ts +0 -4
  175. package/build/dex/ramses-v2/config.js +0 -28
  176. package/build/dex/ramses-v2/config.js.map +0 -1
  177. package/build/dex/ramses-v2/constants.d.ts +0 -28
  178. package/build/dex/ramses-v2/constants.js +0 -35
  179. package/build/dex/ramses-v2/constants.js.map +0 -1
  180. package/build/dex/ramses-v2/contract-math/BitMath.d.ts +0 -4
  181. package/build/dex/ramses-v2/contract-math/BitMath.js +0 -93
  182. package/build/dex/ramses-v2/contract-math/BitMath.js.map +0 -1
  183. package/build/dex/ramses-v2/contract-math/FixedPoint128.d.ts +0 -3
  184. package/build/dex/ramses-v2/contract-math/FixedPoint128.js +0 -8
  185. package/build/dex/ramses-v2/contract-math/FixedPoint128.js.map +0 -1
  186. package/build/dex/ramses-v2/contract-math/FixedPoint96.d.ts +0 -4
  187. package/build/dex/ramses-v2/contract-math/FixedPoint96.js +0 -9
  188. package/build/dex/ramses-v2/contract-math/FixedPoint96.js.map +0 -1
  189. package/build/dex/ramses-v2/contract-math/FullMath.d.ts +0 -4
  190. package/build/dex/ramses-v2/contract-math/FullMath.js +0 -19
  191. package/build/dex/ramses-v2/contract-math/FullMath.js.map +0 -1
  192. package/build/dex/ramses-v2/contract-math/LiquidityMath.d.ts +0 -3
  193. package/build/dex/ramses-v2/contract-math/LiquidityMath.js +0 -22
  194. package/build/dex/ramses-v2/contract-math/LiquidityMath.js.map +0 -1
  195. package/build/dex/ramses-v2/contract-math/Oracle.d.ts +0 -10
  196. package/build/dex/ramses-v2/contract-math/Oracle.js +0 -133
  197. package/build/dex/ramses-v2/contract-math/Oracle.js.map +0 -1
  198. package/build/dex/ramses-v2/contract-math/SqrtPriceMath.d.ts +0 -10
  199. package/build/dex/ramses-v2/contract-math/SqrtPriceMath.js +0 -91
  200. package/build/dex/ramses-v2/contract-math/SqrtPriceMath.js.map +0 -1
  201. package/build/dex/ramses-v2/contract-math/SwapMath.d.ts +0 -8
  202. package/build/dex/ramses-v2/contract-math/SwapMath.js +0 -70
  203. package/build/dex/ramses-v2/contract-math/SwapMath.js.map +0 -1
  204. package/build/dex/ramses-v2/contract-math/Tick.d.ts +0 -7
  205. package/build/dex/ramses-v2/contract-math/Tick.js +0 -45
  206. package/build/dex/ramses-v2/contract-math/Tick.js.map +0 -1
  207. package/build/dex/ramses-v2/contract-math/TickBitMap.d.ts +0 -8
  208. package/build/dex/ramses-v2/contract-math/TickBitMap.js +0 -87
  209. package/build/dex/ramses-v2/contract-math/TickBitMap.js.map +0 -1
  210. package/build/dex/ramses-v2/contract-math/TickMath.d.ts +0 -8
  211. package/build/dex/ramses-v2/contract-math/TickMath.js +0 -162
  212. package/build/dex/ramses-v2/contract-math/TickMath.js.map +0 -1
  213. package/build/dex/ramses-v2/contract-math/UnsafeMath.d.ts +0 -3
  214. package/build/dex/ramses-v2/contract-math/UnsafeMath.js +0 -10
  215. package/build/dex/ramses-v2/contract-math/UnsafeMath.js.map +0 -1
  216. package/build/dex/ramses-v2/contract-math/uniswap-v3-math.d.ts +0 -18
  217. package/build/dex/ramses-v2/contract-math/uniswap-v3-math.js +0 -392
  218. package/build/dex/ramses-v2/contract-math/uniswap-v3-math.js.map +0 -1
  219. package/build/dex/ramses-v2/contract-math/utils.d.ts +0 -3
  220. package/build/dex/ramses-v2/contract-math/utils.js +0 -16
  221. package/build/dex/ramses-v2/contract-math/utils.js.map +0 -1
  222. package/build/dex/ramses-v2/ramses-v2-pool.d.ts +0 -42
  223. package/build/dex/ramses-v2/ramses-v2-pool.js +0 -307
  224. package/build/dex/ramses-v2/ramses-v2-pool.js.map +0 -1
  225. package/build/dex/ramses-v2/ramses-v2.d.ts +0 -61
  226. package/build/dex/ramses-v2/ramses-v2.js +0 -690
  227. package/build/dex/ramses-v2/ramses-v2.js.map +0 -1
  228. package/build/dex/ramses-v2/types.d.ts +0 -154
  229. package/build/dex/ramses-v2/types.js +0 -9
  230. package/build/dex/ramses-v2/types.js.map +0 -1
  231. package/build/dex/ramses-v2/utils.d.ts +0 -6
  232. package/build/dex/ramses-v2/utils.js +0 -71
  233. package/build/dex/ramses-v2/utils.js.map +0 -1
  234. package/build/dex/solidly/forks-override/fvm.d.ts +0 -20
  235. package/build/dex/solidly/forks-override/fvm.js +0 -42
  236. package/build/dex/solidly/forks-override/fvm.js.map +0 -1
  237. package/build/dex/sushiswap-v3/config.d.ts +0 -4
  238. package/build/dex/sushiswap-v3/config.js +0 -132
  239. package/build/dex/sushiswap-v3/config.js.map +0 -1
  240. package/build/dex/sushiswap-v3/constants.d.ts +0 -4
  241. package/build/dex/sushiswap-v3/constants.js +0 -32
  242. package/build/dex/sushiswap-v3/constants.js.map +0 -1
  243. package/build/dex/sushiswap-v3/sushiswap-v3-original.d.ts +0 -56
  244. package/build/dex/sushiswap-v3/sushiswap-v3-original.js +0 -598
  245. package/build/dex/sushiswap-v3/sushiswap-v3-original.js.map +0 -1
  246. package/build/dex/sushiswap-v3/sushiswap-v3-pool.d.ts +0 -1
  247. package/build/dex/sushiswap-v3/sushiswap-v3-pool.js +0 -6
  248. package/build/dex/sushiswap-v3/sushiswap-v3-pool.js.map +0 -1
  249. package/build/dex/sushiswap-v3/sushiswap-v3.d.ts +0 -21
  250. package/build/dex/sushiswap-v3/sushiswap-v3.js +0 -58
  251. package/build/dex/sushiswap-v3/sushiswap-v3.js.map +0 -1
  252. package/build/dex/sushiswap-v3/token.d.ts +0 -6
  253. package/build/dex/sushiswap-v3/token.js +0 -23
  254. package/build/dex/sushiswap-v3/token.js.map +0 -1
  255. package/build/dex/sushiswap-v3/types.d.ts +0 -15
  256. package/build/dex/sushiswap-v3/types.js +0 -18
  257. package/build/dex/sushiswap-v3/types.js.map +0 -1
  258. package/build/dex/uniswap-v3/forks/pancakeswap-v3/pancakeswap-v3.d.ts +0 -12
  259. package/build/dex/uniswap-v3/forks/pancakeswap-v3/pancakeswap-v3.js +0 -23
  260. package/build/dex/uniswap-v3/forks/pancakeswap-v3/pancakeswap-v3.js.map +0 -1
  261. package/build/dex/woo-fi/config.d.ts +0 -4
  262. package/build/dex/woo-fi/config.js +0 -141
  263. package/build/dex/woo-fi/config.js.map +0 -1
  264. package/build/dex/woo-fi/constants.d.ts +0 -5
  265. package/build/dex/woo-fi/constants.js +0 -20
  266. package/build/dex/woo-fi/constants.js.map +0 -1
  267. package/build/dex/woo-fi/types.d.ts +0 -48
  268. package/build/dex/woo-fi/types.js +0 -3
  269. package/build/dex/woo-fi/woo-fi-decimal-math.d.ts +0 -14
  270. package/build/dex/woo-fi/woo-fi-decimal-math.js +0 -42
  271. package/build/dex/woo-fi/woo-fi-decimal-math.js.map +0 -1
  272. package/build/dex/woo-fi/woo-fi-math.d.ts +0 -31
  273. package/build/dex/woo-fi/woo-fi-math.js +0 -300
  274. package/build/dex/woo-fi/woo-fi-math.js.map +0 -1
  275. package/build/dex/woo-fi/woo-fi.d.ts +0 -65
  276. package/build/dex/woo-fi/woo-fi.js +0 -480
  277. package/build/dex/woo-fi/woo-fi.js.map +0 -1
  278. package/build/executor/IExecutorBytecodeBuilder.d.ts +0 -6
  279. package/build/executor/IExecutorBytecodeBuilder.js +0 -3
  280. package/build/executor/IExecutorBytecodeBuilder.js.map +0 -1
  281. /package/build/dex/{lighter-v1 → maverick-v2}/types.js +0 -0
@@ -0,0 +1,1232 @@
1
+ [
2
+ {
3
+ "inputs": [
4
+ {
5
+ "internalType": "uint256",
6
+ "name": "targetSqrtPrice",
7
+ "type": "uint256"
8
+ },
9
+ {
10
+ "internalType": "uint256",
11
+ "name": "sqrtLowerTickPrice",
12
+ "type": "uint256"
13
+ },
14
+ {
15
+ "internalType": "uint256",
16
+ "name": "sqrtUpperTickPrice",
17
+ "type": "uint256"
18
+ }
19
+ ],
20
+ "name": "LensTargetPriceOutOfBounds",
21
+ "type": "error"
22
+ },
23
+ {
24
+ "inputs": [
25
+ {
26
+ "internalType": "bool",
27
+ "name": "targetIsA",
28
+ "type": "bool"
29
+ },
30
+ {
31
+ "internalType": "uint256",
32
+ "name": "deltaA",
33
+ "type": "uint256"
34
+ },
35
+ {
36
+ "internalType": "uint256",
37
+ "name": "deltaB",
38
+ "type": "uint256"
39
+ }
40
+ ],
41
+ "name": "LensTargetingTokenWithNoDelta",
42
+ "type": "error"
43
+ },
44
+ {
45
+ "inputs": [
46
+ {
47
+ "internalType": "uint256",
48
+ "name": "relativeLiquidityAmount",
49
+ "type": "uint256"
50
+ },
51
+ {
52
+ "internalType": "uint256",
53
+ "name": "deltaA",
54
+ "type": "uint256"
55
+ },
56
+ {
57
+ "internalType": "uint256",
58
+ "name": "deltaB",
59
+ "type": "uint256"
60
+ }
61
+ ],
62
+ "name": "LensTooLittleLiquidity",
63
+ "type": "error"
64
+ },
65
+ {
66
+ "inputs": [],
67
+ "name": "LiquidityUtilitiesFailedToFindDeltaAmounts",
68
+ "type": "error"
69
+ },
70
+ {
71
+ "inputs": [
72
+ {
73
+ "internalType": "uint256",
74
+ "name": "initialTargetB",
75
+ "type": "uint256"
76
+ },
77
+ {
78
+ "internalType": "uint256",
79
+ "name": "deltaLpBalance",
80
+ "type": "uint256"
81
+ },
82
+ {
83
+ "internalType": "uint256",
84
+ "name": "minimumRequiredLpBalance",
85
+ "type": "uint256"
86
+ }
87
+ ],
88
+ "name": "LiquidityUtilitiesInitialTargetBTooSmall",
89
+ "type": "error"
90
+ },
91
+ {
92
+ "inputs": [],
93
+ "name": "LiquidityUtilitiesNoSwapLiquidity",
94
+ "type": "error"
95
+ },
96
+ {
97
+ "inputs": [
98
+ {
99
+ "internalType": "uint256",
100
+ "name": "targetSqrtPrice",
101
+ "type": "uint256"
102
+ },
103
+ {
104
+ "internalType": "uint256",
105
+ "name": "sqrtLowerTickPrice",
106
+ "type": "uint256"
107
+ },
108
+ {
109
+ "internalType": "uint256",
110
+ "name": "sqrtUpperTickPrice",
111
+ "type": "uint256"
112
+ }
113
+ ],
114
+ "name": "LiquidityUtilitiesTargetPriceOutOfBounds",
115
+ "type": "error"
116
+ },
117
+ {
118
+ "inputs": [],
119
+ "name": "MathOverflowedMulDiv",
120
+ "type": "error"
121
+ },
122
+ {
123
+ "inputs": [
124
+ {
125
+ "internalType": "uint8",
126
+ "name": "bits",
127
+ "type": "uint8"
128
+ },
129
+ {
130
+ "internalType": "uint256",
131
+ "name": "value",
132
+ "type": "uint256"
133
+ }
134
+ ],
135
+ "name": "SafeCastOverflowedUintDowncast",
136
+ "type": "error"
137
+ },
138
+ {
139
+ "inputs": [
140
+ {
141
+ "internalType": "int256",
142
+ "name": "tick",
143
+ "type": "int256"
144
+ }
145
+ ],
146
+ "name": "TickMaxExceeded",
147
+ "type": "error"
148
+ },
149
+ {
150
+ "inputs": [
151
+ {
152
+ "components": [
153
+ {
154
+ "internalType": "contract IMaverickV2Pool",
155
+ "name": "pool",
156
+ "type": "address"
157
+ },
158
+ {
159
+ "internalType": "uint8",
160
+ "name": "kind",
161
+ "type": "uint8"
162
+ },
163
+ {
164
+ "internalType": "int32[]",
165
+ "name": "ticks",
166
+ "type": "int32[]"
167
+ },
168
+ {
169
+ "internalType": "uint128[]",
170
+ "name": "relativeLiquidityAmounts",
171
+ "type": "uint128[]"
172
+ },
173
+ {
174
+ "components": [
175
+ {
176
+ "internalType": "uint256",
177
+ "name": "slippageFactorD18",
178
+ "type": "uint256"
179
+ },
180
+ {
181
+ "internalType": "uint256",
182
+ "name": "numberOfPriceBreaksPerSide",
183
+ "type": "uint256"
184
+ },
185
+ {
186
+ "internalType": "uint256",
187
+ "name": "targetAmount",
188
+ "type": "uint256"
189
+ },
190
+ {
191
+ "internalType": "bool",
192
+ "name": "targetIsA",
193
+ "type": "bool"
194
+ }
195
+ ],
196
+ "internalType": "struct IMaverickV2PoolLens.AddParamsSpecification",
197
+ "name": "addSpec",
198
+ "type": "tuple"
199
+ }
200
+ ],
201
+ "internalType": "struct IMaverickV2PoolLens.AddParamsViewInputs",
202
+ "name": "params",
203
+ "type": "tuple"
204
+ }
205
+ ],
206
+ "name": "getAddLiquidityParams",
207
+ "outputs": [
208
+ {
209
+ "internalType": "bytes",
210
+ "name": "packedSqrtPriceBreaks",
211
+ "type": "bytes"
212
+ },
213
+ {
214
+ "internalType": "bytes[]",
215
+ "name": "packedArgs",
216
+ "type": "bytes[]"
217
+ },
218
+ {
219
+ "internalType": "uint88[]",
220
+ "name": "sqrtPriceBreaks",
221
+ "type": "uint88[]"
222
+ },
223
+ {
224
+ "components": [
225
+ {
226
+ "internalType": "uint8",
227
+ "name": "kind",
228
+ "type": "uint8"
229
+ },
230
+ {
231
+ "internalType": "int32[]",
232
+ "name": "ticks",
233
+ "type": "int32[]"
234
+ },
235
+ {
236
+ "internalType": "uint128[]",
237
+ "name": "amounts",
238
+ "type": "uint128[]"
239
+ }
240
+ ],
241
+ "internalType": "struct IMaverickV2Pool.AddLiquidityParams[]",
242
+ "name": "addParams",
243
+ "type": "tuple[]"
244
+ },
245
+ {
246
+ "components": [
247
+ {
248
+ "internalType": "uint256",
249
+ "name": "deltaAOut",
250
+ "type": "uint256"
251
+ },
252
+ {
253
+ "internalType": "uint256",
254
+ "name": "deltaBOut",
255
+ "type": "uint256"
256
+ },
257
+ {
258
+ "internalType": "uint256[]",
259
+ "name": "deltaAs",
260
+ "type": "uint256[]"
261
+ },
262
+ {
263
+ "internalType": "uint256[]",
264
+ "name": "deltaBs",
265
+ "type": "uint256[]"
266
+ }
267
+ ],
268
+ "internalType": "struct IMaverickV2PoolLens.TickDeltas[]",
269
+ "name": "tickDeltas",
270
+ "type": "tuple[]"
271
+ }
272
+ ],
273
+ "stateMutability": "view",
274
+ "type": "function"
275
+ },
276
+ {
277
+ "inputs": [
278
+ {
279
+ "internalType": "contract IMaverickV2BoostedPosition",
280
+ "name": "boostedPosition",
281
+ "type": "address"
282
+ },
283
+ {
284
+ "components": [
285
+ {
286
+ "internalType": "uint256",
287
+ "name": "slippageFactorD18",
288
+ "type": "uint256"
289
+ },
290
+ {
291
+ "internalType": "uint256",
292
+ "name": "numberOfPriceBreaksPerSide",
293
+ "type": "uint256"
294
+ },
295
+ {
296
+ "internalType": "uint256",
297
+ "name": "targetAmount",
298
+ "type": "uint256"
299
+ },
300
+ {
301
+ "internalType": "bool",
302
+ "name": "targetIsA",
303
+ "type": "bool"
304
+ }
305
+ ],
306
+ "internalType": "struct IMaverickV2PoolLens.AddParamsSpecification",
307
+ "name": "addSpec",
308
+ "type": "tuple"
309
+ }
310
+ ],
311
+ "name": "getAddLiquidityParamsForBoostedPosition",
312
+ "outputs": [
313
+ {
314
+ "internalType": "bytes",
315
+ "name": "packedSqrtPriceBreaks",
316
+ "type": "bytes"
317
+ },
318
+ {
319
+ "internalType": "bytes[]",
320
+ "name": "packedArgs",
321
+ "type": "bytes[]"
322
+ },
323
+ {
324
+ "internalType": "uint88[]",
325
+ "name": "sqrtPriceBreaks",
326
+ "type": "uint88[]"
327
+ },
328
+ {
329
+ "components": [
330
+ {
331
+ "internalType": "uint8",
332
+ "name": "kind",
333
+ "type": "uint8"
334
+ },
335
+ {
336
+ "internalType": "int32[]",
337
+ "name": "ticks",
338
+ "type": "int32[]"
339
+ },
340
+ {
341
+ "internalType": "uint128[]",
342
+ "name": "amounts",
343
+ "type": "uint128[]"
344
+ }
345
+ ],
346
+ "internalType": "struct IMaverickV2Pool.AddLiquidityParams[]",
347
+ "name": "addParams",
348
+ "type": "tuple[]"
349
+ },
350
+ {
351
+ "components": [
352
+ {
353
+ "internalType": "uint256",
354
+ "name": "deltaAOut",
355
+ "type": "uint256"
356
+ },
357
+ {
358
+ "internalType": "uint256",
359
+ "name": "deltaBOut",
360
+ "type": "uint256"
361
+ },
362
+ {
363
+ "internalType": "uint256[]",
364
+ "name": "deltaAs",
365
+ "type": "uint256[]"
366
+ },
367
+ {
368
+ "internalType": "uint256[]",
369
+ "name": "deltaBs",
370
+ "type": "uint256[]"
371
+ }
372
+ ],
373
+ "internalType": "struct IMaverickV2PoolLens.TickDeltas[]",
374
+ "name": "tickDeltas",
375
+ "type": "tuple[]"
376
+ }
377
+ ],
378
+ "stateMutability": "view",
379
+ "type": "function"
380
+ },
381
+ {
382
+ "inputs": [
383
+ {
384
+ "components": [
385
+ {
386
+ "internalType": "contract IMaverickV2Pool",
387
+ "name": "pool",
388
+ "type": "address"
389
+ },
390
+ {
391
+ "internalType": "uint32[]",
392
+ "name": "binIds",
393
+ "type": "uint32[]"
394
+ },
395
+ {
396
+ "internalType": "uint128[]",
397
+ "name": "ratios",
398
+ "type": "uint128[]"
399
+ },
400
+ {
401
+ "internalType": "uint8",
402
+ "name": "kind",
403
+ "type": "uint8"
404
+ }
405
+ ],
406
+ "internalType": "struct IMaverickV2PoolLens.BoostedPositionSpecification",
407
+ "name": "bpSpec",
408
+ "type": "tuple"
409
+ },
410
+ {
411
+ "components": [
412
+ {
413
+ "internalType": "uint256",
414
+ "name": "slippageFactorD18",
415
+ "type": "uint256"
416
+ },
417
+ {
418
+ "internalType": "uint256",
419
+ "name": "numberOfPriceBreaksPerSide",
420
+ "type": "uint256"
421
+ },
422
+ {
423
+ "internalType": "uint256",
424
+ "name": "targetAmount",
425
+ "type": "uint256"
426
+ },
427
+ {
428
+ "internalType": "bool",
429
+ "name": "targetIsA",
430
+ "type": "bool"
431
+ }
432
+ ],
433
+ "internalType": "struct IMaverickV2PoolLens.AddParamsSpecification",
434
+ "name": "addSpec",
435
+ "type": "tuple"
436
+ }
437
+ ],
438
+ "name": "getCreateBoostedPositionParams",
439
+ "outputs": [
440
+ {
441
+ "internalType": "bytes",
442
+ "name": "packedSqrtPriceBreaks",
443
+ "type": "bytes"
444
+ },
445
+ {
446
+ "internalType": "bytes[]",
447
+ "name": "packedArgs",
448
+ "type": "bytes[]"
449
+ },
450
+ {
451
+ "internalType": "uint88[]",
452
+ "name": "sqrtPriceBreaks",
453
+ "type": "uint88[]"
454
+ },
455
+ {
456
+ "components": [
457
+ {
458
+ "internalType": "uint8",
459
+ "name": "kind",
460
+ "type": "uint8"
461
+ },
462
+ {
463
+ "internalType": "int32[]",
464
+ "name": "ticks",
465
+ "type": "int32[]"
466
+ },
467
+ {
468
+ "internalType": "uint128[]",
469
+ "name": "amounts",
470
+ "type": "uint128[]"
471
+ }
472
+ ],
473
+ "internalType": "struct IMaverickV2Pool.AddLiquidityParams[]",
474
+ "name": "addParams",
475
+ "type": "tuple[]"
476
+ },
477
+ {
478
+ "components": [
479
+ {
480
+ "internalType": "uint256",
481
+ "name": "deltaAOut",
482
+ "type": "uint256"
483
+ },
484
+ {
485
+ "internalType": "uint256",
486
+ "name": "deltaBOut",
487
+ "type": "uint256"
488
+ },
489
+ {
490
+ "internalType": "uint256[]",
491
+ "name": "deltaAs",
492
+ "type": "uint256[]"
493
+ },
494
+ {
495
+ "internalType": "uint256[]",
496
+ "name": "deltaBs",
497
+ "type": "uint256[]"
498
+ }
499
+ ],
500
+ "internalType": "struct IMaverickV2PoolLens.TickDeltas[]",
501
+ "name": "tickDeltas",
502
+ "type": "tuple[]"
503
+ }
504
+ ],
505
+ "stateMutability": "view",
506
+ "type": "function"
507
+ },
508
+ {
509
+ "inputs": [
510
+ {
511
+ "components": [
512
+ {
513
+ "internalType": "uint64",
514
+ "name": "feeAIn",
515
+ "type": "uint64"
516
+ },
517
+ {
518
+ "internalType": "uint64",
519
+ "name": "feeBIn",
520
+ "type": "uint64"
521
+ },
522
+ {
523
+ "internalType": "uint16",
524
+ "name": "tickSpacing",
525
+ "type": "uint16"
526
+ },
527
+ {
528
+ "internalType": "uint32",
529
+ "name": "lookback",
530
+ "type": "uint32"
531
+ },
532
+ {
533
+ "internalType": "contract IERC20",
534
+ "name": "tokenA",
535
+ "type": "address"
536
+ },
537
+ {
538
+ "internalType": "contract IERC20",
539
+ "name": "tokenB",
540
+ "type": "address"
541
+ },
542
+ {
543
+ "internalType": "int32",
544
+ "name": "activeTick",
545
+ "type": "int32"
546
+ },
547
+ {
548
+ "internalType": "uint8",
549
+ "name": "kinds",
550
+ "type": "uint8"
551
+ },
552
+ {
553
+ "internalType": "uint256",
554
+ "name": "initialTargetB",
555
+ "type": "uint256"
556
+ },
557
+ {
558
+ "internalType": "uint256",
559
+ "name": "sqrtPrice",
560
+ "type": "uint256"
561
+ },
562
+ {
563
+ "internalType": "uint8",
564
+ "name": "kind",
565
+ "type": "uint8"
566
+ },
567
+ {
568
+ "internalType": "int32[]",
569
+ "name": "ticks",
570
+ "type": "int32[]"
571
+ },
572
+ {
573
+ "internalType": "uint128[]",
574
+ "name": "relativeLiquidityAmounts",
575
+ "type": "uint128[]"
576
+ },
577
+ {
578
+ "internalType": "uint256",
579
+ "name": "targetAmount",
580
+ "type": "uint256"
581
+ },
582
+ {
583
+ "internalType": "bool",
584
+ "name": "targetIsA",
585
+ "type": "bool"
586
+ }
587
+ ],
588
+ "internalType": "struct IMaverickV2PoolLens.CreateAndAddParamsViewInputs",
589
+ "name": "params",
590
+ "type": "tuple"
591
+ },
592
+ {
593
+ "internalType": "contract IMaverickV2Factory",
594
+ "name": "factory",
595
+ "type": "address"
596
+ }
597
+ ],
598
+ "name": "getCreatePoolAtPriceAndAddLiquidityParams",
599
+ "outputs": [
600
+ {
601
+ "components": [
602
+ {
603
+ "internalType": "uint64",
604
+ "name": "feeAIn",
605
+ "type": "uint64"
606
+ },
607
+ {
608
+ "internalType": "uint64",
609
+ "name": "feeBIn",
610
+ "type": "uint64"
611
+ },
612
+ {
613
+ "internalType": "uint16",
614
+ "name": "tickSpacing",
615
+ "type": "uint16"
616
+ },
617
+ {
618
+ "internalType": "uint32",
619
+ "name": "lookback",
620
+ "type": "uint32"
621
+ },
622
+ {
623
+ "internalType": "contract IERC20",
624
+ "name": "tokenA",
625
+ "type": "address"
626
+ },
627
+ {
628
+ "internalType": "contract IERC20",
629
+ "name": "tokenB",
630
+ "type": "address"
631
+ },
632
+ {
633
+ "internalType": "int32",
634
+ "name": "activeTick",
635
+ "type": "int32"
636
+ },
637
+ {
638
+ "internalType": "uint8",
639
+ "name": "kinds",
640
+ "type": "uint8"
641
+ },
642
+ {
643
+ "components": [
644
+ {
645
+ "internalType": "uint8",
646
+ "name": "kind",
647
+ "type": "uint8"
648
+ },
649
+ {
650
+ "internalType": "int32[]",
651
+ "name": "ticks",
652
+ "type": "int32[]"
653
+ },
654
+ {
655
+ "internalType": "uint128[]",
656
+ "name": "amounts",
657
+ "type": "uint128[]"
658
+ }
659
+ ],
660
+ "internalType": "struct IMaverickV2Pool.AddLiquidityParams",
661
+ "name": "donateParams",
662
+ "type": "tuple"
663
+ },
664
+ {
665
+ "internalType": "uint256",
666
+ "name": "swapAmount",
667
+ "type": "uint256"
668
+ },
669
+ {
670
+ "components": [
671
+ {
672
+ "internalType": "uint8",
673
+ "name": "kind",
674
+ "type": "uint8"
675
+ },
676
+ {
677
+ "internalType": "int32[]",
678
+ "name": "ticks",
679
+ "type": "int32[]"
680
+ },
681
+ {
682
+ "internalType": "uint128[]",
683
+ "name": "amounts",
684
+ "type": "uint128[]"
685
+ }
686
+ ],
687
+ "internalType": "struct IMaverickV2Pool.AddLiquidityParams",
688
+ "name": "addParams",
689
+ "type": "tuple"
690
+ },
691
+ {
692
+ "internalType": "bytes[]",
693
+ "name": "packedAddParams",
694
+ "type": "bytes[]"
695
+ },
696
+ {
697
+ "internalType": "uint256",
698
+ "name": "deltaAOut",
699
+ "type": "uint256"
700
+ },
701
+ {
702
+ "internalType": "uint256",
703
+ "name": "deltaBOut",
704
+ "type": "uint256"
705
+ },
706
+ {
707
+ "internalType": "uint256",
708
+ "name": "preAddReserveA",
709
+ "type": "uint256"
710
+ },
711
+ {
712
+ "internalType": "uint256",
713
+ "name": "preAddReserveB",
714
+ "type": "uint256"
715
+ }
716
+ ],
717
+ "internalType": "struct IMaverickV2PoolLens.CreateAndAddParamsInputs",
718
+ "name": "output",
719
+ "type": "tuple"
720
+ }
721
+ ],
722
+ "stateMutability": "view",
723
+ "type": "function"
724
+ },
725
+ {
726
+ "inputs": [
727
+ {
728
+ "internalType": "contract IMaverickV2Pool",
729
+ "name": "pool",
730
+ "type": "address"
731
+ },
732
+ {
733
+ "internalType": "uint32",
734
+ "name": "binStart",
735
+ "type": "uint32"
736
+ },
737
+ {
738
+ "internalType": "uint32",
739
+ "name": "binEnd",
740
+ "type": "uint32"
741
+ }
742
+ ],
743
+ "name": "getFullPoolState",
744
+ "outputs": [
745
+ {
746
+ "components": [
747
+ {
748
+ "components": [
749
+ {
750
+ "internalType": "uint128",
751
+ "name": "reserveA",
752
+ "type": "uint128"
753
+ },
754
+ {
755
+ "internalType": "uint128",
756
+ "name": "reserveB",
757
+ "type": "uint128"
758
+ },
759
+ {
760
+ "internalType": "uint128",
761
+ "name": "totalSupply",
762
+ "type": "uint128"
763
+ },
764
+ {
765
+ "internalType": "uint32[4]",
766
+ "name": "binIdsByTick",
767
+ "type": "uint32[4]"
768
+ }
769
+ ],
770
+ "internalType": "struct IMaverickV2Pool.TickState[]",
771
+ "name": "tickStateMapping",
772
+ "type": "tuple[]"
773
+ },
774
+ {
775
+ "components": [
776
+ {
777
+ "internalType": "uint128",
778
+ "name": "mergeBinBalance",
779
+ "type": "uint128"
780
+ },
781
+ {
782
+ "internalType": "uint128",
783
+ "name": "tickBalance",
784
+ "type": "uint128"
785
+ },
786
+ {
787
+ "internalType": "uint128",
788
+ "name": "totalSupply",
789
+ "type": "uint128"
790
+ },
791
+ {
792
+ "internalType": "uint8",
793
+ "name": "kind",
794
+ "type": "uint8"
795
+ },
796
+ {
797
+ "internalType": "int32",
798
+ "name": "tick",
799
+ "type": "int32"
800
+ },
801
+ {
802
+ "internalType": "uint32",
803
+ "name": "mergeId",
804
+ "type": "uint32"
805
+ }
806
+ ],
807
+ "internalType": "struct IMaverickV2Pool.BinState[]",
808
+ "name": "binStateMapping",
809
+ "type": "tuple[]"
810
+ },
811
+ {
812
+ "components": [
813
+ {
814
+ "internalType": "uint128[4]",
815
+ "name": "values",
816
+ "type": "uint128[4]"
817
+ }
818
+ ],
819
+ "internalType": "struct IMaverickV2PoolLens.BinPositionKinds[]",
820
+ "name": "binIdByTickKindMapping",
821
+ "type": "tuple[]"
822
+ },
823
+ {
824
+ "components": [
825
+ {
826
+ "internalType": "uint128",
827
+ "name": "reserveA",
828
+ "type": "uint128"
829
+ },
830
+ {
831
+ "internalType": "uint128",
832
+ "name": "reserveB",
833
+ "type": "uint128"
834
+ },
835
+ {
836
+ "internalType": "int64",
837
+ "name": "lastTwaD8",
838
+ "type": "int64"
839
+ },
840
+ {
841
+ "internalType": "int64",
842
+ "name": "lastLogPriceD8",
843
+ "type": "int64"
844
+ },
845
+ {
846
+ "internalType": "uint40",
847
+ "name": "lastTimestamp",
848
+ "type": "uint40"
849
+ },
850
+ {
851
+ "internalType": "int32",
852
+ "name": "activeTick",
853
+ "type": "int32"
854
+ },
855
+ {
856
+ "internalType": "bool",
857
+ "name": "isLocked",
858
+ "type": "bool"
859
+ },
860
+ {
861
+ "internalType": "uint32",
862
+ "name": "binCounter",
863
+ "type": "uint32"
864
+ },
865
+ {
866
+ "internalType": "uint8",
867
+ "name": "protocolFeeRatioD3",
868
+ "type": "uint8"
869
+ }
870
+ ],
871
+ "internalType": "struct IMaverickV2Pool.State",
872
+ "name": "state",
873
+ "type": "tuple"
874
+ },
875
+ {
876
+ "components": [
877
+ {
878
+ "internalType": "uint256",
879
+ "name": "amountA",
880
+ "type": "uint256"
881
+ },
882
+ {
883
+ "internalType": "uint256",
884
+ "name": "amountB",
885
+ "type": "uint256"
886
+ }
887
+ ],
888
+ "internalType": "struct IMaverickV2PoolLens.Reserves",
889
+ "name": "protocolFees",
890
+ "type": "tuple"
891
+ }
892
+ ],
893
+ "internalType": "struct IMaverickV2PoolLens.PoolState",
894
+ "name": "poolState",
895
+ "type": "tuple"
896
+ }
897
+ ],
898
+ "stateMutability": "view",
899
+ "type": "function"
900
+ },
901
+ {
902
+ "inputs": [
903
+ {
904
+ "internalType": "contract IMaverickV2Pool",
905
+ "name": "pool",
906
+ "type": "address"
907
+ }
908
+ ],
909
+ "name": "getPoolPrice",
910
+ "outputs": [
911
+ {
912
+ "internalType": "uint256",
913
+ "name": "price",
914
+ "type": "uint256"
915
+ }
916
+ ],
917
+ "stateMutability": "view",
918
+ "type": "function"
919
+ },
920
+ {
921
+ "inputs": [
922
+ {
923
+ "internalType": "contract IMaverickV2Pool",
924
+ "name": "pool",
925
+ "type": "address"
926
+ }
927
+ ],
928
+ "name": "getPoolSqrtPrice",
929
+ "outputs": [
930
+ {
931
+ "internalType": "uint256",
932
+ "name": "sqrtPrice",
933
+ "type": "uint256"
934
+ }
935
+ ],
936
+ "stateMutability": "view",
937
+ "type": "function"
938
+ },
939
+ {
940
+ "inputs": [
941
+ {
942
+ "internalType": "contract IMaverickV2Pool",
943
+ "name": "pool",
944
+ "type": "address"
945
+ },
946
+ {
947
+ "internalType": "int32",
948
+ "name": "tick",
949
+ "type": "int32"
950
+ }
951
+ ],
952
+ "name": "getTickSqrtPriceAndL",
953
+ "outputs": [
954
+ {
955
+ "internalType": "uint256",
956
+ "name": "sqrtPrice",
957
+ "type": "uint256"
958
+ },
959
+ {
960
+ "internalType": "uint256",
961
+ "name": "liquidity",
962
+ "type": "uint256"
963
+ }
964
+ ],
965
+ "stateMutability": "view",
966
+ "type": "function"
967
+ },
968
+ {
969
+ "inputs": [
970
+ {
971
+ "internalType": "contract IMaverickV2Pool",
972
+ "name": "pool",
973
+ "type": "address"
974
+ },
975
+ {
976
+ "internalType": "int32",
977
+ "name": "tickStart",
978
+ "type": "int32"
979
+ },
980
+ {
981
+ "internalType": "int32",
982
+ "name": "tickEnd",
983
+ "type": "int32"
984
+ }
985
+ ],
986
+ "name": "getTicks",
987
+ "outputs": [
988
+ {
989
+ "internalType": "int32[]",
990
+ "name": "ticks",
991
+ "type": "int32[]"
992
+ },
993
+ {
994
+ "components": [
995
+ {
996
+ "internalType": "uint128",
997
+ "name": "reserveA",
998
+ "type": "uint128"
999
+ },
1000
+ {
1001
+ "internalType": "uint128",
1002
+ "name": "reserveB",
1003
+ "type": "uint128"
1004
+ },
1005
+ {
1006
+ "internalType": "uint128",
1007
+ "name": "totalSupply",
1008
+ "type": "uint128"
1009
+ },
1010
+ {
1011
+ "internalType": "uint32[4]",
1012
+ "name": "binIdsByTick",
1013
+ "type": "uint32[4]"
1014
+ }
1015
+ ],
1016
+ "internalType": "struct IMaverickV2Pool.TickState[]",
1017
+ "name": "tickStates",
1018
+ "type": "tuple[]"
1019
+ }
1020
+ ],
1021
+ "stateMutability": "view",
1022
+ "type": "function"
1023
+ },
1024
+ {
1025
+ "inputs": [
1026
+ {
1027
+ "internalType": "contract IMaverickV2Pool",
1028
+ "name": "pool",
1029
+ "type": "address"
1030
+ },
1031
+ {
1032
+ "internalType": "int32",
1033
+ "name": "tickRadius",
1034
+ "type": "int32"
1035
+ }
1036
+ ],
1037
+ "name": "getTicksAroundActive",
1038
+ "outputs": [
1039
+ {
1040
+ "internalType": "int32[]",
1041
+ "name": "ticks",
1042
+ "type": "int32[]"
1043
+ },
1044
+ {
1045
+ "components": [
1046
+ {
1047
+ "internalType": "uint128",
1048
+ "name": "reserveA",
1049
+ "type": "uint128"
1050
+ },
1051
+ {
1052
+ "internalType": "uint128",
1053
+ "name": "reserveB",
1054
+ "type": "uint128"
1055
+ },
1056
+ {
1057
+ "internalType": "uint128",
1058
+ "name": "totalSupply",
1059
+ "type": "uint128"
1060
+ },
1061
+ {
1062
+ "internalType": "uint32[4]",
1063
+ "name": "binIdsByTick",
1064
+ "type": "uint32[4]"
1065
+ }
1066
+ ],
1067
+ "internalType": "struct IMaverickV2Pool.TickState[]",
1068
+ "name": "tickStates",
1069
+ "type": "tuple[]"
1070
+ }
1071
+ ],
1072
+ "stateMutability": "view",
1073
+ "type": "function"
1074
+ },
1075
+ {
1076
+ "inputs": [
1077
+ {
1078
+ "internalType": "contract IMaverickV2Pool",
1079
+ "name": "pool",
1080
+ "type": "address"
1081
+ },
1082
+ {
1083
+ "internalType": "int32",
1084
+ "name": "tickRadius",
1085
+ "type": "int32"
1086
+ }
1087
+ ],
1088
+ "name": "getTicksAroundActiveWLiquidity",
1089
+ "outputs": [
1090
+ {
1091
+ "internalType": "int32[]",
1092
+ "name": "ticks",
1093
+ "type": "int32[]"
1094
+ },
1095
+ {
1096
+ "components": [
1097
+ {
1098
+ "internalType": "uint128",
1099
+ "name": "reserveA",
1100
+ "type": "uint128"
1101
+ },
1102
+ {
1103
+ "internalType": "uint128",
1104
+ "name": "reserveB",
1105
+ "type": "uint128"
1106
+ },
1107
+ {
1108
+ "internalType": "uint128",
1109
+ "name": "totalSupply",
1110
+ "type": "uint128"
1111
+ },
1112
+ {
1113
+ "internalType": "uint32[4]",
1114
+ "name": "binIdsByTick",
1115
+ "type": "uint32[4]"
1116
+ }
1117
+ ],
1118
+ "internalType": "struct IMaverickV2Pool.TickState[]",
1119
+ "name": "tickStates",
1120
+ "type": "tuple[]"
1121
+ },
1122
+ {
1123
+ "internalType": "uint256[]",
1124
+ "name": "liquidities",
1125
+ "type": "uint256[]"
1126
+ },
1127
+ {
1128
+ "internalType": "uint256[]",
1129
+ "name": "sqrtLowerTickPrices",
1130
+ "type": "uint256[]"
1131
+ },
1132
+ {
1133
+ "internalType": "uint256[]",
1134
+ "name": "sqrtUpperTickPrices",
1135
+ "type": "uint256[]"
1136
+ },
1137
+ {
1138
+ "components": [
1139
+ {
1140
+ "internalType": "uint128",
1141
+ "name": "reserveA",
1142
+ "type": "uint128"
1143
+ },
1144
+ {
1145
+ "internalType": "uint128",
1146
+ "name": "reserveB",
1147
+ "type": "uint128"
1148
+ },
1149
+ {
1150
+ "internalType": "int64",
1151
+ "name": "lastTwaD8",
1152
+ "type": "int64"
1153
+ },
1154
+ {
1155
+ "internalType": "int64",
1156
+ "name": "lastLogPriceD8",
1157
+ "type": "int64"
1158
+ },
1159
+ {
1160
+ "internalType": "uint40",
1161
+ "name": "lastTimestamp",
1162
+ "type": "uint40"
1163
+ },
1164
+ {
1165
+ "internalType": "int32",
1166
+ "name": "activeTick",
1167
+ "type": "int32"
1168
+ },
1169
+ {
1170
+ "internalType": "bool",
1171
+ "name": "isLocked",
1172
+ "type": "bool"
1173
+ },
1174
+ {
1175
+ "internalType": "uint32",
1176
+ "name": "binCounter",
1177
+ "type": "uint32"
1178
+ },
1179
+ {
1180
+ "internalType": "uint8",
1181
+ "name": "protocolFeeRatioD3",
1182
+ "type": "uint8"
1183
+ }
1184
+ ],
1185
+ "internalType": "struct IMaverickV2Pool.State",
1186
+ "name": "poolState",
1187
+ "type": "tuple"
1188
+ },
1189
+ {
1190
+ "internalType": "uint256",
1191
+ "name": "sqrtPrice",
1192
+ "type": "uint256"
1193
+ },
1194
+ {
1195
+ "internalType": "uint256",
1196
+ "name": "feeAIn",
1197
+ "type": "uint256"
1198
+ },
1199
+ {
1200
+ "internalType": "uint256",
1201
+ "name": "feeBIn",
1202
+ "type": "uint256"
1203
+ }
1204
+ ],
1205
+ "stateMutability": "view",
1206
+ "type": "function"
1207
+ },
1208
+ {
1209
+ "inputs": [
1210
+ {
1211
+ "internalType": "contract IMaverickV2Pool",
1212
+ "name": "pool",
1213
+ "type": "address"
1214
+ }
1215
+ ],
1216
+ "name": "tokenScales",
1217
+ "outputs": [
1218
+ {
1219
+ "internalType": "uint256",
1220
+ "name": "tokenAScale",
1221
+ "type": "uint256"
1222
+ },
1223
+ {
1224
+ "internalType": "uint256",
1225
+ "name": "tokenBScale",
1226
+ "type": "uint256"
1227
+ }
1228
+ ],
1229
+ "stateMutability": "view",
1230
+ "type": "function"
1231
+ }
1232
+ ]