@paraswap/dex-lib 2.42.22 → 2.42.23

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 (225) hide show
  1. package/build/abi/hashflow/HashflowRouter.abi.json +816 -246
  2. package/build/abi/kyberswap-elastic/IAntiSnipAttackPositionManager.json +1276 -0
  3. package/build/abi/kyberswap-elastic/IFactory.json +550 -0
  4. package/build/abi/kyberswap-elastic/IPool.json +1042 -0
  5. package/build/abi/kyberswap-elastic/IQuoterV2.json +226 -0
  6. package/build/abi/kyberswap-elastic/IRouter.json +239 -0
  7. package/build/abi/kyberswap-elastic/TicksFeesReader.json +142 -0
  8. package/build/abi/wombat/asset.json +769 -0
  9. package/build/abi/wombat/bmw.json +1247 -0
  10. package/build/abi/wombat/pool.json +1364 -0
  11. package/build/config.js +14 -14
  12. package/build/dex/baseswap-v3/baseswap-v3-factory.d.ts +26 -0
  13. package/build/dex/baseswap-v3/baseswap-v3-factory.js +44 -0
  14. package/build/dex/baseswap-v3/baseswap-v3-factory.js.map +1 -0
  15. package/build/dex/baseswap-v3/baseswap-v3-pool.d.ts +46 -0
  16. package/build/dex/baseswap-v3/baseswap-v3-pool.js +312 -0
  17. package/build/dex/baseswap-v3/baseswap-v3-pool.js.map +1 -0
  18. package/build/dex/baseswap-v3/baseswap-v3.d.ts +71 -0
  19. package/build/dex/baseswap-v3/baseswap-v3.js +752 -0
  20. package/build/dex/baseswap-v3/baseswap-v3.js.map +1 -0
  21. package/build/dex/baseswap-v3/config.d.ts +9 -0
  22. package/build/dex/baseswap-v3/config.js +48 -0
  23. package/build/dex/baseswap-v3/config.js.map +1 -0
  24. package/build/dex/baseswap-v3/constants.d.ts +28 -0
  25. package/build/dex/baseswap-v3/constants.js +35 -0
  26. package/build/dex/baseswap-v3/constants.js.map +1 -0
  27. package/build/dex/baseswap-v3/contract-math/BitMath.d.ts +4 -0
  28. package/build/dex/baseswap-v3/contract-math/BitMath.js +93 -0
  29. package/build/dex/baseswap-v3/contract-math/BitMath.js.map +1 -0
  30. package/build/dex/baseswap-v3/contract-math/FixedPoint128.d.ts +3 -0
  31. package/build/dex/baseswap-v3/contract-math/FixedPoint128.js +8 -0
  32. package/build/dex/baseswap-v3/contract-math/FixedPoint128.js.map +1 -0
  33. package/build/dex/baseswap-v3/contract-math/FixedPoint96.d.ts +4 -0
  34. package/build/dex/baseswap-v3/contract-math/FixedPoint96.js +9 -0
  35. package/build/dex/baseswap-v3/contract-math/FixedPoint96.js.map +1 -0
  36. package/build/dex/baseswap-v3/contract-math/FullMath.d.ts +4 -0
  37. package/build/dex/baseswap-v3/contract-math/FullMath.js +19 -0
  38. package/build/dex/baseswap-v3/contract-math/FullMath.js.map +1 -0
  39. package/build/dex/baseswap-v3/contract-math/LiquidityMath.d.ts +3 -0
  40. package/build/dex/baseswap-v3/contract-math/LiquidityMath.js +22 -0
  41. package/build/dex/baseswap-v3/contract-math/LiquidityMath.js.map +1 -0
  42. package/build/dex/baseswap-v3/contract-math/Oracle.d.ts +10 -0
  43. package/build/dex/baseswap-v3/contract-math/Oracle.js +133 -0
  44. package/build/dex/baseswap-v3/contract-math/Oracle.js.map +1 -0
  45. package/build/dex/baseswap-v3/contract-math/SqrtPriceMath.d.ts +10 -0
  46. package/build/dex/baseswap-v3/contract-math/SqrtPriceMath.js +91 -0
  47. package/build/dex/baseswap-v3/contract-math/SqrtPriceMath.js.map +1 -0
  48. package/build/dex/baseswap-v3/contract-math/SwapMath.d.ts +8 -0
  49. package/build/dex/baseswap-v3/contract-math/SwapMath.js +70 -0
  50. package/build/dex/baseswap-v3/contract-math/SwapMath.js.map +1 -0
  51. package/build/dex/baseswap-v3/contract-math/Tick.d.ts +7 -0
  52. package/build/dex/baseswap-v3/contract-math/Tick.js +45 -0
  53. package/build/dex/baseswap-v3/contract-math/Tick.js.map +1 -0
  54. package/build/dex/baseswap-v3/contract-math/TickBitMap.d.ts +7 -0
  55. package/build/dex/baseswap-v3/contract-math/TickBitMap.js +84 -0
  56. package/build/dex/baseswap-v3/contract-math/TickBitMap.js.map +1 -0
  57. package/build/dex/baseswap-v3/contract-math/TickMath.d.ts +8 -0
  58. package/build/dex/baseswap-v3/contract-math/TickMath.js +162 -0
  59. package/build/dex/baseswap-v3/contract-math/TickMath.js.map +1 -0
  60. package/build/dex/baseswap-v3/contract-math/UnsafeMath.d.ts +3 -0
  61. package/build/dex/baseswap-v3/contract-math/UnsafeMath.js +10 -0
  62. package/build/dex/baseswap-v3/contract-math/UnsafeMath.js.map +1 -0
  63. package/build/dex/baseswap-v3/contract-math/uniswap-v3-math.d.ts +37 -0
  64. package/build/dex/baseswap-v3/contract-math/uniswap-v3-math.js +393 -0
  65. package/build/dex/baseswap-v3/contract-math/uniswap-v3-math.js.map +1 -0
  66. package/build/dex/baseswap-v3/contract-math/utils.d.ts +7 -0
  67. package/build/dex/baseswap-v3/contract-math/utils.js +42 -0
  68. package/build/dex/baseswap-v3/contract-math/utils.js.map +1 -0
  69. package/build/dex/baseswap-v3/types.d.ts +164 -0
  70. package/build/dex/baseswap-v3/types.js +9 -0
  71. package/build/dex/baseswap-v3/types.js.map +1 -0
  72. package/build/dex/baseswap-v3/utils.d.ts +6 -0
  73. package/build/dex/baseswap-v3/utils.js +65 -0
  74. package/build/dex/baseswap-v3/utils.js.map +1 -0
  75. package/build/dex/hashflow/config.d.ts +1 -1
  76. package/build/dex/hashflow/config.js +6 -6
  77. package/build/dex/hashflow/config.js.map +1 -1
  78. package/build/dex/hashflow/hashflow.d.ts +7 -7
  79. package/build/dex/hashflow/hashflow.js +47 -54
  80. package/build/dex/hashflow/hashflow.js.map +1 -1
  81. package/build/dex/hashflow/rate-fetcher.d.ts +1 -1
  82. package/build/dex/hashflow/rate-fetcher.js +2 -4
  83. package/build/dex/hashflow/rate-fetcher.js.map +1 -1
  84. package/build/dex/hashflow/types.d.ts +5 -6
  85. package/build/dex/hashflow/types.js.map +1 -1
  86. package/build/dex/hashflow/validators.js +11 -4
  87. package/build/dex/hashflow/validators.js.map +1 -1
  88. package/build/dex/hello/config.d.ts +4 -0
  89. package/build/dex/hello/config.js +15 -0
  90. package/build/dex/hello/config.js.map +1 -0
  91. package/build/dex/hello/hello-pool.d.ts +39 -0
  92. package/build/dex/hello/hello-pool.js +64 -0
  93. package/build/dex/hello/hello-pool.js.map +1 -0
  94. package/build/dex/hello/hello.d.ts +37 -0
  95. package/build/dex/hello/hello.js +126 -0
  96. package/build/dex/hello/hello.js.map +1 -0
  97. package/build/dex/hello/types.d.ts +6 -0
  98. package/build/dex/hello/types.js +3 -0
  99. package/build/dex/hello/types.js.map +1 -0
  100. package/build/dex/kyberswap-elastic/config.d.ts +4 -0
  101. package/build/dex/kyberswap-elastic/config.js +80 -0
  102. package/build/dex/kyberswap-elastic/config.js.map +1 -0
  103. package/build/dex/kyberswap-elastic/constants.d.ts +17 -0
  104. package/build/dex/kyberswap-elastic/constants.js +42 -0
  105. package/build/dex/kyberswap-elastic/constants.js.map +1 -0
  106. package/build/dex/kyberswap-elastic/contract-math/FixedPoint96.d.ts +4 -0
  107. package/build/dex/kyberswap-elastic/contract-math/FixedPoint96.js +9 -0
  108. package/build/dex/kyberswap-elastic/contract-math/FixedPoint96.js.map +1 -0
  109. package/build/dex/kyberswap-elastic/contract-math/FullMath.d.ts +5 -0
  110. package/build/dex/kyberswap-elastic/contract-math/FullMath.js +22 -0
  111. package/build/dex/kyberswap-elastic/contract-math/FullMath.js.map +1 -0
  112. package/build/dex/kyberswap-elastic/contract-math/LiqDeltaMath.d.ts +3 -0
  113. package/build/dex/kyberswap-elastic/contract-math/LiqDeltaMath.js +12 -0
  114. package/build/dex/kyberswap-elastic/contract-math/LiqDeltaMath.js.map +1 -0
  115. package/build/dex/kyberswap-elastic/contract-math/LiquidityMath.d.ts +3 -0
  116. package/build/dex/kyberswap-elastic/contract-math/LiquidityMath.js +22 -0
  117. package/build/dex/kyberswap-elastic/contract-math/LiquidityMath.js.map +1 -0
  118. package/build/dex/kyberswap-elastic/contract-math/QtyDeltaMath.d.ts +5 -0
  119. package/build/dex/kyberswap-elastic/contract-math/QtyDeltaMath.js +25 -0
  120. package/build/dex/kyberswap-elastic/contract-math/QtyDeltaMath.js.map +1 -0
  121. package/build/dex/kyberswap-elastic/contract-math/QuadMath.d.ts +4 -0
  122. package/build/dex/kyberswap-elastic/contract-math/QuadMath.js +27 -0
  123. package/build/dex/kyberswap-elastic/contract-math/QuadMath.js.map +1 -0
  124. package/build/dex/kyberswap-elastic/contract-math/ReinvestmentMath.d.ts +3 -0
  125. package/build/dex/kyberswap-elastic/contract-math/ReinvestmentMath.js +14 -0
  126. package/build/dex/kyberswap-elastic/contract-math/ReinvestmentMath.js.map +1 -0
  127. package/build/dex/kyberswap-elastic/contract-math/SafeCast.d.ts +8 -0
  128. package/build/dex/kyberswap-elastic/contract-math/SafeCast.js +30 -0
  129. package/build/dex/kyberswap-elastic/contract-math/SafeCast.js.map +1 -0
  130. package/build/dex/kyberswap-elastic/contract-math/SqrtPriceMath.d.ts +10 -0
  131. package/build/dex/kyberswap-elastic/contract-math/SqrtPriceMath.js +91 -0
  132. package/build/dex/kyberswap-elastic/contract-math/SqrtPriceMath.js.map +1 -0
  133. package/build/dex/kyberswap-elastic/contract-math/SwapMath.d.ts +13 -0
  134. package/build/dex/kyberswap-elastic/contract-math/SwapMath.js +188 -0
  135. package/build/dex/kyberswap-elastic/contract-math/SwapMath.js.map +1 -0
  136. package/build/dex/kyberswap-elastic/contract-math/TickLinkedList.d.ts +6 -0
  137. package/build/dex/kyberswap-elastic/contract-math/TickLinkedList.js +41 -0
  138. package/build/dex/kyberswap-elastic/contract-math/TickLinkedList.js.map +1 -0
  139. package/build/dex/kyberswap-elastic/contract-math/TickMath.d.ts +9 -0
  140. package/build/dex/kyberswap-elastic/contract-math/TickMath.js +165 -0
  141. package/build/dex/kyberswap-elastic/contract-math/TickMath.js.map +1 -0
  142. package/build/dex/kyberswap-elastic/contract-math/UnsafeMath.d.ts +3 -0
  143. package/build/dex/kyberswap-elastic/contract-math/UnsafeMath.js +10 -0
  144. package/build/dex/kyberswap-elastic/contract-math/UnsafeMath.js.map +1 -0
  145. package/build/dex/kyberswap-elastic/contract-math/kyberswap-elastic-math.d.ts +28 -0
  146. package/build/dex/kyberswap-elastic/contract-math/kyberswap-elastic-math.js +502 -0
  147. package/build/dex/kyberswap-elastic/contract-math/kyberswap-elastic-math.js.map +1 -0
  148. package/build/dex/kyberswap-elastic/contract-math/utils.d.ts +3 -0
  149. package/build/dex/kyberswap-elastic/contract-math/utils.js +16 -0
  150. package/build/dex/kyberswap-elastic/contract-math/utils.js.map +1 -0
  151. package/build/dex/kyberswap-elastic/errors.d.ts +2 -0
  152. package/build/dex/kyberswap-elastic/errors.js +6 -0
  153. package/build/dex/kyberswap-elastic/errors.js.map +1 -0
  154. package/build/dex/kyberswap-elastic/kyberswap-elastic-pool.d.ts +80 -0
  155. package/build/dex/kyberswap-elastic/kyberswap-elastic-pool.js +458 -0
  156. package/build/dex/kyberswap-elastic/kyberswap-elastic-pool.js.map +1 -0
  157. package/build/dex/kyberswap-elastic/kyberswap-elastic.d.ts +53 -0
  158. package/build/dex/kyberswap-elastic/kyberswap-elastic.js +610 -0
  159. package/build/dex/kyberswap-elastic/kyberswap-elastic.js.map +1 -0
  160. package/build/dex/kyberswap-elastic/types.d.ts +134 -0
  161. package/build/dex/kyberswap-elastic/types.js +9 -0
  162. package/build/dex/kyberswap-elastic/types.js.map +1 -0
  163. package/build/dex/kyberswap-elastic/utils/decoders.d.ts +9 -0
  164. package/build/dex/kyberswap-elastic/utils/decoders.js +78 -0
  165. package/build/dex/kyberswap-elastic/utils/decoders.js.map +1 -0
  166. package/build/dex/morphex/config.d.ts +11 -0
  167. package/build/dex/morphex/config.js +43 -0
  168. package/build/dex/morphex/config.js.map +1 -0
  169. package/build/dex/morphex/morphex.d.ts +25 -0
  170. package/build/dex/morphex/morphex.js +19 -0
  171. package/build/dex/morphex/morphex.js.map +1 -0
  172. package/build/dex/my-test-dex/config.d.ts +4 -0
  173. package/build/dex/my-test-dex/config.js +15 -0
  174. package/build/dex/my-test-dex/config.js.map +1 -0
  175. package/build/dex/my-test-dex/my-test-dex-pool.d.ts +39 -0
  176. package/build/dex/my-test-dex/my-test-dex-pool.js +64 -0
  177. package/build/dex/my-test-dex/my-test-dex-pool.js.map +1 -0
  178. package/build/dex/my-test-dex/my-test-dex.d.ts +37 -0
  179. package/build/dex/my-test-dex/my-test-dex.js +126 -0
  180. package/build/dex/my-test-dex/my-test-dex.js.map +1 -0
  181. package/build/dex/my-test-dex/types.d.ts +6 -0
  182. package/build/dex/my-test-dex/types.js +3 -0
  183. package/build/dex/my-test-dex/types.js.map +1 -0
  184. package/build/dex/solidly/forks-override/fvm.d.ts +20 -0
  185. package/build/dex/solidly/forks-override/fvm.js +42 -0
  186. package/build/dex/solidly/forks-override/fvm.js.map +1 -0
  187. package/build/dex/wombat/config.d.ts +4 -0
  188. package/build/dex/wombat/config.js +99 -0
  189. package/build/dex/wombat/config.js.map +1 -0
  190. package/build/dex/wombat/types.d.ts +33 -0
  191. package/build/dex/wombat/types.js +3 -0
  192. package/build/dex/wombat/types.js.map +1 -0
  193. package/build/dex/wombat/utils.d.ts +9 -0
  194. package/build/dex/wombat/utils.js +66 -0
  195. package/build/dex/wombat/utils.js.map +1 -0
  196. package/build/dex/wombat/wombat-bmw.d.ts +40 -0
  197. package/build/dex/wombat/wombat-bmw.js +147 -0
  198. package/build/dex/wombat/wombat-bmw.js.map +1 -0
  199. package/build/dex/wombat/wombat-pool.d.ts +22 -0
  200. package/build/dex/wombat/wombat-pool.js +161 -0
  201. package/build/dex/wombat/wombat-pool.js.map +1 -0
  202. package/build/dex/wombat/wombat-quoter.d.ts +16 -0
  203. package/build/dex/wombat/wombat-quoter.js +176 -0
  204. package/build/dex/wombat/wombat-quoter.js.map +1 -0
  205. package/build/dex/wombat/wombat.d.ts +55 -0
  206. package/build/dex/wombat/wombat.js +290 -0
  207. package/build/dex/wombat/wombat.js.map +1 -0
  208. package/build/lib/fetcher/fetcher.d.ts +1 -1
  209. package/build/lib/fetcher/fetcher.js.map +1 -1
  210. package/package.json +2 -2
  211. package/src/abi/hashflow/HashflowRouter.abi.json +816 -246
  212. package/src/config.ts +14 -14
  213. package/src/dex/hashflow/config.ts +8 -8
  214. package/src/dex/hashflow/hashflow-e2e.test.ts +4 -4
  215. package/src/dex/hashflow/hashflow-integration.test.ts +9 -6
  216. package/src/dex/hashflow/hashflow.ts +70 -87
  217. package/src/dex/hashflow/rate-fetcher.ts +6 -8
  218. package/src/dex/hashflow/types.ts +5 -6
  219. package/src/dex/hashflow/validators.ts +11 -4
  220. package/src/lib/fetcher/fetcher.ts +2 -2
  221. package/tests/constants-e2e.ts +1 -1
  222. package/tests/tenderly-simulation.ts +5 -2
  223. package/.vscode/launch.json +0 -39
  224. package/.vscode/settings.json +0 -2
  225. package/.vscode/tasks.json +0 -15
