@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,1947 +0,0 @@
1
- [
2
- {
3
- "inputs": [
4
- {
5
- "internalType": "address",
6
- "name": "bunniHub_",
7
- "type": "address"
8
- }
9
- ],
10
- "stateMutability": "nonpayable",
11
- "type": "constructor"
12
- },
13
- {
14
- "inputs": [],
15
- "name": "FeeOverrideHooklet__InvalidSwapFee",
16
- "type": "error"
17
- },
18
- {
19
- "inputs": [],
20
- "name": "FeeOverrideHooklet__NotBunniTokenOwner",
21
- "type": "error"
22
- },
23
- {
24
- "anonymous": false,
25
- "inputs": [
26
- {
27
- "indexed": true,
28
- "internalType": "PoolId",
29
- "name": "id",
30
- "type": "bytes32"
31
- },
32
- {
33
- "indexed": false,
34
- "internalType": "bool",
35
- "name": "overrideZeroToOne",
36
- "type": "bool"
37
- },
38
- {
39
- "indexed": false,
40
- "internalType": "uint24",
41
- "name": "feeZeroToOne",
42
- "type": "uint24"
43
- },
44
- {
45
- "indexed": false,
46
- "internalType": "bool",
47
- "name": "overrideOneToZero",
48
- "type": "bool"
49
- },
50
- {
51
- "indexed": false,
52
- "internalType": "uint24",
53
- "name": "feeOneToZero",
54
- "type": "uint24"
55
- }
56
- ],
57
- "name": "SetFeeOverride",
58
- "type": "event"
59
- },
60
- {
61
- "inputs": [
62
- {
63
- "internalType": "address",
64
- "name": "",
65
- "type": "address"
66
- },
67
- {
68
- "components": [
69
- {
70
- "components": [
71
- {
72
- "internalType": "Currency",
73
- "name": "currency0",
74
- "type": "address"
75
- },
76
- {
77
- "internalType": "Currency",
78
- "name": "currency1",
79
- "type": "address"
80
- },
81
- {
82
- "internalType": "uint24",
83
- "name": "fee",
84
- "type": "uint24"
85
- },
86
- {
87
- "internalType": "int24",
88
- "name": "tickSpacing",
89
- "type": "int24"
90
- },
91
- {
92
- "internalType": "contract IHooks",
93
- "name": "hooks",
94
- "type": "address"
95
- }
96
- ],
97
- "internalType": "struct PoolKey",
98
- "name": "poolKey",
99
- "type": "tuple"
100
- },
101
- {
102
- "internalType": "address",
103
- "name": "recipient",
104
- "type": "address"
105
- },
106
- {
107
- "internalType": "address",
108
- "name": "refundRecipient",
109
- "type": "address"
110
- },
111
- {
112
- "internalType": "uint256",
113
- "name": "amount0Desired",
114
- "type": "uint256"
115
- },
116
- {
117
- "internalType": "uint256",
118
- "name": "amount1Desired",
119
- "type": "uint256"
120
- },
121
- {
122
- "internalType": "uint256",
123
- "name": "amount0Min",
124
- "type": "uint256"
125
- },
126
- {
127
- "internalType": "uint256",
128
- "name": "amount1Min",
129
- "type": "uint256"
130
- },
131
- {
132
- "internalType": "uint256",
133
- "name": "vaultFee0",
134
- "type": "uint256"
135
- },
136
- {
137
- "internalType": "uint256",
138
- "name": "vaultFee1",
139
- "type": "uint256"
140
- },
141
- {
142
- "internalType": "uint256",
143
- "name": "deadline",
144
- "type": "uint256"
145
- },
146
- {
147
- "internalType": "address",
148
- "name": "referrer",
149
- "type": "address"
150
- }
151
- ],
152
- "internalType": "struct IBunniHub.DepositParams",
153
- "name": "",
154
- "type": "tuple"
155
- },
156
- {
157
- "components": [
158
- {
159
- "internalType": "uint256",
160
- "name": "shares",
161
- "type": "uint256"
162
- },
163
- {
164
- "internalType": "uint256",
165
- "name": "amount0",
166
- "type": "uint256"
167
- },
168
- {
169
- "internalType": "uint256",
170
- "name": "amount1",
171
- "type": "uint256"
172
- }
173
- ],
174
- "internalType": "struct IHooklet.DepositReturnData",
175
- "name": "",
176
- "type": "tuple"
177
- }
178
- ],
179
- "name": "afterDeposit",
180
- "outputs": [
181
- {
182
- "internalType": "bytes4",
183
- "name": "selector",
184
- "type": "bytes4"
185
- }
186
- ],
187
- "stateMutability": "pure",
188
- "type": "function"
189
- },
190
- {
191
- "inputs": [
192
- {
193
- "internalType": "address",
194
- "name": "",
195
- "type": "address"
196
- },
197
- {
198
- "components": [
199
- {
200
- "components": [
201
- {
202
- "internalType": "Currency",
203
- "name": "currency0",
204
- "type": "address"
205
- },
206
- {
207
- "internalType": "Currency",
208
- "name": "currency1",
209
- "type": "address"
210
- },
211
- {
212
- "internalType": "uint24",
213
- "name": "fee",
214
- "type": "uint24"
215
- },
216
- {
217
- "internalType": "int24",
218
- "name": "tickSpacing",
219
- "type": "int24"
220
- },
221
- {
222
- "internalType": "contract IHooks",
223
- "name": "hooks",
224
- "type": "address"
225
- }
226
- ],
227
- "internalType": "struct PoolKey",
228
- "name": "poolKey",
229
- "type": "tuple"
230
- },
231
- {
232
- "internalType": "address",
233
- "name": "recipient",
234
- "type": "address"
235
- },
236
- {
237
- "internalType": "address",
238
- "name": "refundRecipient",
239
- "type": "address"
240
- },
241
- {
242
- "internalType": "uint256",
243
- "name": "amount0Desired",
244
- "type": "uint256"
245
- },
246
- {
247
- "internalType": "uint256",
248
- "name": "amount1Desired",
249
- "type": "uint256"
250
- },
251
- {
252
- "internalType": "uint256",
253
- "name": "amount0Min",
254
- "type": "uint256"
255
- },
256
- {
257
- "internalType": "uint256",
258
- "name": "amount1Min",
259
- "type": "uint256"
260
- },
261
- {
262
- "internalType": "uint256",
263
- "name": "vaultFee0",
264
- "type": "uint256"
265
- },
266
- {
267
- "internalType": "uint256",
268
- "name": "vaultFee1",
269
- "type": "uint256"
270
- },
271
- {
272
- "internalType": "uint256",
273
- "name": "deadline",
274
- "type": "uint256"
275
- },
276
- {
277
- "internalType": "address",
278
- "name": "referrer",
279
- "type": "address"
280
- }
281
- ],
282
- "internalType": "struct IBunniHub.DepositParams",
283
- "name": "",
284
- "type": "tuple"
285
- },
286
- {
287
- "components": [
288
- {
289
- "internalType": "uint256",
290
- "name": "shares",
291
- "type": "uint256"
292
- },
293
- {
294
- "internalType": "uint256",
295
- "name": "amount0",
296
- "type": "uint256"
297
- },
298
- {
299
- "internalType": "uint256",
300
- "name": "amount1",
301
- "type": "uint256"
302
- }
303
- ],
304
- "internalType": "struct IHooklet.DepositReturnData",
305
- "name": "",
306
- "type": "tuple"
307
- }
308
- ],
309
- "name": "afterDepositView",
310
- "outputs": [
311
- {
312
- "internalType": "bytes4",
313
- "name": "selector",
314
- "type": "bytes4"
315
- }
316
- ],
317
- "stateMutability": "pure",
318
- "type": "function"
319
- },
320
- {
321
- "inputs": [
322
- {
323
- "internalType": "address",
324
- "name": "",
325
- "type": "address"
326
- },
327
- {
328
- "components": [
329
- {
330
- "internalType": "Currency",
331
- "name": "currency0",
332
- "type": "address"
333
- },
334
- {
335
- "internalType": "Currency",
336
- "name": "currency1",
337
- "type": "address"
338
- },
339
- {
340
- "internalType": "int24",
341
- "name": "tickSpacing",
342
- "type": "int24"
343
- },
344
- {
345
- "internalType": "uint24",
346
- "name": "twapSecondsAgo",
347
- "type": "uint24"
348
- },
349
- {
350
- "internalType": "contract ILiquidityDensityFunction",
351
- "name": "liquidityDensityFunction",
352
- "type": "address"
353
- },
354
- {
355
- "internalType": "contract IHooklet",
356
- "name": "hooklet",
357
- "type": "address"
358
- },
359
- {
360
- "internalType": "enum LDFType",
361
- "name": "ldfType",
362
- "type": "uint8"
363
- },
364
- {
365
- "internalType": "bytes32",
366
- "name": "ldfParams",
367
- "type": "bytes32"
368
- },
369
- {
370
- "internalType": "contract IBunniHook",
371
- "name": "hooks",
372
- "type": "address"
373
- },
374
- {
375
- "internalType": "bytes",
376
- "name": "hookParams",
377
- "type": "bytes"
378
- },
379
- {
380
- "internalType": "contract ERC4626",
381
- "name": "vault0",
382
- "type": "address"
383
- },
384
- {
385
- "internalType": "contract ERC4626",
386
- "name": "vault1",
387
- "type": "address"
388
- },
389
- {
390
- "internalType": "uint24",
391
- "name": "minRawTokenRatio0",
392
- "type": "uint24"
393
- },
394
- {
395
- "internalType": "uint24",
396
- "name": "targetRawTokenRatio0",
397
- "type": "uint24"
398
- },
399
- {
400
- "internalType": "uint24",
401
- "name": "maxRawTokenRatio0",
402
- "type": "uint24"
403
- },
404
- {
405
- "internalType": "uint24",
406
- "name": "minRawTokenRatio1",
407
- "type": "uint24"
408
- },
409
- {
410
- "internalType": "uint24",
411
- "name": "targetRawTokenRatio1",
412
- "type": "uint24"
413
- },
414
- {
415
- "internalType": "uint24",
416
- "name": "maxRawTokenRatio1",
417
- "type": "uint24"
418
- },
419
- {
420
- "internalType": "uint160",
421
- "name": "sqrtPriceX96",
422
- "type": "uint160"
423
- },
424
- {
425
- "internalType": "bytes32",
426
- "name": "name",
427
- "type": "bytes32"
428
- },
429
- {
430
- "internalType": "bytes32",
431
- "name": "symbol",
432
- "type": "bytes32"
433
- },
434
- {
435
- "internalType": "address",
436
- "name": "owner",
437
- "type": "address"
438
- },
439
- {
440
- "internalType": "string",
441
- "name": "metadataURI",
442
- "type": "string"
443
- },
444
- {
445
- "internalType": "bytes32",
446
- "name": "salt",
447
- "type": "bytes32"
448
- }
449
- ],
450
- "internalType": "struct IBunniHub.DeployBunniTokenParams",
451
- "name": "",
452
- "type": "tuple"
453
- },
454
- {
455
- "components": [
456
- {
457
- "internalType": "contract IBunniToken",
458
- "name": "bunniToken",
459
- "type": "address"
460
- },
461
- {
462
- "components": [
463
- {
464
- "internalType": "Currency",
465
- "name": "currency0",
466
- "type": "address"
467
- },
468
- {
469
- "internalType": "Currency",
470
- "name": "currency1",
471
- "type": "address"
472
- },
473
- {
474
- "internalType": "uint24",
475
- "name": "fee",
476
- "type": "uint24"
477
- },
478
- {
479
- "internalType": "int24",
480
- "name": "tickSpacing",
481
- "type": "int24"
482
- },
483
- {
484
- "internalType": "contract IHooks",
485
- "name": "hooks",
486
- "type": "address"
487
- }
488
- ],
489
- "internalType": "struct PoolKey",
490
- "name": "key",
491
- "type": "tuple"
492
- }
493
- ],
494
- "internalType": "struct IHooklet.InitializeReturnData",
495
- "name": "",
496
- "type": "tuple"
497
- }
498
- ],
499
- "name": "afterInitialize",
500
- "outputs": [
501
- {
502
- "internalType": "bytes4",
503
- "name": "selector",
504
- "type": "bytes4"
505
- }
506
- ],
507
- "stateMutability": "pure",
508
- "type": "function"
509
- },
510
- {
511
- "inputs": [
512
- {
513
- "components": [
514
- {
515
- "internalType": "Currency",
516
- "name": "currency0",
517
- "type": "address"
518
- },
519
- {
520
- "internalType": "Currency",
521
- "name": "currency1",
522
- "type": "address"
523
- },
524
- {
525
- "internalType": "uint24",
526
- "name": "fee",
527
- "type": "uint24"
528
- },
529
- {
530
- "internalType": "int24",
531
- "name": "tickSpacing",
532
- "type": "int24"
533
- },
534
- {
535
- "internalType": "contract IHooks",
536
- "name": "hooks",
537
- "type": "address"
538
- }
539
- ],
540
- "internalType": "struct PoolKey",
541
- "name": "",
542
- "type": "tuple"
543
- },
544
- {
545
- "internalType": "bool",
546
- "name": "",
547
- "type": "bool"
548
- },
549
- {
550
- "internalType": "uint256",
551
- "name": "",
552
- "type": "uint256"
553
- },
554
- {
555
- "internalType": "uint256",
556
- "name": "",
557
- "type": "uint256"
558
- }
559
- ],
560
- "name": "afterRebalance",
561
- "outputs": [
562
- {
563
- "internalType": "bytes4",
564
- "name": "selector",
565
- "type": "bytes4"
566
- }
567
- ],
568
- "stateMutability": "pure",
569
- "type": "function"
570
- },
571
- {
572
- "inputs": [
573
- {
574
- "internalType": "address",
575
- "name": "",
576
- "type": "address"
577
- },
578
- {
579
- "components": [
580
- {
581
- "internalType": "Currency",
582
- "name": "currency0",
583
- "type": "address"
584
- },
585
- {
586
- "internalType": "Currency",
587
- "name": "currency1",
588
- "type": "address"
589
- },
590
- {
591
- "internalType": "uint24",
592
- "name": "fee",
593
- "type": "uint24"
594
- },
595
- {
596
- "internalType": "int24",
597
- "name": "tickSpacing",
598
- "type": "int24"
599
- },
600
- {
601
- "internalType": "contract IHooks",
602
- "name": "hooks",
603
- "type": "address"
604
- }
605
- ],
606
- "internalType": "struct PoolKey",
607
- "name": "",
608
- "type": "tuple"
609
- },
610
- {
611
- "components": [
612
- {
613
- "internalType": "bool",
614
- "name": "zeroForOne",
615
- "type": "bool"
616
- },
617
- {
618
- "internalType": "int256",
619
- "name": "amountSpecified",
620
- "type": "int256"
621
- },
622
- {
623
- "internalType": "uint160",
624
- "name": "sqrtPriceLimitX96",
625
- "type": "uint160"
626
- }
627
- ],
628
- "internalType": "struct IPoolManager.SwapParams",
629
- "name": "",
630
- "type": "tuple"
631
- },
632
- {
633
- "components": [
634
- {
635
- "internalType": "uint160",
636
- "name": "updatedSqrtPriceX96",
637
- "type": "uint160"
638
- },
639
- {
640
- "internalType": "int24",
641
- "name": "updatedTick",
642
- "type": "int24"
643
- },
644
- {
645
- "internalType": "uint256",
646
- "name": "inputAmount",
647
- "type": "uint256"
648
- },
649
- {
650
- "internalType": "uint256",
651
- "name": "outputAmount",
652
- "type": "uint256"
653
- },
654
- {
655
- "internalType": "uint24",
656
- "name": "swapFee",
657
- "type": "uint24"
658
- },
659
- {
660
- "internalType": "uint256",
661
- "name": "totalLiquidity",
662
- "type": "uint256"
663
- }
664
- ],
665
- "internalType": "struct IHooklet.SwapReturnData",
666
- "name": "",
667
- "type": "tuple"
668
- }
669
- ],
670
- "name": "afterSwap",
671
- "outputs": [
672
- {
673
- "internalType": "bytes4",
674
- "name": "selector",
675
- "type": "bytes4"
676
- }
677
- ],
678
- "stateMutability": "pure",
679
- "type": "function"
680
- },
681
- {
682
- "inputs": [
683
- {
684
- "internalType": "address",
685
- "name": "",
686
- "type": "address"
687
- },
688
- {
689
- "components": [
690
- {
691
- "internalType": "Currency",
692
- "name": "currency0",
693
- "type": "address"
694
- },
695
- {
696
- "internalType": "Currency",
697
- "name": "currency1",
698
- "type": "address"
699
- },
700
- {
701
- "internalType": "uint24",
702
- "name": "fee",
703
- "type": "uint24"
704
- },
705
- {
706
- "internalType": "int24",
707
- "name": "tickSpacing",
708
- "type": "int24"
709
- },
710
- {
711
- "internalType": "contract IHooks",
712
- "name": "hooks",
713
- "type": "address"
714
- }
715
- ],
716
- "internalType": "struct PoolKey",
717
- "name": "",
718
- "type": "tuple"
719
- },
720
- {
721
- "components": [
722
- {
723
- "internalType": "bool",
724
- "name": "zeroForOne",
725
- "type": "bool"
726
- },
727
- {
728
- "internalType": "int256",
729
- "name": "amountSpecified",
730
- "type": "int256"
731
- },
732
- {
733
- "internalType": "uint160",
734
- "name": "sqrtPriceLimitX96",
735
- "type": "uint160"
736
- }
737
- ],
738
- "internalType": "struct IPoolManager.SwapParams",
739
- "name": "",
740
- "type": "tuple"
741
- },
742
- {
743
- "components": [
744
- {
745
- "internalType": "uint160",
746
- "name": "updatedSqrtPriceX96",
747
- "type": "uint160"
748
- },
749
- {
750
- "internalType": "int24",
751
- "name": "updatedTick",
752
- "type": "int24"
753
- },
754
- {
755
- "internalType": "uint256",
756
- "name": "inputAmount",
757
- "type": "uint256"
758
- },
759
- {
760
- "internalType": "uint256",
761
- "name": "outputAmount",
762
- "type": "uint256"
763
- },
764
- {
765
- "internalType": "uint24",
766
- "name": "swapFee",
767
- "type": "uint24"
768
- },
769
- {
770
- "internalType": "uint256",
771
- "name": "totalLiquidity",
772
- "type": "uint256"
773
- }
774
- ],
775
- "internalType": "struct IHooklet.SwapReturnData",
776
- "name": "",
777
- "type": "tuple"
778
- }
779
- ],
780
- "name": "afterSwapView",
781
- "outputs": [
782
- {
783
- "internalType": "bytes4",
784
- "name": "selector",
785
- "type": "bytes4"
786
- }
787
- ],
788
- "stateMutability": "pure",
789
- "type": "function"
790
- },
791
- {
792
- "inputs": [
793
- {
794
- "internalType": "address",
795
- "name": "",
796
- "type": "address"
797
- },
798
- {
799
- "components": [
800
- {
801
- "internalType": "Currency",
802
- "name": "currency0",
803
- "type": "address"
804
- },
805
- {
806
- "internalType": "Currency",
807
- "name": "currency1",
808
- "type": "address"
809
- },
810
- {
811
- "internalType": "uint24",
812
- "name": "fee",
813
- "type": "uint24"
814
- },
815
- {
816
- "internalType": "int24",
817
- "name": "tickSpacing",
818
- "type": "int24"
819
- },
820
- {
821
- "internalType": "contract IHooks",
822
- "name": "hooks",
823
- "type": "address"
824
- }
825
- ],
826
- "internalType": "struct PoolKey",
827
- "name": "",
828
- "type": "tuple"
829
- },
830
- {
831
- "internalType": "contract IBunniToken",
832
- "name": "",
833
- "type": "address"
834
- },
835
- {
836
- "internalType": "address",
837
- "name": "",
838
- "type": "address"
839
- },
840
- {
841
- "internalType": "address",
842
- "name": "",
843
- "type": "address"
844
- },
845
- {
846
- "internalType": "uint256",
847
- "name": "",
848
- "type": "uint256"
849
- }
850
- ],
851
- "name": "afterTransfer",
852
- "outputs": [
853
- {
854
- "internalType": "bytes4",
855
- "name": "selector",
856
- "type": "bytes4"
857
- }
858
- ],
859
- "stateMutability": "pure",
860
- "type": "function"
861
- },
862
- {
863
- "inputs": [
864
- {
865
- "internalType": "address",
866
- "name": "",
867
- "type": "address"
868
- },
869
- {
870
- "components": [
871
- {
872
- "components": [
873
- {
874
- "internalType": "Currency",
875
- "name": "currency0",
876
- "type": "address"
877
- },
878
- {
879
- "internalType": "Currency",
880
- "name": "currency1",
881
- "type": "address"
882
- },
883
- {
884
- "internalType": "uint24",
885
- "name": "fee",
886
- "type": "uint24"
887
- },
888
- {
889
- "internalType": "int24",
890
- "name": "tickSpacing",
891
- "type": "int24"
892
- },
893
- {
894
- "internalType": "contract IHooks",
895
- "name": "hooks",
896
- "type": "address"
897
- }
898
- ],
899
- "internalType": "struct PoolKey",
900
- "name": "poolKey",
901
- "type": "tuple"
902
- },
903
- {
904
- "internalType": "address",
905
- "name": "recipient",
906
- "type": "address"
907
- },
908
- {
909
- "internalType": "uint256",
910
- "name": "shares",
911
- "type": "uint256"
912
- },
913
- {
914
- "internalType": "uint256",
915
- "name": "amount0Min",
916
- "type": "uint256"
917
- },
918
- {
919
- "internalType": "uint256",
920
- "name": "amount1Min",
921
- "type": "uint256"
922
- },
923
- {
924
- "internalType": "uint256",
925
- "name": "deadline",
926
- "type": "uint256"
927
- },
928
- {
929
- "internalType": "bool",
930
- "name": "useQueuedWithdrawal",
931
- "type": "bool"
932
- }
933
- ],
934
- "internalType": "struct IBunniHub.WithdrawParams",
935
- "name": "",
936
- "type": "tuple"
937
- },
938
- {
939
- "components": [
940
- {
941
- "internalType": "uint256",
942
- "name": "amount0",
943
- "type": "uint256"
944
- },
945
- {
946
- "internalType": "uint256",
947
- "name": "amount1",
948
- "type": "uint256"
949
- }
950
- ],
951
- "internalType": "struct IHooklet.WithdrawReturnData",
952
- "name": "",
953
- "type": "tuple"
954
- }
955
- ],
956
- "name": "afterWithdraw",
957
- "outputs": [
958
- {
959
- "internalType": "bytes4",
960
- "name": "selector",
961
- "type": "bytes4"
962
- }
963
- ],
964
- "stateMutability": "pure",
965
- "type": "function"
966
- },
967
- {
968
- "inputs": [
969
- {
970
- "internalType": "address",
971
- "name": "",
972
- "type": "address"
973
- },
974
- {
975
- "components": [
976
- {
977
- "components": [
978
- {
979
- "internalType": "Currency",
980
- "name": "currency0",
981
- "type": "address"
982
- },
983
- {
984
- "internalType": "Currency",
985
- "name": "currency1",
986
- "type": "address"
987
- },
988
- {
989
- "internalType": "uint24",
990
- "name": "fee",
991
- "type": "uint24"
992
- },
993
- {
994
- "internalType": "int24",
995
- "name": "tickSpacing",
996
- "type": "int24"
997
- },
998
- {
999
- "internalType": "contract IHooks",
1000
- "name": "hooks",
1001
- "type": "address"
1002
- }
1003
- ],
1004
- "internalType": "struct PoolKey",
1005
- "name": "poolKey",
1006
- "type": "tuple"
1007
- },
1008
- {
1009
- "internalType": "address",
1010
- "name": "recipient",
1011
- "type": "address"
1012
- },
1013
- {
1014
- "internalType": "uint256",
1015
- "name": "shares",
1016
- "type": "uint256"
1017
- },
1018
- {
1019
- "internalType": "uint256",
1020
- "name": "amount0Min",
1021
- "type": "uint256"
1022
- },
1023
- {
1024
- "internalType": "uint256",
1025
- "name": "amount1Min",
1026
- "type": "uint256"
1027
- },
1028
- {
1029
- "internalType": "uint256",
1030
- "name": "deadline",
1031
- "type": "uint256"
1032
- },
1033
- {
1034
- "internalType": "bool",
1035
- "name": "useQueuedWithdrawal",
1036
- "type": "bool"
1037
- }
1038
- ],
1039
- "internalType": "struct IBunniHub.WithdrawParams",
1040
- "name": "",
1041
- "type": "tuple"
1042
- },
1043
- {
1044
- "components": [
1045
- {
1046
- "internalType": "uint256",
1047
- "name": "amount0",
1048
- "type": "uint256"
1049
- },
1050
- {
1051
- "internalType": "uint256",
1052
- "name": "amount1",
1053
- "type": "uint256"
1054
- }
1055
- ],
1056
- "internalType": "struct IHooklet.WithdrawReturnData",
1057
- "name": "",
1058
- "type": "tuple"
1059
- }
1060
- ],
1061
- "name": "afterWithdrawView",
1062
- "outputs": [
1063
- {
1064
- "internalType": "bytes4",
1065
- "name": "selector",
1066
- "type": "bytes4"
1067
- }
1068
- ],
1069
- "stateMutability": "pure",
1070
- "type": "function"
1071
- },
1072
- {
1073
- "inputs": [
1074
- {
1075
- "internalType": "address",
1076
- "name": "",
1077
- "type": "address"
1078
- },
1079
- {
1080
- "components": [
1081
- {
1082
- "components": [
1083
- {
1084
- "internalType": "Currency",
1085
- "name": "currency0",
1086
- "type": "address"
1087
- },
1088
- {
1089
- "internalType": "Currency",
1090
- "name": "currency1",
1091
- "type": "address"
1092
- },
1093
- {
1094
- "internalType": "uint24",
1095
- "name": "fee",
1096
- "type": "uint24"
1097
- },
1098
- {
1099
- "internalType": "int24",
1100
- "name": "tickSpacing",
1101
- "type": "int24"
1102
- },
1103
- {
1104
- "internalType": "contract IHooks",
1105
- "name": "hooks",
1106
- "type": "address"
1107
- }
1108
- ],
1109
- "internalType": "struct PoolKey",
1110
- "name": "poolKey",
1111
- "type": "tuple"
1112
- },
1113
- {
1114
- "internalType": "address",
1115
- "name": "recipient",
1116
- "type": "address"
1117
- },
1118
- {
1119
- "internalType": "address",
1120
- "name": "refundRecipient",
1121
- "type": "address"
1122
- },
1123
- {
1124
- "internalType": "uint256",
1125
- "name": "amount0Desired",
1126
- "type": "uint256"
1127
- },
1128
- {
1129
- "internalType": "uint256",
1130
- "name": "amount1Desired",
1131
- "type": "uint256"
1132
- },
1133
- {
1134
- "internalType": "uint256",
1135
- "name": "amount0Min",
1136
- "type": "uint256"
1137
- },
1138
- {
1139
- "internalType": "uint256",
1140
- "name": "amount1Min",
1141
- "type": "uint256"
1142
- },
1143
- {
1144
- "internalType": "uint256",
1145
- "name": "vaultFee0",
1146
- "type": "uint256"
1147
- },
1148
- {
1149
- "internalType": "uint256",
1150
- "name": "vaultFee1",
1151
- "type": "uint256"
1152
- },
1153
- {
1154
- "internalType": "uint256",
1155
- "name": "deadline",
1156
- "type": "uint256"
1157
- },
1158
- {
1159
- "internalType": "address",
1160
- "name": "referrer",
1161
- "type": "address"
1162
- }
1163
- ],
1164
- "internalType": "struct IBunniHub.DepositParams",
1165
- "name": "",
1166
- "type": "tuple"
1167
- }
1168
- ],
1169
- "name": "beforeDeposit",
1170
- "outputs": [
1171
- {
1172
- "internalType": "bytes4",
1173
- "name": "selector",
1174
- "type": "bytes4"
1175
- }
1176
- ],
1177
- "stateMutability": "pure",
1178
- "type": "function"
1179
- },
1180
- {
1181
- "inputs": [
1182
- {
1183
- "internalType": "address",
1184
- "name": "",
1185
- "type": "address"
1186
- },
1187
- {
1188
- "components": [
1189
- {
1190
- "components": [
1191
- {
1192
- "internalType": "Currency",
1193
- "name": "currency0",
1194
- "type": "address"
1195
- },
1196
- {
1197
- "internalType": "Currency",
1198
- "name": "currency1",
1199
- "type": "address"
1200
- },
1201
- {
1202
- "internalType": "uint24",
1203
- "name": "fee",
1204
- "type": "uint24"
1205
- },
1206
- {
1207
- "internalType": "int24",
1208
- "name": "tickSpacing",
1209
- "type": "int24"
1210
- },
1211
- {
1212
- "internalType": "contract IHooks",
1213
- "name": "hooks",
1214
- "type": "address"
1215
- }
1216
- ],
1217
- "internalType": "struct PoolKey",
1218
- "name": "poolKey",
1219
- "type": "tuple"
1220
- },
1221
- {
1222
- "internalType": "address",
1223
- "name": "recipient",
1224
- "type": "address"
1225
- },
1226
- {
1227
- "internalType": "address",
1228
- "name": "refundRecipient",
1229
- "type": "address"
1230
- },
1231
- {
1232
- "internalType": "uint256",
1233
- "name": "amount0Desired",
1234
- "type": "uint256"
1235
- },
1236
- {
1237
- "internalType": "uint256",
1238
- "name": "amount1Desired",
1239
- "type": "uint256"
1240
- },
1241
- {
1242
- "internalType": "uint256",
1243
- "name": "amount0Min",
1244
- "type": "uint256"
1245
- },
1246
- {
1247
- "internalType": "uint256",
1248
- "name": "amount1Min",
1249
- "type": "uint256"
1250
- },
1251
- {
1252
- "internalType": "uint256",
1253
- "name": "vaultFee0",
1254
- "type": "uint256"
1255
- },
1256
- {
1257
- "internalType": "uint256",
1258
- "name": "vaultFee1",
1259
- "type": "uint256"
1260
- },
1261
- {
1262
- "internalType": "uint256",
1263
- "name": "deadline",
1264
- "type": "uint256"
1265
- },
1266
- {
1267
- "internalType": "address",
1268
- "name": "referrer",
1269
- "type": "address"
1270
- }
1271
- ],
1272
- "internalType": "struct IBunniHub.DepositParams",
1273
- "name": "",
1274
- "type": "tuple"
1275
- }
1276
- ],
1277
- "name": "beforeDepositView",
1278
- "outputs": [
1279
- {
1280
- "internalType": "bytes4",
1281
- "name": "selector",
1282
- "type": "bytes4"
1283
- }
1284
- ],
1285
- "stateMutability": "pure",
1286
- "type": "function"
1287
- },
1288
- {
1289
- "inputs": [
1290
- {
1291
- "internalType": "address",
1292
- "name": "",
1293
- "type": "address"
1294
- },
1295
- {
1296
- "components": [
1297
- {
1298
- "internalType": "Currency",
1299
- "name": "currency0",
1300
- "type": "address"
1301
- },
1302
- {
1303
- "internalType": "Currency",
1304
- "name": "currency1",
1305
- "type": "address"
1306
- },
1307
- {
1308
- "internalType": "int24",
1309
- "name": "tickSpacing",
1310
- "type": "int24"
1311
- },
1312
- {
1313
- "internalType": "uint24",
1314
- "name": "twapSecondsAgo",
1315
- "type": "uint24"
1316
- },
1317
- {
1318
- "internalType": "contract ILiquidityDensityFunction",
1319
- "name": "liquidityDensityFunction",
1320
- "type": "address"
1321
- },
1322
- {
1323
- "internalType": "contract IHooklet",
1324
- "name": "hooklet",
1325
- "type": "address"
1326
- },
1327
- {
1328
- "internalType": "enum LDFType",
1329
- "name": "ldfType",
1330
- "type": "uint8"
1331
- },
1332
- {
1333
- "internalType": "bytes32",
1334
- "name": "ldfParams",
1335
- "type": "bytes32"
1336
- },
1337
- {
1338
- "internalType": "contract IBunniHook",
1339
- "name": "hooks",
1340
- "type": "address"
1341
- },
1342
- {
1343
- "internalType": "bytes",
1344
- "name": "hookParams",
1345
- "type": "bytes"
1346
- },
1347
- {
1348
- "internalType": "contract ERC4626",
1349
- "name": "vault0",
1350
- "type": "address"
1351
- },
1352
- {
1353
- "internalType": "contract ERC4626",
1354
- "name": "vault1",
1355
- "type": "address"
1356
- },
1357
- {
1358
- "internalType": "uint24",
1359
- "name": "minRawTokenRatio0",
1360
- "type": "uint24"
1361
- },
1362
- {
1363
- "internalType": "uint24",
1364
- "name": "targetRawTokenRatio0",
1365
- "type": "uint24"
1366
- },
1367
- {
1368
- "internalType": "uint24",
1369
- "name": "maxRawTokenRatio0",
1370
- "type": "uint24"
1371
- },
1372
- {
1373
- "internalType": "uint24",
1374
- "name": "minRawTokenRatio1",
1375
- "type": "uint24"
1376
- },
1377
- {
1378
- "internalType": "uint24",
1379
- "name": "targetRawTokenRatio1",
1380
- "type": "uint24"
1381
- },
1382
- {
1383
- "internalType": "uint24",
1384
- "name": "maxRawTokenRatio1",
1385
- "type": "uint24"
1386
- },
1387
- {
1388
- "internalType": "uint160",
1389
- "name": "sqrtPriceX96",
1390
- "type": "uint160"
1391
- },
1392
- {
1393
- "internalType": "bytes32",
1394
- "name": "name",
1395
- "type": "bytes32"
1396
- },
1397
- {
1398
- "internalType": "bytes32",
1399
- "name": "symbol",
1400
- "type": "bytes32"
1401
- },
1402
- {
1403
- "internalType": "address",
1404
- "name": "owner",
1405
- "type": "address"
1406
- },
1407
- {
1408
- "internalType": "string",
1409
- "name": "metadataURI",
1410
- "type": "string"
1411
- },
1412
- {
1413
- "internalType": "bytes32",
1414
- "name": "salt",
1415
- "type": "bytes32"
1416
- }
1417
- ],
1418
- "internalType": "struct IBunniHub.DeployBunniTokenParams",
1419
- "name": "",
1420
- "type": "tuple"
1421
- }
1422
- ],
1423
- "name": "beforeInitialize",
1424
- "outputs": [
1425
- {
1426
- "internalType": "bytes4",
1427
- "name": "selector",
1428
- "type": "bytes4"
1429
- }
1430
- ],
1431
- "stateMutability": "pure",
1432
- "type": "function"
1433
- },
1434
- {
1435
- "inputs": [
1436
- {
1437
- "internalType": "address",
1438
- "name": "",
1439
- "type": "address"
1440
- },
1441
- {
1442
- "components": [
1443
- {
1444
- "internalType": "Currency",
1445
- "name": "currency0",
1446
- "type": "address"
1447
- },
1448
- {
1449
- "internalType": "Currency",
1450
- "name": "currency1",
1451
- "type": "address"
1452
- },
1453
- {
1454
- "internalType": "uint24",
1455
- "name": "fee",
1456
- "type": "uint24"
1457
- },
1458
- {
1459
- "internalType": "int24",
1460
- "name": "tickSpacing",
1461
- "type": "int24"
1462
- },
1463
- {
1464
- "internalType": "contract IHooks",
1465
- "name": "hooks",
1466
- "type": "address"
1467
- }
1468
- ],
1469
- "internalType": "struct PoolKey",
1470
- "name": "key",
1471
- "type": "tuple"
1472
- },
1473
- {
1474
- "components": [
1475
- {
1476
- "internalType": "bool",
1477
- "name": "zeroForOne",
1478
- "type": "bool"
1479
- },
1480
- {
1481
- "internalType": "int256",
1482
- "name": "amountSpecified",
1483
- "type": "int256"
1484
- },
1485
- {
1486
- "internalType": "uint160",
1487
- "name": "sqrtPriceLimitX96",
1488
- "type": "uint160"
1489
- }
1490
- ],
1491
- "internalType": "struct IPoolManager.SwapParams",
1492
- "name": "params",
1493
- "type": "tuple"
1494
- }
1495
- ],
1496
- "name": "beforeSwap",
1497
- "outputs": [
1498
- {
1499
- "internalType": "bytes4",
1500
- "name": "selector",
1501
- "type": "bytes4"
1502
- },
1503
- {
1504
- "internalType": "bool",
1505
- "name": "feeOverriden",
1506
- "type": "bool"
1507
- },
1508
- {
1509
- "internalType": "uint24",
1510
- "name": "fee",
1511
- "type": "uint24"
1512
- },
1513
- {
1514
- "internalType": "bool",
1515
- "name": "priceOverridden",
1516
- "type": "bool"
1517
- },
1518
- {
1519
- "internalType": "uint160",
1520
- "name": "sqrtPriceX96",
1521
- "type": "uint160"
1522
- }
1523
- ],
1524
- "stateMutability": "view",
1525
- "type": "function"
1526
- },
1527
- {
1528
- "inputs": [
1529
- {
1530
- "internalType": "address",
1531
- "name": "",
1532
- "type": "address"
1533
- },
1534
- {
1535
- "components": [
1536
- {
1537
- "internalType": "Currency",
1538
- "name": "currency0",
1539
- "type": "address"
1540
- },
1541
- {
1542
- "internalType": "Currency",
1543
- "name": "currency1",
1544
- "type": "address"
1545
- },
1546
- {
1547
- "internalType": "uint24",
1548
- "name": "fee",
1549
- "type": "uint24"
1550
- },
1551
- {
1552
- "internalType": "int24",
1553
- "name": "tickSpacing",
1554
- "type": "int24"
1555
- },
1556
- {
1557
- "internalType": "contract IHooks",
1558
- "name": "hooks",
1559
- "type": "address"
1560
- }
1561
- ],
1562
- "internalType": "struct PoolKey",
1563
- "name": "key",
1564
- "type": "tuple"
1565
- },
1566
- {
1567
- "components": [
1568
- {
1569
- "internalType": "bool",
1570
- "name": "zeroForOne",
1571
- "type": "bool"
1572
- },
1573
- {
1574
- "internalType": "int256",
1575
- "name": "amountSpecified",
1576
- "type": "int256"
1577
- },
1578
- {
1579
- "internalType": "uint160",
1580
- "name": "sqrtPriceLimitX96",
1581
- "type": "uint160"
1582
- }
1583
- ],
1584
- "internalType": "struct IPoolManager.SwapParams",
1585
- "name": "params",
1586
- "type": "tuple"
1587
- }
1588
- ],
1589
- "name": "beforeSwapView",
1590
- "outputs": [
1591
- {
1592
- "internalType": "bytes4",
1593
- "name": "selector",
1594
- "type": "bytes4"
1595
- },
1596
- {
1597
- "internalType": "bool",
1598
- "name": "feeOverriden",
1599
- "type": "bool"
1600
- },
1601
- {
1602
- "internalType": "uint24",
1603
- "name": "fee",
1604
- "type": "uint24"
1605
- },
1606
- {
1607
- "internalType": "bool",
1608
- "name": "priceOverridden",
1609
- "type": "bool"
1610
- },
1611
- {
1612
- "internalType": "uint160",
1613
- "name": "sqrtPriceX96",
1614
- "type": "uint160"
1615
- }
1616
- ],
1617
- "stateMutability": "view",
1618
- "type": "function"
1619
- },
1620
- {
1621
- "inputs": [
1622
- {
1623
- "internalType": "address",
1624
- "name": "",
1625
- "type": "address"
1626
- },
1627
- {
1628
- "components": [
1629
- {
1630
- "internalType": "Currency",
1631
- "name": "currency0",
1632
- "type": "address"
1633
- },
1634
- {
1635
- "internalType": "Currency",
1636
- "name": "currency1",
1637
- "type": "address"
1638
- },
1639
- {
1640
- "internalType": "uint24",
1641
- "name": "fee",
1642
- "type": "uint24"
1643
- },
1644
- {
1645
- "internalType": "int24",
1646
- "name": "tickSpacing",
1647
- "type": "int24"
1648
- },
1649
- {
1650
- "internalType": "contract IHooks",
1651
- "name": "hooks",
1652
- "type": "address"
1653
- }
1654
- ],
1655
- "internalType": "struct PoolKey",
1656
- "name": "",
1657
- "type": "tuple"
1658
- },
1659
- {
1660
- "internalType": "contract IBunniToken",
1661
- "name": "",
1662
- "type": "address"
1663
- },
1664
- {
1665
- "internalType": "address",
1666
- "name": "",
1667
- "type": "address"
1668
- },
1669
- {
1670
- "internalType": "address",
1671
- "name": "",
1672
- "type": "address"
1673
- },
1674
- {
1675
- "internalType": "uint256",
1676
- "name": "",
1677
- "type": "uint256"
1678
- }
1679
- ],
1680
- "name": "beforeTransfer",
1681
- "outputs": [
1682
- {
1683
- "internalType": "bytes4",
1684
- "name": "selector",
1685
- "type": "bytes4"
1686
- }
1687
- ],
1688
- "stateMutability": "pure",
1689
- "type": "function"
1690
- },
1691
- {
1692
- "inputs": [
1693
- {
1694
- "internalType": "address",
1695
- "name": "",
1696
- "type": "address"
1697
- },
1698
- {
1699
- "components": [
1700
- {
1701
- "components": [
1702
- {
1703
- "internalType": "Currency",
1704
- "name": "currency0",
1705
- "type": "address"
1706
- },
1707
- {
1708
- "internalType": "Currency",
1709
- "name": "currency1",
1710
- "type": "address"
1711
- },
1712
- {
1713
- "internalType": "uint24",
1714
- "name": "fee",
1715
- "type": "uint24"
1716
- },
1717
- {
1718
- "internalType": "int24",
1719
- "name": "tickSpacing",
1720
- "type": "int24"
1721
- },
1722
- {
1723
- "internalType": "contract IHooks",
1724
- "name": "hooks",
1725
- "type": "address"
1726
- }
1727
- ],
1728
- "internalType": "struct PoolKey",
1729
- "name": "poolKey",
1730
- "type": "tuple"
1731
- },
1732
- {
1733
- "internalType": "address",
1734
- "name": "recipient",
1735
- "type": "address"
1736
- },
1737
- {
1738
- "internalType": "uint256",
1739
- "name": "shares",
1740
- "type": "uint256"
1741
- },
1742
- {
1743
- "internalType": "uint256",
1744
- "name": "amount0Min",
1745
- "type": "uint256"
1746
- },
1747
- {
1748
- "internalType": "uint256",
1749
- "name": "amount1Min",
1750
- "type": "uint256"
1751
- },
1752
- {
1753
- "internalType": "uint256",
1754
- "name": "deadline",
1755
- "type": "uint256"
1756
- },
1757
- {
1758
- "internalType": "bool",
1759
- "name": "useQueuedWithdrawal",
1760
- "type": "bool"
1761
- }
1762
- ],
1763
- "internalType": "struct IBunniHub.WithdrawParams",
1764
- "name": "",
1765
- "type": "tuple"
1766
- }
1767
- ],
1768
- "name": "beforeWithdraw",
1769
- "outputs": [
1770
- {
1771
- "internalType": "bytes4",
1772
- "name": "selector",
1773
- "type": "bytes4"
1774
- }
1775
- ],
1776
- "stateMutability": "pure",
1777
- "type": "function"
1778
- },
1779
- {
1780
- "inputs": [
1781
- {
1782
- "internalType": "address",
1783
- "name": "",
1784
- "type": "address"
1785
- },
1786
- {
1787
- "components": [
1788
- {
1789
- "components": [
1790
- {
1791
- "internalType": "Currency",
1792
- "name": "currency0",
1793
- "type": "address"
1794
- },
1795
- {
1796
- "internalType": "Currency",
1797
- "name": "currency1",
1798
- "type": "address"
1799
- },
1800
- {
1801
- "internalType": "uint24",
1802
- "name": "fee",
1803
- "type": "uint24"
1804
- },
1805
- {
1806
- "internalType": "int24",
1807
- "name": "tickSpacing",
1808
- "type": "int24"
1809
- },
1810
- {
1811
- "internalType": "contract IHooks",
1812
- "name": "hooks",
1813
- "type": "address"
1814
- }
1815
- ],
1816
- "internalType": "struct PoolKey",
1817
- "name": "poolKey",
1818
- "type": "tuple"
1819
- },
1820
- {
1821
- "internalType": "address",
1822
- "name": "recipient",
1823
- "type": "address"
1824
- },
1825
- {
1826
- "internalType": "uint256",
1827
- "name": "shares",
1828
- "type": "uint256"
1829
- },
1830
- {
1831
- "internalType": "uint256",
1832
- "name": "amount0Min",
1833
- "type": "uint256"
1834
- },
1835
- {
1836
- "internalType": "uint256",
1837
- "name": "amount1Min",
1838
- "type": "uint256"
1839
- },
1840
- {
1841
- "internalType": "uint256",
1842
- "name": "deadline",
1843
- "type": "uint256"
1844
- },
1845
- {
1846
- "internalType": "bool",
1847
- "name": "useQueuedWithdrawal",
1848
- "type": "bool"
1849
- }
1850
- ],
1851
- "internalType": "struct IBunniHub.WithdrawParams",
1852
- "name": "",
1853
- "type": "tuple"
1854
- }
1855
- ],
1856
- "name": "beforeWithdrawView",
1857
- "outputs": [
1858
- {
1859
- "internalType": "bytes4",
1860
- "name": "selector",
1861
- "type": "bytes4"
1862
- }
1863
- ],
1864
- "stateMutability": "pure",
1865
- "type": "function"
1866
- },
1867
- {
1868
- "inputs": [],
1869
- "name": "bunniHub",
1870
- "outputs": [
1871
- {
1872
- "internalType": "contract IBunniHub",
1873
- "name": "",
1874
- "type": "address"
1875
- }
1876
- ],
1877
- "stateMutability": "view",
1878
- "type": "function"
1879
- },
1880
- {
1881
- "inputs": [
1882
- {
1883
- "internalType": "PoolId",
1884
- "name": "",
1885
- "type": "bytes32"
1886
- }
1887
- ],
1888
- "name": "feeOverrides",
1889
- "outputs": [
1890
- {
1891
- "internalType": "bool",
1892
- "name": "overrideZeroToOne",
1893
- "type": "bool"
1894
- },
1895
- {
1896
- "internalType": "uint24",
1897
- "name": "feeZeroToOne",
1898
- "type": "uint24"
1899
- },
1900
- {
1901
- "internalType": "bool",
1902
- "name": "overrideOneToZero",
1903
- "type": "bool"
1904
- },
1905
- {
1906
- "internalType": "uint24",
1907
- "name": "feeOneToZero",
1908
- "type": "uint24"
1909
- }
1910
- ],
1911
- "stateMutability": "view",
1912
- "type": "function"
1913
- },
1914
- {
1915
- "inputs": [
1916
- {
1917
- "internalType": "PoolId",
1918
- "name": "id",
1919
- "type": "bytes32"
1920
- },
1921
- {
1922
- "internalType": "bool",
1923
- "name": "overrideZeroToOne",
1924
- "type": "bool"
1925
- },
1926
- {
1927
- "internalType": "uint24",
1928
- "name": "feeZeroToOne",
1929
- "type": "uint24"
1930
- },
1931
- {
1932
- "internalType": "bool",
1933
- "name": "overrideOneToZero",
1934
- "type": "bool"
1935
- },
1936
- {
1937
- "internalType": "uint24",
1938
- "name": "feeOneToZero",
1939
- "type": "uint24"
1940
- }
1941
- ],
1942
- "name": "setFeeOverride",
1943
- "outputs": [],
1944
- "stateMutability": "nonpayable",
1945
- "type": "function"
1946
- }
1947
- ]