@paraswap/dex-lib 4.5.9 → 4.5.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 (162) hide show
  1. package/build/abi/miro-migrator/MiroMigrator.abi.json +36 -19
  2. package/build/dex/ekubo/ekubo.js.map +1 -1
  3. package/build/dex/miro-migrator/config.js +3 -10
  4. package/build/dex/miro-migrator/config.js.map +1 -1
  5. package/build/dex/miro-migrator/constants.d.ts +2 -1
  6. package/build/dex/miro-migrator/constants.js +3 -2
  7. package/build/dex/miro-migrator/constants.js.map +1 -1
  8. package/build/dex/miro-migrator/miro-migrator-pool.d.ts +9 -5
  9. package/build/dex/miro-migrator/miro-migrator-pool.js +49 -30
  10. package/build/dex/miro-migrator/miro-migrator-pool.js.map +1 -1
  11. package/build/dex/miro-migrator/miro-migrator.d.ts +5 -4
  12. package/build/dex/miro-migrator/miro-migrator.js +41 -83
  13. package/build/dex/miro-migrator/miro-migrator.js.map +1 -1
  14. package/build/dex/miro-migrator/types.d.ts +2 -4
  15. package/build/dex/miro-migrator/types.js +1 -2
  16. package/build/dex/miro-migrator/types.js.map +1 -1
  17. package/build/executor/Executor03BytecodeBuilder.js +22 -14
  18. package/build/executor/Executor03BytecodeBuilder.js.map +1 -1
  19. package/build/generic-swap-transaction-builder.js +3 -1
  20. package/build/generic-swap-transaction-builder.js.map +1 -1
  21. package/package.json +1 -1
  22. package/build/abi/bunni-v2/BunniHook.abi.json +0 -1921
  23. package/build/abi/bunni-v2/BunniHub.abi.json +0 -1598
  24. package/build/abi/bunni-v2/BunniToken.abi.json +0 -833
  25. package/build/abi/bunni-v2/FeeOverrideHooklet.abi.json +0 -1947
  26. package/build/abi/bunni-v2/FloodPlain.abi.json +0 -1195
  27. package/build/abi/bunni-v2/PoolManager.abi.json +0 -1366
  28. package/build/abi/bunni-v2/V4Quoter.abi.json +0 -637
  29. package/build/abi/pangolin-v3/PangolinV3StateMulticall.abi.json +0 -796
  30. package/build/abi/ring-v2/few-wrapped-token.json +0 -587
  31. package/build/abi/ring-v2/ring-v2-factory.json +0 -125
  32. package/build/abi/ring-v2/ring-v2-pool.json +0 -461
  33. package/build/abi/ring-v2/ring-v2-router.json +0 -332
  34. package/build/dex/bunni-v2/bunni-v2-pool.d.ts +0 -61
  35. package/build/dex/bunni-v2/bunni-v2-pool.js +0 -484
  36. package/build/dex/bunni-v2/bunni-v2-pool.js.map +0 -1
  37. package/build/dex/bunni-v2/bunni-v2.d.ts +0 -47
  38. package/build/dex/bunni-v2/bunni-v2.js +0 -464
  39. package/build/dex/bunni-v2/bunni-v2.js.map +0 -1
  40. package/build/dex/bunni-v2/config.d.ts +0 -3
  41. package/build/dex/bunni-v2/config.js +0 -89
  42. package/build/dex/bunni-v2/config.js.map +0 -1
  43. package/build/dex/bunni-v2/encoder.d.ts +0 -19
  44. package/build/dex/bunni-v2/encoder.js +0 -400
  45. package/build/dex/bunni-v2/encoder.js.map +0 -1
  46. package/build/dex/bunni-v2/getOnChainState.d.ts +0 -25
  47. package/build/dex/bunni-v2/getOnChainState.js +0 -455
  48. package/build/dex/bunni-v2/getOnChainState.js.map +0 -1
  49. package/build/dex/bunni-v2/hook/BunniSwapMath.d.ts +0 -7
  50. package/build/dex/bunni-v2/hook/BunniSwapMath.js +0 -198
  51. package/build/dex/bunni-v2/hook/BunniSwapMath.js.map +0 -1
  52. package/build/dex/bunni-v2/hook/SwapMath.d.ts +0 -8
  53. package/build/dex/bunni-v2/hook/SwapMath.js +0 -65
  54. package/build/dex/bunni-v2/hook/SwapMath.js.map +0 -1
  55. package/build/dex/bunni-v2/hooklet/FeeOverrideHooklet.d.ts +0 -33
  56. package/build/dex/bunni-v2/hooklet/FeeOverrideHooklet.js +0 -33
  57. package/build/dex/bunni-v2/hooklet/FeeOverrideHooklet.js.map +0 -1
  58. package/build/dex/bunni-v2/hooklet/index.d.ts +0 -21
  59. package/build/dex/bunni-v2/hooklet/index.js +0 -65
  60. package/build/dex/bunni-v2/hooklet/index.js.map +0 -1
  61. package/build/dex/bunni-v2/ldf/CarpetedDoubleGeometricDistribution.d.ts +0 -70
  62. package/build/dex/bunni-v2/ldf/CarpetedDoubleGeometricDistribution.js +0 -277
  63. package/build/dex/bunni-v2/ldf/CarpetedDoubleGeometricDistribution.js.map +0 -1
  64. package/build/dex/bunni-v2/ldf/CarpetedGeometricDistribution.d.ts +0 -64
  65. package/build/dex/bunni-v2/ldf/CarpetedGeometricDistribution.js +0 -262
  66. package/build/dex/bunni-v2/ldf/CarpetedGeometricDistribution.js.map +0 -1
  67. package/build/dex/bunni-v2/ldf/DoubleGeometricDistribution.d.ts +0 -60
  68. package/build/dex/bunni-v2/ldf/DoubleGeometricDistribution.js +0 -224
  69. package/build/dex/bunni-v2/ldf/DoubleGeometricDistribution.js.map +0 -1
  70. package/build/dex/bunni-v2/ldf/GeometricDistribution.d.ts +0 -56
  71. package/build/dex/bunni-v2/ldf/GeometricDistribution.js +0 -489
  72. package/build/dex/bunni-v2/ldf/GeometricDistribution.js.map +0 -1
  73. package/build/dex/bunni-v2/ldf/LDFType.d.ts +0 -5
  74. package/build/dex/bunni-v2/ldf/LDFType.js +0 -10
  75. package/build/dex/bunni-v2/ldf/LDFType.js.map +0 -1
  76. package/build/dex/bunni-v2/ldf/ShiftMode.d.ts +0 -7
  77. package/build/dex/bunni-v2/ldf/ShiftMode.js +0 -19
  78. package/build/dex/bunni-v2/ldf/ShiftMode.js.map +0 -1
  79. package/build/dex/bunni-v2/ldf/UniformDistribution.d.ts +0 -55
  80. package/build/dex/bunni-v2/ldf/UniformDistribution.js +0 -291
  81. package/build/dex/bunni-v2/ldf/UniformDistribution.js.map +0 -1
  82. package/build/dex/bunni-v2/ldf/index.d.ts +0 -15
  83. package/build/dex/bunni-v2/ldf/index.js +0 -38
  84. package/build/dex/bunni-v2/ldf/index.js.map +0 -1
  85. package/build/dex/bunni-v2/lib/AmAmmPayload.d.ts +0 -4
  86. package/build/dex/bunni-v2/lib/AmAmmPayload.js +0 -10
  87. package/build/dex/bunni-v2/lib/AmAmmPayload.js.map +0 -1
  88. package/build/dex/bunni-v2/lib/BitMath.d.ts +0 -4
  89. package/build/dex/bunni-v2/lib/BitMath.js +0 -24
  90. package/build/dex/bunni-v2/lib/BitMath.js.map +0 -1
  91. package/build/dex/bunni-v2/lib/Constants.d.ts +0 -14
  92. package/build/dex/bunni-v2/lib/Constants.js +0 -18
  93. package/build/dex/bunni-v2/lib/Constants.js.map +0 -1
  94. package/build/dex/bunni-v2/lib/ExpMath.d.ts +0 -5
  95. package/build/dex/bunni-v2/lib/ExpMath.js +0 -121
  96. package/build/dex/bunni-v2/lib/ExpMath.js.map +0 -1
  97. package/build/dex/bunni-v2/lib/FeeMath.d.ts +0 -2
  98. package/build/dex/bunni-v2/lib/FeeMath.js +0 -27
  99. package/build/dex/bunni-v2/lib/FeeMath.js.map +0 -1
  100. package/build/dex/bunni-v2/lib/FixedPointMath.d.ts +0 -3
  101. package/build/dex/bunni-v2/lib/FixedPointMath.js +0 -15
  102. package/build/dex/bunni-v2/lib/FixedPointMath.js.map +0 -1
  103. package/build/dex/bunni-v2/lib/FullMathX96.d.ts +0 -4
  104. package/build/dex/bunni-v2/lib/FullMathX96.js +0 -21
  105. package/build/dex/bunni-v2/lib/FullMathX96.js.map +0 -1
  106. package/build/dex/bunni-v2/lib/IdleBalance.d.ts +0 -11
  107. package/build/dex/bunni-v2/lib/IdleBalance.js +0 -33
  108. package/build/dex/bunni-v2/lib/IdleBalance.js.map +0 -1
  109. package/build/dex/bunni-v2/lib/LiquidityAmounts.d.ts +0 -6
  110. package/build/dex/bunni-v2/lib/LiquidityAmounts.js +0 -25
  111. package/build/dex/bunni-v2/lib/LiquidityAmounts.js.map +0 -1
  112. package/build/dex/bunni-v2/lib/Math.d.ts +0 -28
  113. package/build/dex/bunni-v2/lib/Math.js +0 -169
  114. package/build/dex/bunni-v2/lib/Math.js.map +0 -1
  115. package/build/dex/bunni-v2/lib/Oracle.d.ts +0 -27
  116. package/build/dex/bunni-v2/lib/Oracle.js +0 -180
  117. package/build/dex/bunni-v2/lib/Oracle.js.map +0 -1
  118. package/build/dex/bunni-v2/lib/QueryLDF.d.ts +0 -12
  119. package/build/dex/bunni-v2/lib/QueryLDF.js +0 -90
  120. package/build/dex/bunni-v2/lib/QueryLDF.js.map +0 -1
  121. package/build/dex/bunni-v2/lib/QueryTwap.d.ts +0 -2
  122. package/build/dex/bunni-v2/lib/QueryTwap.js +0 -13
  123. package/build/dex/bunni-v2/lib/QueryTwap.js.map +0 -1
  124. package/build/dex/bunni-v2/lib/SqrtPriceMath.d.ts +0 -8
  125. package/build/dex/bunni-v2/lib/SqrtPriceMath.js +0 -84
  126. package/build/dex/bunni-v2/lib/SqrtPriceMath.js.map +0 -1
  127. package/build/dex/bunni-v2/lib/TickMath.d.ts +0 -11
  128. package/build/dex/bunni-v2/lib/TickMath.js +0 -100
  129. package/build/dex/bunni-v2/lib/TickMath.js.map +0 -1
  130. package/build/dex/bunni-v2/lib/VaultMath.d.ts +0 -2
  131. package/build/dex/bunni-v2/lib/VaultMath.js +0 -11
  132. package/build/dex/bunni-v2/lib/VaultMath.js.map +0 -1
  133. package/build/dex/bunni-v2/logic/AmAmm.d.ts +0 -11
  134. package/build/dex/bunni-v2/logic/AmAmm.js +0 -156
  135. package/build/dex/bunni-v2/logic/AmAmm.js.map +0 -1
  136. package/build/dex/bunni-v2/logic/BunniHookLogic.d.ts +0 -10
  137. package/build/dex/bunni-v2/logic/BunniHookLogic.js +0 -298
  138. package/build/dex/bunni-v2/logic/BunniHookLogic.js.map +0 -1
  139. package/build/dex/bunni-v2/logic/BunniHubLogic.d.ts +0 -5
  140. package/build/dex/bunni-v2/logic/BunniHubLogic.js +0 -245
  141. package/build/dex/bunni-v2/logic/BunniHubLogic.js.map +0 -1
  142. package/build/dex/bunni-v2/logic/BunniQuoter.d.ts +0 -12
  143. package/build/dex/bunni-v2/logic/BunniQuoter.js +0 -201
  144. package/build/dex/bunni-v2/logic/BunniQuoter.js.map +0 -1
  145. package/build/dex/bunni-v2/subgraph.d.ts +0 -6
  146. package/build/dex/bunni-v2/subgraph.js +0 -139
  147. package/build/dex/bunni-v2/subgraph.js.map +0 -1
  148. package/build/dex/bunni-v2/types.d.ts +0 -238
  149. package/build/dex/bunni-v2/types.js +0 -3
  150. package/build/dex/bunni-v2/types.js.map +0 -1
  151. package/build/dex/bunni-v2/utils.d.ts +0 -17
  152. package/build/dex/bunni-v2/utils.js +0 -194
  153. package/build/dex/bunni-v2/utils.js.map +0 -1
  154. package/build/dex/miro-migrator/miro-migrator-state.d.ts +0 -27
  155. package/build/dex/miro-migrator/miro-migrator-state.js +0 -89
  156. package/build/dex/miro-migrator/miro-migrator-state.js.map +0 -1
  157. package/build/dex/uniswap-v3/forks/pangolin-v3/utils.d.ts +0 -4
  158. package/build/dex/uniswap-v3/forks/pangolin-v3/utils.js +0 -56
  159. package/build/dex/uniswap-v3/forks/pangolin-v3/utils.js.map +0 -1
  160. package/build/dex/usdc-transmuter/usdc-transmuter-pool.d.ts +0 -26
  161. package/build/dex/usdc-transmuter/usdc-transmuter-pool.js +0 -75
  162. package/build/dex/usdc-transmuter/usdc-transmuter-pool.js.map +0 -1
@@ -1,637 +0,0 @@
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
- ]