@paraswap/dex-lib 4.7.17-uniswap-v4-hooks-support.3 → 4.7.18-before-multi-route.0

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 (175) hide show
  1. package/build/dex/idle-dao/idle-dao.d.ts +1 -0
  2. package/build/dex/idle-dao/idle-dao.js +23 -11
  3. package/build/dex/idle-dao/idle-dao.js.map +1 -1
  4. package/build/dex/maker-psm/maker-psm.d.ts +4 -41
  5. package/build/dex/maker-psm/maker-psm.js +40 -143
  6. package/build/dex/maker-psm/maker-psm.js.map +1 -1
  7. package/build/dex/simple-exchange.js +7 -1
  8. package/build/dex/simple-exchange.js.map +1 -1
  9. package/build/dex/uniswap-v3/config.js +29 -1
  10. package/build/dex/uniswap-v3/config.js.map +1 -1
  11. package/build/dex/uniswap-v3/forks/velodrome-slipstream/velodrome-slipstream.js +1 -0
  12. package/build/dex/uniswap-v3/forks/velodrome-slipstream/velodrome-slipstream.js.map +1 -1
  13. package/build/dex/uniswap-v4/config.js +0 -2
  14. package/build/dex/uniswap-v4/config.js.map +1 -1
  15. package/build/dex/uniswap-v4/contract-math/uniswap-v4-pool-math.d.ts +1 -2
  16. package/build/dex/uniswap-v4/contract-math/uniswap-v4-pool-math.js +13 -32
  17. package/build/dex/uniswap-v4/contract-math/uniswap-v4-pool-math.js.map +1 -1
  18. package/build/dex/uniswap-v4/hooks/arena/arena-fee-helper.d.ts +2 -2
  19. package/build/dex/uniswap-v4/hooks/arena/arena-fee-helper.js +11 -10
  20. package/build/dex/uniswap-v4/hooks/arena/arena-fee-helper.js.map +1 -1
  21. package/build/dex/uniswap-v4/hooks/arena/arena-hook.d.ts +1 -1
  22. package/build/dex/uniswap-v4/hooks/arena/arena-hook.js +14 -8
  23. package/build/dex/uniswap-v4/hooks/arena/arena-hook.js.map +1 -1
  24. package/build/dex/uniswap-v4/hooks/types.d.ts +10 -10
  25. package/build/dex/uniswap-v4/subgraph.d.ts +4 -4
  26. package/build/dex/uniswap-v4/subgraph.js +41 -68
  27. package/build/dex/uniswap-v4/subgraph.js.map +1 -1
  28. package/build/dex/uniswap-v4/types.d.ts +0 -2
  29. package/build/dex/uniswap-v4/uniswap-v4-pool-manager.d.ts +1 -7
  30. package/build/dex/uniswap-v4/uniswap-v4-pool-manager.js +7 -54
  31. package/build/dex/uniswap-v4/uniswap-v4-pool-manager.js.map +1 -1
  32. package/build/dex/uniswap-v4/uniswap-v4-pool.d.ts +1 -3
  33. package/build/dex/uniswap-v4/uniswap-v4-pool.js +1 -3
  34. package/build/dex/uniswap-v4/uniswap-v4-pool.js.map +1 -1
  35. package/build/dex/uniswap-v4/uniswap-v4.d.ts +1 -3
  36. package/build/dex/uniswap-v4/uniswap-v4.js +5 -15
  37. package/build/dex/uniswap-v4/uniswap-v4.js.map +1 -1
  38. package/build/dex/uniswap-v4/utils.d.ts +1 -2
  39. package/build/dex/uniswap-v4/utils.js +0 -11
  40. package/build/dex/uniswap-v4/utils.js.map +1 -1
  41. package/package.json +1 -1
  42. package/build/abi/PendleRouterStatic.json +0 -19
  43. package/build/abi/apex-defi/ApexDefiFactory.abi.json +0 -1749
  44. package/build/abi/apex-defi/ApexDefiRouter.abi.json +0 -1120
  45. package/build/abi/apex-defi/ApexDefiToken.abi.json +0 -229
  46. package/build/abi/apex-defi/ApexDefiWrapper.abi.json +0 -92
  47. package/build/abi/apex-defi/ApexDefiWrapperFactory.abi.json +0 -1107
  48. package/build/abi/pangolin-v3/PangolinV3StateMulticall.abi.json +0 -796
  49. package/build/abi/pendle/pendle-deployer.abi.json +0 -520
  50. package/build/abi/pendle/pendle-oracle.abi.json +0 -413
  51. package/build/abi/ring-v2/few-wrapped-token.json +0 -587
  52. package/build/abi/ring-v2/ring-v2-factory.json +0 -125
  53. package/build/abi/ring-v2/ring-v2-pool.json +0 -461
  54. package/build/abi/ring-v2/ring-v2-router.json +0 -332
  55. package/build/abi/stabull/stabull-curve.json +0 -738
  56. package/build/abi/stabull/stabull-router.json +0 -76
  57. package/build/abi/uniswap-v4/hooks/SpotDynamicFeeManager.json +0 -26
  58. package/build/abi/uniswap-v4/hooks/SpotHook.json +0 -54
  59. package/build/abi/uniswap-v4/hooks/SpotPolicyManager.json +0 -45
  60. package/build/abi/uniswap-v4/hooks/cabalcoin-hook.abi.json +0 -682
  61. package/build/abi/uniswap-v4/hooks/fee-hook.abi.json +0 -1335
  62. package/build/dex/aave-pt-to-underlying/aave-pt-to-underlying-factory.d.ts +0 -29
  63. package/build/dex/aave-pt-to-underlying/aave-pt-to-underlying-factory.js +0 -153
  64. package/build/dex/aave-pt-to-underlying/aave-pt-to-underlying-factory.js.map +0 -1
  65. package/build/dex/aave-pt-to-underlying/aave-pt-to-underlying.d.ts +0 -40
  66. package/build/dex/aave-pt-to-underlying/aave-pt-to-underlying.js +0 -323
  67. package/build/dex/aave-pt-to-underlying/aave-pt-to-underlying.js.map +0 -1
  68. package/build/dex/aave-pt-to-underlying/config.d.ts +0 -3
  69. package/build/dex/aave-pt-to-underlying/config.js +0 -24
  70. package/build/dex/aave-pt-to-underlying/config.js.map +0 -1
  71. package/build/dex/aave-pt-to-underlying/constants.d.ts +0 -2
  72. package/build/dex/aave-pt-to-underlying/constants.js +0 -6
  73. package/build/dex/aave-pt-to-underlying/constants.js.map +0 -1
  74. package/build/dex/aave-pt-to-underlying/types.d.ts +0 -24
  75. package/build/dex/aave-pt-to-underlying/types.js +0 -3
  76. package/build/dex/aave-pt-to-underlying/types.js.map +0 -1
  77. package/build/dex/aave-pt-to-usdc/aave-pt-to-usdc.d.ts +0 -39
  78. package/build/dex/aave-pt-to-usdc/aave-pt-to-usdc.js +0 -244
  79. package/build/dex/aave-pt-to-usdc/aave-pt-to-usdc.js.map +0 -1
  80. package/build/dex/aave-pt-to-usdc/config.d.ts +0 -3
  81. package/build/dex/aave-pt-to-usdc/config.js +0 -47
  82. package/build/dex/aave-pt-to-usdc/config.js.map +0 -1
  83. package/build/dex/aave-pt-to-usdc/constants.d.ts +0 -2
  84. package/build/dex/aave-pt-to-usdc/constants.js +0 -6
  85. package/build/dex/aave-pt-to-usdc/constants.js.map +0 -1
  86. package/build/dex/aave-pt-to-usdc/types.d.ts +0 -22
  87. package/build/dex/aave-pt-to-usdc/types.js +0 -3
  88. package/build/dex/aave-pt-to-usdc/types.js.map +0 -1
  89. package/build/dex/apex-defi/apex-defi-factory.d.ts +0 -26
  90. package/build/dex/apex-defi/apex-defi-factory.js +0 -53
  91. package/build/dex/apex-defi/apex-defi-factory.js.map +0 -1
  92. package/build/dex/apex-defi/apex-defi-pool.d.ts +0 -55
  93. package/build/dex/apex-defi/apex-defi-pool.js +0 -247
  94. package/build/dex/apex-defi/apex-defi-pool.js.map +0 -1
  95. package/build/dex/apex-defi/apex-defi-wrapper-factory.d.ts +0 -57
  96. package/build/dex/apex-defi/apex-defi-wrapper-factory.js +0 -250
  97. package/build/dex/apex-defi/apex-defi-wrapper-factory.js.map +0 -1
  98. package/build/dex/apex-defi/apex-defi.d.ts +0 -97
  99. package/build/dex/apex-defi/apex-defi.js +0 -1021
  100. package/build/dex/apex-defi/apex-defi.js.map +0 -1
  101. package/build/dex/apex-defi/config.d.ts +0 -4
  102. package/build/dex/apex-defi/config.js +0 -138
  103. package/build/dex/apex-defi/config.js.map +0 -1
  104. package/build/dex/apex-defi/types.d.ts +0 -32
  105. package/build/dex/apex-defi/types.js +0 -3
  106. package/build/dex/apex-defi/types.js.map +0 -1
  107. package/build/dex/apex-defi/utils.d.ts +0 -46
  108. package/build/dex/apex-defi/utils.js +0 -133
  109. package/build/dex/apex-defi/utils.js.map +0 -1
  110. package/build/dex/miro-migrator/miro-migrator-state.d.ts +0 -27
  111. package/build/dex/miro-migrator/miro-migrator-state.js +0 -89
  112. package/build/dex/miro-migrator/miro-migrator-state.js.map +0 -1
  113. package/build/dex/stabull/config.d.ts +0 -3
  114. package/build/dex/stabull/config.js +0 -177
  115. package/build/dex/stabull/config.js.map +0 -1
  116. package/build/dex/stabull/stabull-pool.d.ts +0 -46
  117. package/build/dex/stabull/stabull-pool.js +0 -113
  118. package/build/dex/stabull/stabull-pool.js.map +0 -1
  119. package/build/dex/stabull/stabull.d.ts +0 -55
  120. package/build/dex/stabull/stabull.js +0 -286
  121. package/build/dex/stabull/stabull.js.map +0 -1
  122. package/build/dex/stabull/types.d.ts +0 -21
  123. package/build/dex/stabull/types.js +0 -3
  124. package/build/dex/stabull/types.js.map +0 -1
  125. package/build/dex/uniswap-v3/forks/pangolin-v3/utils.d.ts +0 -4
  126. package/build/dex/uniswap-v3/forks/pangolin-v3/utils.js +0 -56
  127. package/build/dex/uniswap-v3/forks/pangolin-v3/utils.js.map +0 -1
  128. package/build/dex/uniswap-v4/hooks/arena.d.ts +0 -6
  129. package/build/dex/uniswap-v4/hooks/arena.js +0 -10
  130. package/build/dex/uniswap-v4/hooks/arena.js.map +0 -1
  131. package/build/dex/uniswap-v4/hooks/base-fee/base-fee-hook.d.ts +0 -0
  132. package/build/dex/uniswap-v4/hooks/base-fee/base-fee-hook.js +0 -2
  133. package/build/dex/uniswap-v4/hooks/base-fee/base-fee-hook.js.map +0 -1
  134. package/build/dex/uniswap-v4/hooks/cabalcoin-hook/cabalcoin-hook-pool.d.ts +0 -7
  135. package/build/dex/uniswap-v4/hooks/cabalcoin-hook/cabalcoin-hook-pool.js +0 -28
  136. package/build/dex/uniswap-v4/hooks/cabalcoin-hook/cabalcoin-hook-pool.js.map +0 -1
  137. package/build/dex/uniswap-v4/hooks/cabalcoin-hook/types.d.ts +0 -0
  138. package/build/dex/uniswap-v4/hooks/cabalcoin-hook/types.js +0 -2
  139. package/build/dex/uniswap-v4/hooks/cabalcoin-hook/types.js.map +0 -1
  140. package/build/dex/uniswap-v4/hooks/fee-hook/fee-hook-pool.d.ts +0 -7
  141. package/build/dex/uniswap-v4/hooks/fee-hook/fee-hook-pool.js +0 -28
  142. package/build/dex/uniswap-v4/hooks/fee-hook/fee-hook-pool.js.map +0 -1
  143. package/build/dex/uniswap-v4/hooks/fee-hook/types.d.ts +0 -0
  144. package/build/dex/uniswap-v4/hooks/fee-hook/types.js +0 -2
  145. package/build/dex/uniswap-v4/hooks/fee-hook/types.js.map +0 -1
  146. package/build/dex/uniswap-v4/hooks/index.d.ts +0 -16
  147. package/build/dex/uniswap-v4/hooks/index.js +0 -37
  148. package/build/dex/uniswap-v4/hooks/index.js.map +0 -1
  149. package/build/dex/uniswap-v4/hooks/spot.d.ts +0 -15
  150. package/build/dex/uniswap-v4/hooks/spot.js +0 -109
  151. package/build/dex/uniswap-v4/hooks/spot.js.map +0 -1
  152. package/build/dex/uniswap-v4/hooks/template.d.ts +0 -150
  153. package/build/dex/uniswap-v4/hooks/template.js +0 -104
  154. package/build/dex/uniswap-v4/hooks/template.js.map +0 -1
  155. package/build/dex/usdc-transmuter/usdc-transmuter-pool.d.ts +0 -26
  156. package/build/dex/usdc-transmuter/usdc-transmuter-pool.js +0 -75
  157. package/build/dex/usdc-transmuter/usdc-transmuter-pool.js.map +0 -1
  158. package/build/dex/usual/usual-usdc-usdc.d.ts +0 -17
  159. package/build/dex/usual/usual-usdc-usdc.js +0 -59
  160. package/build/dex/usual/usual-usdc-usdc.js.map +0 -1
  161. package/build/dex/yo/config.d.ts +0 -3
  162. package/build/dex/yo/config.js +0 -21
  163. package/build/dex/yo/config.js.map +0 -1
  164. package/build/dex/yo/types.d.ts +0 -13
  165. package/build/dex/yo/types.js +0 -3
  166. package/build/dex/yo/types.js.map +0 -1
  167. package/build/dex/yo/yo-pool.d.ts +0 -13
  168. package/build/dex/yo/yo-pool.js +0 -26
  169. package/build/dex/yo/yo-pool.js.map +0 -1
  170. package/build/dex/yo/yo.d.ts +0 -39
  171. package/build/dex/yo/yo.js +0 -248
  172. package/build/dex/yo/yo.js.map +0 -1
  173. package/build/implementations/api-paraswap-sdk.d.ts +0 -25
  174. package/build/implementations/api-paraswap-sdk.js +0 -102
  175. package/build/implementations/api-paraswap-sdk.js.map +0 -1
@@ -1,682 +0,0 @@
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
- ]