@paraswap/dex-lib 4.5.9-inter.2 → 4.5.9

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 (187) hide show
  1. package/build/abi/bunni-v2/BunniHook.abi.json +1921 -0
  2. package/build/abi/bunni-v2/BunniHub.abi.json +1598 -0
  3. package/build/abi/bunni-v2/BunniToken.abi.json +833 -0
  4. package/build/abi/bunni-v2/FeeOverrideHooklet.abi.json +1947 -0
  5. package/build/abi/bunni-v2/FloodPlain.abi.json +1195 -0
  6. package/build/abi/bunni-v2/PoolManager.abi.json +1366 -0
  7. package/build/abi/bunni-v2/V4Quoter.abi.json +637 -0
  8. package/build/abi/miro-migrator/MiroMigrator.abi.json +19 -36
  9. package/build/abi/pangolin-v3/PangolinV3StateMulticall.abi.json +796 -0
  10. package/build/abi/ring-v2/few-wrapped-token.json +587 -0
  11. package/build/abi/ring-v2/ring-v2-factory.json +125 -0
  12. package/build/abi/ring-v2/ring-v2-pool.json +461 -0
  13. package/build/abi/ring-v2/ring-v2-router.json +332 -0
  14. package/build/dex/bunni-v2/bunni-v2-pool.d.ts +61 -0
  15. package/build/dex/bunni-v2/bunni-v2-pool.js +484 -0
  16. package/build/dex/bunni-v2/bunni-v2-pool.js.map +1 -0
  17. package/build/dex/bunni-v2/bunni-v2.d.ts +47 -0
  18. package/build/dex/bunni-v2/bunni-v2.js +464 -0
  19. package/build/dex/bunni-v2/bunni-v2.js.map +1 -0
  20. package/build/dex/bunni-v2/config.d.ts +3 -0
  21. package/build/dex/bunni-v2/config.js +89 -0
  22. package/build/dex/bunni-v2/config.js.map +1 -0
  23. package/build/dex/bunni-v2/encoder.d.ts +19 -0
  24. package/build/dex/bunni-v2/encoder.js +400 -0
  25. package/build/dex/bunni-v2/encoder.js.map +1 -0
  26. package/build/dex/bunni-v2/getOnChainState.d.ts +25 -0
  27. package/build/dex/bunni-v2/getOnChainState.js +455 -0
  28. package/build/dex/bunni-v2/getOnChainState.js.map +1 -0
  29. package/build/dex/bunni-v2/hook/BunniSwapMath.d.ts +7 -0
  30. package/build/dex/bunni-v2/hook/BunniSwapMath.js +198 -0
  31. package/build/dex/bunni-v2/hook/BunniSwapMath.js.map +1 -0
  32. package/build/dex/bunni-v2/hook/SwapMath.d.ts +8 -0
  33. package/build/dex/bunni-v2/hook/SwapMath.js +65 -0
  34. package/build/dex/bunni-v2/hook/SwapMath.js.map +1 -0
  35. package/build/dex/bunni-v2/hooklet/FeeOverrideHooklet.d.ts +33 -0
  36. package/build/dex/bunni-v2/hooklet/FeeOverrideHooklet.js +33 -0
  37. package/build/dex/bunni-v2/hooklet/FeeOverrideHooklet.js.map +1 -0
  38. package/build/dex/bunni-v2/hooklet/index.d.ts +21 -0
  39. package/build/dex/bunni-v2/hooklet/index.js +65 -0
  40. package/build/dex/bunni-v2/hooklet/index.js.map +1 -0
  41. package/build/dex/bunni-v2/ldf/CarpetedDoubleGeometricDistribution.d.ts +70 -0
  42. package/build/dex/bunni-v2/ldf/CarpetedDoubleGeometricDistribution.js +277 -0
  43. package/build/dex/bunni-v2/ldf/CarpetedDoubleGeometricDistribution.js.map +1 -0
  44. package/build/dex/bunni-v2/ldf/CarpetedGeometricDistribution.d.ts +64 -0
  45. package/build/dex/bunni-v2/ldf/CarpetedGeometricDistribution.js +262 -0
  46. package/build/dex/bunni-v2/ldf/CarpetedGeometricDistribution.js.map +1 -0
  47. package/build/dex/bunni-v2/ldf/DoubleGeometricDistribution.d.ts +60 -0
  48. package/build/dex/bunni-v2/ldf/DoubleGeometricDistribution.js +224 -0
  49. package/build/dex/bunni-v2/ldf/DoubleGeometricDistribution.js.map +1 -0
  50. package/build/dex/bunni-v2/ldf/GeometricDistribution.d.ts +56 -0
  51. package/build/dex/bunni-v2/ldf/GeometricDistribution.js +489 -0
  52. package/build/dex/bunni-v2/ldf/GeometricDistribution.js.map +1 -0
  53. package/build/dex/bunni-v2/ldf/LDFType.d.ts +5 -0
  54. package/build/dex/bunni-v2/ldf/LDFType.js +10 -0
  55. package/build/dex/bunni-v2/ldf/LDFType.js.map +1 -0
  56. package/build/dex/bunni-v2/ldf/ShiftMode.d.ts +7 -0
  57. package/build/dex/bunni-v2/ldf/ShiftMode.js +19 -0
  58. package/build/dex/bunni-v2/ldf/ShiftMode.js.map +1 -0
  59. package/build/dex/bunni-v2/ldf/UniformDistribution.d.ts +55 -0
  60. package/build/dex/bunni-v2/ldf/UniformDistribution.js +291 -0
  61. package/build/dex/bunni-v2/ldf/UniformDistribution.js.map +1 -0
  62. package/build/dex/bunni-v2/ldf/index.d.ts +15 -0
  63. package/build/dex/bunni-v2/ldf/index.js +38 -0
  64. package/build/dex/bunni-v2/ldf/index.js.map +1 -0
  65. package/build/dex/bunni-v2/lib/AmAmmPayload.d.ts +4 -0
  66. package/build/dex/bunni-v2/lib/AmAmmPayload.js +10 -0
  67. package/build/dex/bunni-v2/lib/AmAmmPayload.js.map +1 -0
  68. package/build/dex/bunni-v2/lib/BitMath.d.ts +4 -0
  69. package/build/dex/bunni-v2/lib/BitMath.js +24 -0
  70. package/build/dex/bunni-v2/lib/BitMath.js.map +1 -0
  71. package/build/dex/bunni-v2/lib/Constants.d.ts +14 -0
  72. package/build/dex/bunni-v2/lib/Constants.js +18 -0
  73. package/build/dex/bunni-v2/lib/Constants.js.map +1 -0
  74. package/build/dex/bunni-v2/lib/ExpMath.d.ts +5 -0
  75. package/build/dex/bunni-v2/lib/ExpMath.js +121 -0
  76. package/build/dex/bunni-v2/lib/ExpMath.js.map +1 -0
  77. package/build/dex/bunni-v2/lib/FeeMath.d.ts +2 -0
  78. package/build/dex/bunni-v2/lib/FeeMath.js +27 -0
  79. package/build/dex/bunni-v2/lib/FeeMath.js.map +1 -0
  80. package/build/dex/bunni-v2/lib/FixedPointMath.d.ts +3 -0
  81. package/build/dex/bunni-v2/lib/FixedPointMath.js +15 -0
  82. package/build/dex/bunni-v2/lib/FixedPointMath.js.map +1 -0
  83. package/build/dex/bunni-v2/lib/FullMathX96.d.ts +4 -0
  84. package/build/dex/bunni-v2/lib/FullMathX96.js +21 -0
  85. package/build/dex/bunni-v2/lib/FullMathX96.js.map +1 -0
  86. package/build/dex/bunni-v2/lib/IdleBalance.d.ts +11 -0
  87. package/build/dex/bunni-v2/lib/IdleBalance.js +33 -0
  88. package/build/dex/bunni-v2/lib/IdleBalance.js.map +1 -0
  89. package/build/dex/bunni-v2/lib/LiquidityAmounts.d.ts +6 -0
  90. package/build/dex/bunni-v2/lib/LiquidityAmounts.js +25 -0
  91. package/build/dex/bunni-v2/lib/LiquidityAmounts.js.map +1 -0
  92. package/build/dex/bunni-v2/lib/Math.d.ts +28 -0
  93. package/build/dex/bunni-v2/lib/Math.js +169 -0
  94. package/build/dex/bunni-v2/lib/Math.js.map +1 -0
  95. package/build/dex/bunni-v2/lib/Oracle.d.ts +27 -0
  96. package/build/dex/bunni-v2/lib/Oracle.js +180 -0
  97. package/build/dex/bunni-v2/lib/Oracle.js.map +1 -0
  98. package/build/dex/bunni-v2/lib/QueryLDF.d.ts +12 -0
  99. package/build/dex/bunni-v2/lib/QueryLDF.js +90 -0
  100. package/build/dex/bunni-v2/lib/QueryLDF.js.map +1 -0
  101. package/build/dex/bunni-v2/lib/QueryTwap.d.ts +2 -0
  102. package/build/dex/bunni-v2/lib/QueryTwap.js +13 -0
  103. package/build/dex/bunni-v2/lib/QueryTwap.js.map +1 -0
  104. package/build/dex/bunni-v2/lib/SqrtPriceMath.d.ts +8 -0
  105. package/build/dex/bunni-v2/lib/SqrtPriceMath.js +84 -0
  106. package/build/dex/bunni-v2/lib/SqrtPriceMath.js.map +1 -0
  107. package/build/dex/bunni-v2/lib/TickMath.d.ts +11 -0
  108. package/build/dex/bunni-v2/lib/TickMath.js +100 -0
  109. package/build/dex/bunni-v2/lib/TickMath.js.map +1 -0
  110. package/build/dex/bunni-v2/lib/VaultMath.d.ts +2 -0
  111. package/build/dex/bunni-v2/lib/VaultMath.js +11 -0
  112. package/build/dex/bunni-v2/lib/VaultMath.js.map +1 -0
  113. package/build/dex/bunni-v2/logic/AmAmm.d.ts +11 -0
  114. package/build/dex/bunni-v2/logic/AmAmm.js +156 -0
  115. package/build/dex/bunni-v2/logic/AmAmm.js.map +1 -0
  116. package/build/dex/bunni-v2/logic/BunniHookLogic.d.ts +10 -0
  117. package/build/dex/bunni-v2/logic/BunniHookLogic.js +298 -0
  118. package/build/dex/bunni-v2/logic/BunniHookLogic.js.map +1 -0
  119. package/build/dex/bunni-v2/logic/BunniHubLogic.d.ts +5 -0
  120. package/build/dex/bunni-v2/logic/BunniHubLogic.js +245 -0
  121. package/build/dex/bunni-v2/logic/BunniHubLogic.js.map +1 -0
  122. package/build/dex/bunni-v2/logic/BunniQuoter.d.ts +12 -0
  123. package/build/dex/bunni-v2/logic/BunniQuoter.js +201 -0
  124. package/build/dex/bunni-v2/logic/BunniQuoter.js.map +1 -0
  125. package/build/dex/bunni-v2/subgraph.d.ts +6 -0
  126. package/build/dex/bunni-v2/subgraph.js +139 -0
  127. package/build/dex/bunni-v2/subgraph.js.map +1 -0
  128. package/build/dex/bunni-v2/types.d.ts +238 -0
  129. package/build/dex/bunni-v2/types.js +3 -0
  130. package/build/dex/bunni-v2/types.js.map +1 -0
  131. package/build/dex/bunni-v2/utils.d.ts +17 -0
  132. package/build/dex/bunni-v2/utils.js +194 -0
  133. package/build/dex/bunni-v2/utils.js.map +1 -0
  134. package/build/dex/ekubo/config.d.ts +1 -1
  135. package/build/dex/ekubo/config.js +3 -1
  136. package/build/dex/ekubo/config.js.map +1 -1
  137. package/build/dex/ekubo/ekubo.d.ts +7 -10
  138. package/build/dex/ekubo/ekubo.js +89 -59
  139. package/build/dex/ekubo/ekubo.js.map +1 -1
  140. package/build/dex/ekubo/pools/math/constants.d.ts +6 -3
  141. package/build/dex/ekubo/pools/math/constants.js +7 -4
  142. package/build/dex/ekubo/pools/math/constants.js.map +1 -1
  143. package/build/dex/ekubo/pools/math/price.js +4 -2
  144. package/build/dex/ekubo/pools/math/price.js.map +1 -1
  145. package/build/dex/ekubo/pools/math/swap.js +2 -2
  146. package/build/dex/ekubo/pools/math/swap.js.map +1 -1
  147. package/build/dex/ekubo/types.d.ts +23 -7
  148. package/build/dex/ekubo/utils.d.ts +4 -1
  149. package/build/dex/ekubo/utils.js +26 -3
  150. package/build/dex/ekubo/utils.js.map +1 -1
  151. package/build/dex/idex.d.ts +0 -1
  152. package/build/dex/miro-migrator/config.js +10 -3
  153. package/build/dex/miro-migrator/config.js.map +1 -1
  154. package/build/dex/miro-migrator/constants.d.ts +1 -2
  155. package/build/dex/miro-migrator/constants.js +2 -3
  156. package/build/dex/miro-migrator/constants.js.map +1 -1
  157. package/build/dex/miro-migrator/miro-migrator-pool.d.ts +5 -9
  158. package/build/dex/miro-migrator/miro-migrator-pool.js +30 -49
  159. package/build/dex/miro-migrator/miro-migrator-pool.js.map +1 -1
  160. package/build/dex/miro-migrator/miro-migrator-state.d.ts +27 -0
  161. package/build/dex/miro-migrator/miro-migrator-state.js +89 -0
  162. package/build/dex/miro-migrator/miro-migrator-state.js.map +1 -0
  163. package/build/dex/miro-migrator/miro-migrator.d.ts +4 -5
  164. package/build/dex/miro-migrator/miro-migrator.js +83 -41
  165. package/build/dex/miro-migrator/miro-migrator.js.map +1 -1
  166. package/build/dex/miro-migrator/types.d.ts +4 -2
  167. package/build/dex/miro-migrator/types.js +2 -1
  168. package/build/dex/miro-migrator/types.js.map +1 -1
  169. package/build/dex/uniswap-v3/forks/pangolin-v3/utils.d.ts +4 -0
  170. package/build/dex/uniswap-v3/forks/pangolin-v3/utils.js +56 -0
  171. package/build/dex/uniswap-v3/forks/pangolin-v3/utils.js.map +1 -0
  172. package/build/dex/uniswap-v3/uniswap-v3.d.ts +0 -1
  173. package/build/dex/uniswap-v3/uniswap-v3.js +0 -2
  174. package/build/dex/uniswap-v3/uniswap-v3.js.map +1 -1
  175. package/build/dex/uniswap-v4/uniswap-v4.d.ts +0 -1
  176. package/build/dex/uniswap-v4/uniswap-v4.js +0 -2
  177. package/build/dex/uniswap-v4/uniswap-v4.js.map +1 -1
  178. package/build/dex/usdc-transmuter/usdc-transmuter-pool.d.ts +26 -0
  179. package/build/dex/usdc-transmuter/usdc-transmuter-pool.js +75 -0
  180. package/build/dex/usdc-transmuter/usdc-transmuter-pool.js.map +1 -0
  181. package/build/implementations/local-paraswap-sdk.d.ts +2 -2
  182. package/build/implementations/local-paraswap-sdk.js +2 -1
  183. package/build/implementations/local-paraswap-sdk.js.map +1 -1
  184. package/build/pricing-helper.d.ts +1 -1
  185. package/build/pricing-helper.js +2 -33
  186. package/build/pricing-helper.js.map +1 -1
  187. package/package.json +1 -1
