@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,57 @@
1
+ [
2
+ {
3
+ "type": "function",
4
+ "name": "authority",
5
+ "inputs": [],
6
+ "outputs": [
7
+ {
8
+ "name": "",
9
+ "type": "address",
10
+ "internalType": "address"
11
+ }
12
+ ],
13
+ "stateMutability": "view"
14
+ },
15
+ {
16
+ "type": "function",
17
+ "name": "setAuthority",
18
+ "inputs": [
19
+ {
20
+ "name": "newAuthority",
21
+ "type": "address",
22
+ "internalType": "address"
23
+ }
24
+ ],
25
+ "outputs": [],
26
+ "stateMutability": "nonpayable"
27
+ },
28
+ {
29
+ "type": "event",
30
+ "name": "AuthorityUpdated",
31
+ "inputs": [
32
+ {
33
+ "name": "authority",
34
+ "type": "address",
35
+ "indexed": false,
36
+ "internalType": "address"
37
+ }
38
+ ],
39
+ "anonymous": false
40
+ },
41
+ {
42
+ "type": "error",
43
+ "name": "AccessManagedInvalidAuthority",
44
+ "inputs": [
45
+ {
46
+ "name": "authority",
47
+ "type": "address",
48
+ "internalType": "address"
49
+ }
50
+ ]
51
+ },
52
+ {
53
+ "type": "error",
54
+ "name": "AccessManagedUnauthorized",
55
+ "inputs": []
56
+ }
57
+ ]
@@ -0,0 +1,351 @@
1
+ [
2
+ {
3
+ "type": "constructor",
4
+ "inputs": [
5
+ {
6
+ "name": "initialAdmin",
7
+ "type": "address",
8
+ "internalType": "address"
9
+ },
10
+ {
11
+ "name": "initialFunctionRoles",
12
+ "type": "tuple[]",
13
+ "internalType": "struct SimpleAccessManager.InitialFunctionRole[]",
14
+ "components": [
15
+ {
16
+ "name": "selector",
17
+ "type": "bytes4",
18
+ "internalType": "bytes4"
19
+ },
20
+ {
21
+ "name": "roleId",
22
+ "type": "uint64",
23
+ "internalType": "uint64"
24
+ }
25
+ ]
26
+ }
27
+ ],
28
+ "stateMutability": "nonpayable"
29
+ },
30
+ {
31
+ "type": "function",
32
+ "name": "ADMIN_ROLE",
33
+ "inputs": [],
34
+ "outputs": [
35
+ {
36
+ "name": "",
37
+ "type": "uint64",
38
+ "internalType": "uint64"
39
+ }
40
+ ],
41
+ "stateMutability": "view"
42
+ },
43
+ {
44
+ "type": "function",
45
+ "name": "PUBLIC_ROLE",
46
+ "inputs": [],
47
+ "outputs": [
48
+ {
49
+ "name": "",
50
+ "type": "uint64",
51
+ "internalType": "uint64"
52
+ }
53
+ ],
54
+ "stateMutability": "view"
55
+ },
56
+ {
57
+ "type": "function",
58
+ "name": "canCall",
59
+ "inputs": [
60
+ {
61
+ "name": "caller",
62
+ "type": "address",
63
+ "internalType": "address"
64
+ },
65
+ {
66
+ "name": "",
67
+ "type": "address",
68
+ "internalType": "address"
69
+ },
70
+ {
71
+ "name": "selector",
72
+ "type": "bytes4",
73
+ "internalType": "bytes4"
74
+ }
75
+ ],
76
+ "outputs": [
77
+ {
78
+ "name": "",
79
+ "type": "bool",
80
+ "internalType": "bool"
81
+ }
82
+ ],
83
+ "stateMutability": "view"
84
+ },
85
+ {
86
+ "type": "function",
87
+ "name": "getFunctionRole",
88
+ "inputs": [
89
+ {
90
+ "name": "selector",
91
+ "type": "bytes4",
92
+ "internalType": "bytes4"
93
+ }
94
+ ],
95
+ "outputs": [
96
+ {
97
+ "name": "",
98
+ "type": "uint64",
99
+ "internalType": "uint64"
100
+ }
101
+ ],
102
+ "stateMutability": "view"
103
+ },
104
+ {
105
+ "type": "function",
106
+ "name": "getRoleAdmin",
107
+ "inputs": [
108
+ {
109
+ "name": "roleId",
110
+ "type": "uint64",
111
+ "internalType": "uint64"
112
+ }
113
+ ],
114
+ "outputs": [
115
+ {
116
+ "name": "",
117
+ "type": "uint64",
118
+ "internalType": "uint64"
119
+ }
120
+ ],
121
+ "stateMutability": "view"
122
+ },
123
+ {
124
+ "type": "function",
125
+ "name": "grantRole",
126
+ "inputs": [
127
+ {
128
+ "name": "roleId",
129
+ "type": "uint64",
130
+ "internalType": "uint64"
131
+ },
132
+ {
133
+ "name": "account",
134
+ "type": "address",
135
+ "internalType": "address"
136
+ }
137
+ ],
138
+ "outputs": [],
139
+ "stateMutability": "nonpayable"
140
+ },
141
+ {
142
+ "type": "function",
143
+ "name": "hasRole",
144
+ "inputs": [
145
+ {
146
+ "name": "roleId",
147
+ "type": "uint64",
148
+ "internalType": "uint64"
149
+ },
150
+ {
151
+ "name": "account",
152
+ "type": "address",
153
+ "internalType": "address"
154
+ }
155
+ ],
156
+ "outputs": [
157
+ {
158
+ "name": "",
159
+ "type": "bool",
160
+ "internalType": "bool"
161
+ }
162
+ ],
163
+ "stateMutability": "view"
164
+ },
165
+ {
166
+ "type": "function",
167
+ "name": "renounceRole",
168
+ "inputs": [
169
+ {
170
+ "name": "roleId",
171
+ "type": "uint64",
172
+ "internalType": "uint64"
173
+ },
174
+ {
175
+ "name": "callerConfirmation",
176
+ "type": "address",
177
+ "internalType": "address"
178
+ }
179
+ ],
180
+ "outputs": [],
181
+ "stateMutability": "nonpayable"
182
+ },
183
+ {
184
+ "type": "function",
185
+ "name": "revokeRole",
186
+ "inputs": [
187
+ {
188
+ "name": "roleId",
189
+ "type": "uint64",
190
+ "internalType": "uint64"
191
+ },
192
+ {
193
+ "name": "account",
194
+ "type": "address",
195
+ "internalType": "address"
196
+ }
197
+ ],
198
+ "outputs": [],
199
+ "stateMutability": "nonpayable"
200
+ },
201
+ {
202
+ "type": "function",
203
+ "name": "setFunctionRole",
204
+ "inputs": [
205
+ {
206
+ "name": "selector",
207
+ "type": "bytes4",
208
+ "internalType": "bytes4"
209
+ },
210
+ {
211
+ "name": "roleId",
212
+ "type": "uint64",
213
+ "internalType": "uint64"
214
+ }
215
+ ],
216
+ "outputs": [],
217
+ "stateMutability": "nonpayable"
218
+ },
219
+ {
220
+ "type": "function",
221
+ "name": "setRoleAdmin",
222
+ "inputs": [
223
+ {
224
+ "name": "roleId",
225
+ "type": "uint64",
226
+ "internalType": "uint64"
227
+ },
228
+ {
229
+ "name": "admin",
230
+ "type": "uint64",
231
+ "internalType": "uint64"
232
+ }
233
+ ],
234
+ "outputs": [],
235
+ "stateMutability": "nonpayable"
236
+ },
237
+ {
238
+ "type": "event",
239
+ "name": "FunctionRoleUpdated",
240
+ "inputs": [
241
+ {
242
+ "name": "selector",
243
+ "type": "bytes4",
244
+ "indexed": true,
245
+ "internalType": "bytes4"
246
+ },
247
+ {
248
+ "name": "roleId",
249
+ "type": "uint64",
250
+ "indexed": true,
251
+ "internalType": "uint64"
252
+ }
253
+ ],
254
+ "anonymous": false
255
+ },
256
+ {
257
+ "type": "event",
258
+ "name": "RoleAdminChanged",
259
+ "inputs": [
260
+ {
261
+ "name": "roleId",
262
+ "type": "uint64",
263
+ "indexed": true,
264
+ "internalType": "uint64"
265
+ },
266
+ {
267
+ "name": "admin",
268
+ "type": "uint64",
269
+ "indexed": true,
270
+ "internalType": "uint64"
271
+ }
272
+ ],
273
+ "anonymous": false
274
+ },
275
+ {
276
+ "type": "event",
277
+ "name": "RoleGranted",
278
+ "inputs": [
279
+ {
280
+ "name": "roleId",
281
+ "type": "uint64",
282
+ "indexed": true,
283
+ "internalType": "uint64"
284
+ },
285
+ {
286
+ "name": "account",
287
+ "type": "address",
288
+ "indexed": true,
289
+ "internalType": "address"
290
+ }
291
+ ],
292
+ "anonymous": false
293
+ },
294
+ {
295
+ "type": "event",
296
+ "name": "RoleRevoked",
297
+ "inputs": [
298
+ {
299
+ "name": "roleId",
300
+ "type": "uint64",
301
+ "indexed": true,
302
+ "internalType": "uint64"
303
+ },
304
+ {
305
+ "name": "account",
306
+ "type": "address",
307
+ "indexed": true,
308
+ "internalType": "address"
309
+ }
310
+ ],
311
+ "anonymous": false
312
+ },
313
+ {
314
+ "type": "error",
315
+ "name": "AccessManagerInvalidInitialAdmin",
316
+ "inputs": [
317
+ {
318
+ "name": "initialAdmin",
319
+ "type": "address",
320
+ "internalType": "address"
321
+ }
322
+ ]
323
+ },
324
+ {
325
+ "type": "error",
326
+ "name": "AccessManagerLockedRole",
327
+ "inputs": [
328
+ {
329
+ "name": "roleId",
330
+ "type": "uint64",
331
+ "internalType": "uint64"
332
+ }
333
+ ]
334
+ },
335
+ {
336
+ "type": "error",
337
+ "name": "AccessManagerUnauthorizedAccount",
338
+ "inputs": [
339
+ {
340
+ "name": "account",
341
+ "type": "address",
342
+ "internalType": "address"
343
+ },
344
+ {
345
+ "name": "roleId",
346
+ "type": "uint64",
347
+ "internalType": "uint64"
348
+ }
349
+ ]
350
+ }
351
+ ]
@@ -0,0 +1,22 @@
1
+ [
2
+ {
3
+ "type": "error",
4
+ "name": "InvalidPrice",
5
+ "inputs": []
6
+ },
7
+ {
8
+ "type": "error",
9
+ "name": "InvalidPriceOrLiquidity",
10
+ "inputs": []
11
+ },
12
+ {
13
+ "type": "error",
14
+ "name": "NotEnoughLiquidity",
15
+ "inputs": []
16
+ },
17
+ {
18
+ "type": "error",
19
+ "name": "PriceOverflow",
20
+ "inputs": []
21
+ }
22
+ ]
@@ -0,0 +1,80 @@
1
+ [
2
+ {
3
+ "type": "function",
4
+ "name": "FEE_GROWTH_GLOBAL0_OFFSET",
5
+ "inputs": [],
6
+ "outputs": [
7
+ {
8
+ "name": "",
9
+ "type": "uint256",
10
+ "internalType": "uint256"
11
+ }
12
+ ],
13
+ "stateMutability": "view"
14
+ },
15
+ {
16
+ "type": "function",
17
+ "name": "LIQUIDITY_OFFSET",
18
+ "inputs": [],
19
+ "outputs": [
20
+ {
21
+ "name": "",
22
+ "type": "uint256",
23
+ "internalType": "uint256"
24
+ }
25
+ ],
26
+ "stateMutability": "view"
27
+ },
28
+ {
29
+ "type": "function",
30
+ "name": "POOLS_SLOT",
31
+ "inputs": [],
32
+ "outputs": [
33
+ {
34
+ "name": "",
35
+ "type": "bytes32",
36
+ "internalType": "bytes32"
37
+ }
38
+ ],
39
+ "stateMutability": "view"
40
+ },
41
+ {
42
+ "type": "function",
43
+ "name": "POSITIONS_OFFSET",
44
+ "inputs": [],
45
+ "outputs": [
46
+ {
47
+ "name": "",
48
+ "type": "uint256",
49
+ "internalType": "uint256"
50
+ }
51
+ ],
52
+ "stateMutability": "view"
53
+ },
54
+ {
55
+ "type": "function",
56
+ "name": "TICKS_OFFSET",
57
+ "inputs": [],
58
+ "outputs": [
59
+ {
60
+ "name": "",
61
+ "type": "uint256",
62
+ "internalType": "uint256"
63
+ }
64
+ ],
65
+ "stateMutability": "view"
66
+ },
67
+ {
68
+ "type": "function",
69
+ "name": "TICK_BITMAP_OFFSET",
70
+ "inputs": [],
71
+ "outputs": [
72
+ {
73
+ "name": "",
74
+ "type": "uint256",
75
+ "internalType": "uint256"
76
+ }
77
+ ],
78
+ "stateMutability": "view"
79
+ }
80
+ ]
@@ -0,0 +1,22 @@
1
+ [
2
+ {
3
+ "type": "error",
4
+ "name": "InvalidMultiple",
5
+ "inputs": []
6
+ },
7
+ {
8
+ "type": "error",
9
+ "name": "InvalidPercent",
10
+ "inputs": []
11
+ },
12
+ {
13
+ "type": "error",
14
+ "name": "LengthMismatch",
15
+ "inputs": []
16
+ },
17
+ {
18
+ "type": "error",
19
+ "name": "PercentOverflow",
20
+ "inputs": []
21
+ }
22
+ ]