@zoralabs/limit-orders 0.2.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 (208) hide show
  1. package/.turbo/turbo-build$colon$js.log +85 -0
  2. package/AUDIT_NOTES.md +33 -0
  3. package/AUDIT_RFP.md +408 -0
  4. package/CHANGELOG.md +25 -0
  5. package/GAS_COMPARISON_RESULTS.md +194 -0
  6. package/LICENSE +21 -0
  7. package/README.md +650 -0
  8. package/SPEC.md +291 -0
  9. package/abis/BalanceDeltaLibrary.json +15 -0
  10. package/abis/BeforeSwapDeltaLibrary.json +15 -0
  11. package/abis/CurrencyLibrary.json +25 -0
  12. package/abis/CustomRevert.json +28 -0
  13. package/abis/IAllowanceTransfer.json +486 -0
  14. package/abis/IAuthority.json +31 -0
  15. package/abis/ICoin.json +1074 -0
  16. package/abis/IDeployedCoinVersionLookup.json +21 -0
  17. package/abis/IDopplerErrors.json +44 -0
  18. package/abis/IEIP712.json +15 -0
  19. package/abis/IERC1363.json +373 -0
  20. package/abis/IERC165.json +21 -0
  21. package/abis/IERC20.json +185 -0
  22. package/abis/IERC20Minimal.json +172 -0
  23. package/abis/IERC6909Claims.json +288 -0
  24. package/abis/IERC7572.json +21 -0
  25. package/abis/IExtsload.json +64 -0
  26. package/abis/IExttload.json +40 -0
  27. package/abis/IHasCoinType.json +15 -0
  28. package/abis/IHasPoolKey.json +42 -0
  29. package/abis/IHasRewardsRecipients.json +54 -0
  30. package/abis/IHasSwapPath.json +60 -0
  31. package/abis/IHasTotalSupplyForPositions.json +15 -0
  32. package/abis/IHooks.json +789 -0
  33. package/abis/IMsgSender.json +15 -0
  34. package/abis/IPoolManager.json +1286 -0
  35. package/abis/IProtocolFees.json +174 -0
  36. package/abis/ISupportsLimitOrderFill.json +15 -0
  37. package/abis/ISwapPathRouter.json +92 -0
  38. package/abis/ISwapRouter.json +219 -0
  39. package/abis/IUniswapV3SwapCallback.json +25 -0
  40. package/abis/IUpgradeableDestinationV4Hook.json +84 -0
  41. package/abis/IUpgradeableDestinationV4HookWithUpdateableFee.json +95 -0
  42. package/abis/IUpgradeableV4Hook.json +112 -0
  43. package/abis/IZoraHookRegistry.json +188 -0
  44. package/abis/IZoraLimitOrderBook.json +623 -0
  45. package/abis/IZoraLimitOrderBookCoinsInterface.json +67 -0
  46. package/abis/IZoraV4CoinHook.json +610 -0
  47. package/abis/Permit2Payments.json +7 -0
  48. package/abis/Position.json +7 -0
  49. package/abis/SafeCast.json +7 -0
  50. package/abis/SafeCast160.json +7 -0
  51. package/abis/SafeERC20.json +34 -0
  52. package/abis/SimpleAccessManaged.json +57 -0
  53. package/abis/SimpleAccessManager.json +351 -0
  54. package/abis/SqrtPriceMath.json +22 -0
  55. package/abis/StateLibrary.json +80 -0
  56. package/abis/SwapLimitOrders.json +22 -0
  57. package/abis/SwapWithLimitOrders.json +457 -0
  58. package/abis/TickBitmap.json +18 -0
  59. package/abis/TickMath.json +24 -0
  60. package/abis/V3ToV4SwapLib.json +28 -0
  61. package/abis/ZoraLimitOrderBook.json +771 -0
  62. package/cache/solidity-files-cache.json +1 -0
  63. package/dist/index.cjs +760 -0
  64. package/dist/index.cjs.map +1 -0
  65. package/dist/index.d.ts +2 -0
  66. package/dist/index.d.ts.map +1 -0
  67. package/dist/index.js +731 -0
  68. package/dist/index.js.map +1 -0
  69. package/dist/wagmiGenerated.d.ts +1012 -0
  70. package/dist/wagmiGenerated.d.ts.map +1 -0
  71. package/foundry.toml +29 -0
  72. package/gas_comparison.py +49 -0
  73. package/out/BalanceDelta.sol/BalanceDeltaLibrary.json +1 -0
  74. package/out/BeforeSwapDelta.sol/BeforeSwapDeltaLibrary.json +1 -0
  75. package/out/BitMath.sol/BitMath.json +1 -0
  76. package/out/BytesLib.sol/BytesLib.json +1 -0
  77. package/out/CoinCommon.sol/CoinCommon.json +1 -0
  78. package/out/CoinConfigurationVersions.sol/CoinConfigurationVersions.json +1 -0
  79. package/out/CoinConstants.sol/CoinConstants.json +1 -0
  80. package/out/Context.sol/Context.json +1 -0
  81. package/out/Currency.sol/CurrencyLibrary.json +1 -0
  82. package/out/CurrencyReserves.sol/CurrencyReserves.json +1 -0
  83. package/out/CustomRevert.sol/CustomRevert.json +1 -0
  84. package/out/DopplerMath.sol/DopplerMath.json +1 -0
  85. package/out/FixedPoint128.sol/FixedPoint128.json +1 -0
  86. package/out/FixedPoint96.sol/FixedPoint96.json +1 -0
  87. package/out/FullMath.sol/FullMath.json +1 -0
  88. package/out/IAllowanceTransfer.sol/IAllowanceTransfer.json +1 -0
  89. package/out/IAuthority.sol/IAuthority.json +1 -0
  90. package/out/ICoin.sol/ICoin.json +1 -0
  91. package/out/ICoin.sol/IHasCoinType.json +1 -0
  92. package/out/ICoin.sol/IHasPoolKey.json +1 -0
  93. package/out/ICoin.sol/IHasSwapPath.json +1 -0
  94. package/out/ICoin.sol/IHasTotalSupplyForPositions.json +1 -0
  95. package/out/IDeployedCoinVersionLookup.sol/IDeployedCoinVersionLookup.json +1 -0
  96. package/out/IDopplerErrors.sol/IDopplerErrors.json +1 -0
  97. package/out/IEIP712.sol/IEIP712.json +1 -0
  98. package/out/IERC1363.sol/IERC1363.json +1 -0
  99. package/out/IERC165.sol/IERC165.json +1 -0
  100. package/out/IERC20.sol/IERC20.json +1 -0
  101. package/out/IERC20Minimal.sol/IERC20Minimal.json +1 -0
  102. package/out/IERC6909Claims.sol/IERC6909Claims.json +1 -0
  103. package/out/IERC7572.sol/IERC7572.json +1 -0
  104. package/out/IExtsload.sol/IExtsload.json +1 -0
  105. package/out/IExttload.sol/IExttload.json +1 -0
  106. package/out/IHasRewardsRecipients.sol/IHasRewardsRecipients.json +1 -0
  107. package/out/IHooks.sol/IHooks.json +1 -0
  108. package/out/IMsgSender.sol/IMsgSender.json +1 -0
  109. package/out/IPoolManager.sol/IPoolManager.json +1 -0
  110. package/out/IProtocolFees.sol/IProtocolFees.json +1 -0
  111. package/out/ISupportsLimitOrderFill.sol/ISupportsLimitOrderFill.json +1 -0
  112. package/out/ISwapPathRouter.sol/ISwapPathRouter.json +1 -0
  113. package/out/ISwapRouter.sol/ISwapRouter.json +1 -0
  114. package/out/IUniswapV3SwapCallback.sol/IUniswapV3SwapCallback.json +1 -0
  115. package/out/IUpgradeableV4Hook.sol/IUpgradeableDestinationV4Hook.json +1 -0
  116. package/out/IUpgradeableV4Hook.sol/IUpgradeableDestinationV4HookWithUpdateableFee.json +1 -0
  117. package/out/IUpgradeableV4Hook.sol/IUpgradeableV4Hook.json +1 -0
  118. package/out/IZoraHookRegistry.sol/IZoraHookRegistry.json +1 -0
  119. package/out/IZoraLimitOrderBook.sol/IZoraLimitOrderBook.json +1 -0
  120. package/out/IZoraLimitOrderBookCoinsInterface.sol/IZoraLimitOrderBookCoinsInterface.json +1 -0
  121. package/out/IZoraV4CoinHook.sol/IZoraV4CoinHook.json +1 -0
  122. package/out/LimitOrderBitmap.sol/LimitOrderBitmap.json +1 -0
  123. package/out/LimitOrderCommon.sol/LimitOrderCommon.json +1 -0
  124. package/out/LimitOrderCreate.sol/LimitOrderCreate.json +1 -0
  125. package/out/LimitOrderFill.sol/LimitOrderFill.json +1 -0
  126. package/out/LimitOrderLiquidity.sol/LimitOrderLiquidity.json +1 -0
  127. package/out/LimitOrderQueues.sol/LimitOrderQueues.json +1 -0
  128. package/out/LimitOrderStorage.sol/LimitOrderStorage.json +1 -0
  129. package/out/LimitOrderTypes.sol/LimitOrderTypes.json +1 -0
  130. package/out/LimitOrderWithdraw.sol/LimitOrderWithdraw.json +1 -0
  131. package/out/LiquidityAmounts.sol/LiquidityAmounts.json +1 -0
  132. package/out/LiquidityMath.sol/LiquidityMath.json +1 -0
  133. package/out/Lock.sol/Lock.json +1 -0
  134. package/out/NonzeroDeltaCount.sol/NonzeroDeltaCount.json +1 -0
  135. package/out/Path.sol/Path.json +1 -0
  136. package/out/PathKey.sol/PathKeyLibrary.json +1 -0
  137. package/out/Permit2Payments.sol/Permit2Payments.json +1 -0
  138. package/out/PoolId.sol/PoolIdLibrary.json +1 -0
  139. package/out/Position.sol/Position.json +1 -0
  140. package/out/SafeCast.sol/SafeCast.json +1 -0
  141. package/out/SafeCast160.sol/SafeCast160.json +1 -0
  142. package/out/SafeERC20.sol/SafeERC20.json +1 -0
  143. package/out/SimpleAccessManaged.sol/SimpleAccessManaged.json +1 -0
  144. package/out/SimpleAccessManager.sol/SimpleAccessManager.json +1 -0
  145. package/out/SqrtPriceMath.sol/SqrtPriceMath.json +1 -0
  146. package/out/StateLibrary.sol/StateLibrary.json +1 -0
  147. package/out/SwapLimitOrders.sol/SwapLimitOrders.json +1 -0
  148. package/out/SwapWithLimitOrders.sol/SwapWithLimitOrders.json +1 -0
  149. package/out/TickBitmap.sol/TickBitmap.json +1 -0
  150. package/out/TickMath.sol/TickMath.json +1 -0
  151. package/out/TransientSlot.sol/TransientSlot.json +1 -0
  152. package/out/TransientStateLibrary.sol/TransientStateLibrary.json +1 -0
  153. package/out/UniV4SwapToCurrency.sol/UniV4SwapToCurrency.json +1 -0
  154. package/out/UnsafeMath.sol/UnsafeMath.json +1 -0
  155. package/out/V3ToV4SwapLib.sol/V3ToV4SwapLib.json +1 -0
  156. package/out/ZoraLimitOrderBook.sol/ZoraLimitOrderBook.json +1 -0
  157. package/out/build-info/69718f10d1dc37f0.json +1 -0
  158. package/out/uniswap/BitMath.sol/BitMath.json +1 -0
  159. package/out/uniswap/CustomRevert.sol/CustomRevert.json +1 -0
  160. package/out/uniswap/FullMath.sol/FullMath.json +1 -0
  161. package/out/uniswap/SafeCast.sol/SafeCast.json +1 -0
  162. package/out/uniswap/TickMath.sol/TickMath.json +1 -0
  163. package/package/index.ts +1 -0
  164. package/package/wagmiGenerated.ts +738 -0
  165. package/package.json +57 -0
  166. package/remappings.txt +11 -0
  167. package/src/IZoraLimitOrderBook.sol +195 -0
  168. package/src/ZoraLimitOrderBook.sol +220 -0
  169. package/src/access/SimpleAccessManaged.sol +76 -0
  170. package/src/access/SimpleAccessManager.sol +268 -0
  171. package/src/libs/LimitOrderBitmap.sol +84 -0
  172. package/src/libs/LimitOrderCommon.sol +91 -0
  173. package/src/libs/LimitOrderCreate.sol +277 -0
  174. package/src/libs/LimitOrderFill.sol +362 -0
  175. package/src/libs/LimitOrderLiquidity.sol +222 -0
  176. package/src/libs/LimitOrderQueues.sol +101 -0
  177. package/src/libs/LimitOrderStorage.sol +34 -0
  178. package/src/libs/LimitOrderTypes.sol +41 -0
  179. package/src/libs/LimitOrderWithdraw.sol +100 -0
  180. package/src/libs/Permit2Payments.sol +41 -0
  181. package/src/libs/SwapLimitOrders.sol +209 -0
  182. package/src/router/SwapWithLimitOrders.sol +454 -0
  183. package/test/LimitOrderAccessControl.t.sol +461 -0
  184. package/test/LimitOrderBitmap.t.sol +194 -0
  185. package/test/LimitOrderCreate.t.sol +348 -0
  186. package/test/LimitOrderFill.t.sol +1005 -0
  187. package/test/LimitOrderLibraries.t.sol +354 -0
  188. package/test/LimitOrderLiquidityPayouts.t.sol +333 -0
  189. package/test/LimitOrderV4Pools.t.sol +157 -0
  190. package/test/LimitOrderWithdraw.t.sol +653 -0
  191. package/test/SimpleAccessManager.t.sol +420 -0
  192. package/test/SwapWithLimitOrders.t.sol +107 -0
  193. package/test/SwapWithLimitOrdersRouter.t.sol +1073 -0
  194. package/test/gas/LimitOrderFillGas.t.sol +1008 -0
  195. package/test/gas/LimitOrderSwapGas.t.sol +403 -0
  196. package/test/gas/logs/gas_benchmarks_fill_20251201.log +30 -0
  197. package/test/gas/logs/gas_benchmarks_swap_20251201.log +27 -0
  198. package/test/unit/LimitOrderBitmapUnit.t.sol +276 -0
  199. package/test/unit/LimitOrderCreateUnit.t.sol +358 -0
  200. package/test/unit/SwapLimitOrdersUnit.t.sol +672 -0
  201. package/test/unit/SwapLimitOrdersValidation.t.sol +423 -0
  202. package/test/unit/SwapWithLimitOrdersUnit.t.sol +321 -0
  203. package/test/utils/BaseTest.sol +793 -0
  204. package/test/utils/TestableZoraLimitOrderBook.sol +54 -0
  205. package/tsconfig.build.json +10 -0
  206. package/tsconfig.json +9 -0
  207. package/tsup.config.ts +11 -0
  208. package/wagmi.config.ts +18 -0
