@paraswap/dex-lib 4.7.18-before-multi-route.0 → 4.7.18

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 (170) hide show
  1. package/build/abi/PendleRouterStatic.json +19 -0
  2. package/build/abi/apex-defi/ApexDefiFactory.abi.json +1749 -0
  3. package/build/abi/apex-defi/ApexDefiRouter.abi.json +1120 -0
  4. package/build/abi/apex-defi/ApexDefiToken.abi.json +229 -0
  5. package/build/abi/apex-defi/ApexDefiWrapper.abi.json +92 -0
  6. package/build/abi/apex-defi/ApexDefiWrapperFactory.abi.json +1107 -0
  7. package/build/abi/pangolin-v3/PangolinV3StateMulticall.abi.json +796 -0
  8. package/build/abi/pendle/pendle-deployer.abi.json +520 -0
  9. package/build/abi/pendle/pendle-oracle.abi.json +413 -0
  10. package/build/abi/pharaoh-v3/PharaohV3Factory.abi.json +101 -0
  11. package/build/abi/ring-v2/few-wrapped-token.json +587 -0
  12. package/build/abi/ring-v2/ring-v2-factory.json +125 -0
  13. package/build/abi/ring-v2/ring-v2-pool.json +461 -0
  14. package/build/abi/ring-v2/ring-v2-router.json +332 -0
  15. package/build/abi/stabull/stabull-curve.json +738 -0
  16. package/build/abi/stabull/stabull-router.json +76 -0
  17. package/build/abi/uniswap-v4/hooks/SpotDynamicFeeManager.json +26 -0
  18. package/build/abi/uniswap-v4/hooks/SpotHook.json +54 -0
  19. package/build/abi/uniswap-v4/hooks/SpotPolicyManager.json +45 -0
  20. package/build/abi/uniswap-v4/hooks/cabalcoin-hook.abi.json +682 -0
  21. package/build/abi/uniswap-v4/hooks/fee-hook.abi.json +1335 -0
  22. package/build/dex/aave-pt-to-underlying/aave-pt-to-underlying-factory.d.ts +29 -0
  23. package/build/dex/aave-pt-to-underlying/aave-pt-to-underlying-factory.js +153 -0
  24. package/build/dex/aave-pt-to-underlying/aave-pt-to-underlying-factory.js.map +1 -0
  25. package/build/dex/aave-pt-to-underlying/aave-pt-to-underlying.d.ts +40 -0
  26. package/build/dex/aave-pt-to-underlying/aave-pt-to-underlying.js +323 -0
  27. package/build/dex/aave-pt-to-underlying/aave-pt-to-underlying.js.map +1 -0
  28. package/build/dex/aave-pt-to-underlying/config.d.ts +3 -0
  29. package/build/dex/aave-pt-to-underlying/config.js +24 -0
  30. package/build/dex/aave-pt-to-underlying/config.js.map +1 -0
  31. package/build/dex/aave-pt-to-underlying/constants.d.ts +2 -0
  32. package/build/dex/aave-pt-to-underlying/constants.js +6 -0
  33. package/build/dex/aave-pt-to-underlying/constants.js.map +1 -0
  34. package/build/dex/aave-pt-to-underlying/types.d.ts +24 -0
  35. package/build/dex/aave-pt-to-underlying/types.js +3 -0
  36. package/build/dex/aave-pt-to-underlying/types.js.map +1 -0
  37. package/build/dex/aave-pt-to-usdc/aave-pt-to-usdc.d.ts +39 -0
  38. package/build/dex/aave-pt-to-usdc/aave-pt-to-usdc.js +244 -0
  39. package/build/dex/aave-pt-to-usdc/aave-pt-to-usdc.js.map +1 -0
  40. package/build/dex/aave-pt-to-usdc/config.d.ts +3 -0
  41. package/build/dex/aave-pt-to-usdc/config.js +47 -0
  42. package/build/dex/aave-pt-to-usdc/config.js.map +1 -0
  43. package/build/dex/aave-pt-to-usdc/constants.d.ts +2 -0
  44. package/build/dex/aave-pt-to-usdc/constants.js +6 -0
  45. package/build/dex/aave-pt-to-usdc/constants.js.map +1 -0
  46. package/build/dex/aave-pt-to-usdc/types.d.ts +22 -0
  47. package/build/dex/aave-pt-to-usdc/types.js +3 -0
  48. package/build/dex/aave-pt-to-usdc/types.js.map +1 -0
  49. package/build/dex/apex-defi/apex-defi-factory.d.ts +26 -0
  50. package/build/dex/apex-defi/apex-defi-factory.js +53 -0
  51. package/build/dex/apex-defi/apex-defi-factory.js.map +1 -0
  52. package/build/dex/apex-defi/apex-defi-pool.d.ts +55 -0
  53. package/build/dex/apex-defi/apex-defi-pool.js +247 -0
  54. package/build/dex/apex-defi/apex-defi-pool.js.map +1 -0
  55. package/build/dex/apex-defi/apex-defi-wrapper-factory.d.ts +57 -0
  56. package/build/dex/apex-defi/apex-defi-wrapper-factory.js +250 -0
  57. package/build/dex/apex-defi/apex-defi-wrapper-factory.js.map +1 -0
  58. package/build/dex/apex-defi/apex-defi.d.ts +97 -0
  59. package/build/dex/apex-defi/apex-defi.js +1021 -0
  60. package/build/dex/apex-defi/apex-defi.js.map +1 -0
  61. package/build/dex/apex-defi/config.d.ts +4 -0
  62. package/build/dex/apex-defi/config.js +138 -0
  63. package/build/dex/apex-defi/config.js.map +1 -0
  64. package/build/dex/apex-defi/types.d.ts +32 -0
  65. package/build/dex/apex-defi/types.js +3 -0
  66. package/build/dex/apex-defi/types.js.map +1 -0
  67. package/build/dex/apex-defi/utils.d.ts +46 -0
  68. package/build/dex/apex-defi/utils.js +133 -0
  69. package/build/dex/apex-defi/utils.js.map +1 -0
  70. package/build/dex/idle-dao/idle-dao.d.ts +0 -1
  71. package/build/dex/idle-dao/idle-dao.js +11 -23
  72. package/build/dex/idle-dao/idle-dao.js.map +1 -1
  73. package/build/dex/maker-psm/maker-psm.d.ts +41 -4
  74. package/build/dex/maker-psm/maker-psm.js +143 -40
  75. package/build/dex/maker-psm/maker-psm.js.map +1 -1
  76. package/build/dex/miro-migrator/miro-migrator-state.d.ts +27 -0
  77. package/build/dex/miro-migrator/miro-migrator-state.js +89 -0
  78. package/build/dex/miro-migrator/miro-migrator-state.js.map +1 -0
  79. package/build/dex/simple-exchange.js +1 -7
  80. package/build/dex/simple-exchange.js.map +1 -1
  81. package/build/dex/stabull/config.d.ts +3 -0
  82. package/build/dex/stabull/config.js +177 -0
  83. package/build/dex/stabull/config.js.map +1 -0
  84. package/build/dex/stabull/stabull-pool.d.ts +46 -0
  85. package/build/dex/stabull/stabull-pool.js +113 -0
  86. package/build/dex/stabull/stabull-pool.js.map +1 -0
  87. package/build/dex/stabull/stabull.d.ts +55 -0
  88. package/build/dex/stabull/stabull.js +286 -0
  89. package/build/dex/stabull/stabull.js.map +1 -0
  90. package/build/dex/stabull/types.d.ts +21 -0
  91. package/build/dex/stabull/types.js +3 -0
  92. package/build/dex/stabull/types.js.map +1 -0
  93. package/build/dex/uniswap-v2/constants.js +2 -0
  94. package/build/dex/uniswap-v2/constants.js.map +1 -1
  95. package/build/dex/uniswap-v3/forks/pangolin-v3/utils.d.ts +4 -0
  96. package/build/dex/uniswap-v3/forks/pangolin-v3/utils.js +56 -0
  97. package/build/dex/uniswap-v3/forks/pangolin-v3/utils.js.map +1 -0
  98. package/build/dex/uniswap-v4/config.js +2 -0
  99. package/build/dex/uniswap-v4/config.js.map +1 -1
  100. package/build/dex/uniswap-v4/contract-math/uniswap-v4-pool-math.d.ts +2 -1
  101. package/build/dex/uniswap-v4/contract-math/uniswap-v4-pool-math.js +28 -9
  102. package/build/dex/uniswap-v4/contract-math/uniswap-v4-pool-math.js.map +1 -1
  103. package/build/dex/uniswap-v4/hooks/arena/arena-hook.js +4 -4
  104. package/build/dex/uniswap-v4/hooks/arena/arena-hook.js.map +1 -1
  105. package/build/dex/uniswap-v4/hooks/arena.d.ts +6 -0
  106. package/build/dex/uniswap-v4/hooks/arena.js +10 -0
  107. package/build/dex/uniswap-v4/hooks/arena.js.map +1 -0
  108. package/build/dex/uniswap-v4/hooks/base-fee/base-fee-hook.d.ts +0 -0
  109. package/build/dex/uniswap-v4/hooks/base-fee/base-fee-hook.js +2 -0
  110. package/build/dex/uniswap-v4/hooks/base-fee/base-fee-hook.js.map +1 -0
  111. package/build/dex/uniswap-v4/hooks/cabalcoin-hook/cabalcoin-hook-pool.d.ts +7 -0
  112. package/build/dex/uniswap-v4/hooks/cabalcoin-hook/cabalcoin-hook-pool.js +28 -0
  113. package/build/dex/uniswap-v4/hooks/cabalcoin-hook/cabalcoin-hook-pool.js.map +1 -0
  114. package/build/dex/uniswap-v4/hooks/cabalcoin-hook/types.d.ts +0 -0
  115. package/build/dex/uniswap-v4/hooks/cabalcoin-hook/types.js +2 -0
  116. package/build/dex/uniswap-v4/hooks/cabalcoin-hook/types.js.map +1 -0
  117. package/build/dex/uniswap-v4/hooks/fee-hook/fee-hook-pool.d.ts +7 -0
  118. package/build/dex/uniswap-v4/hooks/fee-hook/fee-hook-pool.js +28 -0
  119. package/build/dex/uniswap-v4/hooks/fee-hook/fee-hook-pool.js.map +1 -0
  120. package/build/dex/uniswap-v4/hooks/fee-hook/types.d.ts +0 -0
  121. package/build/dex/uniswap-v4/hooks/fee-hook/types.js +2 -0
  122. package/build/dex/uniswap-v4/hooks/fee-hook/types.js.map +1 -0
  123. package/build/dex/uniswap-v4/hooks/index.d.ts +1 -0
  124. package/build/dex/uniswap-v4/hooks/index.js +18 -0
  125. package/build/dex/uniswap-v4/hooks/index.js.map +1 -0
  126. package/build/dex/uniswap-v4/hooks/spot.d.ts +15 -0
  127. package/build/dex/uniswap-v4/hooks/spot.js +109 -0
  128. package/build/dex/uniswap-v4/hooks/spot.js.map +1 -0
  129. package/build/dex/uniswap-v4/hooks/template.d.ts +150 -0
  130. package/build/dex/uniswap-v4/hooks/template.js +104 -0
  131. package/build/dex/uniswap-v4/hooks/template.js.map +1 -0
  132. package/build/dex/uniswap-v4/hooks/types.d.ts +4 -0
  133. package/build/dex/uniswap-v4/subgraph.d.ts +4 -4
  134. package/build/dex/uniswap-v4/subgraph.js +24 -21
  135. package/build/dex/uniswap-v4/subgraph.js.map +1 -1
  136. package/build/dex/uniswap-v4/types.d.ts +2 -0
  137. package/build/dex/uniswap-v4/uniswap-v4-pool-manager.d.ts +7 -1
  138. package/build/dex/uniswap-v4/uniswap-v4-pool-manager.js +54 -9
  139. package/build/dex/uniswap-v4/uniswap-v4-pool-manager.js.map +1 -1
  140. package/build/dex/uniswap-v4/uniswap-v4-pool.d.ts +3 -1
  141. package/build/dex/uniswap-v4/uniswap-v4-pool.js +3 -1
  142. package/build/dex/uniswap-v4/uniswap-v4-pool.js.map +1 -1
  143. package/build/dex/uniswap-v4/uniswap-v4.d.ts +3 -1
  144. package/build/dex/uniswap-v4/uniswap-v4.js +15 -5
  145. package/build/dex/uniswap-v4/uniswap-v4.js.map +1 -1
  146. package/build/dex/uniswap-v4/utils.d.ts +2 -1
  147. package/build/dex/uniswap-v4/utils.js +11 -0
  148. package/build/dex/uniswap-v4/utils.js.map +1 -1
  149. package/build/dex/usdc-transmuter/usdc-transmuter-pool.d.ts +26 -0
  150. package/build/dex/usdc-transmuter/usdc-transmuter-pool.js +75 -0
  151. package/build/dex/usdc-transmuter/usdc-transmuter-pool.js.map +1 -0
  152. package/build/dex/usual/usual-usdc-usdc.d.ts +17 -0
  153. package/build/dex/usual/usual-usdc-usdc.js +59 -0
  154. package/build/dex/usual/usual-usdc-usdc.js.map +1 -0
  155. package/build/dex/yo/config.d.ts +3 -0
  156. package/build/dex/yo/config.js +21 -0
  157. package/build/dex/yo/config.js.map +1 -0
  158. package/build/dex/yo/types.d.ts +13 -0
  159. package/build/dex/yo/types.js +3 -0
  160. package/build/dex/yo/types.js.map +1 -0
  161. package/build/dex/yo/yo-pool.d.ts +13 -0
  162. package/build/dex/yo/yo-pool.js +26 -0
  163. package/build/dex/yo/yo-pool.js.map +1 -0
  164. package/build/dex/yo/yo.d.ts +39 -0
  165. package/build/dex/yo/yo.js +248 -0
  166. package/build/dex/yo/yo.js.map +1 -0
  167. package/build/implementations/api-paraswap-sdk.d.ts +25 -0
  168. package/build/implementations/api-paraswap-sdk.js +102 -0
  169. package/build/implementations/api-paraswap-sdk.js.map +1 -0
  170. package/package.json +3 -2
