@paraswap/dex-lib 3.11.2 → 3.11.3

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 (257) hide show
  1. package/.idea/aws.xml +17 -0
  2. package/.idea/codeStyles/Project.xml +19 -0
  3. package/.idea/codeStyles/codeStyleConfig.xml +5 -0
  4. package/.idea/misc.xml +6 -0
  5. package/.idea/modules.xml +8 -0
  6. package/.idea/paraswap-dex-lib.iml +9 -0
  7. package/.idea/prettier.xml +7 -0
  8. package/.idea/vcs.xml +6 -0
  9. package/build/abi/integral/factory.json +333 -0
  10. package/build/abi/{angle-transmuter/ChainlinkEACAggregatorProxy.json → integral/oracle.json} +239 -247
  11. package/build/abi/{curve-v1/StableSwapUSDN.json → integral/pool.json} +487 -450
  12. package/build/abi/{RamsesV2Pool.abi.json → integral/relayer.json} +833 -851
  13. package/build/dex/aave-v1/aave-v1.d.ts +1 -2
  14. package/build/dex/aave-v1/aave-v1.js +0 -22
  15. package/build/dex/aave-v1/aave-v1.js.map +1 -1
  16. package/build/dex/bProtocol.d.ts +18 -0
  17. package/build/dex/bProtocol.js +39 -0
  18. package/build/dex/bProtocol.js.map +1 -0
  19. package/build/dex/bancor.d.ts +26 -0
  20. package/build/dex/bancor.js +58 -0
  21. package/build/dex/bancor.js.map +1 -0
  22. package/build/dex/compound.d.ts +18 -0
  23. package/build/dex/compound.js +46 -0
  24. package/build/dex/compound.js.map +1 -0
  25. package/build/dex/curve-v2.d.ts +58 -0
  26. package/build/dex/curve-v2.js +180 -0
  27. package/build/dex/curve-v2.js.map +1 -0
  28. package/build/dex/dodo-v1.d.ts +33 -0
  29. package/build/dex/dodo-v1.js +63 -0
  30. package/build/dex/dodo-v1.js.map +1 -0
  31. package/build/dex/fluid-dex/fluid-dex-generate-pool.d.ts +49 -0
  32. package/build/dex/fluid-dex/fluid-dex-generate-pool.js +104 -0
  33. package/build/dex/fluid-dex/fluid-dex-generate-pool.js.map +1 -0
  34. package/build/dex/fluid-dex/fluid-dex-pool.d.ts +47 -0
  35. package/build/dex/fluid-dex/fluid-dex-pool.js +119 -0
  36. package/build/dex/fluid-dex/fluid-dex-pool.js.map +1 -0
  37. package/build/dex/fluid-dex/fluid-dex.d.ts +1 -1
  38. package/build/dex/fluid-dex/fluid-dex.js +7 -11
  39. package/build/dex/fluid-dex/fluid-dex.js.map +1 -1
  40. package/build/dex/fluid-dex/types.d.ts +1 -5
  41. package/build/dex/integral/config.d.ts +4 -0
  42. package/build/dex/integral/config.js +20 -0
  43. package/build/dex/integral/config.js.map +1 -0
  44. package/build/dex/integral/context.d.ts +40 -0
  45. package/build/dex/integral/context.js +158 -0
  46. package/build/dex/integral/context.js.map +1 -0
  47. package/build/dex/integral/integral-factory.d.ts +24 -0
  48. package/build/dex/integral/integral-factory.js +95 -0
  49. package/build/dex/integral/integral-factory.js.map +1 -0
  50. package/build/dex/integral/integral-pool.d.ts +50 -0
  51. package/build/dex/integral/integral-pool.js +149 -0
  52. package/build/dex/integral/integral-pool.js.map +1 -0
  53. package/build/dex/integral/integral-pricing.d.ts +18 -0
  54. package/build/dex/integral/integral-pricing.js +114 -0
  55. package/build/dex/integral/integral-pricing.js.map +1 -0
  56. package/build/dex/integral/integral-relayer.d.ts +42 -0
  57. package/build/dex/integral/integral-relayer.js +192 -0
  58. package/build/dex/integral/integral-relayer.js.map +1 -0
  59. package/build/dex/integral/integral-token.d.ts +27 -0
  60. package/build/dex/integral/integral-token.js +59 -0
  61. package/build/dex/integral/integral-token.js.map +1 -0
  62. package/build/dex/{inception/inception-native.d.ts → integral/integral.d.ts} +19 -21
  63. package/build/dex/integral/integral.js +376 -0
  64. package/build/dex/integral/integral.js.map +1 -0
  65. package/build/dex/integral/types.d.ts +85 -0
  66. package/build/dex/integral/types.js +9 -0
  67. package/build/dex/integral/types.js.map +1 -0
  68. package/build/dex/integral/utils-e2e.d.ts +9 -0
  69. package/build/dex/integral/utils-e2e.js +131 -0
  70. package/build/dex/integral/utils-e2e.js.map +1 -0
  71. package/build/dex/integral/utils.d.ts +17 -0
  72. package/build/dex/integral/utils.js +94 -0
  73. package/build/dex/integral/utils.js.map +1 -0
  74. package/build/dex/jarvis.d.ts +1 -2
  75. package/build/dex/jarvis.js +0 -58
  76. package/build/dex/jarvis.js.map +1 -1
  77. package/build/dex/lido.d.ts +19 -0
  78. package/build/dex/lido.js +42 -0
  79. package/build/dex/lido.js.map +1 -0
  80. package/build/dex/onebit.d.ts +25 -0
  81. package/build/dex/onebit.js +42 -0
  82. package/build/dex/onebit.js.map +1 -0
  83. package/build/dex/platypus/platypus.d.ts +1 -2
  84. package/build/dex/platypus/platypus.js +0 -31
  85. package/build/dex/platypus/platypus.js.map +1 -1
  86. package/build/dex/smoothy.d.ts +26 -0
  87. package/build/dex/smoothy.js +48 -0
  88. package/build/dex/smoothy.js.map +1 -0
  89. package/build/dex/stable-pool.d.ts +28 -0
  90. package/build/dex/stable-pool.js +62 -0
  91. package/build/dex/stable-pool.js.map +1 -0
  92. package/build/dex/swaap-v1/swaap-v1.d.ts +1 -2
  93. package/build/dex/swaap-v1/swaap-v1.js +0 -10
  94. package/build/dex/swaap-v1/swaap-v1.js.map +1 -1
  95. package/build/dex/trader-joe-v2.1/optimizer.d.ts +2 -0
  96. package/build/dex/trader-joe-v2.1/optimizer.js +47 -0
  97. package/build/dex/trader-joe-v2.1/optimizer.js.map +1 -0
  98. package/build/dex/trader-joe-v2.1/trader-joe-v2.1-new.d.ts +7 -0
  99. package/build/dex/trader-joe-v2.1/trader-joe-v2.1-new.js +20 -0
  100. package/build/dex/trader-joe-v2.1/trader-joe-v2.1-new.js.map +1 -0
  101. package/build/dex/trader-joe-v2.1.d.ts +43 -0
  102. package/build/dex/trader-joe-v2.1.js +79 -0
  103. package/build/dex/trader-joe-v2.1.js.map +1 -0
  104. package/build/dex/zerox/index.d.ts +26 -4
  105. package/build/dex/zerox/index.js +42 -50
  106. package/build/dex/zerox/index.js.map +1 -1
  107. package/build/dex/zerox/types.d.ts +0 -29
  108. package/build/dex/zerox/types.js +1 -8
  109. package/build/dex/zerox/types.js.map +1 -1
  110. package/package.json +1 -1
  111. package/src/dex/fluid-dex/fluid-dex.ts +8 -18
  112. package/src/dex/fluid-dex/types.ts +1 -5
  113. package/build/abi/Aave_GSM.json +0 -751
  114. package/build/abi/Balancer.json +0 -257
  115. package/build/abi/BalancerV2.json +0 -1179
  116. package/build/abi/RamsesV2Quoter.abi.json +0 -274
  117. package/build/abi/USDM.json +0 -807
  118. package/build/abi/UniswapV2Router.json +0 -397
  119. package/build/abi/angle-transmuter/ChainlinkAccessControlledOffchainAggregator.json +0 -1246
  120. package/build/abi/curve-v1/CurveBUSDv2.abi.json +0 -1356
  121. package/build/abi/curve-v1/CurveTokenV1.json +0 -305
  122. package/build/abi/curve-v1/CurveTokenV2.json +0 -318
  123. package/build/abi/curve-v1/CurveV1StableNg.json +0 -1452
  124. package/build/abi/curve-v1/CurveV2Swap.json +0 -700
  125. package/build/abi/curve-v1/FactoryCryptoRegistry.json +0 -316
  126. package/build/abi/curve-v1/FactoryRegistry.json +0 -508
  127. package/build/abi/curve-v1/StableSwapAave.json +0 -1152
  128. package/build/abi/curve-v1/StableSwapBUSD.json +0 -814
  129. package/build/abi/curve-v1/StableSwapCompound.json +0 -814
  130. package/build/abi/curve-v1/StableSwapIDLE.json +0 -1253
  131. package/build/abi/curve-v1/StableSwapPax.json +0 -865
  132. package/build/abi/curve-v1/StableSwapSnow.json +0 -900
  133. package/build/abi/curve-v1/StableSwapUSDT.json +0 -814
  134. package/build/abi/curve-v1/StableSwapY.json +0 -814
  135. package/build/abi/inception/inception-ineth-pool.json +0 -1062
  136. package/build/abi/inception/inception-ineth.json +0 -609
  137. package/build/abi/inception/inception-ratio-feed.json +0 -329
  138. package/build/abi/inception/inception-vault.json +0 -991
  139. package/build/abi/kyberdmm/kyber-storage.abi.json +0 -824
  140. package/build/abi/kyberdmm.abi.json +0 -1148
  141. package/build/abi/maverick-v2/MaverickV2Quoter.json +0 -278
  142. package/build/abi/nerve/nerve-metapool.json +0 -790
  143. package/build/abi/uniswap-v3/UniswapV3Quoter.abi.json +0 -193
  144. package/build/abi/velodrome-slipstream/VelodromeSlipstreamQuoterV2.abi.json +0 -267
  145. package/build/dex/balancer-v1/balancer-pools.json +0 -33333
  146. package/build/dex/bebop/websocket-fetcher.d.ts +0 -35
  147. package/build/dex/bebop/websocket-fetcher.js +0 -87
  148. package/build/dex/bebop/websocket-fetcher.js.map +0 -1
  149. package/build/dex/idle-dao/idle-dao-pool.d.ts +0 -56
  150. package/build/dex/idle-dao/idle-dao-pool.js +0 -176
  151. package/build/dex/idle-dao/idle-dao-pool.js.map +0 -1
  152. package/build/dex/idle-dao/idle-dao-pooling-pool.d.ts +0 -16
  153. package/build/dex/idle-dao/idle-dao-pooling-pool.js +0 -57
  154. package/build/dex/idle-dao/idle-dao-pooling-pool.js.map +0 -1
  155. package/build/dex/idle-dao/scripts.d.ts +0 -9
  156. package/build/dex/idle-dao/scripts.js +0 -552
  157. package/build/dex/idle-dao/scripts.js.map +0 -1
  158. package/build/dex/inception/config.d.ts +0 -4
  159. package/build/dex/inception/config.js +0 -109
  160. package/build/dex/inception/config.js.map +0 -1
  161. package/build/dex/inception/inception-event-pool.d.ts +0 -16
  162. package/build/dex/inception/inception-event-pool.js +0 -51
  163. package/build/dex/inception/inception-event-pool.js.map +0 -1
  164. package/build/dex/inception/inception-native.js +0 -131
  165. package/build/dex/inception/inception-native.js.map +0 -1
  166. package/build/dex/inception/inception-pool.d.ts +0 -18
  167. package/build/dex/inception/inception-pool.js +0 -32
  168. package/build/dex/inception/inception-pool.js.map +0 -1
  169. package/build/dex/inception/inception-price-feed.d.ts +0 -19
  170. package/build/dex/inception/inception-price-feed.js +0 -51
  171. package/build/dex/inception/inception-price-feed.js.map +0 -1
  172. package/build/dex/inception/inception.d.ts +0 -43
  173. package/build/dex/inception/inception.js +0 -204
  174. package/build/dex/inception/inception.js.map +0 -1
  175. package/build/dex/inception/tokens.d.ts +0 -9
  176. package/build/dex/inception/tokens.js +0 -28
  177. package/build/dex/inception/tokens.js.map +0 -1
  178. package/build/dex/inception/types.d.ts +0 -22
  179. package/build/dex/inception/types.js +0 -3
  180. package/build/dex/inception/types.js.map +0 -1
  181. package/build/dex/inception/utils.d.ts +0 -6
  182. package/build/dex/inception/utils.js +0 -37
  183. package/build/dex/inception/utils.js.map +0 -1
  184. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-balancerv1-curvev1-eth-usdc-gusd.json +0 -16
  185. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-balancerv1-sushiv3-wbtc-eth-sushi.json +0 -16
  186. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-curvev1-eth-usdc-gusd.json +0 -16
  187. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-curvev1-gusd-usdc-eth.json +0 -16
  188. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-dai-usdc-eth.json +0 -16
  189. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-eth-usdc-dai.json +0 -16
  190. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-usdc-eth-wbtc.json +0 -16
  191. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-usdt-usdc-dai.json +0 -16
  192. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-balancerv1-eth-usdc.json +0 -9
  193. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-balancerv1-usdc-eth.json +0 -9
  194. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-balancerv1-usdc-wbtc.json +0 -9
  195. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-curvev1-eth-steth.json +0 -9
  196. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-curvev1-steth-eth.json +0 -9
  197. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-curvev1-usdc-usdt.json +0 -9
  198. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-univ3-eth-usdc.json +0 -9
  199. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-univ3-usdc-eth.json +0 -9
  200. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-univ3-usdc-usdt.json +0 -9
  201. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-balancerv1-sushiv3-wbtc-eth-sushi.json +0 -12
  202. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-curvev1-eth-usdc-gusd.json +0 -7
  203. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-curvev1-gusd-usdc-eth.json +0 -7
  204. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-dai-usdc-eth.json +0 -7
  205. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-eth-usdc-dai.json +0 -7
  206. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-usdc-eth-wbtc.json +0 -12
  207. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-simpleSwap-univ3-eth-usdc.json +0 -7
  208. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-simpleSwap-univ3-usdc-eth.json +0 -7
  209. package/build/executor/fixtures/executor01/routes/price-route-multiswap-balancerv1-curvev1-eth-usdc-gusd.json +0 -78
  210. package/build/executor/fixtures/executor01/routes/price-route-multiswap-balancerv1-sushiv3-wbtc-eth-sushi.json +0 -81
  211. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-curvev1-eth-usdc-gusd.json +0 -78
  212. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-curvev1-gusd-usdc-eth.json +0 -78
  213. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-dai-usdc-eth.json +0 -81
  214. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-eth-usdc-dai.json +0 -81
  215. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-usdc-eth-wbtc.json +0 -81
  216. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-usdt-usdc-dai.json +0 -81
  217. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-balancerv1-eth-usdc.json +0 -64
  218. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-balancerv1-usdc-eth.json +0 -85
  219. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-balancerv1-usdc-wbtc.json +0 -64
  220. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-curvev1-eth-steth.json +0 -52
  221. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-curvev1-steth-eth.json +0 -52
  222. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-curvev1-usdc-usdt.json +0 -52
  223. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-univ3-eth-usdc.json +0 -55
  224. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-univ3-usdc-eth.json +0 -55
  225. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-univ3-usdc-usdt.json +0 -55
  226. package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-balancerv1-sushiv3-univ3-bal-eth-sushi.json +0 -23
  227. package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-maverickv1-sushiv3-univ3-eth-usdc-mav.json +0 -37
  228. package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-univ3-sushiv3-sushi-eth-wbtc.json +0 -23
  229. package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-univ3-sushiv3-wbtc-eth-sushi.json +0 -23
  230. package/build/executor/fixtures/executor02/exchange-params/price-route-multiswap-curvev1-univ3-dai-usdc-eth.json +0 -51
  231. package/build/executor/fixtures/executor02/exchange-params/price-route-multiswap-univ3-usdt-dai-eth.json +0 -58
  232. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-balancerv1-eth-usdc.json +0 -23
  233. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-balancerv1-usdc-eth.json +0 -23
  234. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-univ3-eth-sushi.json +0 -9
  235. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-univ3-sushi-eth.json +0 -16
  236. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-univ3-curvev1-usdt-dai.json +0 -23
  237. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-balancerv1-sushiv3-univ3-bal-eth-sushi.json +0 -12
  238. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-maverickv1-sushiv3-univ3-eth-usdc-mav.json +0 -7
  239. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-univ3-sushiv3-sushi-eth-wbtc.json +0 -12
  240. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-univ3-sushiv3-wbtc-eth-sushi.json +0 -12
  241. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiswap-curvev1-univ3-dai-usdc-eth.json +0 -7
  242. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiswap-univ3-usdt-dai-eth.json +0 -7
  243. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-balancerv1-eth-usdc.json +0 -7
  244. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-balancerv1-usdc-eth.json +0 -7
  245. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-univ3-eth-sushi.json +0 -7
  246. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-univ3-sushi-eth.json +0 -7
  247. package/build/executor/fixtures/executor02/routes/price-route-multiSwap-balancerv1-sushiv3-univ3-bal-eth-sushi.json +0 -130
  248. package/build/executor/fixtures/executor02/routes/price-route-multiSwap-maverickv1-sushiv3-univ3-eth-usdc-mav.json +0 -136
  249. package/build/executor/fixtures/executor02/routes/price-route-multiSwap-univ3-sushiv3-sushi-eth-wbtc.json +0 -100
  250. package/build/executor/fixtures/executor02/routes/price-route-multiSwap-univ3-sushiv3-wbtc-eth-sushi.json +0 -100
  251. package/build/executor/fixtures/executor02/routes/price-route-multiswap-curvev1-univ3-dai-usdc-eth.json +0 -166
  252. package/build/executor/fixtures/executor02/routes/price-route-multiswap-univ3-usdt-dai-eth.json +0 -190
  253. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-balancerv1-eth-usdc.json +0 -114
  254. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-balancerv1-usdc-eth.json +0 -114
  255. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-univ3-eth-sushi.json +0 -55
  256. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-univ3-sushi-eth.json +0 -73
  257. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-univ3-curvev1-usdt-dai.json +0 -82