@@ -0,0 +1,226 @@
1
+ [
2
+ {
3
+ "inputs": [
4
+ {
5
+ "internalType": "bytes",
6
+ "name": "path",
7
+ "type": "bytes"
8
+ },
9
+ {
10
+ "internalType": "uint256",
11
+ "name": "amountIn",
12
+ "type": "uint256"
13
+ }
14
+ ],
15
+ "name": "quoteExactInput",
16
+ "outputs": [
17
+ {
18
+ "internalType": "uint256",
19
+ "name": "amountOut",
20
+ "type": "uint256"
21
+ },
22
+ {
23
+ "internalType": "uint160[]",
24
+ "name": "afterSqrtPList",
25
+ "type": "uint160[]"
26
+ },
27
+ {
28
+ "internalType": "uint32[]",
29
+ "name": "initializedTicksCrossedList",
30
+ "type": "uint32[]"
31
+ },
32
+ {
33
+ "internalType": "uint256",
34
+ "name": "gasEstimate",
35
+ "type": "uint256"
36
+ }
37
+ ],
38
+ "stateMutability": "nonpayable",
39
+ "type": "function"
40
+ },
41
+ {
42
+ "inputs": [
43
+ {
44
+ "components": [
45
+ {
46
+ "internalType": "address",
47
+ "name": "tokenIn",
48
+ "type": "address"
49
+ },
50
+ {
51
+ "internalType": "address",
52
+ "name": "tokenOut",
53
+ "type": "address"
54
+ },
55
+ {
56
+ "internalType": "uint256",
57
+ "name": "amountIn",
58
+ "type": "uint256"
59
+ },
60
+ {
61
+ "internalType": "uint24",
62
+ "name": "feeUnits",
63
+ "type": "uint24"
64
+ },
65
+ {
66
+ "internalType": "uint160",
67
+ "name": "limitSqrtP",
68
+ "type": "uint160"
69
+ }
70
+ ],
71
+ "internalType": "struct IQuoterV2.QuoteExactInputSingleParams",
72
+ "name": "params",
73
+ "type": "tuple"
74
+ }
75
+ ],
76
+ "name": "quoteExactInputSingle",
77
+ "outputs": [
78
+ {
79
+ "components": [
80
+ {
81
+ "internalType": "uint256",
82
+ "name": "usedAmount",
83
+ "type": "uint256"
84
+ },
85
+ {
86
+ "internalType": "uint256",
87
+ "name": "returnedAmount",
88
+ "type": "uint256"
89
+ },
90
+ {
91
+ "internalType": "uint160",
92
+ "name": "afterSqrtP",
93
+ "type": "uint160"
94
+ },
95
+ {
96
+ "internalType": "uint32",
97
+ "name": "initializedTicksCrossed",
98
+ "type": "uint32"
99
+ },
100
+ {
101
+ "internalType": "uint256",
102
+ "name": "gasEstimate",
103
+ "type": "uint256"
104
+ }
105
+ ],
106
+ "internalType": "struct IQuoterV2.QuoteOutput",
107
+ "name": "",
108
+ "type": "tuple"
109
+ }
110
+ ],
111
+ "stateMutability": "nonpayable",
112
+ "type": "function"
113
+ },
114
+ {
115
+ "inputs": [
116
+ {
117
+ "internalType": "bytes",
118
+ "name": "path",
119
+ "type": "bytes"
120
+ },
121
+ {
122
+ "internalType": "uint256",
123
+ "name": "amountOut",
124
+ "type": "uint256"
125
+ }
126
+ ],
127
+ "name": "quoteExactOutput",
128
+ "outputs": [
129
+ {
130
+ "internalType": "uint256",
131
+ "name": "amountIn",
132
+ "type": "uint256"
133
+ },
134
+ {
135
+ "internalType": "uint160[]",
136
+ "name": "afterSqrtPList",
137
+ "type": "uint160[]"
138
+ },
139
+ {
140
+ "internalType": "uint32[]",
141
+ "name": "initializedTicksCrossedList",
142
+ "type": "uint32[]"
143
+ },
144
+ {
145
+ "internalType": "uint256",
146
+ "name": "gasEstimate",
147
+ "type": "uint256"
148
+ }
149
+ ],
150
+ "stateMutability": "nonpayable",
151
+ "type": "function"
152
+ },
153
+ {
154
+ "inputs": [
155
+ {
156
+ "components": [
157
+ {
158
+ "internalType": "address",
159
+ "name": "tokenIn",
160
+ "type": "address"
161
+ },
162
+ {
163
+ "internalType": "address",
164
+ "name": "tokenOut",
165
+ "type": "address"
166
+ },
167
+ {
168
+ "internalType": "uint256",
169
+ "name": "amount",
170
+ "type": "uint256"
171
+ },
172
+ {
173
+ "internalType": "uint24",
174
+ "name": "feeUnits",
175
+ "type": "uint24"
176
+ },
177
+ {
178
+ "internalType": "uint160",
179
+ "name": "limitSqrtP",
180
+ "type": "uint160"
181
+ }
182
+ ],
183
+ "internalType": "struct IQuoterV2.QuoteExactOutputSingleParams",
184
+ "name": "params",
185
+ "type": "tuple"
186
+ }
187
+ ],
188
+ "name": "quoteExactOutputSingle",
189
+ "outputs": [
190
+ {
191
+ "components": [
192
+ {
193
+ "internalType": "uint256",
194
+ "name": "usedAmount",
195
+ "type": "uint256"
196
+ },
197
+ {
198
+ "internalType": "uint256",
199
+ "name": "returnedAmount",
200
+ "type": "uint256"
201
+ },
202
+ {
203
+ "internalType": "uint160",
204
+ "name": "afterSqrtP",
205
+ "type": "uint160"
206
+ },
207
+ {
208
+ "internalType": "uint32",
209
+ "name": "initializedTicksCrossed",
210
+ "type": "uint32"
211
+ },
212
+ {
213
+ "internalType": "uint256",
214
+ "name": "gasEstimate",
215
+ "type": "uint256"
216
+ }
217
+ ],
218
+ "internalType": "struct IQuoterV2.QuoteOutput",
219
+ "name": "",
220
+ "type": "tuple"
221
+ }
222
+ ],
223
+ "stateMutability": "nonpayable",
224
+ "type": "function"
225
+ }
226
+ ]
@@ -0,0 +1,239 @@
1
+ [
2
+ {
3
+ "inputs": [
4
+ {
5
+ "internalType": "int256",
6
+ "name": "deltaQty0",
7
+ "type": "int256"
8
+ },
9
+ {
10
+ "internalType": "int256",
11
+ "name": "deltaQty1",
12
+ "type": "int256"
13
+ },
14
+ {
15
+ "internalType": "bytes",
16
+ "name": "data",
17
+ "type": "bytes"
18
+ }
19
+ ],
20
+ "name": "swapCallback",
21
+ "outputs": [],
22
+ "stateMutability": "nonpayable",
23
+ "type": "function"
24
+ },
25
+ {
26
+ "inputs": [
27
+ {
28
+ "components": [
29
+ {
30
+ "internalType": "bytes",
31
+ "name": "path",
32
+ "type": "bytes"
33
+ },
34
+ {
35
+ "internalType": "address",
36
+ "name": "recipient",
37
+ "type": "address"
38
+ },
39
+ {
40
+ "internalType": "uint256",
41
+ "name": "deadline",
42
+ "type": "uint256"
43
+ },
44
+ {
45
+ "internalType": "uint256",
46
+ "name": "amountIn",
47
+ "type": "uint256"
48
+ },
49
+ {
50
+ "internalType": "uint256",
51
+ "name": "minAmountOut",
52
+ "type": "uint256"
53
+ }
54
+ ],
55
+ "internalType": "struct IRouter.ExactInputParams",
56
+ "name": "params",
57
+ "type": "tuple"
58
+ }
59
+ ],
60
+ "name": "swapExactInput",
61
+ "outputs": [
62
+ {
63
+ "internalType": "uint256",
64
+ "name": "amountOut",
65
+ "type": "uint256"
66
+ }
67
+ ],
68
+ "stateMutability": "payable",
69
+ "type": "function"
70
+ },
71
+ {
72
+ "inputs": [
73
+ {
74
+ "components": [
75
+ {
76
+ "internalType": "address",
77
+ "name": "tokenIn",
78
+ "type": "address"
79
+ },
80
+ {
81
+ "internalType": "address",
82
+ "name": "tokenOut",
83
+ "type": "address"
84
+ },
85
+ {
86
+ "internalType": "uint24",
87
+ "name": "fee",
88
+ "type": "uint24"
89
+ },
90
+ {
91
+ "internalType": "address",
92
+ "name": "recipient",
93
+ "type": "address"
94
+ },
95
+ {
96
+ "internalType": "uint256",
97
+ "name": "deadline",
98
+ "type": "uint256"
99
+ },
100
+ {
101
+ "internalType": "uint256",
102
+ "name": "amountIn",
103
+ "type": "uint256"
104
+ },
105
+ {
106
+ "internalType": "uint256",
107
+ "name": "minAmountOut",
108
+ "type": "uint256"
109
+ },
110
+ {
111
+ "internalType": "uint160",
112
+ "name": "limitSqrtP",
113
+ "type": "uint160"
114
+ }
115
+ ],
116
+ "internalType": "struct IRouter.ExactInputSingleParams",
117
+ "name": "params",
118
+ "type": "tuple"
119
+ }
120
+ ],
121
+ "name": "swapExactInputSingle",
122
+ "outputs": [
123
+ {
124
+ "internalType": "uint256",
125
+ "name": "amountOut",
126
+ "type": "uint256"
127
+ }
128
+ ],
129
+ "stateMutability": "payable",
130
+ "type": "function"
131
+ },
132
+ {
133
+ "inputs": [
134
+ {
135
+ "components": [
136
+ {
137
+ "internalType": "bytes",
138
+ "name": "path",
139
+ "type": "bytes"
140
+ },
141
+ {
142
+ "internalType": "address",
143
+ "name": "recipient",
144
+ "type": "address"
145
+ },
146
+ {
147
+ "internalType": "uint256",
148
+ "name": "deadline",
149
+ "type": "uint256"
150
+ },
151
+ {
152
+ "internalType": "uint256",
153
+ "name": "amountOut",
154
+ "type": "uint256"
155
+ },
156
+ {
157
+ "internalType": "uint256",
158
+ "name": "maxAmountIn",
159
+ "type": "uint256"
160
+ }
161
+ ],
162
+ "internalType": "struct IRouter.ExactOutputParams",
163
+ "name": "params",
164
+ "type": "tuple"
165
+ }
166
+ ],
167
+ "name": "swapExactOutput",
168
+ "outputs": [
169
+ {
170
+ "internalType": "uint256",
171
+ "name": "amountIn",
172
+ "type": "uint256"
173
+ }
174
+ ],
175
+ "stateMutability": "payable",
176
+ "type": "function"
177
+ },
178
+ {
179
+ "inputs": [
180
+ {
181
+ "components": [
182
+ {
183
+ "internalType": "address",
184
+ "name": "tokenIn",
185
+ "type": "address"
186
+ },
187
+ {
188
+ "internalType": "address",
189
+ "name": "tokenOut",
190
+ "type": "address"
191
+ },
192
+ {
193
+ "internalType": "uint24",
194
+ "name": "fee",
195
+ "type": "uint24"
196
+ },
197
+ {
198
+ "internalType": "address",
199
+ "name": "recipient",
200
+ "type": "address"
201
+ },
202
+ {
203
+ "internalType": "uint256",
204
+ "name": "deadline",
205
+ "type": "uint256"
206
+ },
207
+ {
208
+ "internalType": "uint256",
209
+ "name": "amountOut",
210
+ "type": "uint256"
211
+ },
212
+ {
213
+ "internalType": "uint256",
214
+ "name": "maxAmountIn",
215
+ "type": "uint256"
216
+ },
217
+ {
218
+ "internalType": "uint160",
219
+ "name": "limitSqrtP",
220
+ "type": "uint160"
221
+ }
222
+ ],
223
+ "internalType": "struct IRouter.ExactOutputSingleParams",
224
+ "name": "params",
225
+ "type": "tuple"
226
+ }
227
+ ],
228
+ "name": "swapExactOutputSingle",
229
+ "outputs": [
230
+ {
231
+ "internalType": "uint256",
232
+ "name": "amountIn",
233
+ "type": "uint256"
234
+ }
235
+ ],
236
+ "stateMutability": "payable",
237
+ "type": "function"
238
+ }
239
+ ]
@@ -0,0 +1,142 @@
1
+ [
2
+ {
3
+ "inputs": [
4
+ {
5
+ "internalType": "contract IPoolStorage",
6
+ "name": "pool",
7
+ "type": "address"
8
+ }
9
+ ],
10
+ "name": "getAllTicks",
11
+ "outputs": [
12
+ {
13
+ "internalType": "int24[]",
14
+ "name": "allTicks",
15
+ "type": "int24[]"
16
+ }
17
+ ],
18
+ "stateMutability": "view",
19
+ "type": "function"
20
+ },
21
+ {
22
+ "inputs": [
23
+ {
24
+ "internalType": "contract IPoolStorage",
25
+ "name": "pool",
26
+ "type": "address"
27
+ },
28
+ {
29
+ "internalType": "int24",
30
+ "name": "tick",
31
+ "type": "int24"
32
+ }
33
+ ],
34
+ "name": "getNearestInitializedTicks",
35
+ "outputs": [
36
+ {
37
+ "internalType": "int24",
38
+ "name": "previous",
39
+ "type": "int24"
40
+ },
41
+ {
42
+ "internalType": "int24",
43
+ "name": "next",
44
+ "type": "int24"
45
+ }
46
+ ],
47
+ "stateMutability": "view",
48
+ "type": "function"
49
+ },
50
+ {
51
+ "inputs": [
52
+ {
53
+ "internalType": "contract IPoolStorage",
54
+ "name": "pool",
55
+ "type": "address"
56
+ },
57
+ {
58
+ "internalType": "int24",
59
+ "name": "startTick",
60
+ "type": "int24"
61
+ },
62
+ {
63
+ "internalType": "uint32",
64
+ "name": "length",
65
+ "type": "uint32"
66
+ }
67
+ ],
68
+ "name": "getTicksInRange",
69
+ "outputs": [
70
+ {
71
+ "internalType": "int24[]",
72
+ "name": "allTicks",
73
+ "type": "int24[]"
74
+ }
75
+ ],
76
+ "stateMutability": "view",
77
+ "type": "function"
78
+ },
79
+ {
80
+ "inputs": [
81
+ {
82
+ "internalType": "contract IBasePositionManager",
83
+ "name": "posManager",
84
+ "type": "address"
85
+ },
86
+ {
87
+ "internalType": "contract IPoolStorage",
88
+ "name": "pool",
89
+ "type": "address"
90
+ },
91
+ {
92
+ "internalType": "uint256",
93
+ "name": "tokenId",
94
+ "type": "uint256"
95
+ }
96
+ ],
97
+ "name": "getTotalFeesOwedToPosition",
98
+ "outputs": [
99
+ {
100
+ "internalType": "uint256",
101
+ "name": "token0Owed",
102
+ "type": "uint256"
103
+ },
104
+ {
105
+ "internalType": "uint256",
106
+ "name": "token1Owed",
107
+ "type": "uint256"
108
+ }
109
+ ],
110
+ "stateMutability": "view",
111
+ "type": "function"
112
+ },
113
+ {
114
+ "inputs": [
115
+ {
116
+ "internalType": "contract IBasePositionManager",
117
+ "name": "posManager",
118
+ "type": "address"
119
+ },
120
+ {
121
+ "internalType": "contract IPoolStorage",
122
+ "name": "pool",
123
+ "type": "address"
124
+ },
125
+ {
126
+ "internalType": "uint256",
127
+ "name": "tokenId",
128
+ "type": "uint256"
129
+ }
130
+ ],
131
+ "name": "getTotalRTokensOwedToPosition",
132
+ "outputs": [
133
+ {
134
+ "internalType": "uint256",
135
+ "name": "rTokenOwed",
136
+ "type": "uint256"
137
+ }
138
+ ],
139
+ "stateMutability": "view",
140
+ "type": "function"
141
+ }
142
+ ]