@@ -0,0 +1,637 @@
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
+ {
16
+ "internalType": "PoolId",
17
+ "name": "poolId",
18
+ "type": "bytes32"
19
+ }
20
+ ],
21
+ "name": "NotEnoughLiquidity",
22
+ "type": "error"
23
+ },
24
+ {
25
+ "inputs": [],
26
+ "name": "NotPoolManager",
27
+ "type": "error"
28
+ },
29
+ {
30
+ "inputs": [],
31
+ "name": "NotSelf",
32
+ "type": "error"
33
+ },
34
+ {
35
+ "inputs": [
36
+ {
37
+ "internalType": "uint256",
38
+ "name": "amount",
39
+ "type": "uint256"
40
+ }
41
+ ],
42
+ "name": "QuoteSwap",
43
+ "type": "error"
44
+ },
45
+ {
46
+ "inputs": [],
47
+ "name": "UnexpectedCallSuccess",
48
+ "type": "error"
49
+ },
50
+ {
51
+ "inputs": [
52
+ {
53
+ "internalType": "bytes",
54
+ "name": "revertData",
55
+ "type": "bytes"
56
+ }
57
+ ],
58
+ "name": "UnexpectedRevertBytes",
59
+ "type": "error"
60
+ },
61
+ {
62
+ "inputs": [
63
+ {
64
+ "components": [
65
+ {
66
+ "internalType": "Currency",
67
+ "name": "exactCurrency",
68
+ "type": "address"
69
+ },
70
+ {
71
+ "components": [
72
+ {
73
+ "internalType": "Currency",
74
+ "name": "intermediateCurrency",
75
+ "type": "address"
76
+ },
77
+ {
78
+ "internalType": "uint24",
79
+ "name": "fee",
80
+ "type": "uint24"
81
+ },
82
+ {
83
+ "internalType": "int24",
84
+ "name": "tickSpacing",
85
+ "type": "int24"
86
+ },
87
+ {
88
+ "internalType": "contract IHooks",
89
+ "name": "hooks",
90
+ "type": "address"
91
+ },
92
+ {
93
+ "internalType": "bytes",
94
+ "name": "hookData",
95
+ "type": "bytes"
96
+ }
97
+ ],
98
+ "internalType": "struct PathKey[]",
99
+ "name": "path",
100
+ "type": "tuple[]"
101
+ },
102
+ {
103
+ "internalType": "uint128",
104
+ "name": "exactAmount",
105
+ "type": "uint128"
106
+ }
107
+ ],
108
+ "internalType": "struct IV4Quoter.QuoteExactParams",
109
+ "name": "params",
110
+ "type": "tuple"
111
+ }
112
+ ],
113
+ "name": "_quoteExactInput",
114
+ "outputs": [
115
+ {
116
+ "internalType": "bytes",
117
+ "name": "",
118
+ "type": "bytes"
119
+ }
120
+ ],
121
+ "stateMutability": "nonpayable",
122
+ "type": "function"
123
+ },
124
+ {
125
+ "inputs": [
126
+ {
127
+ "components": [
128
+ {
129
+ "components": [
130
+ {
131
+ "internalType": "Currency",
132
+ "name": "currency0",
133
+ "type": "address"
134
+ },
135
+ {
136
+ "internalType": "Currency",
137
+ "name": "currency1",
138
+ "type": "address"
139
+ },
140
+ {
141
+ "internalType": "uint24",
142
+ "name": "fee",
143
+ "type": "uint24"
144
+ },
145
+ {
146
+ "internalType": "int24",
147
+ "name": "tickSpacing",
148
+ "type": "int24"
149
+ },
150
+ {
151
+ "internalType": "contract IHooks",
152
+ "name": "hooks",
153
+ "type": "address"
154
+ }
155
+ ],
156
+ "internalType": "struct PoolKey",
157
+ "name": "poolKey",
158
+ "type": "tuple"
159
+ },
160
+ {
161
+ "internalType": "bool",
162
+ "name": "zeroForOne",
163
+ "type": "bool"
164
+ },
165
+ {
166
+ "internalType": "uint128",
167
+ "name": "exactAmount",
168
+ "type": "uint128"
169
+ },
170
+ {
171
+ "internalType": "bytes",
172
+ "name": "hookData",
173
+ "type": "bytes"
174
+ }
175
+ ],
176
+ "internalType": "struct IV4Quoter.QuoteExactSingleParams",
177
+ "name": "params",
178
+ "type": "tuple"
179
+ }
180
+ ],
181
+ "name": "_quoteExactInputSingle",
182
+ "outputs": [
183
+ {
184
+ "internalType": "bytes",
185
+ "name": "",
186
+ "type": "bytes"
187
+ }
188
+ ],
189
+ "stateMutability": "nonpayable",
190
+ "type": "function"
191
+ },
192
+ {
193
+ "inputs": [
194
+ {
195
+ "components": [
196
+ {
197
+ "internalType": "Currency",
198
+ "name": "exactCurrency",
199
+ "type": "address"
200
+ },
201
+ {
202
+ "components": [
203
+ {
204
+ "internalType": "Currency",
205
+ "name": "intermediateCurrency",
206
+ "type": "address"
207
+ },
208
+ {
209
+ "internalType": "uint24",
210
+ "name": "fee",
211
+ "type": "uint24"
212
+ },
213
+ {
214
+ "internalType": "int24",
215
+ "name": "tickSpacing",
216
+ "type": "int24"
217
+ },
218
+ {
219
+ "internalType": "contract IHooks",
220
+ "name": "hooks",
221
+ "type": "address"
222
+ },
223
+ {
224
+ "internalType": "bytes",
225
+ "name": "hookData",
226
+ "type": "bytes"
227
+ }
228
+ ],
229
+ "internalType": "struct PathKey[]",
230
+ "name": "path",
231
+ "type": "tuple[]"
232
+ },
233
+ {
234
+ "internalType": "uint128",
235
+ "name": "exactAmount",
236
+ "type": "uint128"
237
+ }
238
+ ],
239
+ "internalType": "struct IV4Quoter.QuoteExactParams",
240
+ "name": "params",
241
+ "type": "tuple"
242
+ }
243
+ ],
244
+ "name": "_quoteExactOutput",
245
+ "outputs": [
246
+ {
247
+ "internalType": "bytes",
248
+ "name": "",
249
+ "type": "bytes"
250
+ }
251
+ ],
252
+ "stateMutability": "nonpayable",
253
+ "type": "function"
254
+ },
255
+ {
256
+ "inputs": [
257
+ {
258
+ "components": [
259
+ {
260
+ "components": [
261
+ {
262
+ "internalType": "Currency",
263
+ "name": "currency0",
264
+ "type": "address"
265
+ },
266
+ {
267
+ "internalType": "Currency",
268
+ "name": "currency1",
269
+ "type": "address"
270
+ },
271
+ {
272
+ "internalType": "uint24",
273
+ "name": "fee",
274
+ "type": "uint24"
275
+ },
276
+ {
277
+ "internalType": "int24",
278
+ "name": "tickSpacing",
279
+ "type": "int24"
280
+ },
281
+ {
282
+ "internalType": "contract IHooks",
283
+ "name": "hooks",
284
+ "type": "address"
285
+ }
286
+ ],
287
+ "internalType": "struct PoolKey",
288
+ "name": "poolKey",
289
+ "type": "tuple"
290
+ },
291
+ {
292
+ "internalType": "bool",
293
+ "name": "zeroForOne",
294
+ "type": "bool"
295
+ },
296
+ {
297
+ "internalType": "uint128",
298
+ "name": "exactAmount",
299
+ "type": "uint128"
300
+ },
301
+ {
302
+ "internalType": "bytes",
303
+ "name": "hookData",
304
+ "type": "bytes"
305
+ }
306
+ ],
307
+ "internalType": "struct IV4Quoter.QuoteExactSingleParams",
308
+ "name": "params",
309
+ "type": "tuple"
310
+ }
311
+ ],
312
+ "name": "_quoteExactOutputSingle",
313
+ "outputs": [
314
+ {
315
+ "internalType": "bytes",
316
+ "name": "",
317
+ "type": "bytes"
318
+ }
319
+ ],
320
+ "stateMutability": "nonpayable",
321
+ "type": "function"
322
+ },
323
+ {
324
+ "inputs": [],
325
+ "name": "poolManager",
326
+ "outputs": [
327
+ {
328
+ "internalType": "contract IPoolManager",
329
+ "name": "",
330
+ "type": "address"
331
+ }
332
+ ],
333
+ "stateMutability": "view",
334
+ "type": "function"
335
+ },
336
+ {
337
+ "inputs": [
338
+ {
339
+ "components": [
340
+ {
341
+ "internalType": "Currency",
342
+ "name": "exactCurrency",
343
+ "type": "address"
344
+ },
345
+ {
346
+ "components": [
347
+ {
348
+ "internalType": "Currency",
349
+ "name": "intermediateCurrency",
350
+ "type": "address"
351
+ },
352
+ {
353
+ "internalType": "uint24",
354
+ "name": "fee",
355
+ "type": "uint24"
356
+ },
357
+ {
358
+ "internalType": "int24",
359
+ "name": "tickSpacing",
360
+ "type": "int24"
361
+ },
362
+ {
363
+ "internalType": "contract IHooks",
364
+ "name": "hooks",
365
+ "type": "address"
366
+ },
367
+ {
368
+ "internalType": "bytes",
369
+ "name": "hookData",
370
+ "type": "bytes"
371
+ }
372
+ ],
373
+ "internalType": "struct PathKey[]",
374
+ "name": "path",
375
+ "type": "tuple[]"
376
+ },
377
+ {
378
+ "internalType": "uint128",
379
+ "name": "exactAmount",
380
+ "type": "uint128"
381
+ }
382
+ ],
383
+ "internalType": "struct IV4Quoter.QuoteExactParams",
384
+ "name": "params",
385
+ "type": "tuple"
386
+ }
387
+ ],
388
+ "name": "quoteExactInput",
389
+ "outputs": [
390
+ {
391
+ "internalType": "uint256",
392
+ "name": "amountOut",
393
+ "type": "uint256"
394
+ },
395
+ {
396
+ "internalType": "uint256",
397
+ "name": "gasEstimate",
398
+ "type": "uint256"
399
+ }
400
+ ],
401
+ "stateMutability": "nonpayable",
402
+ "type": "function"
403
+ },
404
+ {
405
+ "inputs": [
406
+ {
407
+ "components": [
408
+ {
409
+ "components": [
410
+ {
411
+ "internalType": "Currency",
412
+ "name": "currency0",
413
+ "type": "address"
414
+ },
415
+ {
416
+ "internalType": "Currency",
417
+ "name": "currency1",
418
+ "type": "address"
419
+ },
420
+ {
421
+ "internalType": "uint24",
422
+ "name": "fee",
423
+ "type": "uint24"
424
+ },
425
+ {
426
+ "internalType": "int24",
427
+ "name": "tickSpacing",
428
+ "type": "int24"
429
+ },
430
+ {
431
+ "internalType": "contract IHooks",
432
+ "name": "hooks",
433
+ "type": "address"
434
+ }
435
+ ],
436
+ "internalType": "struct PoolKey",
437
+ "name": "poolKey",
438
+ "type": "tuple"
439
+ },
440
+ {
441
+ "internalType": "bool",
442
+ "name": "zeroForOne",
443
+ "type": "bool"
444
+ },
445
+ {
446
+ "internalType": "uint128",
447
+ "name": "exactAmount",
448
+ "type": "uint128"
449
+ },
450
+ {
451
+ "internalType": "bytes",
452
+ "name": "hookData",
453
+ "type": "bytes"
454
+ }
455
+ ],
456
+ "internalType": "struct IV4Quoter.QuoteExactSingleParams",
457
+ "name": "params",
458
+ "type": "tuple"
459
+ }
460
+ ],
461
+ "name": "quoteExactInputSingle",
462
+ "outputs": [
463
+ {
464
+ "internalType": "uint256",
465
+ "name": "amountOut",
466
+ "type": "uint256"
467
+ },
468
+ {
469
+ "internalType": "uint256",
470
+ "name": "gasEstimate",
471
+ "type": "uint256"
472
+ }
473
+ ],
474
+ "stateMutability": "nonpayable",
475
+ "type": "function"
476
+ },
477
+ {
478
+ "inputs": [
479
+ {
480
+ "components": [
481
+ {
482
+ "internalType": "Currency",
483
+ "name": "exactCurrency",
484
+ "type": "address"
485
+ },
486
+ {
487
+ "components": [
488
+ {
489
+ "internalType": "Currency",
490
+ "name": "intermediateCurrency",
491
+ "type": "address"
492
+ },
493
+ {
494
+ "internalType": "uint24",
495
+ "name": "fee",
496
+ "type": "uint24"
497
+ },
498
+ {
499
+ "internalType": "int24",
500
+ "name": "tickSpacing",
501
+ "type": "int24"
502
+ },
503
+ {
504
+ "internalType": "contract IHooks",
505
+ "name": "hooks",
506
+ "type": "address"
507
+ },
508
+ {
509
+ "internalType": "bytes",
510
+ "name": "hookData",
511
+ "type": "bytes"
512
+ }
513
+ ],
514
+ "internalType": "struct PathKey[]",
515
+ "name": "path",
516
+ "type": "tuple[]"
517
+ },
518
+ {
519
+ "internalType": "uint128",
520
+ "name": "exactAmount",
521
+ "type": "uint128"
522
+ }
523
+ ],
524
+ "internalType": "struct IV4Quoter.QuoteExactParams",
525
+ "name": "params",
526
+ "type": "tuple"
527
+ }
528
+ ],
529
+ "name": "quoteExactOutput",
530
+ "outputs": [
531
+ {
532
+ "internalType": "uint256",
533
+ "name": "amountIn",
534
+ "type": "uint256"
535
+ },
536
+ {
537
+ "internalType": "uint256",
538
+ "name": "gasEstimate",
539
+ "type": "uint256"
540
+ }
541
+ ],
542
+ "stateMutability": "nonpayable",
543
+ "type": "function"
544
+ },
545
+ {
546
+ "inputs": [
547
+ {
548
+ "components": [
549
+ {
550
+ "components": [
551
+ {
552
+ "internalType": "Currency",
553
+ "name": "currency0",
554
+ "type": "address"
555
+ },
556
+ {
557
+ "internalType": "Currency",
558
+ "name": "currency1",
559
+ "type": "address"
560
+ },
561
+ {
562
+ "internalType": "uint24",
563
+ "name": "fee",
564
+ "type": "uint24"
565
+ },
566
+ {
567
+ "internalType": "int24",
568
+ "name": "tickSpacing",
569
+ "type": "int24"
570
+ },
571
+ {
572
+ "internalType": "contract IHooks",
573
+ "name": "hooks",
574
+ "type": "address"
575
+ }
576
+ ],
577
+ "internalType": "struct PoolKey",
578
+ "name": "poolKey",
579
+ "type": "tuple"
580
+ },
581
+ {
582
+ "internalType": "bool",
583
+ "name": "zeroForOne",
584
+ "type": "bool"
585
+ },
586
+ {
587
+ "internalType": "uint128",
588
+ "name": "exactAmount",
589
+ "type": "uint128"
590
+ },
591
+ {
592
+ "internalType": "bytes",
593
+ "name": "hookData",
594
+ "type": "bytes"
595
+ }
596
+ ],
597
+ "internalType": "struct IV4Quoter.QuoteExactSingleParams",
598
+ "name": "params",
599
+ "type": "tuple"
600
+ }
601
+ ],
602
+ "name": "quoteExactOutputSingle",
603
+ "outputs": [
604
+ {
605
+ "internalType": "uint256",
606
+ "name": "amountIn",
607
+ "type": "uint256"
608
+ },
609
+ {
610
+ "internalType": "uint256",
611
+ "name": "gasEstimate",
612
+ "type": "uint256"
613
+ }
614
+ ],
615
+ "stateMutability": "nonpayable",
616
+ "type": "function"
617
+ },
618
+ {
619
+ "inputs": [
620
+ {
621
+ "internalType": "bytes",
622
+ "name": "data",
623
+ "type": "bytes"
624
+ }
625
+ ],
626
+ "name": "unlockCallback",
627
+ "outputs": [
628
+ {
629
+ "internalType": "bytes",
630
+ "name": "",
631
+ "type": "bytes"
632
+ }
633
+ ],
634
+ "stateMutability": "nonpayable",
635
+ "type": "function"
636
+ }
637
+ ]