@@ -8,43 +8,25 @@
8
8
  "anonymous": false,
9
9
  "inputs": [
10
10
  {
11
- "indexed": true,
11
+ "indexed": false,
12
12
  "internalType": "address",
13
- "name": "owner",
13
+ "name": "token",
14
14
  "type": "address"
15
15
  },
16
- {
17
- "indexed": true,
18
- "internalType": "int24",
19
- "name": "tickLower",
20
- "type": "int24"
21
- },
22
- {
23
- "indexed": true,
24
- "internalType": "int24",
25
- "name": "tickUpper",
26
- "type": "int24"
27
- },
28
- {
29
- "indexed": false,
30
- "internalType": "uint128",
31
- "name": "amount",
32
- "type": "uint128"
33
- },
34
16
  {
35
17
  "indexed": false,
36
- "internalType": "uint256",
37
- "name": "amount0",
38
- "type": "uint256"
18
+ "internalType": "address",
19
+ "name": "to",
20
+ "type": "address"
39
21
  },
40
22
  {
41
23
  "indexed": false,
42
24
  "internalType": "uint256",
43
- "name": "amount1",
25
+ "name": "amount",
44
26
  "type": "uint256"
45
27
  }
46
28
  ],
47
- "name": "Burn",
29
+ "name": "Approve",
48
30
  "type": "event"
49
31
  },
50
32
  {
@@ -53,134 +35,154 @@
53
35
  {
54
36
  "indexed": true,
55
37
  "internalType": "address",
56
- "name": "owner",
38
+ "name": "sender",
57
39
  "type": "address"
58
40
  },
59
41
  {
60
42
  "indexed": false,
61
43
  "internalType": "address",
62
- "name": "recipient",
44
+ "name": "tokenIn",
63
45
  "type": "address"
64
46
  },
65
47
  {
66
- "indexed": true,
67
- "internalType": "int24",
68
- "name": "tickLower",
69
- "type": "int24"
48
+ "indexed": false,
49
+ "internalType": "address",
50
+ "name": "tokenOut",
51
+ "type": "address"
70
52
  },
71
53
  {
72
- "indexed": true,
73
- "internalType": "int24",
74
- "name": "tickUpper",
75
- "type": "int24"
54
+ "indexed": false,
55
+ "internalType": "uint256",
56
+ "name": "amountIn",
57
+ "type": "uint256"
76
58
  },
77
59
  {
78
60
  "indexed": false,
79
- "internalType": "uint128",
80
- "name": "amount0",
81
- "type": "uint128"
61
+ "internalType": "uint256",
62
+ "name": "amountInMax",
63
+ "type": "uint256"
82
64
  },
83
65
  {
84
66
  "indexed": false,
85
- "internalType": "uint128",
86
- "name": "amount1",
87
- "type": "uint128"
88
- }
89
- ],
90
- "name": "Collect",
91
- "type": "event"
92
- },
93
- {
94
- "anonymous": false,
95
- "inputs": [
67
+ "internalType": "uint256",
68
+ "name": "amountOut",
69
+ "type": "uint256"
70
+ },
96
71
  {
97
- "indexed": true,
98
- "internalType": "address",
99
- "name": "sender",
100
- "type": "address"
72
+ "indexed": false,
73
+ "internalType": "bool",
74
+ "name": "wrapUnwrap",
75
+ "type": "bool"
76
+ },
77
+ {
78
+ "indexed": false,
79
+ "internalType": "uint256",
80
+ "name": "fee",
81
+ "type": "uint256"
101
82
  },
102
83
  {
103
84
  "indexed": true,
104
85
  "internalType": "address",
105
- "name": "recipient",
86
+ "name": "to",
106
87
  "type": "address"
107
88
  },
108
89
  {
109
90
  "indexed": false,
110
- "internalType": "uint128",
111
- "name": "amount0",
112
- "type": "uint128"
91
+ "internalType": "address",
92
+ "name": "orderContract",
93
+ "type": "address"
113
94
  },
114
95
  {
115
- "indexed": false,
116
- "internalType": "uint128",
117
- "name": "amount1",
118
- "type": "uint128"
96
+ "indexed": true,
97
+ "internalType": "uint256",
98
+ "name": "orderId",
99
+ "type": "uint256"
119
100
  }
120
101
  ],