@@ -0,0 +1,682 @@
1
+ [
2
+ {
3
+ "inputs": [
4
+ {
5
+ "internalType": "contract IPoolManager",
6
+ "name": "_poolManager",
7
+ "type": "address"
8
+ },
9
+ {
10
+ "internalType": "contract ICabalcoin",
11
+ "name": "_cabalcoin",
12
+ "type": "address"
13
+ },
14
+ { "internalType": "address", "name": "_nomoWallet", "type": "address" }
15
+ ],
16
+ "stateMutability": "nonpayable",
17
+ "type": "constructor"
18
+ },
19
+ { "inputs": [], "name": "CanOnlyLowerFee", "type": "error" },
20
+ { "inputs": [], "name": "HookNotImplemented", "type": "error" },
21
+ { "inputs": [], "name": "InvalidAddress", "type": "error" },
22
+ { "inputs": [], "name": "NotCabalcoin", "type": "error" },
23
+ { "inputs": [], "name": "NotCabalcoinOwner", "type": "error" },
24
+ { "inputs": [], "name": "NotPoolManager", "type": "error" },
25
+ {
26
+ "anonymous": false,
27
+ "inputs": [
28
+ {
29
+ "indexed": true,
30
+ "internalType": "bytes32",
31
+ "name": "id",
32
+ "type": "bytes32"
33
+ },
34
+ {
35
+ "indexed": true,
36
+ "internalType": "address",
37
+ "name": "sender",
38
+ "type": "address"
39
+ },
40
+ {
41
+ "indexed": false,
42
+ "internalType": "uint128",
43
+ "name": "feeAmount0",
44
+ "type": "uint128"
45
+ },
46
+ {
47
+ "indexed": false,
48
+ "internalType": "uint128",
49
+ "name": "feeAmount1",
50
+ "type": "uint128"
51
+ }
52
+ ],
53
+ "name": "HookFee",
54
+ "type": "event"
55
+ },
56
+ {
57
+ "anonymous": false,
58
+ "inputs": [
59
+ {
60
+ "indexed": true,
61
+ "internalType": "address",
62
+ "name": "user",
63
+ "type": "address"
64
+ },
65
+ {
66
+ "indexed": false,
67
+ "internalType": "uint128",
68
+ "name": "tokensSpent",
69
+ "type": "uint128"
70
+ },
71
+ {
72
+ "indexed": false,
73
+ "internalType": "uint128",
74
+ "name": "ethReceived",
75
+ "type": "uint128"
76
+ }
77
+ ],
78
+ "name": "TokenSold",
79
+ "type": "event"
80
+ },
81
+ {
82
+ "anonymous": false,
83
+ "inputs": [
84
+ {
85
+ "indexed": true,
86
+ "internalType": "address",
87
+ "name": "user",
88
+ "type": "address"
89
+ },
90
+ {
91
+ "indexed": false,
92
+ "internalType": "uint128",
93
+ "name": "ethSpent",
94
+ "type": "uint128"
95
+ },
96
+ {
97
+ "indexed": false,
98
+ "internalType": "uint128",
99
+ "name": "tokensReceived",
100
+ "type": "uint128"
101
+ }
102
+ ],
103
+ "name": "TokensBought",
104
+ "type": "event"
105
+ },
106
+ {
107
+ "inputs": [
108
+ { "internalType": "address", "name": "sender", "type": "address" },
109
+ {
110
+ "components": [
111
+ {
112
+ "internalType": "Currency",
113
+ "name": "currency0",
114
+ "type": "address"
115
+ },
116
+ {
117
+ "internalType": "Currency",
118
+ "name": "currency1",
119
+ "type": "address"
120
+ },
121
+ { "internalType": "uint24", "name": "fee", "type": "uint24" },
122
+ { "internalType": "int24", "name": "tickSpacing", "type": "int24" },
123
+ {
124
+ "internalType": "contract IHooks",
125
+ "name": "hooks",
126
+ "type": "address"
127
+ }
128
+ ],
129
+ "internalType": "struct PoolKey",
130
+ "name": "key",
131
+ "type": "tuple"
132
+ },
133
+ {
134
+ "components": [
135
+ { "internalType": "int24", "name": "tickLower", "type": "int24" },
136
+ { "internalType": "int24", "name": "tickUpper", "type": "int24" },
137
+ {
138
+ "internalType": "int256",
139
+ "name": "liquidityDelta",
140
+ "type": "int256"
141
+ },
142
+ { "internalType": "bytes32", "name": "salt", "type": "bytes32" }
143
+ ],
144
+ "internalType": "struct IPoolManager.ModifyLiquidityParams",
145
+ "name": "params",
146
+ "type": "tuple"
147
+ },
148
+ { "internalType": "BalanceDelta", "name": "delta", "type": "int256" },
149
+ {
150
+ "internalType": "BalanceDelta",
151
+ "name": "feesAccrued",
152
+ "type": "int256"
153
+ },
154
+ { "internalType": "bytes", "name": "hookData", "type": "bytes" }
155
+ ],
156
+ "name": "afterAddLiquidity",
157
+ "outputs": [
158
+ { "internalType": "bytes4", "name": "", "type": "bytes4" },
159
+ { "internalType": "BalanceDelta", "name": "", "type": "int256" }
160
+ ],
161
+ "stateMutability": "nonpayable",
162
+ "type": "function"
163
+ },
164
+ {
165
+ "inputs": [
166
+ { "internalType": "address", "name": "sender", "type": "address" },
167
+ {
168
+ "components": [
169
+ {
170
+ "internalType": "Currency",
171
+ "name": "currency0",
172
+ "type": "address"
173
+ },
174
+ {
175
+ "internalType": "Currency",
176
+ "name": "currency1",
177
+ "type": "address"
178
+ },
179
+ { "internalType": "uint24", "name": "fee", "type": "uint24" },
180
+ { "internalType": "int24", "name": "tickSpacing", "type": "int24" },
181
+ {
182
+ "internalType": "contract IHooks",
183
+ "name": "hooks",
184
+ "type": "address"
185
+ }
186
+ ],
187
+ "internalType": "struct PoolKey",
188
+ "name": "key",
189
+ "type": "tuple"
190
+ },
191
+ { "internalType": "uint256", "name": "amount0", "type": "uint256" },
192
+ { "internalType": "uint256", "name": "amount1", "type": "uint256" },
193
+ { "internalType": "bytes", "name": "hookData", "type": "bytes" }
194
+ ],
195
+ "name": "afterDonate",
196
+ "outputs": [{ "internalType": "bytes4", "name": "", "type": "bytes4" }],
197
+ "stateMutability": "nonpayable",
198
+ "type": "function"
199
+ },
200
+ {
201
+ "inputs": [
202
+ { "internalType": "address", "name": "sender", "type": "address" },
203
+ {
204
+ "components": [
205
+ {
206
+ "internalType": "Currency",
207
+ "name": "currency0",
208
+ "type": "address"
209
+ },
210
+ {
211
+ "internalType": "Currency",
212
+ "name": "currency1",
213
+ "type": "address"
214
+ },
215
+ { "internalType": "uint24", "name": "fee", "type": "uint24" },
216
+ { "internalType": "int24", "name": "tickSpacing", "type": "int24" },
217
+ {
218
+ "internalType": "contract IHooks",
219
+ "name": "hooks",
220
+ "type": "address"
221
+ }
222
+ ],
223
+ "internalType": "struct PoolKey",
224
+ "name": "key",
225
+ "type": "tuple"
226
+ },
227
+ { "internalType": "uint160", "name": "sqrtPriceX96", "type": "uint160" },
228
+ { "internalType": "int24", "name": "tick", "type": "int24" }
229
+ ],
230
+ "name": "afterInitialize",
231
+ "outputs": [{ "internalType": "bytes4", "name": "", "type": "bytes4" }],
232
+ "stateMutability": "nonpayable",
233
+ "type": "function"
234
+ },
235
+ {
236
+ "inputs": [
237
+ { "internalType": "address", "name": "sender", "type": "address" },
238
+ {
239
+ "components": [
240
+ {
241
+ "internalType": "Currency",
242
+ "name": "currency0",
243
+ "type": "address"
244
+ },
245
+ {
246
+ "internalType": "Currency",
247
+ "name": "currency1",
248
+ "type": "address"
249
+ },
250
+ { "internalType": "uint24", "name": "fee", "type": "uint24" },
251
+ { "internalType": "int24", "name": "tickSpacing", "type": "int24" },
252
+ {
253
+ "internalType": "contract IHooks",
254
+ "name": "hooks",
255
+ "type": "address"
256
+ }
257
+ ],
258
+ "internalType": "struct PoolKey",
259
+ "name": "key",
260
+ "type": "tuple"
261
+ },
262
+ {
263
+ "components": [
264
+ { "internalType": "int24", "name": "tickLower", "type": "int24" },
265
+ { "internalType": "int24", "name": "tickUpper", "type": "int24" },
266
+ {
267
+ "internalType": "int256",
268
+ "name": "liquidityDelta",
269
+ "type": "int256"
270
+ },
271
+ { "internalType": "bytes32", "name": "salt", "type": "bytes32" }
272
+ ],
273
+ "internalType": "struct IPoolManager.ModifyLiquidityParams",
274
+ "name": "params",
275
+ "type": "tuple"
276
+ },
277
+ { "internalType": "BalanceDelta", "name": "delta", "type": "int256" },
278
+ {
279
+ "internalType": "BalanceDelta",
280
+ "name": "feesAccrued",
281
+ "type": "int256"
282
+ },
283
+ { "internalType": "bytes", "name": "hookData", "type": "bytes" }
284
+ ],
285
+ "name": "afterRemoveLiquidity",
286
+ "outputs": [
287
+ { "internalType": "bytes4", "name": "", "type": "bytes4" },
288
+ { "internalType": "BalanceDelta", "name": "", "type": "int256" }
289
+ ],
290
+ "stateMutability": "nonpayable",
291
+ "type": "function"
292
+ },
293
+ {
294
+ "inputs": [
295
+ { "internalType": "address", "name": "sender", "type": "address" },
296
+ {
297
+ "components": [
298
+ {
299
+ "internalType": "Currency",
300
+ "name": "currency0",
301
+ "type": "address"
302
+ },
303
+ {
304
+ "internalType": "Currency",
305
+ "name": "currency1",
306
+ "type": "address"
307
+ },
308
+ { "internalType": "uint24", "name": "fee", "type": "uint24" },
309
+ { "internalType": "int24", "name": "tickSpacing", "type": "int24" },
310
+ {
311
+ "internalType": "contract IHooks",
312
+ "name": "hooks",
313
+ "type": "address"
314
+ }
315
+ ],
316
+ "internalType": "struct PoolKey",
317
+ "name": "key",
318
+ "type": "tuple"
319
+ },
320
+ {
321
+ "components": [
322
+ { "internalType": "bool", "name": "zeroForOne", "type": "bool" },
323
+ {
324
+ "internalType": "int256",
325
+ "name": "amountSpecified",
326
+ "type": "int256"
327
+ },
328
+ {
329
+ "internalType": "uint160",
330
+ "name": "sqrtPriceLimitX96",
331
+ "type": "uint160"
332
+ }
333
+ ],
334
+ "internalType": "struct IPoolManager.SwapParams",
335
+ "name": "params",
336
+ "type": "tuple"
337
+ },
338
+ { "internalType": "BalanceDelta", "name": "delta", "type": "int256" },
339
+ { "internalType": "bytes", "name": "hookData", "type": "bytes" }
340
+ ],
341
+ "name": "afterSwap",
342
+ "outputs": [
343
+ { "internalType": "bytes4", "name": "", "type": "bytes4" },
344
+ { "internalType": "int128", "name": "", "type": "int128" }
345
+ ],
346
+ "stateMutability": "nonpayable",
347
+ "type": "function"
348
+ },
349
+ {
350
+ "inputs": [
351
+ { "internalType": "address", "name": "sender", "type": "address" },
352
+ {
353
+ "components": [
354
+ {
355
+ "internalType": "Currency",
356
+ "name": "currency0",
357
+ "type": "address"
358
+ },
359
+ {
360
+ "internalType": "Currency",
361
+ "name": "currency1",
362
+ "type": "address"
363
+ },
364
+ { "internalType": "uint24", "name": "fee", "type": "uint24" },
365
+ { "internalType": "int24", "name": "tickSpacing", "type": "int24" },
366
+ {
367
+ "internalType": "contract IHooks",
368
+ "name": "hooks",
369
+ "type": "address"
370
+ }
371
+ ],
372
+ "internalType": "struct PoolKey",
373
+ "name": "key",
374
+ "type": "tuple"
375
+ },
376
+ {
377
+ "components": [
378
+ { "internalType": "int24", "name": "tickLower", "type": "int24" },
379
+ { "internalType": "int24", "name": "tickUpper", "type": "int24" },
380
+ {
381
+ "internalType": "int256",
382
+ "name": "liquidityDelta",
383
+ "type": "int256"
384
+ },
385
+ { "internalType": "bytes32", "name": "salt", "type": "bytes32" }
386
+ ],
387
+ "internalType": "struct IPoolManager.ModifyLiquidityParams",
388
+ "name": "params",
389
+ "type": "tuple"
390
+ },
391
+ { "internalType": "bytes", "name": "hookData", "type": "bytes" }
392
+ ],
393
+ "name": "beforeAddLiquidity",
394
+ "outputs": [{ "internalType": "bytes4", "name": "", "type": "bytes4" }],
395
+ "stateMutability": "nonpayable",
396
+ "type": "function"
397
+ },
398
+ {
399
+ "inputs": [
400
+ { "internalType": "address", "name": "sender", "type": "address" },
401
+ {
402
+ "components": [
403
+ {
404
+ "internalType": "Currency",
405
+ "name": "currency0",
406
+ "type": "address"
407
+ },
408
+ {
409
+ "internalType": "Currency",
410
+ "name": "currency1",
411
+ "type": "address"
412
+ },
413
+ { "internalType": "uint24", "name": "fee", "type": "uint24" },
414
+ { "internalType": "int24", "name": "tickSpacing", "type": "int24" },
415
+ {
416
+ "internalType": "contract IHooks",
417
+ "name": "hooks",
418
+ "type": "address"
419
+ }
420
+ ],
421
+ "internalType": "struct PoolKey",
422
+ "name": "key",
423
+ "type": "tuple"
424
+ },
425
+ { "internalType": "uint256", "name": "amount0", "type": "uint256" },
426
+ { "internalType": "uint256", "name": "amount1", "type": "uint256" },
427
+ { "internalType": "bytes", "name": "hookData", "type": "bytes" }
428
+ ],
429
+ "name": "beforeDonate",
430
+ "outputs": [{ "internalType": "bytes4", "name": "", "type": "bytes4" }],
431
+ "stateMutability": "nonpayable",
432
+ "type": "function"
433
+ },
434
+ {
435
+ "inputs": [
436
+ { "internalType": "address", "name": "sender", "type": "address" },
437
+ {
438
+ "components": [
439
+ {
440
+ "internalType": "Currency",
441
+ "name": "currency0",
442
+ "type": "address"
443
+ },
444
+ {
445
+ "internalType": "Currency",
446
+ "name": "currency1",
447
+ "type": "address"
448
+ },
449
+ { "internalType": "uint24", "name": "fee", "type": "uint24" },
450
+ { "internalType": "int24", "name": "tickSpacing", "type": "int24" },
451
+ {
452
+ "internalType": "contract IHooks",
453
+ "name": "hooks",
454
+ "type": "address"
455
+ }
456
+ ],
457
+ "internalType": "struct PoolKey",
458
+ "name": "key",
459
+ "type": "tuple"
460
+ },
461
+ { "internalType": "uint160", "name": "sqrtPriceX96", "type": "uint160" }
462
+ ],
463
+ "name": "beforeInitialize",
464
+ "outputs": [{ "internalType": "bytes4", "name": "", "type": "bytes4" }],
465
+ "stateMutability": "nonpayable",
466
+ "type": "function"
467
+ },
468
+ {
469
+ "inputs": [
470
+ { "internalType": "address", "name": "sender", "type": "address" },
471
+ {
472
+ "components": [
473
+ {
474
+ "internalType": "Currency",
475
+ "name": "currency0",
476
+ "type": "address"
477
+ },
478
+ {
479
+ "internalType": "Currency",
480
+ "name": "currency1",
481
+ "type": "address"
482
+ },
483
+ { "internalType": "uint24", "name": "fee", "type": "uint24" },
484
+ { "internalType": "int24", "name": "tickSpacing", "type": "int24" },
485
+ {
486
+ "internalType": "contract IHooks",
487
+ "name": "hooks",
488
+ "type": "address"
489
+ }
490
+ ],
491
+ "internalType": "struct PoolKey",
492
+ "name": "key",
493
+ "type": "tuple"
494
+ },
495
+ {
496
+ "components": [
497
+ { "internalType": "int24", "name": "tickLower", "type": "int24" },
498
+ { "internalType": "int24", "name": "tickUpper", "type": "int24" },
499
+ {
500
+ "internalType": "int256",
501
+ "name": "liquidityDelta",
502
+ "type": "int256"
503
+ },
504
+ { "internalType": "bytes32", "name": "salt", "type": "bytes32" }
505
+ ],
506
+ "internalType": "struct IPoolManager.ModifyLiquidityParams",
507
+ "name": "params",
508
+ "type": "tuple"
509
+ },
510
+ { "internalType": "bytes", "name": "hookData", "type": "bytes" }
511
+ ],
512
+ "name": "beforeRemoveLiquidity",
513
+ "outputs": [{ "internalType": "bytes4", "name": "", "type": "bytes4" }],
514
+ "stateMutability": "nonpayable",
515
+ "type": "function"
516
+ },
517
+ {
518
+ "inputs": [
519
+ { "internalType": "address", "name": "sender", "type": "address" },
520
+ {
521
+ "components": [
522
+ {
523
+ "internalType": "Currency",
524
+ "name": "currency0",
525
+ "type": "address"
526
+ },
527
+ {
528
+ "internalType": "Currency",
529
+ "name": "currency1",
530
+ "type": "address"
531
+ },
532
+ { "internalType": "uint24", "name": "fee", "type": "uint24" },
533
+ { "internalType": "int24", "name": "tickSpacing", "type": "int24" },
534
+ {
535
+ "internalType": "contract IHooks",
536
+ "name": "hooks",
537
+ "type": "address"
538
+ }
539
+ ],
540
+ "internalType": "struct PoolKey",
541
+ "name": "key",
542
+ "type": "tuple"
543
+ },
544
+ {
545
+ "components": [
546
+ { "internalType": "bool", "name": "zeroForOne", "type": "bool" },
547
+ {
548
+ "internalType": "int256",
549
+ "name": "amountSpecified",
550
+ "type": "int256"
551
+ },
552
+ {
553
+ "internalType": "uint160",
554
+ "name": "sqrtPriceLimitX96",
555
+ "type": "uint160"
556
+ }
557
+ ],
558
+ "internalType": "struct IPoolManager.SwapParams",
559
+ "name": "params",
560
+ "type": "tuple"
561
+ },
562
+ { "internalType": "bytes", "name": "hookData", "type": "bytes" }
563
+ ],
564
+ "name": "beforeSwap",
565
+ "outputs": [
566
+ { "internalType": "bytes4", "name": "", "type": "bytes4" },
567
+ { "internalType": "BeforeSwapDelta", "name": "", "type": "int256" },
568
+ { "internalType": "uint24", "name": "", "type": "uint24" }
569
+ ],
570
+ "stateMutability": "nonpayable",
571
+ "type": "function"
572
+ },
573
+ {
574
+ "inputs": [],
575
+ "name": "feeBips",
576
+ "outputs": [{ "internalType": "uint128", "name": "", "type": "uint128" }],
577
+ "stateMutability": "view",
578
+ "type": "function"
579
+ },
580
+ {
581
+ "inputs": [],
582
+ "name": "getHookPermissions",
583
+ "outputs": [
584
+ {
585
+ "components": [
586
+ {
587
+ "internalType": "bool",
588
+ "name": "beforeInitialize",
589
+ "type": "bool"
590
+ },
591
+ { "internalType": "bool", "name": "afterInitialize", "type": "bool" },
592
+ {
593
+ "internalType": "bool",
594
+ "name": "beforeAddLiquidity",
595
+ "type": "bool"
596
+ },
597
+ {
598
+ "internalType": "bool",
599
+ "name": "afterAddLiquidity",
600
+ "type": "bool"
601
+ },
602
+ {
603
+ "internalType": "bool",
604
+ "name": "beforeRemoveLiquidity",
605
+ "type": "bool"
606
+ },
607
+ {
608
+ "internalType": "bool",
609
+ "name": "afterRemoveLiquidity",
610
+ "type": "bool"
611
+ },
612
+ { "internalType": "bool", "name": "beforeSwap", "type": "bool" },
613
+ { "internalType": "bool", "name": "afterSwap", "type": "bool" },
614
+ { "internalType": "bool", "name": "beforeDonate", "type": "bool" },
615
+ { "internalType": "bool", "name": "afterDonate", "type": "bool" },
616
+ {
617
+ "internalType": "bool",
618
+ "name": "beforeSwapReturnDelta",
619
+ "type": "bool"
620
+ },
621
+ {
622
+ "internalType": "bool",
623
+ "name": "afterSwapReturnDelta",
624
+ "type": "bool"
625
+ },
626
+ {
627
+ "internalType": "bool",
628
+ "name": "afterAddLiquidityReturnDelta",
629
+ "type": "bool"
630
+ },
631
+ {
632
+ "internalType": "bool",
633
+ "name": "afterRemoveLiquidityReturnDelta",
634
+ "type": "bool"
635
+ }
636
+ ],
637
+ "internalType": "struct Hooks.Permissions",
638
+ "name": "",
639
+ "type": "tuple"
640
+ }
641
+ ],
642
+ "stateMutability": "pure",
643
+ "type": "function"
644
+ },
645
+ {
646
+ "inputs": [
647
+ { "internalType": "uint128", "name": "_feeBips", "type": "uint128" }
648
+ ],
649
+ "name": "lowerFees",
650
+ "outputs": [],
651
+ "stateMutability": "nonpayable",
652
+ "type": "function"
653
+ },
654
+ {
655
+ "inputs": [],
656
+ "name": "poolManager",
657
+ "outputs": [
658
+ { "internalType": "contract IPoolManager", "name": "", "type": "address" }
659
+ ],
660
+ "stateMutability": "view",
661
+ "type": "function"
662
+ },
663
+ {
664
+ "inputs": [
665
+ { "internalType": "address", "name": "_token", "type": "address" },
666
+ { "internalType": "address", "name": "_to", "type": "address" },
667
+ { "internalType": "uint256", "name": "_amount", "type": "uint256" }
668
+ ],
669
+ "name": "transferToken",
670
+ "outputs": [],
671
+ "stateMutability": "payable",
672
+ "type": "function"
673
+ },
674
+ {
675
+ "inputs": [],
676
+ "name": "withdrawAllFees",
677
+ "outputs": [],
678
+ "stateMutability": "nonpayable",
679
+ "type": "function"
680
+ },
681
+ { "stateMutability": "payable", "type": "receive" }
682
+ ]