@@ -0,0 +1,457 @@
1
+ [
2
+ {
3
+ "type": "constructor",
4
+ "inputs": [
5
+ {
6
+ "name": "poolManager_",
7
+ "type": "address",
8
+ "internalType": "contract IPoolManager"
9
+ },
10
+ {
11
+ "name": "zoraLimitOrderBook_",
12
+ "type": "address",
13
+ "internalType": "contract IZoraLimitOrderBook"
14
+ },
15
+ {
16
+ "name": "swapRouter_",
17
+ "type": "address",
18
+ "internalType": "contract ISwapRouter"
19
+ },
20
+ {
21
+ "name": "permit2_",
22
+ "type": "address",
23
+ "internalType": "address"
24
+ }
25
+ ],
26
+ "stateMutability": "nonpayable"
27
+ },
28
+ {
29
+ "type": "receive",
30
+ "stateMutability": "payable"
31
+ },
32
+ {
33
+ "type": "function",
34
+ "name": "getLimitOrderConfig",
35
+ "inputs": [],
36
+ "outputs": [
37
+ {
38
+ "name": "",
39
+ "type": "tuple",
40
+ "internalType": "struct LimitOrderConfig",
41
+ "components": [
42
+ {
43
+ "name": "multiples",
44
+ "type": "uint256[]",
45
+ "internalType": "uint256[]"
46
+ },
47
+ {
48
+ "name": "percentages",
49
+ "type": "uint256[]",
50
+ "internalType": "uint256[]"
51
+ }
52
+ ]
53
+ }
54
+ ],
55
+ "stateMutability": "view"
56
+ },
57
+ {
58
+ "type": "function",
59
+ "name": "msgSender",
60
+ "inputs": [],
61
+ "outputs": [
62
+ {
63
+ "name": "",
64
+ "type": "address",
65
+ "internalType": "address"
66
+ }
67
+ ],
68
+ "stateMutability": "view"
69
+ },
70
+ {
71
+ "type": "function",
72
+ "name": "poolManager",
73
+ "inputs": [],
74
+ "outputs": [
75
+ {
76
+ "name": "",
77
+ "type": "address",
78
+ "internalType": "contract IPoolManager"
79
+ }
80
+ ],
81
+ "stateMutability": "view"
82
+ },
83
+ {
84
+ "type": "function",
85
+ "name": "setLimitOrderConfig",
86
+ "inputs": [
87
+ {
88
+ "name": "config",
89
+ "type": "tuple",
90
+ "internalType": "struct LimitOrderConfig",
91
+ "components": [
92
+ {
93
+ "name": "multiples",
94
+ "type": "uint256[]",
95
+ "internalType": "uint256[]"
96
+ },
97
+ {
98
+ "name": "percentages",
99
+ "type": "uint256[]",
100
+ "internalType": "uint256[]"
101
+ }
102
+ ]
103
+ }
104
+ ],
105
+ "outputs": [],
106
+ "stateMutability": "nonpayable"
107
+ },
108
+ {
109
+ "type": "function",
110
+ "name": "swapRouter",
111
+ "inputs": [],
112
+ "outputs": [
113
+ {
114
+ "name": "",
115
+ "type": "address",
116
+ "internalType": "contract ISwapRouter"
117
+ }
118
+ ],
119
+ "stateMutability": "view"
120
+ },
121
+ {
122
+ "type": "function",
123
+ "name": "swapWithLimitOrders",
124
+ "inputs": [
125
+ {
126
+ "name": "params",
127
+ "type": "tuple",
128
+ "internalType": "struct SwapWithLimitOrders.SwapWithLimitOrdersParams",
129
+ "components": [
130
+ {
131
+ "name": "recipient",
132
+ "type": "address",
133
+ "internalType": "address"
134
+ },
135
+ {
136
+ "name": "limitOrderConfig",
137
+ "type": "tuple",
138
+ "internalType": "struct LimitOrderConfig",
139
+ "components": [
140
+ {
141
+ "name": "multiples",
142
+ "type": "uint256[]",
143
+ "internalType": "uint256[]"
144
+ },
145
+ {
146
+ "name": "percentages",
147
+ "type": "uint256[]",
148
+ "internalType": "uint256[]"
149
+ }
150
+ ]
151
+ },
152
+ {
153
+ "name": "inputCurrency",
154
+ "type": "address",
155
+ "internalType": "address"
156
+ },
157
+ {
158
+ "name": "inputAmount",
159
+ "type": "uint256",
160
+ "internalType": "uint256"
161
+ },
162
+ {
163
+ "name": "v3Route",
164
+ "type": "bytes",
165
+ "internalType": "bytes"
166
+ },
167
+ {
168
+ "name": "v4Route",
169
+ "type": "tuple[]",
170
+ "internalType": "struct PoolKey[]",
171
+ "components": [
172
+ {
173
+ "name": "currency0",
174
+ "type": "address",
175
+ "internalType": "Currency"
176
+ },
177
+ {
178
+ "name": "currency1",
179
+ "type": "address",
180
+ "internalType": "Currency"
181
+ },
182
+ {
183
+ "name": "fee",
184
+ "type": "uint24",
185
+ "internalType": "uint24"
186
+ },
187
+ {
188
+ "name": "tickSpacing",
189
+ "type": "int24",
190
+ "internalType": "int24"
191
+ },
192
+ {
193
+ "name": "hooks",
194
+ "type": "address",
195
+ "internalType": "contract IHooks"
196
+ }
197
+ ]
198
+ },
199
+ {
200
+ "name": "minAmountOut",
201
+ "type": "uint256",
202
+ "internalType": "uint256"
203
+ }
204
+ ]
205
+ }
206
+ ],
207
+ "outputs": [
208
+ {
209
+ "name": "delta",
210
+ "type": "int256",
211
+ "internalType": "BalanceDelta"
212
+ }
213
+ ],
214
+ "stateMutability": "payable"
215
+ },
216
+ {
217
+ "type": "function",
218
+ "name": "unlockCallback",
219
+ "inputs": [
220
+ {
221
+ "name": "data",
222
+ "type": "bytes",
223
+ "internalType": "bytes"
224
+ }
225
+ ],
226
+ "outputs": [
227
+ {
228
+ "name": "",
229
+ "type": "bytes",
230
+ "internalType": "bytes"
231
+ }
232
+ ],
233
+ "stateMutability": "nonpayable"
234
+ },
235
+ {
236
+ "type": "function",
237
+ "name": "zoraLimitOrderBook",
238
+ "inputs": [],
239
+ "outputs": [
240
+ {
241
+ "name": "",
242
+ "type": "address",
243
+ "internalType": "contract IZoraLimitOrderBook"
244
+ }
245
+ ],
246
+ "stateMutability": "view"
247
+ },
248
+ {
249
+ "type": "event",
250
+ "name": "LimitOrderConfigUpdated",
251
+ "inputs": [
252
+ {
253
+ "name": "multiples",
254
+ "type": "uint256[]",
255
+ "indexed": false,
256
+ "internalType": "uint256[]"
257
+ },
258
+ {
259
+ "name": "percentages",
260
+ "type": "uint256[]",
261
+ "indexed": false,
262
+ "internalType": "uint256[]"
263
+ }
264
+ ],
265
+ "anonymous": false
266
+ },
267
+ {
268
+ "type": "event",
269
+ "name": "SwapWithLimitOrdersExecuted",
270
+ "inputs": [
271
+ {
272
+ "name": "sender",
273
+ "type": "address",
274
+ "indexed": true,
275
+ "internalType": "address"
276
+ },
277
+ {
278
+ "name": "recipient",
279
+ "type": "address",
280
+ "indexed": true,
281
+ "internalType": "address"
282
+ },
283
+ {
284
+ "name": "poolKey",
285
+ "type": "tuple",
286
+ "indexed": false,
287
+ "internalType": "struct PoolKey",
288
+ "components": [
289
+ {
290
+ "name": "currency0",
291
+ "type": "address",
292
+ "internalType": "Currency"
293
+ },
294
+ {
295
+ "name": "currency1",
296
+ "type": "address",
297
+ "internalType": "Currency"
298
+ },
299
+ {
300
+ "name": "fee",
301
+ "type": "uint24",
302
+ "internalType": "uint24"
303
+ },
304
+ {
305
+ "name": "tickSpacing",
306
+ "type": "int24",
307
+ "internalType": "int24"
308
+ },
309
+ {
310
+ "name": "hooks",
311
+ "type": "address",
312
+ "internalType": "contract IHooks"
313
+ }
314
+ ]
315
+ },
316
+ {
317
+ "name": "delta",
318
+ "type": "int256",
319
+ "indexed": false,
320
+ "internalType": "BalanceDelta"
321
+ },
322
+ {
323
+ "name": "tickBeforeSwap",
324
+ "type": "int24",
325
+ "indexed": false,
326
+ "internalType": "int24"
327
+ },
328
+ {
329
+ "name": "tickAfterSwap",
330
+ "type": "int24",
331
+ "indexed": false,
332
+ "internalType": "int24"
333
+ },
334
+ {
335
+ "name": "orders",
336
+ "type": "tuple[]",
337
+ "indexed": false,
338
+ "internalType": "struct SwapWithLimitOrders.CreatedOrder[]",
339
+ "components": [
340
+ {
341
+ "name": "orderId",
342
+ "type": "bytes32",
343
+ "internalType": "bytes32"
344
+ },
345
+ {
346
+ "name": "multiple",
347
+ "type": "uint256",
348
+ "internalType": "uint256"
349
+ },
350
+ {
351
+ "name": "percentage",
352
+ "type": "uint256",
353
+ "internalType": "uint256"
354
+ }
355
+ ]
356
+ }
357
+ ],
358
+ "anonymous": false
359
+ },
360
+ {
361
+ "type": "error",
362
+ "name": "EmptyV4Route",
363
+ "inputs": []
364
+ },
365
+ {
366
+ "type": "error",
367
+ "name": "FromAddressIsNotOwner",
368
+ "inputs": []
369
+ },
370
+ {
371
+ "type": "error",
372
+ "name": "InsufficientInputCurrency",
373
+ "inputs": [
374
+ {
375
+ "name": "inputAmount",
376
+ "type": "uint256",
377
+ "internalType": "uint256"
378
+ },
379
+ {
380
+ "name": "availableAmount",
381
+ "type": "uint256",
382
+ "internalType": "uint256"
383
+ }
384
+ ]
385
+ },
386
+ {
387
+ "type": "error",
388
+ "name": "InsufficientOutputAmount",
389
+ "inputs": []
390
+ },
391
+ {
392
+ "type": "error",
393
+ "name": "InsufficientTransferFunds",
394
+ "inputs": []
395
+ },
396
+ {
397
+ "type": "error",
398
+ "name": "InvalidLimitOrderConfig",
399
+ "inputs": []
400
+ },
401
+ {
402
+ "type": "error",
403
+ "name": "InvalidMultiple",
404
+ "inputs": []
405
+ },
406
+ {
407
+ "type": "error",
408
+ "name": "InvalidPercent",
409
+ "inputs": []
410
+ },
411
+ {
412
+ "type": "error",
413
+ "name": "LengthMismatch",
414
+ "inputs": []
415
+ },
416
+ {
417
+ "type": "error",
418
+ "name": "OnlyAuthority",
419
+ "inputs": []
420
+ },
421
+ {
422
+ "type": "error",
423
+ "name": "OnlyPoolManager",
424
+ "inputs": []
425
+ },
426
+ {
427
+ "type": "error",
428
+ "name": "PercentOverflow",
429
+ "inputs": []
430
+ },
431
+ {
432
+ "type": "error",
433
+ "name": "SafeERC20FailedOperation",
434
+ "inputs": [
435
+ {
436
+ "name": "token",
437
+ "type": "address",
438
+ "internalType": "address"
439
+ }
440
+ ]
441
+ },
442
+ {
443
+ "type": "error",
444
+ "name": "UnsafeCast",
445
+ "inputs": []
446
+ },
447
+ {
448
+ "type": "error",
449
+ "name": "V3RouteDoesNotConnectToV4RouteStart",
450
+ "inputs": []
451
+ },
452
+ {
453
+ "type": "error",
454
+ "name": "ZeroSwapDelta",
455
+ "inputs": []
456
+ }
457
+ ]
@@ -0,0 +1,18 @@
1
+ [
2
+ {
3
+ "type": "error",
4
+ "name": "TickMisaligned",
5
+ "inputs": [
6
+ {
7
+ "name": "tick",
8
+ "type": "int24",
9
+ "internalType": "int24"
10
+ },
11
+ {
12
+ "name": "tickSpacing",
13
+ "type": "int24",
14
+ "internalType": "int24"
15
+ }
16
+ ]
17
+ }
18
+ ]
@@ -0,0 +1,24 @@
1
+ [
2
+ {
3
+ "type": "error",
4
+ "name": "InvalidSqrtPrice",
5
+ "inputs": [
6
+ {
7
+ "name": "sqrtPriceX96",
8
+ "type": "uint160",
9
+ "internalType": "uint160"
10
+ }
11
+ ]
12
+ },
13
+ {
14
+ "type": "error",
15
+ "name": "InvalidTick",
16
+ "inputs": [
17
+ {
18
+ "name": "tick",
19
+ "type": "int24",
20
+ "internalType": "int24"
21
+ }
22
+ ]
23
+ }
24
+ ]
@@ -0,0 +1,28 @@
1
+ [
2
+ {
3
+ "type": "error",
4
+ "name": "InsufficientInputCurrency",
5
+ "inputs": [
6
+ {
7
+ "name": "inputAmount",
8
+ "type": "uint256",
9
+ "internalType": "uint256"
10
+ },
11
+ {
12
+ "name": "availableAmount",
13
+ "type": "uint256",
14
+ "internalType": "uint256"
15
+ }
16
+ ]
17
+ },
18
+ {
19
+ "type": "error",
20
+ "name": "V3RouteCannotStartWithInputCurrency",
21
+ "inputs": []
22
+ },
23
+ {
24
+ "type": "error",
25
+ "name": "V3RouteDoesNotConnectToV4RouteStart",
26
+ "inputs": []
27
+ }
28
+ ]