@paraswap/dex-lib 4.1.9 → 4.1.10

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 (318) hide show
  1. package/.idea/aws.xml +17 -0
  2. package/.idea/codeStyles/Project.xml +4 -44
  3. package/.idea/codeStyles/codeStyleConfig.xml +1 -1
  4. package/.idea/misc.xml +6 -0
  5. package/.idea/paraswap-dex-lib.iml +4 -7
  6. package/.idea/prettier.xml +1 -1
  7. package/build/abi/AaveV1_lending_pool.json +27 -0
  8. package/build/abi/integral/factory.json +333 -0
  9. package/build/abi/integral/oracle.json +501 -0
  10. package/build/abi/integral/pool.json +1041 -0
  11. package/build/abi/integral/relayer.json +1536 -0
  12. package/build/abi/platypus/asset.json +490 -0
  13. package/build/abi/platypus/avax-pool.json +820 -0
  14. package/build/abi/platypus/oracle.json +119 -0
  15. package/build/abi/platypus/pool.json +677 -0
  16. package/build/abi/smardex/all/smardex-router.json +648 -0
  17. package/build/abi/smardex/layer-1/smardex-factory.json +242 -0
  18. package/build/abi/smardex/layer-1/smardex-pool.json +506 -0
  19. package/build/abi/smardex/layer-2/smardex-factory.json +185 -0
  20. package/build/abi/smardex/layer-2/smardex-pool.json +578 -0
  21. package/build/abi/swaap-v1/pool.json +1346 -0
  22. package/build/abi/uniswap-v4/pool-manager.abi.json +1366 -0
  23. package/build/abi/uniswap-v4/quoter.abi.json +461 -0
  24. package/build/abi/uniswap-v4/router.abi.json +230 -0
  25. package/build/abi/uniswap-v4/state-view.abi.json +365 -0
  26. package/build/dex/aave-v1/aave-v1.d.ts +33 -0
  27. package/build/dex/aave-v1/aave-v1.js +158 -0
  28. package/build/dex/aave-v1/aave-v1.js.map +1 -0
  29. package/build/dex/aave-v1/config.d.ts +11 -0
  30. package/build/dex/aave-v1/config.js +20 -0
  31. package/build/dex/aave-v1/config.js.map +1 -0
  32. package/build/dex/aave-v1/tokens-mainnet.json +134 -0
  33. package/build/dex/aave-v1/tokens.d.ts +3 -0
  34. package/build/dex/aave-v1/tokens.js +50 -0
  35. package/build/dex/aave-v1/tokens.js.map +1 -0
  36. package/build/dex/aave-v1/types.d.ts +12 -0
  37. package/build/dex/aave-v1/types.js +3 -0
  38. package/build/dex/aave-v1/types.js.map +1 -0
  39. package/build/dex/aave-v3-stata/config.js +8 -8
  40. package/build/dex/aave-v3-stata/config.js.map +1 -1
  41. package/build/dex/aave-v3-stata-v2/aave-v3-stata-v2.js +2 -2
  42. package/build/dex/aave-v3-stata-v2/aave-v3-stata-v2.js.map +1 -1
  43. package/build/dex/aave-v3-stata-v2/config.js +31 -24
  44. package/build/dex/aave-v3-stata-v2/config.js.map +1 -1
  45. package/build/dex/aave-v3-stata-v2/types.d.ts +3 -2
  46. package/build/dex/aave-v3-stata-v2/types.js.map +1 -1
  47. package/build/dex/aave-v3-stata-v2/utils.d.ts +2 -2
  48. package/build/dex/aave-v3-stata-v2/utils.js +7 -6
  49. package/build/dex/aave-v3-stata-v2/utils.js.map +1 -1
  50. package/build/dex/bProtocol.d.ts +18 -0
  51. package/build/dex/bProtocol.js +39 -0
  52. package/build/dex/bProtocol.js.map +1 -0
  53. package/build/dex/bancor.d.ts +26 -0
  54. package/build/dex/bancor.js +58 -0
  55. package/build/dex/bancor.js.map +1 -0
  56. package/build/dex/compound.d.ts +18 -0
  57. package/build/dex/compound.js +46 -0
  58. package/build/dex/compound.js.map +1 -0
  59. package/build/dex/curve-v2.d.ts +58 -0
  60. package/build/dex/curve-v2.js +180 -0
  61. package/build/dex/curve-v2.js.map +1 -0
  62. package/build/dex/dodo-v1.d.ts +33 -0
  63. package/build/dex/dodo-v1.js +63 -0
  64. package/build/dex/dodo-v1.js.map +1 -0
  65. package/build/dex/fluid-dex/fluid-dex-generate-pool.d.ts +49 -0
  66. package/build/dex/fluid-dex/fluid-dex-generate-pool.js +104 -0
  67. package/build/dex/fluid-dex/fluid-dex-generate-pool.js.map +1 -0
  68. package/build/dex/integral/config.d.ts +4 -0
  69. package/build/dex/integral/config.js +20 -0
  70. package/build/dex/integral/config.js.map +1 -0
  71. package/build/dex/integral/context.d.ts +40 -0
  72. package/build/dex/integral/context.js +158 -0
  73. package/build/dex/integral/context.js.map +1 -0
  74. package/build/dex/integral/integral-factory.d.ts +24 -0
  75. package/build/dex/integral/integral-factory.js +95 -0
  76. package/build/dex/integral/integral-factory.js.map +1 -0
  77. package/build/dex/integral/integral-pool.d.ts +50 -0
  78. package/build/dex/integral/integral-pool.js +149 -0
  79. package/build/dex/integral/integral-pool.js.map +1 -0
  80. package/build/dex/integral/integral-pricing.d.ts +18 -0
  81. package/build/dex/integral/integral-pricing.js +114 -0
  82. package/build/dex/integral/integral-pricing.js.map +1 -0
  83. package/build/dex/integral/integral-relayer.d.ts +42 -0
  84. package/build/dex/integral/integral-relayer.js +192 -0
  85. package/build/dex/integral/integral-relayer.js.map +1 -0
  86. package/build/dex/integral/integral-token.d.ts +27 -0
  87. package/build/dex/integral/integral-token.js +59 -0
  88. package/build/dex/integral/integral-token.js.map +1 -0
  89. package/build/dex/integral/integral.d.ts +41 -0
  90. package/build/dex/integral/integral.js +376 -0
  91. package/build/dex/integral/integral.js.map +1 -0
  92. package/build/dex/integral/types.d.ts +85 -0
  93. package/build/dex/integral/types.js +9 -0
  94. package/build/dex/integral/types.js.map +1 -0
  95. package/build/dex/integral/utils-e2e.d.ts +9 -0
  96. package/build/dex/integral/utils-e2e.js +131 -0
  97. package/build/dex/integral/utils-e2e.js.map +1 -0
  98. package/build/dex/integral/utils.d.ts +17 -0
  99. package/build/dex/integral/utils.js +94 -0
  100. package/build/dex/integral/utils.js.map +1 -0
  101. package/build/dex/jarvis.d.ts +1 -2
  102. package/build/dex/jarvis.js +0 -58
  103. package/build/dex/jarvis.js.map +1 -1
  104. package/build/dex/lido.d.ts +19 -0
  105. package/build/dex/lido.js +42 -0
  106. package/build/dex/lido.js.map +1 -0
  107. package/build/dex/m-token/config.d.ts +3 -0
  108. package/build/dex/m-token/config.js +19 -0
  109. package/build/dex/m-token/config.js.map +1 -0
  110. package/build/dex/m-token/m-token.d.ts +29 -0
  111. package/build/dex/m-token/m-token.js +145 -0
  112. package/build/dex/m-token/m-token.js.map +1 -0
  113. package/build/dex/m-token/m-wrapped-m.d.ts +17 -0
  114. package/build/dex/m-token/m-wrapped-m.js +50 -0
  115. package/build/dex/m-token/m-wrapped-m.js.map +1 -0
  116. package/build/dex/m-token/types.d.ts +12 -0
  117. package/build/dex/m-token/types.js +3 -0
  118. package/build/dex/m-token/types.js.map +1 -0
  119. package/build/dex/onebit.d.ts +25 -0
  120. package/build/dex/onebit.js +42 -0
  121. package/build/dex/onebit.js.map +1 -0
  122. package/build/dex/platypus/asset.d.ts +14 -0
  123. package/build/dex/platypus/asset.js +97 -0
  124. package/build/dex/platypus/asset.js.map +1 -0
  125. package/build/dex/platypus/config.d.ts +11 -0
  126. package/build/dex/platypus/config.js +69 -0
  127. package/build/dex/platypus/config.js.map +1 -0
  128. package/build/dex/platypus/platypus.d.ts +62 -0
  129. package/build/dex/platypus/platypus.js +442 -0
  130. package/build/dex/platypus/platypus.js.map +1 -0
  131. package/build/dex/platypus/pool-avax.d.ts +8 -0
  132. package/build/dex/platypus/pool-avax.js +54 -0
  133. package/build/dex/platypus/pool-avax.js.map +1 -0
  134. package/build/dex/platypus/pool-base.d.ts +19 -0
  135. package/build/dex/platypus/pool-base.js +86 -0
  136. package/build/dex/platypus/pool-base.js.map +1 -0
  137. package/build/dex/platypus/pool-pure.d.ts +8 -0
  138. package/build/dex/platypus/pool-pure.js +37 -0
  139. package/build/dex/platypus/pool-pure.js.map +1 -0
  140. package/build/dex/platypus/pool-subscriber.d.ts +14 -0
  141. package/build/dex/platypus/pool-subscriber.js +167 -0
  142. package/build/dex/platypus/pool-subscriber.js.map +1 -0
  143. package/build/dex/platypus/pool.d.ts +8 -0
  144. package/build/dex/platypus/pool.js +58 -0
  145. package/build/dex/platypus/pool.js.map +1 -0
  146. package/build/dex/platypus/types.d.ts +92 -0
  147. package/build/dex/platypus/types.js +10 -0
  148. package/build/dex/platypus/types.js.map +1 -0
  149. package/build/dex/quickswap/spiritswap-v3.d.ts +6 -0
  150. package/build/dex/quickswap/spiritswap-v3.js +19 -0
  151. package/build/dex/quickswap/spiritswap-v3.js.map +1 -0
  152. package/build/dex/smardex/config.d.ts +4 -0
  153. package/build/dex/smardex/config.js +64 -0
  154. package/build/dex/smardex/config.js.map +1 -0
  155. package/build/dex/smardex/constants.d.ts +18 -0
  156. package/build/dex/smardex/constants.js +33 -0
  157. package/build/dex/smardex/constants.js.map +1 -0
  158. package/build/dex/smardex/sdk/constants.d.ts +6 -0
  159. package/build/dex/smardex/sdk/constants.js +13 -0
  160. package/build/dex/smardex/sdk/constants.js.map +1 -0
  161. package/build/dex/smardex/sdk/core.d.ts +113 -0
  162. package/build/dex/smardex/sdk/core.js +499 -0
  163. package/build/dex/smardex/sdk/core.js.map +1 -0
  164. package/build/dex/smardex/sdk/errors.d.ts +15 -0
  165. package/build/dex/smardex/sdk/errors.js +22 -0
  166. package/build/dex/smardex/sdk/errors.js.map +1 -0
  167. package/build/dex/smardex/sdk/types.d.ts +62 -0
  168. package/build/dex/smardex/sdk/types.js +3 -0
  169. package/build/dex/smardex/sdk/types.js.map +1 -0
  170. package/build/dex/smardex/sdk/utils.d.ts +44 -0
  171. package/build/dex/smardex/sdk/utils.js +133 -0
  172. package/build/dex/smardex/sdk/utils.js.map +1 -0
  173. package/build/dex/smardex/smardex-event-pool.d.ts +28 -0
  174. package/build/dex/smardex/smardex-event-pool.js +119 -0
  175. package/build/dex/smardex/smardex-event-pool.js.map +1 -0
  176. package/build/dex/smardex/smardex.d.ts +65 -0
  177. package/build/dex/smardex/smardex.js +519 -0
  178. package/build/dex/smardex/smardex.js.map +1 -0
  179. package/build/dex/smardex/types.d.ts +55 -0
  180. package/build/dex/smardex/types.js +3 -0
  181. package/build/dex/smardex/types.js.map +1 -0
  182. package/build/dex/smoothy.d.ts +26 -0
  183. package/build/dex/smoothy.js +48 -0
  184. package/build/dex/smoothy.js.map +1 -0
  185. package/build/dex/solidly/forks-override/cone.d.ts +22 -0
  186. package/build/dex/solidly/forks-override/cone.js +53 -0
  187. package/build/dex/solidly/forks-override/cone.js.map +1 -0
  188. package/build/dex/solidly/forks-override/solisnek.d.ts +8 -0
  189. package/build/dex/solidly/forks-override/solisnek.js +15 -0
  190. package/build/dex/solidly/forks-override/solisnek.js.map +1 -0
  191. package/build/dex/stable-pool.d.ts +28 -0
  192. package/build/dex/stable-pool.js +62 -0
  193. package/build/dex/stable-pool.js.map +1 -0
  194. package/build/dex/swaap-v1/config.d.ts +17 -0
  195. package/build/dex/swaap-v1/config.js +56 -0
  196. package/build/dex/swaap-v1/config.js.map +1 -0
  197. package/build/dex/swaap-v1/constants.d.ts +6 -0
  198. package/build/dex/swaap-v1/constants.js +17 -0
  199. package/build/dex/swaap-v1/constants.js.map +1 -0
  200. package/build/dex/swaap-v1/libraries/ChainlinkUtils.d.ts +25 -0
  201. package/build/dex/swaap-v1/libraries/ChainlinkUtils.js +62 -0
  202. package/build/dex/swaap-v1/libraries/ChainlinkUtils.js.map +1 -0
  203. package/build/dex/swaap-v1/libraries/Const.d.ts +18 -0
  204. package/build/dex/swaap-v1/libraries/Const.js +26 -0
  205. package/build/dex/swaap-v1/libraries/Const.js.map +1 -0
  206. package/build/dex/swaap-v1/libraries/GeometricBrownianMotion.d.ts +77 -0
  207. package/build/dex/swaap-v1/libraries/GeometricBrownianMotion.js +316 -0
  208. package/build/dex/swaap-v1/libraries/GeometricBrownianMotion.js.map +1 -0
  209. package/build/dex/swaap-v1/libraries/LogExpMath.d.ts +75 -0
  210. package/build/dex/swaap-v1/libraries/LogExpMath.js +418 -0
  211. package/build/dex/swaap-v1/libraries/LogExpMath.js.map +1 -0
  212. package/build/dex/swaap-v1/libraries/MathMMM.d.ts +185 -0
  213. package/build/dex/swaap-v1/libraries/MathMMM.js +453 -0
  214. package/build/dex/swaap-v1/libraries/MathMMM.js.map +1 -0
  215. package/build/dex/swaap-v1/libraries/Num.d.ts +31 -0
  216. package/build/dex/swaap-v1/libraries/Num.js +167 -0
  217. package/build/dex/swaap-v1/libraries/Num.js.map +1 -0
  218. package/build/dex/swaap-v1/libraries/PoolQuotations.d.ts +23 -0
  219. package/build/dex/swaap-v1/libraries/PoolQuotations.js +131 -0
  220. package/build/dex/swaap-v1/libraries/PoolQuotations.js.map +1 -0
  221. package/build/dex/swaap-v1/libraries/Struct.d.ts +56 -0
  222. package/build/dex/swaap-v1/libraries/Struct.js +3 -0
  223. package/build/dex/swaap-v1/libraries/Struct.js.map +1 -0
  224. package/build/dex/swaap-v1/swaap-v1-pool.d.ts +45 -0
  225. package/build/dex/swaap-v1/swaap-v1-pool.js +656 -0
  226. package/build/dex/swaap-v1/swaap-v1-pool.js.map +1 -0
  227. package/build/dex/swaap-v1/swaap-v1.d.ts +61 -0
  228. package/build/dex/swaap-v1/swaap-v1.js +369 -0
  229. package/build/dex/swaap-v1/swaap-v1.js.map +1 -0
  230. package/build/dex/swaap-v1/types.d.ts +106 -0
  231. package/build/dex/swaap-v1/types.js +9 -0
  232. package/build/dex/swaap-v1/types.js.map +1 -0
  233. package/build/dex/trader-joe-v2.1/optimizer.d.ts +2 -0
  234. package/build/dex/trader-joe-v2.1/optimizer.js +47 -0
  235. package/build/dex/trader-joe-v2.1/optimizer.js.map +1 -0
  236. package/build/dex/trader-joe-v2.1/trader-joe-v2.1-new.d.ts +7 -0
  237. package/build/dex/trader-joe-v2.1/trader-joe-v2.1-new.js +20 -0
  238. package/build/dex/trader-joe-v2.1/trader-joe-v2.1-new.js.map +1 -0
  239. package/build/dex/trader-joe-v2.1.d.ts +43 -0
  240. package/build/dex/trader-joe-v2.1.js +79 -0
  241. package/build/dex/trader-joe-v2.1.js.map +1 -0
  242. package/build/dex/uniswap-v4/config.d.ts +3 -0
  243. package/build/dex/uniswap-v4/config.js +58 -0
  244. package/build/dex/uniswap-v4/config.js.map +1 -0
  245. package/build/dex/uniswap-v4/constants.d.ts +7 -0
  246. package/build/dex/uniswap-v4/constants.js +18 -0
  247. package/build/dex/uniswap-v4/constants.js.map +1 -0
  248. package/build/dex/uniswap-v4/contract-math/BitMath.d.ts +4 -0
  249. package/build/dex/uniswap-v4/contract-math/BitMath.js +93 -0
  250. package/build/dex/uniswap-v4/contract-math/BitMath.js.map +1 -0
  251. package/build/dex/uniswap-v4/contract-math/FixedPoint128.d.ts +3 -0
  252. package/build/dex/uniswap-v4/contract-math/FixedPoint128.js +8 -0
  253. package/build/dex/uniswap-v4/contract-math/FixedPoint128.js.map +1 -0
  254. package/build/dex/uniswap-v4/contract-math/FixedPoint96.d.ts +4 -0
  255. package/build/dex/uniswap-v4/contract-math/FixedPoint96.js +9 -0
  256. package/build/dex/uniswap-v4/contract-math/FixedPoint96.js.map +1 -0
  257. package/build/dex/uniswap-v4/contract-math/FullMath.d.ts +4 -0
  258. package/build/dex/uniswap-v4/contract-math/FullMath.js +19 -0
  259. package/build/dex/uniswap-v4/contract-math/FullMath.js.map +1 -0
  260. package/build/dex/uniswap-v4/contract-math/LiquidityMath.d.ts +3 -0
  261. package/build/dex/uniswap-v4/contract-math/LiquidityMath.js +22 -0
  262. package/build/dex/uniswap-v4/contract-math/LiquidityMath.js.map +1 -0
  263. package/build/dex/uniswap-v4/contract-math/SqrtPriceMath.d.ts +10 -0
  264. package/build/dex/uniswap-v4/contract-math/SqrtPriceMath.js +91 -0
  265. package/build/dex/uniswap-v4/contract-math/SqrtPriceMath.js.map +1 -0
  266. package/build/dex/uniswap-v4/contract-math/SwapMath.d.ts +8 -0
  267. package/build/dex/uniswap-v4/contract-math/SwapMath.js +70 -0
  268. package/build/dex/uniswap-v4/contract-math/SwapMath.js.map +1 -0
  269. package/build/dex/uniswap-v4/contract-math/TickBitMap.d.ts +7 -0
  270. package/build/dex/uniswap-v4/contract-math/TickBitMap.js +86 -0
  271. package/build/dex/uniswap-v4/contract-math/TickBitMap.js.map +1 -0
  272. package/build/dex/uniswap-v4/contract-math/TickMath.d.ts +8 -0
  273. package/build/dex/uniswap-v4/contract-math/TickMath.js +162 -0
  274. package/build/dex/uniswap-v4/contract-math/TickMath.js.map +1 -0
  275. package/build/dex/uniswap-v4/contract-math/UnsafeMath.d.ts +3 -0
  276. package/build/dex/uniswap-v4/contract-math/UnsafeMath.js +10 -0
  277. package/build/dex/uniswap-v4/contract-math/UnsafeMath.js.map +1 -0
  278. package/build/dex/uniswap-v4/contract-math/uniswap-v4-math.d.ts +8 -0
  279. package/build/dex/uniswap-v4/contract-math/uniswap-v4-math.js +12 -0
  280. package/build/dex/uniswap-v4/contract-math/uniswap-v4-math.js.map +1 -0
  281. package/build/dex/uniswap-v4/encoder.d.ts +16 -0
  282. package/build/dex/uniswap-v4/encoder.js +104 -0
  283. package/build/dex/uniswap-v4/encoder.js.map +1 -0
  284. package/build/dex/uniswap-v4/subgraph.d.ts +5 -0
  285. package/build/dex/uniswap-v4/subgraph.js +80 -0
  286. package/build/dex/uniswap-v4/subgraph.js.map +1 -0
  287. package/build/dex/uniswap-v4/types.d.ts +64 -0
  288. package/build/dex/uniswap-v4/types.js +3 -0
  289. package/build/dex/uniswap-v4/types.js.map +1 -0
  290. package/build/dex/uniswap-v4/uniswap-v4-pool-manager.d.ts +30 -0
  291. package/build/dex/uniswap-v4/uniswap-v4-pool-manager.js +139 -0
  292. package/build/dex/uniswap-v4/uniswap-v4-pool-manager.js.map +1 -0
  293. package/build/dex/uniswap-v4/uniswap-v4.d.ts +38 -0
  294. package/build/dex/uniswap-v4/uniswap-v4.js +169 -0
  295. package/build/dex/uniswap-v4/uniswap-v4.js.map +1 -0
  296. package/build/dex/uniswap-v4/utils.d.ts +2 -0
  297. package/build/dex/uniswap-v4/utils.js +15 -0
  298. package/build/dex/uniswap-v4/utils.js.map +1 -0
  299. package/build/dex/zerox/index.d.ts +25 -3
  300. package/build/dex/zerox/index.js +42 -50
  301. package/build/dex/zerox/index.js.map +1 -1
  302. package/build/dex/zerox/types.d.ts +0 -29
  303. package/build/dex/zerox/types.js +1 -8
  304. package/build/dex/zerox/types.js.map +1 -1
  305. package/build/dex-helper/dummy-dex-helper.js +3 -0
  306. package/build/dex-helper/dummy-dex-helper.js.map +1 -1
  307. package/package.json +2 -2
  308. package/src/dex/aave-v3-stata/config.ts +8 -8
  309. package/src/dex/aave-v3-stata-v2/aave-v3-stata-v2-e2e.test.ts +5 -5
  310. package/src/dex/aave-v3-stata-v2/aave-v3-stata-v2.ts +2 -2
  311. package/src/dex/aave-v3-stata-v2/config.ts +31 -24
  312. package/src/dex/aave-v3-stata-v2/types.ts +3 -2
  313. package/src/dex/aave-v3-stata-v2/utils.ts +18 -10
  314. package/src/dex-helper/dummy-dex-helper.ts +10 -0
  315. package/tests/constants-e2e.ts +10 -0
  316. package/tests/utils-e2e.ts +0 -1
  317. package/.idea/inspectionProfiles/Project_Default.xml +0 -6
  318. package/scripts/get-uniswap-v3-dexes.ts +0 -64