121
- "name": "CollectProtocol",
102
+ "name": "Buy",
122
103
  "type": "event"
123
104
  },
124
105
  {
125
106
  "anonymous": false,
126
107
  "inputs": [
127
108
  {
128
- "indexed": true,
129
- "internalType": "address",
130
- "name": "sender",
131
- "type": "address"
132
- },
133
- {
134
- "indexed": true,
109
+ "indexed": false,
135
110
  "internalType": "address",
136
- "name": "recipient",
111
+ "name": "delay",
137
112
  "type": "address"
138
- },
113
+ }
114
+ ],
115
+ "name": "DelaySet",
116
+ "type": "event"
117
+ },
118
+ {
119
+ "anonymous": false,
120
+ "inputs": [
139
121
  {
140
122
  "indexed": false,
141
123
  "internalType": "uint256",
142
- "name": "amount0",
124
+ "name": "gasCost",
143
125
  "type": "uint256"
144
- },
126
+ }
127
+ ],
128
+ "name": "EthTransferGasCostSet",
129
+ "type": "event"
130
+ },
131
+ {
132
+ "anonymous": false,
133
+ "inputs": [
145
134
  {
146
135
  "indexed": false,
147
136
  "internalType": "uint256",
148
- "name": "amount1",
137
+ "name": "limit",
149
138
  "type": "uint256"
139
+ }
140
+ ],
141
+ "name": "ExecutionGasLimitSet",
142
+ "type": "event"
143
+ },
144
+ {
145
+ "anonymous": false,
146
+ "inputs": [
147
+ {
148
+ "indexed": false,
149
+ "internalType": "address",
150
+ "name": "_factory",
151
+ "type": "address"
150
152
  },
151
153
  {
152
154
  "indexed": false,
153
- "internalType": "uint256",
154
- "name": "paid0",
155
- "type": "uint256"
155
+ "internalType": "address",
156
+ "name": "_delay",
157
+ "type": "address"
156
158
  },
157
159
  {
158
160
  "indexed": false,
159
- "internalType": "uint256",
160
- "name": "paid1",
161
- "type": "uint256"
161
+ "internalType": "address",
162
+ "name": "_weth",
163
+ "type": "address"
162
164
  }
163
165
  ],
164
- "name": "Flash",
166
+ "name": "Initialized",
165
167
  "type": "event"
166
168
  },
167
169
  {
168
170
  "anonymous": false,
169
171
  "inputs": [
170
172
  {
171
- "indexed": false,
172
- "internalType": "uint16",
173
- "name": "observationCardinalityNextOld",
174
- "type": "uint16"
173
+ "indexed": true,
174
+ "internalType": "address",
175
+ "name": "oneInchRouter",
176
+ "type": "address"
175
177
  },
176
178
  {
177
179
  "indexed": false,
178
- "internalType": "uint16",
179
- "name": "observationCardinalityNextNew",
180
- "type": "uint16"
180
+ "internalType": "bool",
181
+ "name": "whitelisted",
182
+ "type": "bool"
181
183
  }
182
184
  ],
183
- "name": "IncreaseObservationCardinalityNext",
185
+ "name": "OneInchRouterWhitelisted",
184
186
  "type": "event"
185
187
  },
186
188
  {
@@ -188,18 +190,12 @@
188
190
  "inputs": [
189
191
  {
190
192
  "indexed": false,
191
- "internalType": "uint160",
192
- "name": "sqrtPriceX96",
193
- "type": "uint160"
194
- },
195
- {
196
- "indexed": false,
197
- "internalType": "int24",
198
- "name": "tick",
199
- "type": "int24"
193
+ "internalType": "address",
194
+ "name": "owner",
195
+ "type": "address"
200
196
  }
201
197
  ],
202
- "name": "Initialize",
198
+ "name": "OwnerSet",
203
199
  "type": "event"
204
200
  },
205
201
  {
@@ -208,78 +204,92 @@
208
204
  {
209
205
  "indexed": false,
210
206
  "internalType": "address",
211
- "name": "sender",
207
+ "name": "pair",
212
208
  "type": "address"
213
209
  },
210
+ {
211
+ "indexed": false,
212
+ "internalType": "bool",
213
+ "name": "enabled",
214
+ "type": "bool"
215
+ }
216
+ ],
217
+ "name": "PairEnabledSet",
218
+ "type": "event"
219
+ },
220
+ {
221
+ "anonymous": false,
222
+ "inputs": [
214
223
  {
215
224
  "indexed": true,
216
225
  "internalType": "address",
217
- "name": "owner",
226
+ "name": "sender",
218
227
  "type": "address"
219
228
  },
220
229
  {
221
- "indexed": true,
222
- "internalType": "int24",
223
- "name": "tickLower",
224
- "type": "int24"
225
- },
226
- {
227
- "indexed": true,
228
- "internalType": "int24",
229
- "name": "tickUpper",
230
- "type": "int24"
230
+ "indexed": false,
231
+ "internalType": "address",
232
+ "name": "tokenIn",
233
+ "type": "address"
231
234
  },
232
235
  {
233
236
  "indexed": false,
234
- "internalType": "uint128",
235
- "name": "amount",
236
- "type": "uint128"
237
+ "internalType": "address",
238
+ "name": "tokenOut",
239
+ "type": "address"
237
240
  },
238
241
  {
239
242
  "indexed": false,
240
243
  "internalType": "uint256",
241
- "name": "amount0",
244
+ "name": "amountIn",
242
245
  "type": "uint256"
243
246
  },
244
247
  {
245
- "indexed": false,
248
+ "indexed": true,
246
249
  "internalType": "uint256",
247
- "name": "amount1",
250
+ "name": "delayOrderId",
248
251
  "type": "uint256"
249
252
  }
250
253
  ],
251
- "name": "Mint",
254
+ "name": "RebalanceSellWithDelay",
252
255
  "type": "event"
253
256
  },
254
257
  {
255
258
  "anonymous": false,
256
259
  "inputs": [
257
260
  {
258
- "indexed": false,
259
- "internalType": "uint8",
260
- "name": "feeProtocol0Old",
261
- "type": "uint8"
261
+ "indexed": true,
262
+ "internalType": "address",
263
+ "name": "oneInchRouter",
264
+ "type": "address"
262
265
  },
263
266
  {
264
267
  "indexed": false,
265
- "internalType": "uint8",
266
- "name": "feeProtocol1Old",
267
- "type": "uint8"
268
+ "internalType": "uint256",
269
+ "name": "gas",
270
+ "type": "uint256"
268
271
  },
269
272
  {
270
273
  "indexed": false,
271
- "internalType": "uint8",
272
- "name": "feeProtocol0New",
273
- "type": "uint8"
274
- },
274
+ "internalType": "bytes",
275
+ "name": "data",
276
+ "type": "bytes"
277
+ }
278
+ ],
279
+ "name": "RebalanceSellWithOneInch",
280
+ "type": "event"
281
+ },
282
+ {
283
+ "anonymous": false,
284
+ "inputs": [
275
285
  {
276
286
  "indexed": false,
277
- "internalType": "uint8",
278
- "name": "feeProtocol1New",
279
- "type": "uint8"
287
+ "internalType": "address",
288
+ "name": "rebalancer",
289
+ "type": "address"
280
290
  }
281
291
  ],
282
- "name": "SetFeeProtocol",
292
+ "name": "RebalancerSet",
283
293
  "type": "event"
284
294
  },
285
295
  {
@@ -292,368 +302,270 @@
292
302
  "type": "address"
293
303
  },
294
304
  {
295
- "indexed": true,
305
+ "indexed": false,
306
+ "internalType": "address",
307
+ "name": "tokenIn",
308
+ "type": "address"
309
+ },
310
+ {
311
+ "indexed": false,
296
312
  "internalType": "address",
297
- "name": "recipient",
313
+ "name": "tokenOut",
298
314
  "type": "address"
299
315
  },
300
316
  {
301
317
  "indexed": false,
302
- "internalType": "int256",
303
- "name": "amount0",
304
- "type": "int256"
318
+ "internalType": "uint256",
319
+ "name": "amountIn",
320
+ "type": "uint256"
321
+ },
322
+ {
323
+ "indexed": false,
324
+ "internalType": "uint256",
325
+ "name": "amountOut",
326
+ "type": "uint256"
305
327
  },
306
328
  {
307
329
  "indexed": false,
308
- "internalType": "int256",
309
- "name": "amount1",
310
- "type": "int256"
330
+ "internalType": "uint256",
331
+ "name": "amountOutMin",
332
+ "type": "uint256"
311
333
  },
312
334
  {
313
335
  "indexed": false,
314
- "internalType": "uint160",
315
- "name": "sqrtPriceX96",
316
- "type": "uint160"
336
+ "internalType": "bool",
337
+ "name": "wrapUnwrap",
338
+ "type": "bool"
317
339
  },
318
340
  {
319
341
  "indexed": false,
320
- "internalType": "uint128",
321
- "name": "liquidity",
322
- "type": "uint128"
342
+ "internalType": "uint256",
343
+ "name": "fee",
344
+ "type": "uint256"
345
+ },
346
+ {
347
+ "indexed": true,
348
+ "internalType": "address",
349
+ "name": "to",
350
+ "type": "address"
323
351
  },