@@ -0,0 +1,461 @@
1
+ [
2
+ {
3
+ "inputs": [
4
+ {
5
+ "internalType": "contract IPoolManager",
6
+ "name": "_poolManager",
7
+ "type": "address"
8
+ }
9
+ ],
10
+ "stateMutability": "nonpayable",
11
+ "type": "constructor"
12
+ },
13
+ {
14
+ "inputs": [
15
+ { "internalType": "PoolId", "name": "poolId", "type": "bytes32" }
16
+ ],
17
+ "name": "NotEnoughLiquidity",
18
+ "type": "error"
19
+ },
20
+ { "inputs": [], "name": "NotPoolManager", "type": "error" },
21
+ { "inputs": [], "name": "NotSelf", "type": "error" },
22
+ {
23
+ "inputs": [
24
+ { "internalType": "uint256", "name": "amount", "type": "uint256" }
25
+ ],
26
+ "name": "QuoteSwap",
27
+ "type": "error"
28
+ },
29
+ { "inputs": [], "name": "UnexpectedCallSuccess", "type": "error" },
30
+ {
31
+ "inputs": [
32
+ { "internalType": "bytes", "name": "revertData", "type": "bytes" }
33
+ ],
34
+ "name": "UnexpectedRevertBytes",
35
+ "type": "error"
36
+ },
37
+ {
38
+ "inputs": [
39
+ {
40
+ "components": [
41
+ {
42
+ "internalType": "Currency",
43
+ "name": "exactCurrency",
44
+ "type": "address"
45
+ },
46
+ {
47
+ "components": [
48
+ {
49
+ "internalType": "Currency",
50
+ "name": "intermediateCurrency",
51
+ "type": "address"
52
+ },
53
+ { "internalType": "uint24", "name": "fee", "type": "uint24" },
54
+ {
55
+ "internalType": "int24",
56
+ "name": "tickSpacing",
57
+ "type": "int24"
58
+ },
59
+ {
60
+ "internalType": "contract IHooks",
61
+ "name": "hooks",
62
+ "type": "address"
63
+ },
64
+ { "internalType": "bytes", "name": "hookData", "type": "bytes" }
65
+ ],
66
+ "internalType": "struct PathKey[]",
67
+ "name": "path",
68
+ "type": "tuple[]"
69
+ },
70
+ {
71
+ "internalType": "uint128",
72
+ "name": "exactAmount",
73
+ "type": "uint128"
74
+ }
75
+ ],
76
+ "internalType": "struct IV4Quoter.QuoteExactParams",
77
+ "name": "params",
78
+ "type": "tuple"
79
+ }
80
+ ],
81
+ "name": "_quoteExactInput",
82
+ "outputs": [{ "internalType": "bytes", "name": "", "type": "bytes" }],
83
+ "stateMutability": "nonpayable",
84
+ "type": "function"
85
+ },
86
+ {
87
+ "inputs": [
88
+ {
89
+ "components": [
90
+ {
91
+ "components": [
92
+ {
93
+ "internalType": "Currency",
94
+ "name": "currency0",
95
+ "type": "address"
96
+ },
97
+ {
98
+ "internalType": "Currency",
99
+ "name": "currency1",
100
+ "type": "address"
101
+ },
102
+ { "internalType": "uint24", "name": "fee", "type": "uint24" },
103
+ {
104
+ "internalType": "int24",
105
+ "name": "tickSpacing",
106
+ "type": "int24"
107
+ },
108
+ {
109
+ "internalType": "contract IHooks",
110
+ "name": "hooks",
111
+ "type": "address"
112
+ }
113
+ ],
114
+ "internalType": "struct PoolKey",
115
+ "name": "poolKey",
116
+ "type": "tuple"
117
+ },
118
+ { "internalType": "bool", "name": "zeroForOne", "type": "bool" },
119
+ {
120
+ "internalType": "uint128",
121
+ "name": "exactAmount",
122
+ "type": "uint128"
123
+ },
124
+ { "internalType": "bytes", "name": "hookData", "type": "bytes" }
125
+ ],
126
+ "internalType": "struct IV4Quoter.QuoteExactSingleParams",
127
+ "name": "params",
128
+ "type": "tuple"
129
+ }
130
+ ],
131
+ "name": "_quoteExactInputSingle",
132
+ "outputs": [{ "internalType": "bytes", "name": "", "type": "bytes" }],
133
+ "stateMutability": "nonpayable",
134
+ "type": "function"
135
+ },
136
+ {
137
+ "inputs": [
138
+ {
139
+ "components": [
140
+ {
141
+ "internalType": "Currency",
142
+ "name": "exactCurrency",
143
+ "type": "address"
144
+ },
145
+ {
146
+ "components": [
147
+ {
148
+ "internalType": "Currency",
149
+ "name": "intermediateCurrency",
150
+ "type": "address"
151
+ },
152
+ { "internalType": "uint24", "name": "fee", "type": "uint24" },
153
+ {
154
+ "internalType": "int24",
155
+ "name": "tickSpacing",
156
+ "type": "int24"
157
+ },
158
+ {
159
+ "internalType": "contract IHooks",
160
+ "name": "hooks",
161
+ "type": "address"
162
+ },
163
+ { "internalType": "bytes", "name": "hookData", "type": "bytes" }
164
+ ],
165
+ "internalType": "struct PathKey[]",
166
+ "name": "path",
167
+ "type": "tuple[]"
168
+ },
169
+ {
170
+ "internalType": "uint128",
171
+ "name": "exactAmount",
172
+ "type": "uint128"
173
+ }
174
+ ],
175
+ "internalType": "struct IV4Quoter.QuoteExactParams",
176
+ "name": "params",
177
+ "type": "tuple"
178
+ }
179
+ ],
180
+ "name": "_quoteExactOutput",
181
+ "outputs": [{ "internalType": "bytes", "name": "", "type": "bytes" }],
182
+ "stateMutability": "nonpayable",
183
+ "type": "function"
184
+ },
185
+ {
186
+ "inputs": [
187
+ {
188
+ "components": [
189
+ {
190
+ "components": [
191
+ {
192
+ "internalType": "Currency",
193
+ "name": "currency0",
194
+ "type": "address"
195
+ },
196
+ {
197
+ "internalType": "Currency",
198
+ "name": "currency1",
199
+ "type": "address"
200
+ },
201
+ { "internalType": "uint24", "name": "fee", "type": "uint24" },
202
+ {
203
+ "internalType": "int24",
204
+ "name": "tickSpacing",
205
+ "type": "int24"
206
+ },
207
+ {
208
+ "internalType": "contract IHooks",
209
+ "name": "hooks",
210
+ "type": "address"
211
+ }
212
+ ],
213
+ "internalType": "struct PoolKey",
214
+ "name": "poolKey",
215
+ "type": "tuple"
216
+ },
217
+ { "internalType": "bool", "name": "zeroForOne", "type": "bool" },
218
+ {
219
+ "internalType": "uint128",
220
+ "name": "exactAmount",
221
+ "type": "uint128"
222
+ },
223
+ { "internalType": "bytes", "name": "hookData", "type": "bytes" }
224
+ ],
225
+ "internalType": "struct IV4Quoter.QuoteExactSingleParams",
226
+ "name": "params",
227
+ "type": "tuple"
228
+ }
229
+ ],
230
+ "name": "_quoteExactOutputSingle",
231
+ "outputs": [{ "internalType": "bytes", "name": "", "type": "bytes" }],
232
+ "stateMutability": "nonpayable",
233
+ "type": "function"
234
+ },
235
+ {
236
+ "inputs": [],
237
+ "name": "poolManager",
238
+ "outputs": [
239
+ { "internalType": "contract IPoolManager", "name": "", "type": "address" }
240
+ ],
241
+ "stateMutability": "view",
242
+ "type": "function"
243
+ },
244
+ {
245
+ "inputs": [
246
+ {
247
+ "components": [
248
+ {
249
+ "internalType": "Currency",
250
+ "name": "exactCurrency",
251
+ "type": "address"
252
+ },
253
+ {
254
+ "components": [
255
+ {
256
+ "internalType": "Currency",
257
+ "name": "intermediateCurrency",
258
+ "type": "address"
259
+ },
260
+ { "internalType": "uint24", "name": "fee", "type": "uint24" },
261
+ {
262
+ "internalType": "int24",
263
+ "name": "tickSpacing",
264
+ "type": "int24"
265
+ },
266
+ {
267
+ "internalType": "contract IHooks",
268
+ "name": "hooks",
269
+ "type": "address"
270
+ },
271
+ { "internalType": "bytes", "name": "hookData", "type": "bytes" }
272
+ ],
273
+ "internalType": "struct PathKey[]",
274
+ "name": "path",
275
+ "type": "tuple[]"
276
+ },
277
+ {
278
+ "internalType": "uint128",
279
+ "name": "exactAmount",
280
+ "type": "uint128"
281
+ }
282
+ ],
283
+ "internalType": "struct IV4Quoter.QuoteExactParams",
284
+ "name": "params",
285
+ "type": "tuple"
286
+ }
287
+ ],
288
+ "name": "quoteExactInput",
289
+ "outputs": [
290
+ { "internalType": "uint256", "name": "amountOut", "type": "uint256" },
291
+ { "internalType": "uint256", "name": "gasEstimate", "type": "uint256" }
292
+ ],
293
+ "stateMutability": "nonpayable",
294
+ "type": "function"
295
+ },
296
+ {
297
+ "inputs": [
298
+ {
299
+ "components": [
300
+ {
301
+ "components": [
302
+ {
303
+ "internalType": "Currency",
304
+ "name": "currency0",
305
+ "type": "address"
306
+ },
307
+ {
308
+ "internalType": "Currency",
309
+ "name": "currency1",
310
+ "type": "address"
311
+ },
312
+ { "internalType": "uint24", "name": "fee", "type": "uint24" },
313
+ {
314
+ "internalType": "int24",
315
+ "name": "tickSpacing",
316
+ "type": "int24"
317
+ },
318
+ {
319
+ "internalType": "contract IHooks",
320
+ "name": "hooks",
321
+ "type": "address"
322
+ }
323
+ ],
324
+ "internalType": "struct PoolKey",
325
+ "name": "poolKey",
326
+ "type": "tuple"
327
+ },
328
+ { "internalType": "bool", "name": "zeroForOne", "type": "bool" },
329
+ {
330
+ "internalType": "uint128",
331
+ "name": "exactAmount",
332
+ "type": "uint128"
333
+ },
334
+ { "internalType": "bytes", "name": "hookData", "type": "bytes" }
335
+ ],
336
+ "internalType": "struct IV4Quoter.QuoteExactSingleParams",
337
+ "name": "params",
338
+ "type": "tuple"
339
+ }
340
+ ],
341
+ "name": "quoteExactInputSingle",
342
+ "outputs": [
343
+ { "internalType": "uint256", "name": "amountOut", "type": "uint256" },
344
+ { "internalType": "uint256", "name": "gasEstimate", "type": "uint256" }
345
+ ],
346
+ "stateMutability": "nonpayable",
347
+ "type": "function"
348
+ },
349
+ {
350
+ "inputs": [
351
+ {
352
+ "components": [
353
+ {
354
+ "internalType": "Currency",
355
+ "name": "exactCurrency",
356
+ "type": "address"
357
+ },
358
+ {
359
+ "components": [
360
+ {
361
+ "internalType": "Currency",
362
+ "name": "intermediateCurrency",
363
+ "type": "address"
364
+ },
365
+ { "internalType": "uint24", "name": "fee", "type": "uint24" },
366
+ {
367
+ "internalType": "int24",
368
+ "name": "tickSpacing",
369
+ "type": "int24"
370
+ },
371
+ {
372
+ "internalType": "contract IHooks",
373
+ "name": "hooks",
374
+ "type": "address"
375
+ },
376
+ { "internalType": "bytes", "name": "hookData", "type": "bytes" }
377
+ ],
378
+ "internalType": "struct PathKey[]",
379
+ "name": "path",
380
+ "type": "tuple[]"
381
+ },
382
+ {
383
+ "internalType": "uint128",
384
+ "name": "exactAmount",
385
+ "type": "uint128"
386
+ }
387
+ ],
388
+ "internalType": "struct IV4Quoter.QuoteExactParams",
389
+ "name": "params",
390
+ "type": "tuple"
391
+ }
392
+ ],
393
+ "name": "quoteExactOutput",
394
+ "outputs": [
395
+ { "internalType": "uint256", "name": "amountIn", "type": "uint256" },
396
+ { "internalType": "uint256", "name": "gasEstimate", "type": "uint256" }
397
+ ],
398
+ "stateMutability": "nonpayable",
399
+ "type": "function"
400
+ },
401
+ {
402
+ "inputs": [
403
+ {
404
+ "components": [
405
+ {
406
+ "components": [
407
+ {
408
+ "internalType": "Currency",
409
+ "name": "currency0",
410
+ "type": "address"
411
+ },
412
+ {
413
+ "internalType": "Currency",
414
+ "name": "currency1",
415
+ "type": "address"
416
+ },
417
+ { "internalType": "uint24", "name": "fee", "type": "uint24" },
418
+ {
419
+ "internalType": "int24",
420
+ "name": "tickSpacing",
421
+ "type": "int24"
422
+ },
423
+ {
424
+ "internalType": "contract IHooks",
425
+ "name": "hooks",
426
+ "type": "address"
427
+ }
428
+ ],
429
+ "internalType": "struct PoolKey",
430
+ "name": "poolKey",
431
+ "type": "tuple"
432
+ },
433
+ { "internalType": "bool", "name": "zeroForOne", "type": "bool" },
434
+ {
435
+ "internalType": "uint128",
436
+ "name": "exactAmount",
437
+ "type": "uint128"
438
+ },
439
+ { "internalType": "bytes", "name": "hookData", "type": "bytes" }
440
+ ],
441
+ "internalType": "struct IV4Quoter.QuoteExactSingleParams",
442
+ "name": "params",
443
+ "type": "tuple"
444
+ }
445
+ ],
446
+ "name": "quoteExactOutputSingle",
447
+ "outputs": [
448
+ { "internalType": "uint256", "name": "amountIn", "type": "uint256" },
449
+ { "internalType": "uint256", "name": "gasEstimate", "type": "uint256" }
450
+ ],
451
+ "stateMutability": "nonpayable",
452
+ "type": "function"
453
+ },
454
+ {
455
+ "inputs": [{ "internalType": "bytes", "name": "data", "type": "bytes" }],
456
+ "name": "unlockCallback",
457
+ "outputs": [{ "internalType": "bytes", "name": "", "type": "bytes" }],
458
+ "stateMutability": "nonpayable",
459
+ "type": "function"
460
+ }
461
+ ]