324
352
  {
325
353
  "indexed": false,
326
- "internalType": "int24",
327
- "name": "tick",
328
- "type": "int24"
354
+ "internalType": "address",
355
+ "name": "orderContract",
356
+ "type": "address"
357
+ },
358
+ {
359
+ "indexed": true,
360
+ "internalType": "uint256",
361
+ "name": "orderId",
362
+ "type": "uint256"
329
363
  }
330
364
  ],
331
- "name": "Swap",
365
+ "name": "Sell",
332
366
  "type": "event"
333
367
  },
334
368
  {
369
+ "anonymous": false,
335
370
  "inputs": [
336
371
  {
372
+ "indexed": false,
373
+ "internalType": "address",
374
+ "name": "pair",
375
+ "type": "address"
376
+ },
377
+ {
378
+ "indexed": false,
337
379
  "internalType": "uint256",
338
- "name": "period",
380
+ "name": "fee",
339
381
  "type": "uint256"
340
382
  }
341
383
  ],
342
- "name": "boostInfos",
343
- "outputs": [
384
+ "name": "SwapFeeSet",
385
+ "type": "event"
386
+ },
387
+ {
388
+ "anonymous": false,
389
+ "inputs": [
344
390
  {
345
- "internalType": "uint128",
346
- "name": "totalBoostAmount",
347
- "type": "uint128"
391
+ "indexed": false,
392
+ "internalType": "address",
393
+ "name": "token",
394
+ "type": "address"
348
395
  },
349
396
  {
350
- "internalType": "int128",
351
- "name": "totalVeRamAmount",
352
- "type": "int128"
397
+ "indexed": false,
398
+ "internalType": "uint256",
399
+ "name": "limit",
400
+ "type": "uint256"
353
401
  }
354
402
  ],
355
- "stateMutability": "view",
356
- "type": "function"
403
+ "name": "TokenLimitMaxMultiplierSet",
404
+ "type": "event"
357
405
  },
358
406
  {
407
+ "anonymous": false,
359
408
  "inputs": [
360
409
  {
361
- "internalType": "uint256",
362
- "name": "period",
363
- "type": "uint256"
410
+ "indexed": false,
411
+ "internalType": "address",
412
+ "name": "token",
413
+ "type": "address"
364
414
  },
365
415
  {
366
- "internalType": "bytes32",
367
- "name": "key",
368
- "type": "bytes32"
416
+ "indexed": false,
417
+ "internalType": "uint256",
418
+ "name": "limit",
419
+ "type": "uint256"
369
420
  }
370
421
  ],
371
- "name": "boostInfos",
372
- "outputs": [
373
- {
374
- "internalType": "uint128",
375
- "name": "boostAmount",
376
- "type": "uint128"
377
- },
378
- {
379
- "internalType": "int128",
380
- "name": "veRamAmount",
381
- "type": "int128"
382
- },
422
+ "name": "TokenLimitMinSet",
423
+ "type": "event"
424
+ },
425
+ {
426
+ "anonymous": false,
427
+ "inputs": [
383
428
  {
384
- "internalType": "int256",
385
- "name": "secondsDebtX96",
386
- "type": "int256"
429
+ "indexed": false,
430
+ "internalType": "address",
431
+ "name": "pair",
432
+ "type": "address"
387
433
  },
388
434
  {
389
- "internalType": "int256",
390
- "name": "boostedSecondsDebtX96",
391
- "type": "int256"
435
+ "indexed": false,
436
+ "internalType": "uint16",
437
+ "name": "tolerance",
438
+ "type": "uint16"
392
439
  }
393
440
  ],
394
- "stateMutability": "view",
395
- "type": "function"
396
- },
397
- {
398
- "inputs": [],
399
- "name": "boostedLiquidity",
400
- "outputs": [
401
- {
402
- "internalType": "uint128",
403
- "name": "",
404
- "type": "uint128"
405
- }
406
- ],
407
- "stateMutability": "view",
408
- "type": "function"
441
+ "name": "ToleranceSet",
442
+ "type": "event"
409
443
  },
410
444
  {
445
+ "anonymous": false,
411
446
  "inputs": [
412
447
  {
413
- "internalType": "uint256",
414
- "name": "index",
415
- "type": "uint256"
416
- },
417
- {
418
- "internalType": "int24",
419
- "name": "tickLower",
420
- "type": "int24"
421
- },
422
- {
423
- "internalType": "int24",
424
- "name": "tickUpper",
425
- "type": "int24"
448
+ "indexed": false,
449
+ "internalType": "address",
450
+ "name": "pair",
451
+ "type": "address"
426
452
  },
427
453
  {
428
- "internalType": "uint128",
429
- "name": "amount",
430
- "type": "uint128"
454
+ "indexed": false,
455
+ "internalType": "uint32",
456
+ "name": "interval",
457
+ "type": "uint32"
431
458
  }
432
459
  ],
433
- "name": "burn",
434
- "outputs": [
435
- {
436
- "internalType": "uint256",
437
- "name": "amount0",
438
- "type": "uint256"
439
- },
460
+ "name": "TwapIntervalSet",
461
+ "type": "event"
462
+ },
463
+ {
464
+ "anonymous": false,
465
+ "inputs": [
440
466
  {
467
+ "indexed": false,
441
468
  "internalType": "uint256",
442
- "name": "amount1",
469
+ "name": "amount",
443
470
  "type": "uint256"
444
471
  }
445
472
  ],
446
- "stateMutability": "nonpayable",
447
- "type": "function"
473
+ "name": "UnwrapWeth",
474
+ "type": "event"
448
475
  },
449
476
  {
477
+ "anonymous": false,
450
478
  "inputs": [
451
479
  {
452
- "internalType": "int24",
453
- "name": "tickLower",
454
- "type": "int24"
455
- },
456
- {
457
- "internalType": "int24",
458
- "name": "tickUpper",
459
- "type": "int24"
480
+ "indexed": false,
481
+ "internalType": "address",
482
+ "name": "token",
483
+ "type": "address"
460
484
  },
461
485
  {
462
- "internalType": "uint128",
463
- "name": "amount",
464
- "type": "uint128"
465
- }
466
- ],
467
- "name": "burn",
468
- "outputs": [
469
- {
470
- "internalType": "uint256",
471
- "name": "amount0",
472
- "type": "uint256"
486
+ "indexed": false,
487
+ "internalType": "address",
488
+ "name": "to",
489
+ "type": "address"
473
490
  },
474
491
  {
492
+ "indexed": false,
475
493
  "internalType": "uint256",
476
- "name": "amount1",
494
+ "name": "amount",
477
495
  "type": "uint256"
478
496
  }
479
497
  ],
480
- "stateMutability": "nonpayable",
481
- "type": "function"
498
+ "name": "Withdraw",
499
+ "type": "event"
482
500
  },
483
501
  {
502
+ "anonymous": false,
484
503
  "inputs": [
485
504
  {
505
+ "indexed": false,
486
506
  "internalType": "uint256",
487
- "name": "index",
488
- "type": "uint256"
489
- },
490
- {
491
- "internalType": "int24",
492
- "name": "tickLower",
493
- "type": "int24"
494
- },
495
- {
496
- "internalType": "int24",
497
- "name": "tickUpper",
498
- "type": "int24"
499
- },
500
- {
501
- "internalType": "uint128",
502
507
  "name": "amount",
503
- "type": "uint128"
504
- },
505
- {
506
- "internalType": "uint256",
507
- "name": "veRamTokenId",
508
- "type": "uint256"
509
- }
510
- ],
511
- "name": "burn",
512
- "outputs": [
513
- {
514
- "internalType": "uint256",
515
- "name": "amount0",
516
- "type": "uint256"
517
- },
518
- {
519
- "internalType": "uint256",
520
- "name": "amount1",
521
508
  "type": "uint256"
522
509
  }
523
510
  ],
524
- "stateMutability": "nonpayable",
525
- "type": "function"
511
+ "name": "WrapEth",
512
+ "type": "event"
526
513
  },
527
514
  {
528
- "inputs": [
515
+ "inputs": [],
516
+ "name": "DELAY_ADDRESS",
517
+ "outputs": [
529
518
  {
530
519
  "internalType": "address",
531
- "name": "recipient",
520
+ "name": "",
532
521
  "type": "address"
533
- },
534
- {
535
- "internalType": "int24",
536
- "name": "tickLower",
537
- "type": "int24"
538
- },
539
- {
540
- "internalType": "int24",
541
- "name": "tickUpper",
542
- "type": "int24"
543
- },
544
- {
545
- "internalType": "uint128",
546
- "name": "amount0Requested",
547
- "type": "uint128"
548
- },
549
- {
550
- "internalType": "uint128",
551
- "name": "amount1Requested",
552
- "type": "uint128"
553
- }
554
- ],
555
- "name": "collect",
556
- "outputs": [
557
- {
558
- "internalType": "uint128",
559
- "name": "amount0",
560
- "type": "uint128"
561
- },
562
- {
563
- "internalType": "uint128",
564
- "name": "amount1",
565
- "type": "uint128"
566
522
  }
567
523
  ],
568
- "stateMutability": "nonpayable",
524
+ "stateMutability": "view",
569
525
  "type": "function"
570
526
  },
571
527
  {
572
- "inputs": [
573
- {
574
- "internalType": "address",
575
- "name": "recipient",
576
- "type": "address"
577
- },
528
+ "inputs": [],
529
+ "name": "EXECUTION_GAS_LIMIT",
530
+ "outputs": [
578
531
  {
579
532
  "internalType": "uint256",
580
- "name": "index",
533
+ "name": "",
581
534
  "type": "uint256"
582
- },
583
- {
584
- "internalType": "int24",
585
- "name": "tickLower",
586
- "type": "int24"
587
- },
588
- {
589
- "internalType": "int24",
590
- "name": "tickUpper",
591
- "type": "int24"
592
- },
593
- {
594
- "internalType": "uint128",
595
- "name": "amount0Requested",
596
- "type": "uint128"
597
- },
598
- {
599
- "internalType": "uint128",
600
- "name": "amount1Requested",
601
- "type": "uint128"
602
- }
603
- ],
604
- "name": "collect",
605
- "outputs": [
606
- {
607
- "internalType": "uint128",
608
- "name": "amount0",
609
- "type": "uint128"
610
- },
611
- {
612
- "internalType": "uint128",
613
- "name": "amount1",
614
- "type": "uint128"
615
535
  }
616
536
  ],
617
- "stateMutability": "nonpayable",
537
+ "stateMutability": "view",
618
538
  "type": "function"
619
539
  },
620
540
  {
621
- "inputs": [
541
+ "inputs": [],
542
+ "name": "FACTORY_ADDRESS",
543
+ "outputs": [
622
544
  {
623
545
  "internalType": "address",
624
- "name": "recipient",
546
+ "name": "",
625
547
  "type": "address"
626
- },
627
- {
628
- "internalType": "uint128",
629
- "name": "amount0Requested",
630
- "type": "uint128"
631
- },
632
- {
633
- "internalType": "uint128",
634
- "name": "amount1Requested",
635
- "type": "uint128"
636
548
  }
637
549
  ],
638
- "name": "collectProtocol",
550
+ "stateMutability": "view",
551
+ "type": "function"
552
+ },
553
+ {
554
+ "inputs": [],
555
+ "name": "WETH_ADDRESS",
639
556
  "outputs": [
640
557
  {
641
- "internalType": "uint128",
642
- "name": "amount0",
643
- "type": "uint128"
644
- },
645
- {
646
- "internalType": "uint128",
647
- "name": "amount1",
648
- "type": "uint128"
558
+ "internalType": "address",
559
+ "name": "",
560
+ "type": "address"
649
561
  }
650
562
  ],
651
- "stateMutability": "nonpayable",
563
+ "stateMutability": "view",
652
564
  "type": "function"
653
565
  },
654
566
  {
655
567
  "inputs": [],
656
- "name": "factory",
568
+ "name": "__RESERVED__OLD_DELAY",
657
569
  "outputs": [
658
570
  {
659
571
  "internalType": "address",
@@ -666,12 +578,12 @@
666
578
  },
667
579
  {
668
580
  "inputs": [],
669
- "name": "fee",
581
+ "name": "__RESERVED__OLD_ETH_TRANSFER_GAS_COST",
670
582
  "outputs": [
671
583
  {
672
- "internalType": "uint24",
584
+ "internalType": "uint256",
673
585
  "name": "",
674
- "type": "uint24"
586
+ "type": "uint256"
675
587
  }
676
588
  ],
677
589
  "stateMutability": "view",
@@ -679,7 +591,7 @@
679
591
  },
680
592
  {
681
593
  "inputs": [],
682
- "name": "feeGrowthGlobal0X128",
594
+ "name": "__RESERVED__OLD_EXECUTION_GAS_LIMIT",
683
595
  "outputs": [
684
596
  {
685
597
  "internalType": "uint256",
@@ -692,12 +604,12 @@
692
604
  },
693
605
  {
694
606
  "inputs": [],
695
- "name": "feeGrowthGlobal1X128",
607
+ "name": "__RESERVED__OLD_FACTORY",
696
608
  "outputs": [
697
609
  {
698
- "internalType": "uint256",
610
+ "internalType": "address",
699
611
  "name": "",
700
- "type": "uint256"
612
+ "type": "address"
701
613
  }
702
614
  ],
703
615
  "stateMutability": "view",
@@ -707,87 +619,123 @@
707
619
  "inputs": [
708
620
  {
709
621
  "internalType": "address",
710
- "name": "recipient",
622
+ "name": "",
711
623
  "type": "address"
712
- },
624
+ }
625
+ ],
626
+ "name": "__RESERVED__OLD_TOKEN_LIMIT_MAX_MULTIPLIER",
627
+ "outputs": [
713
628
  {
714
629
  "internalType": "uint256",
715
- "name": "amount0",
630
+ "name": "",
716
631
  "type": "uint256"
717
- },
632
+ }
633
+ ],
634
+ "stateMutability": "view",
635
+ "type": "function"
636
+ },
637
+ {
638
+ "inputs": [
639
+ {
640
+ "internalType": "address",
641
+ "name": "",
642
+ "type": "address"
643
+ }
644
+ ],
645
+ "name": "__RESERVED__OLD_TOKEN_LIMIT_MIN",
646
+ "outputs": [
718
647
  {
719
648
  "internalType": "uint256",
720
- "name": "amount1",
649
+ "name": "",
721
650
  "type": "uint256"
722
- },
723
- {
724
- "internalType": "bytes",
725
- "name": "data",
726
- "type": "bytes"
727
651
  }
728
652
  ],
729
- "name": "flash",
730
- "outputs": [],
731
- "stateMutability": "nonpayable",
653
+ "stateMutability": "view",
732
654
  "type": "function"
733
655
  },
734
656
  {
735
657
  "inputs": [
658
+ {
659
+ "internalType": "address",
660
+ "name": "",
661
+ "type": "address"
662
+ }
663
+ ],
664
+ "name": "__RESERVED__OLD_TOLERANCE",
665
+ "outputs": [
736
666
  {
737
667
  "internalType": "uint16",
738
- "name": "observationCardinalityNext",
668
+ "name": "",
739
669
  "type": "uint16"
740
670
  }
741
671
  ],
742
- "name": "increaseObservationCardinalityNext",
743
- "outputs": [],
744
- "stateMutability": "nonpayable",
672
+ "stateMutability": "view",
745
673
  "type": "function"
746
674
  },
747
675
  {
748
676
  "inputs": [
749
677
  {
750
678
  "internalType": "address",
751
- "name": "_factory",
679
+ "name": "",
752
680
  "type": "address"
753
- },
681
+ }
682
+ ],
683
+ "name": "__RESERVED__OLD_TWAP_INTERVAL",
684
+ "outputs": [
754
685
  {
755
- "internalType": "address",
756
- "name": "_nfpManager",
757
- "type": "address"
758
- },
686
+ "internalType": "uint32",
687
+ "name": "",
688
+ "type": "uint32"
689
+ }
690
+ ],
691
+ "stateMutability": "view",
692
+ "type": "function"
693
+ },
694
+ {
695
+ "inputs": [],
696
+ "name": "__RESERVED__OLD_WETH",
697
+ "outputs": [
759
698
  {
760
699
  "internalType": "address",
761
- "name": "_veRam",
700
+ "name": "",
762
701
  "type": "address"
763
- },
702
+ }
703
+ ],
704
+ "stateMutability": "view",
705
+ "type": "function"
706
+ },
707
+ {
708
+ "inputs": [],
709
+ "name": "__RESERVED__SLOT_6_USED_IN_PREVIOUS_VERSIONS",
710
+ "outputs": [
711
+ {
712
+ "internalType": "uint256",
713
+ "name": "",
714
+ "type": "uint256"
715
+ }
716
+ ],
717
+ "stateMutability": "view",
718
+ "type": "function"
719
+ },
720
+ {
721
+ "inputs": [
764
722
  {
765
723
  "internalType": "address",
766
- "name": "_voter",
724
+ "name": "token",
767
725
  "type": "address"
768
726
  },
769
727
  {
770
- "internalType": "address",
771
- "name": "_token0",
772
- "type": "address"
728
+ "internalType": "uint256",
729
+ "name": "amount",
730
+ "type": "uint256"
773
731
  },
774
732
  {
775
733
  "internalType": "address",
776
- "name": "_token1",
734
+ "name": "to",
777
735
  "type": "address"
778
- },
779
- {
780
- "internalType": "uint24",
781
- "name": "_fee",
782
- "type": "uint24"
783
- },
784
- {
785
- "internalType": "int24",
786
- "name": "_tickSpacing",
787
- "type": "int24"
788
736
  }
789
737
  ],
790
- "name": "initialize",
738
+ "name": "approve",
791
739
  "outputs": [],
792
740
  "stateMutability": "nonpayable",
793
741
  "type": "function"
@@ -795,19 +743,75 @@
795
743
  {
796
744
  "inputs": [
797
745
  {
798
- "internalType": "uint160",
799
- "name": "sqrtPriceX96",
800
- "type": "uint160"
746
+ "components": [
747
+ {
748
+ "internalType": "address",
749
+ "name": "tokenIn",
750
+ "type": "address"
751
+ },
752
+ {
753
+ "internalType": "address",
754
+ "name": "tokenOut",
755
+ "type": "address"
756
+ },
757
+ {
758
+ "internalType": "uint256",
759
+ "name": "amountInMax",
760
+ "type": "uint256"
761
+ },
762
+ {
763
+ "internalType": "uint256",
764
+ "name": "amountOut",
765
+ "type": "uint256"
766
+ },
767
+ {
768
+ "internalType": "bool",
769
+ "name": "wrapUnwrap",
770
+ "type": "bool"
771
+ },
772
+ {
773
+ "internalType": "address",
774
+ "name": "to",
775
+ "type": "address"
776
+ },
777
+ {
778
+ "internalType": "uint32",
779
+ "name": "submitDeadline",
780
+ "type": "uint32"
781
+ }
782
+ ],
783
+ "internalType": "struct ITwapRelayer.BuyParams",
784
+ "name": "buyParams",
785
+ "type": "tuple"
786
+ }
787
+ ],
788
+ "name": "buy",
789
+ "outputs": [
790
+ {
791
+ "internalType": "uint256",
792
+ "name": "orderId",
793
+ "type": "uint256"
801
794
  }
802
795
  ],
803
- "name": "initialize",
804
- "outputs": [],
805
- "stateMutability": "nonpayable",
796
+ "stateMutability": "payable",
797
+ "type": "function"
798
+ },
799
+ {
800
+ "inputs": [],
801
+ "name": "delay",
802
+ "outputs": [
803
+ {
804
+ "internalType": "address",
805
+ "name": "",
806
+ "type": "address"
807
+ }
808
+ ],
809
+ "stateMutability": "pure",
806
810
  "type": "function"
807
811
  },
808
812
  {
809
813
  "inputs": [],
810
- "name": "lastPeriod",
814
+ "name": "ethTransferGasCost",
811
815
  "outputs": [
812
816
  {
813
817
  "internalType": "uint256",
@@ -815,243 +819,240 @@
815
819
  "type": "uint256"
816
820
  }
817
821
  ],
818
- "stateMutability": "view",
822
+ "stateMutability": "pure",
819
823
  "type": "function"
820
824
  },
821
825
  {
822
826
  "inputs": [],
823
- "name": "liquidity",
827
+ "name": "executionGasLimit",
824
828
  "outputs": [
825
829
  {
826
- "internalType": "uint128",
830
+ "internalType": "uint256",
827
831
  "name": "",
828
- "type": "uint128"
832
+ "type": "uint256"
829
833
  }
830
834
  ],
831
- "stateMutability": "view",
835
+ "stateMutability": "pure",
832
836
  "type": "function"
833
837
  },
834
838
  {
835
839
  "inputs": [],
836
- "name": "maxLiquidityPerTick",
840
+ "name": "factory",
837
841
  "outputs": [
838
842
  {
839
- "internalType": "uint128",
843
+ "internalType": "address",
840
844
  "name": "",
841
- "type": "uint128"
845
+ "type": "address"
842
846
  }
843
847
  ],
844
- "stateMutability": "view",
848
+ "stateMutability": "pure",
845
849
  "type": "function"
846
850
  },
847
851
  {
848
852
  "inputs": [
849
853
  {
850
854
  "internalType": "address",
851
- "name": "recipient",
855
+ "name": "token0",
852
856
  "type": "address"
853
857
  },
854
858
  {
855
- "internalType": "int24",
856
- "name": "tickLower",
857
- "type": "int24"
859
+ "internalType": "address",
860
+ "name": "token1",
861
+ "type": "address"
862
+ }
863
+ ],
864
+ "name": "getPoolState",
865
+ "outputs": [
866
+ {
867
+ "internalType": "uint256",
868
+ "name": "price",
869
+ "type": "uint256"
858
870
  },
859
871
  {
860
- "internalType": "int24",
861
- "name": "tickUpper",
862
- "type": "int24"
872
+ "internalType": "uint256",
873
+ "name": "fee",
874
+ "type": "uint256"
863
875
  },
864
876
  {
865
- "internalType": "uint128",
866
- "name": "amount",
867
- "type": "uint128"
877
+ "internalType": "uint256",
878
+ "name": "limitMin0",
879
+ "type": "uint256"
868
880
  },
869
881
  {
870
- "internalType": "bytes",
871
- "name": "data",
872
- "type": "bytes"
873
- }
874
- ],
875
- "name": "mint",
876
- "outputs": [
882
+ "internalType": "uint256",
883
+ "name": "limitMax0",
884
+ "type": "uint256"
885
+ },
877
886
  {
878
887
  "internalType": "uint256",
879
- "name": "amount0",
888
+ "name": "limitMin1",
880
889
  "type": "uint256"
881
890
  },
882
891
  {
883
892
  "internalType": "uint256",
884
- "name": "amount1",
893
+ "name": "limitMax1",
885
894
  "type": "uint256"
886
895
  }
887
896
  ],
888
- "stateMutability": "nonpayable",
897
+ "stateMutability": "view",
889
898
  "type": "function"
890
899
  },
891
900
  {
892
901
  "inputs": [
893
902
  {
894
903
  "internalType": "address",
895
- "name": "recipient",
904
+ "name": "pair",
896
905
  "type": "address"
897
906
  },
898
907
  {
899
- "internalType": "uint256",
900
- "name": "index",
901
- "type": "uint256"
902
- },
903
- {
904
- "internalType": "int24",
905
- "name": "tickLower",
906
- "type": "int24"
907
- },
908
+ "internalType": "bool",
909
+ "name": "inverted",
910
+ "type": "bool"
911
+ }
912
+ ],
913
+ "name": "getPriceByPairAddress",
914
+ "outputs": [
908
915
  {
909
- "internalType": "int24",
910
- "name": "tickUpper",
911
- "type": "int24"
916
+ "internalType": "uint8",
917
+ "name": "xDecimals",
918
+ "type": "uint8"
912
919
  },
913
920
  {
914
- "internalType": "uint128",
915
- "name": "amount",
916
- "type": "uint128"
921
+ "internalType": "uint8",
922
+ "name": "yDecimals",
923
+ "type": "uint8"
917
924
  },
918
925
  {
919
926
  "internalType": "uint256",
920
- "name": "veRamTokenId",
927
+ "name": "price",
921
928
  "type": "uint256"
929
+ }
930
+ ],
931
+ "stateMutability": "view",
932
+ "type": "function"
933
+ },
934
+ {
935
+ "inputs": [
936
+ {
937
+ "internalType": "address",
938
+ "name": "tokenIn",
939
+ "type": "address"
922
940
  },
923
941
  {
924
- "internalType": "bytes",
925
- "name": "data",
926
- "type": "bytes"
942
+ "internalType": "address",
943
+ "name": "tokenOut",
944
+ "type": "address"
927
945
  }
928
946
  ],
929
- "name": "mint",
947
+ "name": "getPriceByTokenAddresses",
930
948
  "outputs": [
931
949
  {
932
950
  "internalType": "uint256",
933
- "name": "amount0",
934
- "type": "uint256"
935
- },
936
- {
937
- "internalType": "uint256",
938
- "name": "amount1",
951
+ "name": "price",
939
952
  "type": "uint256"
940
953
  }
941
954
  ],
942
- "stateMutability": "nonpayable",
955
+ "stateMutability": "view",
943
956
  "type": "function"
944
957
  },
945
958
  {
946
- "inputs": [],
947
- "name": "nfpManager",
948
- "outputs": [
959
+ "inputs": [
949
960
  {
950
961
  "internalType": "address",
951
962
  "name": "",
952
963
  "type": "address"
953
964
  }
954
965
  ],
955
- "stateMutability": "view",
966
+ "name": "getTokenLimitMaxMultiplier",
967
+ "outputs": [
968
+ {
969
+ "internalType": "uint256",
970
+ "name": "",
971
+ "type": "uint256"
972
+ }
973
+ ],
974
+ "stateMutability": "pure",
956
975
  "type": "function"
957
976
  },
958
977
  {
959
978
  "inputs": [
960
979
  {
961
- "internalType": "uint256",
962
- "name": "index",
963
- "type": "uint256"
980
+ "internalType": "address",
981
+ "name": "token",
982
+ "type": "address"
964
983
  }
965
984
  ],
966
- "name": "observations",
985
+ "name": "getTokenLimitMin",
967
986
  "outputs": [
968
987
  {
969
- "internalType": "uint32",
970
- "name": "blockTimestamp",
971
- "type": "uint32"
972
- },
973
- {
974
- "internalType": "int56",
975
- "name": "tickCumulative",
976
- "type": "int56"
977
- },
978
- {
979
- "internalType": "uint160",
980
- "name": "secondsPerLiquidityCumulativeX128",
981
- "type": "uint160"
982
- },
983
- {
984
- "internalType": "bool",
985
- "name": "initialized",
986
- "type": "bool"
987
- },
988
- {
989
- "internalType": "uint160",
990
- "name": "secondsPerBoostedLiquidityPeriodX128",
991
- "type": "uint160"
988
+ "internalType": "uint256",
989
+ "name": "",
990
+ "type": "uint256"
992
991
  }
993
992
  ],
994
- "stateMutability": "view",
993
+ "stateMutability": "pure",
995
994
  "type": "function"
996
995
  },
997
996
  {
998
997
  "inputs": [
999
998
  {
1000
- "internalType": "uint32[]",
1001
- "name": "secondsAgos",
1002
- "type": "uint32[]"
999
+ "internalType": "address",
1000
+ "name": "",
1001
+ "type": "address"
1003
1002
  }
1004
1003
  ],
1005
- "name": "observe",
1004
+ "name": "getTolerance",
1006
1005
  "outputs": [
1007
1006
  {
1008
- "internalType": "int56[]",
1009
- "name": "tickCumulatives",
1010
- "type": "int56[]"
1011
- },
1012
- {
1013
- "internalType": "uint160[]",
1014
- "name": "secondsPerLiquidityCumulativeX128s",
1015
- "type": "uint160[]"
1016
- },
1017
- {
1018
- "internalType": "uint160[]",
1019
- "name": "secondsPerBoostedLiquidityPeriodX128s",
1020
- "type": "uint160[]"
1007
+ "internalType": "uint16",
1008
+ "name": "",
1009
+ "type": "uint16"
1021
1010
  }
1022
1011
  ],
1023
- "stateMutability": "view",
1012
+ "stateMutability": "pure",
1024
1013
  "type": "function"
1025
1014
  },
1026
1015
  {
1027
1016
  "inputs": [
1017
+ {
1018
+ "internalType": "address",
1019
+ "name": "",
1020
+ "type": "address"
1021
+ }
1022
+ ],
1023
+ "name": "getTwapInterval",
1024
+ "outputs": [
1028
1025
  {
1029
1026
  "internalType": "uint32",
1030
- "name": "period",
1027
+ "name": "",
1031
1028
  "type": "uint32"
1032
- },
1033
- {
1034
- "internalType": "int24",
1035
- "name": "tickLower",
1036
- "type": "int24"
1037
- },
1038
- {
1039
- "internalType": "int24",
1040
- "name": "tickUpper",
1041
- "type": "int24"
1042
1029
  }
1043
1030
  ],
1044
- "name": "periodCumulativesInside",
1031
+ "stateMutability": "pure",
1032
+ "type": "function"
1033
+ },
1034
+ {
1035
+ "inputs": [],
1036
+ "name": "initialize",
1037
+ "outputs": [],
1038
+ "stateMutability": "nonpayable",
1039
+ "type": "function"
1040
+ },
1041
+ {
1042
+ "inputs": [],
1043
+ "name": "initializeLock",
1044
+ "outputs": [],
1045
+ "stateMutability": "nonpayable",
1046
+ "type": "function"
1047
+ },
1048
+ {
1049
+ "inputs": [],
1050
+ "name": "initialized",
1045
1051
  "outputs": [
1046
1052
  {
1047
- "internalType": "uint160",
1048
- "name": "secondsPerLiquidityInsideX128",
1049
- "type": "uint160"
1050
- },
1051
- {
1052
- "internalType": "uint160",
1053
- "name": "secondsPerBoostedLiquidityInsideX128",
1054
- "type": "uint160"
1053
+ "internalType": "uint8",
1054
+ "name": "",
1055
+ "type": "uint8"
1055
1056
  }
1056
1057
  ],
1057
1058
  "stateMutability": "view",
@@ -1060,42 +1061,49 @@
1060
1061
  {
1061
1062
  "inputs": [
1062
1063
  {
1063
- "internalType": "uint256",
1064
- "name": "period",
1065
- "type": "uint256"
1064
+ "internalType": "address",
1065
+ "name": "",
1066
+ "type": "address"
1066
1067
  }
1067
1068
  ],
1068
- "name": "periods",
1069
+ "name": "isOneInchRouterWhitelisted",
1069
1070
  "outputs": [
1070
1071
  {
1071
- "internalType": "uint32",
1072
- "name": "previousPeriod",
1073
- "type": "uint32"
1074
- },
1075
- {
1076
- "internalType": "int24",
1077
- "name": "startTick",
1078
- "type": "int24"
1079
- },
1080
- {
1081
- "internalType": "int24",
1082
- "name": "lastTick",
1083
- "type": "int24"
1084
- },
1072
+ "internalType": "bool",
1073
+ "name": "",
1074
+ "type": "bool"
1075
+ }
1076
+ ],
1077
+ "stateMutability": "view",
1078
+ "type": "function"
1079
+ },
1080
+ {
1081
+ "inputs": [
1085
1082
  {
1086
- "internalType": "uint160",
1087
- "name": "endSecondsPerLiquidityPeriodX128",
1088
- "type": "uint160"
1089
- },
1083
+ "internalType": "address",
1084
+ "name": "",
1085
+ "type": "address"
1086
+ }
1087
+ ],
1088
+ "name": "isPairEnabled",
1089
+ "outputs": [
1090
1090
  {
1091
- "internalType": "uint160",
1092
- "name": "endSecondsPerBoostedLiquidityPeriodX128",
1093
- "type": "uint160"
1094
- },
1091
+ "internalType": "bool",
1092
+ "name": "",
1093
+ "type": "bool"
1094
+ }
1095
+ ],
1096
+ "stateMutability": "view",
1097
+ "type": "function"
1098
+ },
1099
+ {
1100
+ "inputs": [],
1101
+ "name": "owner",
1102
+ "outputs": [
1095
1103
  {
1096
- "internalType": "uint32",
1097
- "name": "boostedInRange",
1098
- "type": "uint32"
1104
+ "internalType": "address",
1105
+ "name": "",
1106
+ "type": "address"
1099
1107
  }
1100
1108
  ],
1101
1109
  "stateMutability": "view",
@@ -1104,42 +1112,27 @@
1104
1112
  {
1105
1113
  "inputs": [
1106
1114
  {
1107
- "internalType": "uint256",
1108
- "name": "period",
1109
- "type": "uint256"
1115
+ "internalType": "address",
1116
+ "name": "tokenIn",
1117
+ "type": "address"
1110
1118
  },
1111
1119
  {
1112
1120
  "internalType": "address",
1113
- "name": "owner",
1121
+ "name": "tokenOut",
1114
1122
  "type": "address"
1115
1123
  },
1116
1124
  {
1117
1125
  "internalType": "uint256",
1118
- "name": "index",
1126
+ "name": "amountOut",
1119
1127
  "type": "uint256"
1120
- },
1121
- {
1122
- "internalType": "int24",
1123
- "name": "tickLower",
1124
- "type": "int24"
1125
- },
1126
- {
1127
- "internalType": "int24",
1128
- "name": "tickUpper",
1129
- "type": "int24"
1130
1128
  }
1131
1129
  ],
1132
- "name": "positionPeriodDebt",
1130
+ "name": "quoteBuy",
1133
1131
  "outputs": [
1134
1132
  {
1135
- "internalType": "int256",
1136
- "name": "secondsDebtX96",
1137
- "type": "int256"
1138
- },
1139
- {
1140
- "internalType": "int256",
1141
- "name": "boostedSecondsDebtX96",
1142
- "type": "int256"
1133
+ "internalType": "uint256",
1134
+ "name": "amountIn",
1135
+ "type": "uint256"
1143
1136
  }
1144
1137
  ],
1145
1138
  "stateMutability": "view",
@@ -1148,41 +1141,26 @@
1148
1141
  {
1149
1142
  "inputs": [
1150
1143
  {
1151
- "internalType": "uint256",
1152
- "name": "period",
1153
- "type": "uint256"
1144
+ "internalType": "address",
1145
+ "name": "tokenIn",
1146
+ "type": "address"
1154
1147
  },
1155
1148
  {
1156
1149
  "internalType": "address",
1157
- "name": "owner",
1150
+ "name": "tokenOut",
1158
1151
  "type": "address"
1159
1152
  },
1160
1153
  {
1161
1154
  "internalType": "uint256",
1162
- "name": "index",
1155
+ "name": "amountIn",
1163
1156
  "type": "uint256"
1164
- },
1165
- {
1166
- "internalType": "int24",
1167
- "name": "tickLower",
1168
- "type": "int24"
1169
- },
1170
- {
1171
- "internalType": "int24",
1172
- "name": "tickUpper",
1173
- "type": "int24"
1174
1157
  }
1175
1158
  ],
1176
- "name": "positionPeriodSecondsInRange",
1159
+ "name": "quoteSell",
1177
1160
  "outputs": [
1178
1161
  {
1179
1162
  "internalType": "uint256",
1180
- "name": "periodSecondsInsideX96",
1181
- "type": "uint256"
1182
- },
1183
- {
1184
- "internalType": "uint256",
1185
- "name": "periodBoostedSecondsInsideX96",
1163
+ "name": "amountOut",
1186
1164
  "type": "uint256"
1187
1165
  }
1188
1166
  ],
@@ -1192,60 +1170,67 @@
1192
1170
  {
1193
1171
  "inputs": [
1194
1172
  {
1195
- "internalType": "bytes32",
1196
- "name": "key",
1197
- "type": "bytes32"
1198
- }
1199
- ],
1200
- "name": "positions",
1201
- "outputs": [
1173
+ "internalType": "address",
1174
+ "name": "tokenIn",
1175
+ "type": "address"
1176
+ },
1202
1177
  {
1203
- "internalType": "uint128",
1204
- "name": "liquidity",
1205
- "type": "uint128"
1178
+ "internalType": "address",
1179
+ "name": "tokenOut",
1180
+ "type": "address"
1206
1181
  },
1207
1182
  {
1208
1183
  "internalType": "uint256",
1209
- "name": "feeGrowthInside0LastX128",
1184
+ "name": "amountIn",
1210
1185
  "type": "uint256"
1186
+ }
1187
+ ],
1188
+ "name": "rebalanceSellWithDelay",
1189
+ "outputs": [],
1190
+ "stateMutability": "nonpayable",
1191
+ "type": "function"
1192
+ },
1193
+ {
1194
+ "inputs": [
1195
+ {
1196
+ "internalType": "address",
1197
+ "name": "tokenIn",
1198
+ "type": "address"
1211
1199
  },
1212
1200
  {
1213
1201
  "internalType": "uint256",
1214
- "name": "feeGrowthInside1LastX128",
1202
+ "name": "amountIn",
1215
1203
  "type": "uint256"
1216
1204
  },
1217
1205
  {
1218
- "internalType": "uint128",
1219
- "name": "tokensOwed0",
1220
- "type": "uint128"
1221
- },
1222
- {
1223
- "internalType": "uint128",
1224
- "name": "tokensOwed1",
1225
- "type": "uint128"
1206
+ "internalType": "address",
1207
+ "name": "oneInchRouter",
1208
+ "type": "address"
1226
1209
  },
1227
1210
  {
1228
1211
  "internalType": "uint256",
1229
- "name": "attachedVeRamId",
1212
+ "name": "_gas",
1230
1213
  "type": "uint256"
1214
+ },
1215
+ {
1216
+ "internalType": "bytes",
1217
+ "name": "data",
1218
+ "type": "bytes"
1231
1219
  }
1232
1220
  ],
1233
- "stateMutability": "view",
1221
+ "name": "rebalanceSellWithOneInch",
1222
+ "outputs": [],
1223
+ "stateMutability": "nonpayable",
1234
1224
  "type": "function"
1235
1225
  },
1236
1226
  {
1237
1227
  "inputs": [],
1238
- "name": "protocolFees",
1228
+ "name": "rebalancer",
1239
1229
  "outputs": [
1240
1230
  {
1241
- "internalType": "uint128",
1242
- "name": "token0",
1243
- "type": "uint128"
1244
- },
1245
- {
1246
- "internalType": "uint128",
1247
- "name": "token1",
1248
- "type": "uint128"
1231
+ "internalType": "address",
1232
+ "name": "",
1233
+ "type": "address"
1249
1234
  }
1250
1235
  ],
1251
1236
  "stateMutability": "view",
@@ -1254,106 +1239,135 @@
1254
1239
  {
1255
1240
  "inputs": [
1256
1241
  {
1257
- "internalType": "bytes32[]",
1258
- "name": "slots",
1259
- "type": "bytes32[]"
1260
- }
1261
- ],
1262
- "name": "readStorage",
1242
+ "components": [
1243
+ {
1244
+ "internalType": "address",
1245
+ "name": "tokenIn",
1246
+ "type": "address"
1247
+ },
1248
+ {
1249
+ "internalType": "address",
1250
+ "name": "tokenOut",
1251
+ "type": "address"
1252
+ },
1253
+ {
1254
+ "internalType": "uint256",
1255
+ "name": "amountIn",
1256
+ "type": "uint256"
1257
+ },
1258
+ {
1259
+ "internalType": "uint256",
1260
+ "name": "amountOutMin",
1261
+ "type": "uint256"
1262
+ },
1263
+ {
1264
+ "internalType": "bool",
1265
+ "name": "wrapUnwrap",
1266
+ "type": "bool"
1267
+ },
1268
+ {
1269
+ "internalType": "address",
1270
+ "name": "to",
1271
+ "type": "address"
1272
+ },
1273
+ {
1274
+ "internalType": "uint32",
1275
+ "name": "submitDeadline",
1276
+ "type": "uint32"
1277
+ }
1278
+ ],
1279
+ "internalType": "struct ITwapRelayer.SellParams",
1280
+ "name": "sellParams",
1281
+ "type": "tuple"
1282
+ }
1283
+ ],
1284
+ "name": "sell",
1263
1285
  "outputs": [
1264
1286
  {
1265
- "internalType": "bytes32[]",
1266
- "name": "returnData",
1267
- "type": "bytes32[]"
1287
+ "internalType": "uint256",
1288
+ "name": "orderId",
1289
+ "type": "uint256"
1268
1290
  }
1269
1291
  ],
1270
- "stateMutability": "view",
1292
+ "stateMutability": "payable",
1271
1293
  "type": "function"
1272
1294
  },
1273
1295
  {
1274
- "inputs": [],
1275
- "name": "setFeeProtocol",
1296
+ "inputs": [
1297
+ {
1298
+ "internalType": "address",
1299
+ "name": "_owner",
1300
+ "type": "address"
1301
+ }
1302
+ ],
1303
+ "name": "setOwner",
1276
1304
  "outputs": [],
1277
1305
  "stateMutability": "nonpayable",
1278
1306
  "type": "function"
1279
1307
  },
1280
1308
  {
1281
- "inputs": [],
1282
- "name": "slot0",
1283
- "outputs": [
1284
- {
1285
- "internalType": "uint160",
1286
- "name": "sqrtPriceX96",
1287
- "type": "uint160"
1288
- },
1289
- {
1290
- "internalType": "int24",
1291
- "name": "tick",
1292
- "type": "int24"
1293
- },
1294
- {
1295
- "internalType": "uint16",
1296
- "name": "observationIndex",
1297
- "type": "uint16"
1298
- },
1299
- {
1300
- "internalType": "uint16",
1301
- "name": "observationCardinality",
1302
- "type": "uint16"
1303
- },
1304
- {
1305
- "internalType": "uint16",
1306
- "name": "observationCardinalityNext",
1307
- "type": "uint16"
1308
- },
1309
+ "inputs": [
1309
1310
  {
1310
- "internalType": "uint8",
1311
- "name": "feeProtocol",
1312
- "type": "uint8"
1311
+ "internalType": "address",
1312
+ "name": "pair",
1313
+ "type": "address"
1313
1314
  },
1314
1315
  {
1315
1316
  "internalType": "bool",
1316
- "name": "unlocked",
1317
+ "name": "enabled",
1317
1318
  "type": "bool"
1318
1319
  }
1319
1320
  ],
1320
- "stateMutability": "view",
1321
+ "name": "setPairEnabled",
1322
+ "outputs": [],
1323
+ "stateMutability": "nonpayable",
1321
1324
  "type": "function"
1322
1325
  },
1323
1326
  {
1324
1327
  "inputs": [
1325
1328
  {
1326
- "internalType": "int24",
1327
- "name": "tickLower",
1328
- "type": "int24"
1329
- },
1330
- {
1331
- "internalType": "int24",
1332
- "name": "tickUpper",
1333
- "type": "int24"
1329
+ "internalType": "address",
1330
+ "name": "_rebalancer",
1331
+ "type": "address"
1334
1332
  }
1335
1333
  ],
1336
- "name": "snapshotCumulativesInside",
1337
- "outputs": [
1334
+ "name": "setRebalancer",
1335
+ "outputs": [],
1336
+ "stateMutability": "nonpayable",
1337
+ "type": "function"
1338
+ },
1339
+ {
1340
+ "inputs": [
1338
1341
  {
1339
- "internalType": "int56",
1340
- "name": "tickCumulativeInside",
1341
- "type": "int56"
1342
+ "internalType": "address",
1343
+ "name": "pair",
1344
+ "type": "address"
1342
1345
  },
1343
1346
  {
1344
- "internalType": "uint160",
1345
- "name": "secondsPerLiquidityInsideX128",
1346
- "type": "uint160"
1347
- },
1347
+ "internalType": "uint256",
1348
+ "name": "fee",
1349
+ "type": "uint256"
1350
+ }
1351
+ ],
1352
+ "name": "setSwapFee",
1353
+ "outputs": [],
1354
+ "stateMutability": "nonpayable",
1355
+ "type": "function"
1356
+ },
1357
+ {
1358
+ "inputs": [
1348
1359
  {
1349
- "internalType": "uint160",
1350
- "name": "secondsPerBoostedLiquidityInsideX128",
1351
- "type": "uint160"
1352
- },
1360
+ "internalType": "address",
1361
+ "name": "",
1362
+ "type": "address"
1363
+ }
1364
+ ],
1365
+ "name": "swapFee",
1366
+ "outputs": [
1353
1367
  {
1354
- "internalType": "uint32",
1355
- "name": "secondsInside",
1356
- "type": "uint32"
1368
+ "internalType": "uint256",
1369
+ "name": "",
1370
+ "type": "uint256"
1357
1371
  }
1358
1372
  ],
1359
1373
  "stateMutability": "view",
@@ -1363,55 +1377,30 @@
1363
1377
  "inputs": [
1364
1378
  {
1365
1379
  "internalType": "address",
1366
- "name": "recipient",
1380
+ "name": "token",
1367
1381
  "type": "address"
1368
- },
1369
- {
1370
- "internalType": "bool",
1371
- "name": "zeroForOne",
1372
- "type": "bool"
1373
- },
1374
- {
1375
- "internalType": "int256",
1376
- "name": "amountSpecified",
1377
- "type": "int256"
1378
- },
1379
- {
1380
- "internalType": "uint160",
1381
- "name": "sqrtPriceLimitX96",
1382
- "type": "uint160"
1383
- },
1384
- {
1385
- "internalType": "bytes",
1386
- "name": "data",
1387
- "type": "bytes"
1388
1382
  }
1389
1383
  ],
1390
- "name": "swap",
1384
+ "name": "tokenLimitMaxMultiplier",
1391
1385
  "outputs": [
1392
1386
  {
1393
- "internalType": "int256",
1394
- "name": "amount0",
1395
- "type": "int256"
1396
- },
1397
- {
1398
- "internalType": "int256",
1399
- "name": "amount1",
1400
- "type": "int256"
1387
+ "internalType": "uint256",
1388
+ "name": "",
1389
+ "type": "uint256"
1401
1390
  }
1402
1391
  ],
1403
- "stateMutability": "nonpayable",
1392
+ "stateMutability": "pure",
1404
1393
  "type": "function"
1405
1394
  },
1406
1395
  {
1407
1396
  "inputs": [
1408
1397
  {
1409
- "internalType": "int16",
1410
- "name": "tick",
1411
- "type": "int16"
1398
+ "internalType": "address",
1399
+ "name": "token",
1400
+ "type": "address"
1412
1401
  }
1413
1402
  ],
1414
- "name": "tickBitmap",
1403
+ "name": "tokenLimitMin",
1415
1404
  "outputs": [
1416
1405
  {
1417
1406
  "internalType": "uint256",
@@ -1419,89 +1408,63 @@
1419
1408
  "type": "uint256"
1420
1409
  }
1421
1410
  ],
1422
- "stateMutability": "view",
1411
+ "stateMutability": "pure",
1423
1412
  "type": "function"
1424
1413
  },
1425
1414
  {
1426
- "inputs": [],
1427
- "name": "tickSpacing",
1415
+ "inputs": [
1416
+ {
1417
+ "internalType": "address",
1418
+ "name": "pair",
1419
+ "type": "address"
1420
+ }
1421
+ ],
1422
+ "name": "tolerance",
1428
1423
  "outputs": [
1429
1424
  {
1430
- "internalType": "int24",
1425
+ "internalType": "uint16",
1431
1426
  "name": "",
1432
- "type": "int24"
1427
+ "type": "uint16"
1433
1428
  }
1434
1429
  ],
1435
- "stateMutability": "view",
1430
+ "stateMutability": "pure",
1436
1431
  "type": "function"
1437
1432
  },
1438
1433
  {
1439
1434
  "inputs": [
1440
1435
  {
1441
- "internalType": "int24",
1442
- "name": "tick",
1443
- "type": "int24"
1436
+ "internalType": "address",
1437
+ "name": "pair",
1438
+ "type": "address"
1444
1439
  }
1445
1440
  ],
1446
- "name": "ticks",
1441
+ "name": "twapInterval",
1447
1442
  "outputs": [
1448
- {
1449
- "internalType": "uint128",
1450
- "name": "liquidityGross",
1451
- "type": "uint128"
1452
- },
1453
- {
1454
- "internalType": "int128",
1455
- "name": "liquidityNet",
1456
- "type": "int128"
1457
- },
1458
- {
1459
- "internalType": "uint128",
1460
- "name": "boostedLiquidityGross",
1461
- "type": "uint128"
1462
- },
1463
- {
1464
- "internalType": "int128",
1465
- "name": "boostedLiquidityNet",
1466
- "type": "int128"
1467
- },
1468
- {
1469
- "internalType": "uint256",
1470
- "name": "feeGrowthOutside0X128",
1471
- "type": "uint256"
1472
- },
1473
- {
1474
- "internalType": "uint256",
1475
- "name": "feeGrowthOutside1X128",
1476
- "type": "uint256"
1477
- },
1478
- {
1479
- "internalType": "int56",
1480
- "name": "tickCumulativeOutside",
1481
- "type": "int56"
1482
- },
1483
- {
1484
- "internalType": "uint160",
1485
- "name": "secondsPerLiquidityOutsideX128",
1486
- "type": "uint160"
1487
- },
1488
1443
  {
1489
1444
  "internalType": "uint32",
1490
- "name": "secondsOutside",
1445
+ "name": "",
1491
1446
  "type": "uint32"
1492
- },
1447
+ }
1448
+ ],
1449
+ "stateMutability": "pure",
1450
+ "type": "function"
1451
+ },
1452
+ {
1453
+ "inputs": [
1493
1454
  {
1494
- "internalType": "bool",
1495
- "name": "initialized",
1496
- "type": "bool"
1455
+ "internalType": "uint256",
1456
+ "name": "amount",
1457
+ "type": "uint256"
1497
1458
  }
1498
1459
  ],
1499
- "stateMutability": "view",
1460
+ "name": "unwrapWeth",
1461
+ "outputs": [],
1462
+ "stateMutability": "nonpayable",
1500
1463
  "type": "function"
1501
1464
  },
1502
1465
  {
1503
1466
  "inputs": [],
1504
- "name": "token0",
1467
+ "name": "weth",
1505
1468
  "outputs": [
1506
1469
  {
1507
1470
  "internalType": "address",
@@ -1509,46 +1472,65 @@
1509
1472
  "type": "address"
1510
1473
  }
1511
1474
  ],
1512
- "stateMutability": "view",
1475
+ "stateMutability": "pure",
1513
1476
  "type": "function"
1514
1477
  },
1515
1478
  {
1516
- "inputs": [],
1517
- "name": "token1",
1518
- "outputs": [
1479
+ "inputs": [
1519
1480
  {
1520
1481
  "internalType": "address",
1521
- "name": "",
1482
+ "name": "oneInchRouter",
1522
1483
  "type": "address"
1484
+ },
1485
+ {
1486
+ "internalType": "bool",
1487
+ "name": "whitelisted",
1488
+ "type": "bool"
1523
1489
  }
1524
1490
  ],
1525
- "stateMutability": "view",
1491
+ "name": "whitelistOneInchRouter",
1492
+ "outputs": [],
1493
+ "stateMutability": "nonpayable",
1526
1494
  "type": "function"
1527
1495
  },
1528
1496
  {
1529
- "inputs": [],
1530
- "name": "veRam",
1531
- "outputs": [
1497
+ "inputs": [
1532
1498
  {
1533
1499
  "internalType": "address",
1534
- "name": "",
1500
+ "name": "token",
1501
+ "type": "address"
1502
+ },
1503
+ {
1504
+ "internalType": "uint256",
1505
+ "name": "amount",
1506
+ "type": "uint256"
1507
+ },
1508
+ {
1509
+ "internalType": "address",
1510
+ "name": "to",
1535
1511
  "type": "address"
1536
1512
  }
1537
1513
  ],
1538
- "stateMutability": "view",
1514
+ "name": "withdraw",
1515
+ "outputs": [],
1516
+ "stateMutability": "nonpayable",
1539
1517
  "type": "function"
1540
1518
  },
1541
1519
  {
1542
- "inputs": [],
1543
- "name": "voter",
1544
- "outputs": [
1520
+ "inputs": [
1545
1521
  {
1546
- "internalType": "address",
1547
- "name": "",
1548
- "type": "address"
1522
+ "internalType": "uint256",
1523
+ "name": "amount",
1524
+ "type": "uint256"
1549
1525
  }
1550
1526
  ],
1551
- "stateMutability": "view",
1527
+ "name": "wrapEth",
1528
+ "outputs": [],
1529
+ "stateMutability": "nonpayable",
1552
1530
  "type": "function"
1531
+ },
1532
+ {
1533
+ "stateMutability": "payable",
1534
+ "type": "receive"
1553
1535
  }
1554
1536
  ]