@zoralabs/limit-orders 0.2.0 → 0.2.2

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 (154) hide show
  1. package/.turbo/turbo-build$colon$js.log +50 -49
  2. package/CHANGELOG.md +73 -0
  3. package/abis/ISetLimitOrderConfig.json +27 -0
  4. package/abis/IWETH.json +118 -0
  5. package/abis/IZoraLimitOrderBook.json +5 -0
  6. package/abis/LimitOrderLiquidity.json +7 -0
  7. package/abis/LimitOrderViews.json +62 -0
  8. package/abis/{SimpleAccessManaged.json → Ownable.json} +29 -10
  9. package/abis/Ownable2Step.json +115 -0
  10. package/abis/PermittedCallers.json +181 -0
  11. package/abis/SwapWithLimitOrders.json +134 -14
  12. package/abis/ZoraLimitOrderBook.json +187 -35
  13. package/cache/solidity-files-cache.json +1 -1
  14. package/dist/index.cjs +219 -34
  15. package/dist/index.cjs.map +1 -1
  16. package/dist/index.js +219 -34
  17. package/dist/index.js.map +1 -1
  18. package/dist/wagmiGenerated.d.ts +254 -41
  19. package/dist/wagmiGenerated.d.ts.map +1 -1
  20. package/out/BalanceDelta.sol/BalanceDeltaLibrary.json +1 -1
  21. package/out/BeforeSwapDelta.sol/BeforeSwapDeltaLibrary.json +1 -1
  22. package/out/BitMath.sol/BitMath.json +1 -1
  23. package/out/BytesLib.sol/BytesLib.json +1 -1
  24. package/out/CoinCommon.sol/CoinCommon.json +1 -1
  25. package/out/CoinConfigurationVersions.sol/CoinConfigurationVersions.json +1 -1
  26. package/out/CoinConstants.sol/CoinConstants.json +1 -1
  27. package/out/Context.sol/Context.json +1 -1
  28. package/out/Currency.sol/CurrencyLibrary.json +1 -1
  29. package/out/CurrencyReserves.sol/CurrencyReserves.json +1 -1
  30. package/out/CustomRevert.sol/CustomRevert.json +1 -1
  31. package/out/DopplerMath.sol/DopplerMath.json +1 -1
  32. package/out/FixedPoint128.sol/FixedPoint128.json +1 -1
  33. package/out/FixedPoint96.sol/FixedPoint96.json +1 -1
  34. package/out/FullMath.sol/FullMath.json +1 -1
  35. package/out/IAllowanceTransfer.sol/IAllowanceTransfer.json +1 -1
  36. package/out/ICoin.sol/ICoin.json +1 -1
  37. package/out/ICoin.sol/IHasCoinType.json +1 -1
  38. package/out/ICoin.sol/IHasPoolKey.json +1 -1
  39. package/out/ICoin.sol/IHasSwapPath.json +1 -1
  40. package/out/ICoin.sol/IHasTotalSupplyForPositions.json +1 -1
  41. package/out/IDeployedCoinVersionLookup.sol/IDeployedCoinVersionLookup.json +1 -1
  42. package/out/IDopplerErrors.sol/IDopplerErrors.json +1 -1
  43. package/out/IEIP712.sol/IEIP712.json +1 -1
  44. package/out/IERC1363.sol/IERC1363.json +1 -1
  45. package/out/IERC165.sol/IERC165.json +1 -1
  46. package/out/IERC20.sol/IERC20.json +1 -1
  47. package/out/IERC20Minimal.sol/IERC20Minimal.json +1 -1
  48. package/out/IERC6909Claims.sol/IERC6909Claims.json +1 -1
  49. package/out/IERC7572.sol/IERC7572.json +1 -1
  50. package/out/IExtsload.sol/IExtsload.json +1 -1
  51. package/out/IExttload.sol/IExttload.json +1 -1
  52. package/out/IHasRewardsRecipients.sol/IHasRewardsRecipients.json +1 -1
  53. package/out/IHooks.sol/IHooks.json +1 -1
  54. package/out/IMsgSender.sol/IMsgSender.json +1 -1
  55. package/out/IPoolManager.sol/IPoolManager.json +1 -1
  56. package/out/IProtocolFees.sol/IProtocolFees.json +1 -1
  57. package/out/ISetLimitOrderConfig.sol/ISetLimitOrderConfig.json +1 -0
  58. package/out/ISupportsLimitOrderFill.sol/ISupportsLimitOrderFill.json +1 -1
  59. package/out/ISwapPathRouter.sol/ISwapPathRouter.json +1 -1
  60. package/out/ISwapRouter.sol/ISwapRouter.json +1 -1
  61. package/out/IUniswapV3SwapCallback.sol/IUniswapV3SwapCallback.json +1 -1
  62. package/out/IUpgradeableV4Hook.sol/IUpgradeableDestinationV4Hook.json +1 -1
  63. package/out/IUpgradeableV4Hook.sol/IUpgradeableDestinationV4HookWithUpdateableFee.json +1 -1
  64. package/out/IUpgradeableV4Hook.sol/IUpgradeableV4Hook.json +1 -1
  65. package/out/IWETH.sol/IWETH.json +1 -0
  66. package/out/IZoraHookRegistry.sol/IZoraHookRegistry.json +1 -1
  67. package/out/IZoraLimitOrderBook.sol/IZoraLimitOrderBook.json +1 -1
  68. package/out/IZoraLimitOrderBookCoinsInterface.sol/IZoraLimitOrderBookCoinsInterface.json +1 -1
  69. package/out/IZoraV4CoinHook.sol/IZoraV4CoinHook.json +1 -1
  70. package/out/LimitOrderBitmap.sol/LimitOrderBitmap.json +1 -1
  71. package/out/LimitOrderCommon.sol/LimitOrderCommon.json +1 -1
  72. package/out/LimitOrderCreate.sol/LimitOrderCreate.json +1 -1
  73. package/out/LimitOrderFill.sol/LimitOrderFill.json +1 -1
  74. package/out/LimitOrderLiquidity.sol/LimitOrderLiquidity.json +1 -1
  75. package/out/LimitOrderQueues.sol/LimitOrderQueues.json +1 -1
  76. package/out/LimitOrderStorage.sol/LimitOrderStorage.json +1 -1
  77. package/out/LimitOrderTypes.sol/LimitOrderTypes.json +1 -1
  78. package/out/LimitOrderViews.sol/LimitOrderViews.json +1 -0
  79. package/out/LimitOrderWithdraw.sol/LimitOrderWithdraw.json +1 -1
  80. package/out/LiquidityAmounts.sol/LiquidityAmounts.json +1 -1
  81. package/out/LiquidityMath.sol/LiquidityMath.json +1 -1
  82. package/out/Lock.sol/Lock.json +1 -1
  83. package/out/NonzeroDeltaCount.sol/NonzeroDeltaCount.json +1 -1
  84. package/out/Ownable.sol/Ownable.json +1 -0
  85. package/out/Ownable2Step.sol/Ownable2Step.json +1 -0
  86. package/out/Path.sol/Path.json +1 -1
  87. package/out/PathKey.sol/PathKeyLibrary.json +1 -1
  88. package/out/Permit2Payments.sol/Permit2Payments.json +1 -1
  89. package/out/PermittedCallers.sol/PermittedCallers.json +1 -0
  90. package/out/PoolId.sol/PoolIdLibrary.json +1 -1
  91. package/out/Position.sol/Position.json +1 -1
  92. package/out/SafeCast.sol/SafeCast.json +1 -1
  93. package/out/SafeCast160.sol/SafeCast160.json +1 -1
  94. package/out/SafeERC20.sol/SafeERC20.json +1 -1
  95. package/out/SqrtPriceMath.sol/SqrtPriceMath.json +1 -1
  96. package/out/StateLibrary.sol/StateLibrary.json +1 -1
  97. package/out/SwapLimitOrders.sol/SwapLimitOrders.json +1 -1
  98. package/out/SwapWithLimitOrders.sol/SwapWithLimitOrders.json +1 -1
  99. package/out/TickBitmap.sol/TickBitmap.json +1 -1
  100. package/out/TickMath.sol/TickMath.json +1 -1
  101. package/out/TransientSlot.sol/TransientSlot.json +1 -1
  102. package/out/TransientStateLibrary.sol/TransientStateLibrary.json +1 -1
  103. package/out/UniV4SwapToCurrency.sol/UniV4SwapToCurrency.json +1 -1
  104. package/out/UnsafeMath.sol/UnsafeMath.json +1 -1
  105. package/out/V3ToV4SwapLib.sol/V3ToV4SwapLib.json +1 -1
  106. package/out/ZoraLimitOrderBook.sol/ZoraLimitOrderBook.json +1 -1
  107. package/out/build-info/37e0124d88d60569.json +1 -0
  108. package/out/uniswap/BitMath.sol/BitMath.json +1 -1
  109. package/out/uniswap/CustomRevert.sol/CustomRevert.json +1 -1
  110. package/out/uniswap/FullMath.sol/FullMath.json +1 -1
  111. package/out/uniswap/SafeCast.sol/SafeCast.json +1 -1
  112. package/out/uniswap/TickMath.sol/TickMath.json +1 -1
  113. package/package/wagmiGenerated.ts +218 -33
  114. package/package.json +1 -1
  115. package/src/IZoraLimitOrderBook.sol +5 -5
  116. package/src/ZoraLimitOrderBook.sol +24 -41
  117. package/src/access/PermittedCallers.sol +41 -0
  118. package/src/libs/LimitOrderBitmap.sol +0 -51
  119. package/src/libs/LimitOrderCommon.sol +48 -30
  120. package/src/libs/LimitOrderCreate.sol +5 -18
  121. package/src/libs/LimitOrderFill.sol +32 -161
  122. package/src/libs/LimitOrderLiquidity.sol +92 -71
  123. package/src/libs/LimitOrderViews.sol +168 -0
  124. package/src/libs/LimitOrderWithdraw.sol +13 -4
  125. package/src/libs/SwapLimitOrders.sol +14 -7
  126. package/src/router/ISetLimitOrderConfig.sol +12 -0
  127. package/src/router/SwapWithLimitOrders.sol +46 -33
  128. package/test/LimitOrderAccessControl.t.sol +173 -156
  129. package/test/LimitOrderBitmap.t.sol +13 -7
  130. package/test/LimitOrderFill.t.sol +42 -4
  131. package/test/LimitOrderLibraries.t.sol +18 -10
  132. package/test/LimitOrderLiquidityPayouts.t.sol +280 -3
  133. package/test/LimitOrderWithdraw.t.sol +28 -1
  134. package/test/SwapWithLimitOrders.t.sol +3 -5
  135. package/test/SwapWithLimitOrdersRouter.t.sol +108 -13
  136. package/test/gas/LimitOrderFillGas.t.sol +0 -7
  137. package/test/gas/LimitOrderSwapGas.t.sol +0 -6
  138. package/test/unit/LimitOrderBitmapUnit.t.sol +0 -134
  139. package/test/unit/LimitOrderCreateUnit.t.sol +32 -0
  140. package/test/unit/SwapLimitOrdersUnit.t.sol +231 -33
  141. package/test/unit/SwapLimitOrdersValidation.t.sol +28 -42
  142. package/test/unit/SwapWithLimitOrdersUnit.t.sol +21 -88
  143. package/test/utils/BaseTest.sol +34 -22
  144. package/test/utils/MockWETH.sol +39 -0
  145. package/test/utils/TestableZoraLimitOrderBook.sol +5 -7
  146. package/abis/IAuthority.json +0 -31
  147. package/abis/SimpleAccessManager.json +0 -351
  148. package/out/IAuthority.sol/IAuthority.json +0 -1
  149. package/out/SimpleAccessManaged.sol/SimpleAccessManaged.json +0 -1
  150. package/out/SimpleAccessManager.sol/SimpleAccessManager.json +0 -1
  151. package/out/build-info/69718f10d1dc37f0.json +0 -1
  152. package/src/access/SimpleAccessManaged.sol +0 -76
  153. package/src/access/SimpleAccessManager.sol +0 -268
  154. package/test/SimpleAccessManager.t.sol +0 -420
@@ -0,0 +1,181 @@
1
+ [
2
+ {
3
+ "type": "function",
4
+ "name": "acceptOwnership",
5
+ "inputs": [],
6
+ "outputs": [],
7
+ "stateMutability": "nonpayable"
8
+ },
9
+ {
10
+ "type": "function",
11
+ "name": "isPermittedCaller",
12
+ "inputs": [
13
+ {
14
+ "name": "caller",
15
+ "type": "address",
16
+ "internalType": "address"
17
+ }
18
+ ],
19
+ "outputs": [
20
+ {
21
+ "name": "",
22
+ "type": "bool",
23
+ "internalType": "bool"
24
+ }
25
+ ],
26
+ "stateMutability": "view"
27
+ },
28
+ {
29
+ "type": "function",
30
+ "name": "owner",
31
+ "inputs": [],
32
+ "outputs": [
33
+ {
34
+ "name": "",
35
+ "type": "address",
36
+ "internalType": "address"
37
+ }
38
+ ],
39
+ "stateMutability": "view"
40
+ },
41
+ {
42
+ "type": "function",
43
+ "name": "pendingOwner",
44
+ "inputs": [],
45
+ "outputs": [
46
+ {
47
+ "name": "",
48
+ "type": "address",
49
+ "internalType": "address"
50
+ }
51
+ ],
52
+ "stateMutability": "view"
53
+ },
54
+ {
55
+ "type": "function",
56
+ "name": "renounceOwnership",
57
+ "inputs": [],
58
+ "outputs": [],
59
+ "stateMutability": "nonpayable"
60
+ },
61
+ {
62
+ "type": "function",
63
+ "name": "setPermittedCallers",
64
+ "inputs": [
65
+ {
66
+ "name": "callers",
67
+ "type": "address[]",
68
+ "internalType": "address[]"
69
+ },
70
+ {
71
+ "name": "permitted",
72
+ "type": "bool[]",
73
+ "internalType": "bool[]"
74
+ }
75
+ ],
76
+ "outputs": [],
77
+ "stateMutability": "nonpayable"
78
+ },
79
+ {
80
+ "type": "function",
81
+ "name": "transferOwnership",
82
+ "inputs": [
83
+ {
84
+ "name": "newOwner",
85
+ "type": "address",
86
+ "internalType": "address"
87
+ }
88
+ ],
89
+ "outputs": [],
90
+ "stateMutability": "nonpayable"
91
+ },
92
+ {
93
+ "type": "event",
94
+ "name": "OwnershipTransferStarted",
95
+ "inputs": [
96
+ {
97
+ "name": "previousOwner",
98
+ "type": "address",
99
+ "indexed": true,
100
+ "internalType": "address"
101
+ },
102
+ {
103
+ "name": "newOwner",
104
+ "type": "address",
105
+ "indexed": true,
106
+ "internalType": "address"
107
+ }
108
+ ],
109
+ "anonymous": false
110
+ },
111
+ {
112
+ "type": "event",
113
+ "name": "OwnershipTransferred",
114
+ "inputs": [
115
+ {
116
+ "name": "previousOwner",
117
+ "type": "address",
118
+ "indexed": true,
119
+ "internalType": "address"
120
+ },
121
+ {
122
+ "name": "newOwner",
123
+ "type": "address",
124
+ "indexed": true,
125
+ "internalType": "address"
126
+ }
127
+ ],
128
+ "anonymous": false
129
+ },
130
+ {
131
+ "type": "event",
132
+ "name": "PermittedCallerUpdated",
133
+ "inputs": [
134
+ {
135
+ "name": "caller",
136
+ "type": "address",
137
+ "indexed": true,
138
+ "internalType": "address"
139
+ },
140
+ {
141
+ "name": "permitted",
142
+ "type": "bool",
143
+ "indexed": false,
144
+ "internalType": "bool"
145
+ }
146
+ ],
147
+ "anonymous": false
148
+ },
149
+ {
150
+ "type": "error",
151
+ "name": "CallerNotPermitted",
152
+ "inputs": []
153
+ },
154
+ {
155
+ "type": "error",
156
+ "name": "OwnableInvalidOwner",
157
+ "inputs": [
158
+ {
159
+ "name": "owner",
160
+ "type": "address",
161
+ "internalType": "address"
162
+ }
163
+ ]
164
+ },
165
+ {
166
+ "type": "error",
167
+ "name": "OwnableUnauthorizedAccount",
168
+ "inputs": [
169
+ {
170
+ "name": "account",
171
+ "type": "address",
172
+ "internalType": "address"
173
+ }
174
+ ]
175
+ },
176
+ {
177
+ "type": "error",
178
+ "name": "PermittedCallersLengthMismatch",
179
+ "inputs": []
180
+ }
181
+ ]
@@ -21,6 +21,11 @@
21
21
  "name": "permit2_",
22
22
  "type": "address",
23
23
  "internalType": "address"
24
+ },
25
+ {
26
+ "name": "owner_",
27
+ "type": "address",
28
+ "internalType": "address"
24
29
  }
25
30
  ],
26
31
  "stateMutability": "nonpayable"
@@ -29,6 +34,13 @@
29
34
  "type": "receive",
30
35
  "stateMutability": "payable"
31
36
  },
37
+ {
38
+ "type": "function",
39
+ "name": "acceptOwnership",
40
+ "inputs": [],
41
+ "outputs": [],
42
+ "stateMutability": "nonpayable"
43
+ },
32
44
  {
33
45
  "type": "function",
34
46
  "name": "getLimitOrderConfig",
@@ -67,6 +79,32 @@
67
79
  ],
68
80
  "stateMutability": "view"
69
81
  },
82
+ {
83
+ "type": "function",
84
+ "name": "owner",
85
+ "inputs": [],
86
+ "outputs": [
87
+ {
88
+ "name": "",
89
+ "type": "address",
90
+ "internalType": "address"
91
+ }
92
+ ],
93
+ "stateMutability": "view"
94
+ },
95
+ {
96
+ "type": "function",
97
+ "name": "pendingOwner",
98
+ "inputs": [],
99
+ "outputs": [
100
+ {
101
+ "name": "",
102
+ "type": "address",
103
+ "internalType": "address"
104
+ }
105
+ ],
106
+ "stateMutability": "view"
107
+ },
70
108
  {
71
109
  "type": "function",
72
110
  "name": "poolManager",
@@ -80,6 +118,13 @@
80
118
  ],
81
119
  "stateMutability": "view"
82
120
  },
121
+ {
122
+ "type": "function",
123
+ "name": "renounceOwnership",
124
+ "inputs": [],
125
+ "outputs": [],
126
+ "stateMutability": "nonpayable"
127
+ },
83
128
  {
84
129
  "type": "function",
85
130
  "name": "setLimitOrderConfig",
@@ -213,6 +258,19 @@
213
258
  ],
214
259
  "stateMutability": "payable"
215
260
  },
261
+ {
262
+ "type": "function",
263
+ "name": "transferOwnership",
264
+ "inputs": [
265
+ {
266
+ "name": "newOwner",
267
+ "type": "address",
268
+ "internalType": "address"
269
+ }
270
+ ],
271
+ "outputs": [],
272
+ "stateMutability": "nonpayable"
273
+ },
216
274
  {
217
275
  "type": "function",
218
276
  "name": "unlockCallback",
@@ -264,6 +322,44 @@
264
322
  ],
265
323
  "anonymous": false
266
324
  },
325
+ {
326
+ "type": "event",
327
+ "name": "OwnershipTransferStarted",
328
+ "inputs": [
329
+ {
330
+ "name": "previousOwner",
331
+ "type": "address",
332
+ "indexed": true,
333
+ "internalType": "address"
334
+ },
335
+ {
336
+ "name": "newOwner",
337
+ "type": "address",
338
+ "indexed": true,
339
+ "internalType": "address"
340
+ }
341
+ ],
342
+ "anonymous": false
343
+ },
344
+ {
345
+ "type": "event",
346
+ "name": "OwnershipTransferred",
347
+ "inputs": [
348
+ {
349
+ "name": "previousOwner",
350
+ "type": "address",
351
+ "indexed": true,
352
+ "internalType": "address"
353
+ },
354
+ {
355
+ "name": "newOwner",
356
+ "type": "address",
357
+ "indexed": true,
358
+ "internalType": "address"
359
+ }
360
+ ],
361
+ "anonymous": false
362
+ },
267
363
  {
268
364
  "type": "event",
269
365
  "name": "SwapWithLimitOrdersExecuted",
@@ -313,12 +409,6 @@
313
409
  }
314
410
  ]
315
411
  },
316
- {
317
- "name": "delta",
318
- "type": "int256",
319
- "indexed": false,
320
- "internalType": "BalanceDelta"
321
- },
322
412
  {
323
413
  "name": "tickBeforeSwap",
324
414
  "type": "int24",
@@ -331,6 +421,24 @@
331
421
  "indexed": false,
332
422
  "internalType": "int24"
333
423
  },
424
+ {
425
+ "name": "amount0",
426
+ "type": "int128",
427
+ "indexed": false,
428
+ "internalType": "int128"
429
+ },
430
+ {
431
+ "name": "amount1",
432
+ "type": "int128",
433
+ "indexed": false,
434
+ "internalType": "int128"
435
+ },
436
+ {
437
+ "name": "sqrtPriceX96",
438
+ "type": "uint160",
439
+ "indexed": false,
440
+ "internalType": "uint160"
441
+ },
334
442
  {
335
443
  "name": "orders",
336
444
  "type": "tuple[]",
@@ -362,11 +470,6 @@
362
470
  "name": "EmptyV4Route",
363
471
  "inputs": []
364
472
  },
365
- {
366
- "type": "error",
367
- "name": "FromAddressIsNotOwner",
368
- "inputs": []
369
- },
370
473
  {
371
474
  "type": "error",
372
475
  "name": "InsufficientInputCurrency",
@@ -415,13 +518,30 @@
415
518
  },
416
519
  {
417
520
  "type": "error",
418
- "name": "OnlyAuthority",
521
+ "name": "OnlyPoolManager",
419
522
  "inputs": []
420
523
  },
421
524
  {
422
525
  "type": "error",
423
- "name": "OnlyPoolManager",
424
- "inputs": []
526
+ "name": "OwnableInvalidOwner",
527
+ "inputs": [
528
+ {
529
+ "name": "owner",
530
+ "type": "address",
531
+ "internalType": "address"
532
+ }
533
+ ]
534
+ },
535
+ {
536
+ "type": "error",
537
+ "name": "OwnableUnauthorizedAccount",
538
+ "inputs": [
539
+ {
540
+ "name": "account",
541
+ "type": "address",
542
+ "internalType": "address"
543
+ }
544
+ ]
425
545
  },
426
546
  {
427
547
  "type": "error",
@@ -18,7 +18,12 @@
18
18
  "internalType": "address"
19
19
  },
20
20
  {
21
- "name": "authority_",
21
+ "name": "owner_",
22
+ "type": "address",
23
+ "internalType": "address"
24
+ },
25
+ {
26
+ "name": "weth_",
22
27
  "type": "address",
23
28
  "internalType": "address"
24
29
  }
@@ -31,16 +36,10 @@
31
36
  },
32
37
  {
33
38
  "type": "function",
34
- "name": "authority",
39
+ "name": "acceptOwnership",
35
40
  "inputs": [],
36
- "outputs": [
37
- {
38
- "name": "",
39
- "type": "address",
40
- "internalType": "address"
41
- }
42
- ],
43
- "stateMutability": "view"
41
+ "outputs": [],
42
+ "stateMutability": "nonpayable"
44
43
  },
45
44
  {
46
45
  "type": "function",
@@ -274,27 +273,66 @@
274
273
  },
275
274
  {
276
275
  "type": "function",
277
- "name": "poolManager",
276
+ "name": "isPermittedCaller",
277
+ "inputs": [
278
+ {
279
+ "name": "caller",
280
+ "type": "address",
281
+ "internalType": "address"
282
+ }
283
+ ],
284
+ "outputs": [
285
+ {
286
+ "name": "",
287
+ "type": "bool",
288
+ "internalType": "bool"
289
+ }
290
+ ],
291
+ "stateMutability": "view"
292
+ },
293
+ {
294
+ "type": "function",
295
+ "name": "owner",
278
296
  "inputs": [],
279
297
  "outputs": [
280
298
  {
281
299
  "name": "",
282
300
  "type": "address",
283
- "internalType": "contract IPoolManager"
301
+ "internalType": "address"
284
302
  }
285
303
  ],
286
304
  "stateMutability": "view"
287
305
  },
288
306
  {
289
307
  "type": "function",
290
- "name": "setAuthority",
291
- "inputs": [
308
+ "name": "pendingOwner",
309
+ "inputs": [],
310
+ "outputs": [
292
311
  {
293
- "name": "newAuthority",
312
+ "name": "",
294
313
  "type": "address",
295
314
  "internalType": "address"
296
315
  }
297
316
  ],
317
+ "stateMutability": "view"
318
+ },
319
+ {
320
+ "type": "function",
321
+ "name": "poolManager",
322
+ "inputs": [],
323
+ "outputs": [
324
+ {
325
+ "name": "",
326
+ "type": "address",
327
+ "internalType": "contract IPoolManager"
328
+ }
329
+ ],
330
+ "stateMutability": "view"
331
+ },
332
+ {
333
+ "type": "function",
334
+ "name": "renounceOwnership",
335
+ "inputs": [],
298
336
  "outputs": [],
299
337
  "stateMutability": "nonpayable"
300
338
  },
@@ -311,6 +349,37 @@
311
349
  "outputs": [],
312
350
  "stateMutability": "nonpayable"
313
351
  },
352
+ {
353
+ "type": "function",
354
+ "name": "setPermittedCallers",
355
+ "inputs": [
356
+ {
357
+ "name": "callers",
358
+ "type": "address[]",
359
+ "internalType": "address[]"
360
+ },
361
+ {
362
+ "name": "permitted",
363
+ "type": "bool[]",
364
+ "internalType": "bool[]"
365
+ }
366
+ ],
367
+ "outputs": [],
368
+ "stateMutability": "nonpayable"
369
+ },
370
+ {
371
+ "type": "function",
372
+ "name": "transferOwnership",
373
+ "inputs": [
374
+ {
375
+ "name": "newOwner",
376
+ "type": "address",
377
+ "internalType": "address"
378
+ }
379
+ ],
380
+ "outputs": [],
381
+ "stateMutability": "nonpayable"
382
+ },
314
383
  {
315
384
  "type": "function",
316
385
  "name": "unlockCallback",
@@ -330,6 +399,19 @@
330
399
  ],
331
400
  "stateMutability": "nonpayable"
332
401
  },
402
+ {
403
+ "type": "function",
404
+ "name": "weth",
405
+ "inputs": [],
406
+ "outputs": [
407
+ {
408
+ "name": "",
409
+ "type": "address",
410
+ "internalType": "address"
411
+ }
412
+ ],
413
+ "stateMutability": "view"
414
+ },
333
415
  {
334
416
  "type": "function",
335
417
  "name": "withdraw",
@@ -384,19 +466,6 @@
384
466
  ],
385
467
  "stateMutability": "view"
386
468
  },
387
- {
388
- "type": "event",
389
- "name": "AuthorityUpdated",
390
- "inputs": [
391
- {
392
- "name": "authority",
393
- "type": "address",
394
- "indexed": false,
395
- "internalType": "address"
396
- }
397
- ],
398
- "anonymous": false
399
- },
400
469
  {
401
470
  "type": "event",
402
471
  "name": "LimitOrderCreated",
@@ -600,20 +669,61 @@
600
669
  "anonymous": false
601
670
  },
602
671
  {
603
- "type": "error",
604
- "name": "AccessManagedInvalidAuthority",
672
+ "type": "event",
673
+ "name": "OwnershipTransferStarted",
605
674
  "inputs": [
606
675
  {
607
- "name": "authority",
676
+ "name": "previousOwner",
608
677
  "type": "address",
678
+ "indexed": true,
679
+ "internalType": "address"
680
+ },
681
+ {
682
+ "name": "newOwner",
683
+ "type": "address",
684
+ "indexed": true,
609
685
  "internalType": "address"
610
686
  }
611
- ]
687
+ ],
688
+ "anonymous": false
612
689
  },
613
690
  {
614
- "type": "error",
615
- "name": "AccessManagedUnauthorized",
616
- "inputs": []
691
+ "type": "event",
692
+ "name": "OwnershipTransferred",
693
+ "inputs": [
694
+ {
695
+ "name": "previousOwner",
696
+ "type": "address",
697
+ "indexed": true,
698
+ "internalType": "address"
699
+ },
700
+ {
701
+ "name": "newOwner",
702
+ "type": "address",
703
+ "indexed": true,
704
+ "internalType": "address"
705
+ }
706
+ ],
707
+ "anonymous": false
708
+ },
709
+ {
710
+ "type": "event",
711
+ "name": "PermittedCallerUpdated",
712
+ "inputs": [
713
+ {
714
+ "name": "caller",
715
+ "type": "address",
716
+ "indexed": true,
717
+ "internalType": "address"
718
+ },
719
+ {
720
+ "name": "permitted",
721
+ "type": "bool",
722
+ "indexed": false,
723
+ "internalType": "bool"
724
+ }
725
+ ],
726
+ "anonymous": false
617
727
  },
618
728
  {
619
729
  "type": "error",
@@ -625,6 +735,11 @@
625
735
  "name": "ArrayLengthMismatch",
626
736
  "inputs": []
627
737
  },
738
+ {
739
+ "type": "error",
740
+ "name": "CallerNotPermitted",
741
+ "inputs": []
742
+ },
628
743
  {
629
744
  "type": "error",
630
745
  "name": "CoinMismatch",
@@ -728,16 +843,48 @@
728
843
  "name": "OrderClosed",
729
844
  "inputs": []
730
845
  },
846
+ {
847
+ "type": "error",
848
+ "name": "OrderFillable",
849
+ "inputs": []
850
+ },
731
851
  {
732
852
  "type": "error",
733
853
  "name": "OrderNotMaker",
734
854
  "inputs": []
735
855
  },
856
+ {
857
+ "type": "error",
858
+ "name": "OwnableInvalidOwner",
859
+ "inputs": [
860
+ {
861
+ "name": "owner",
862
+ "type": "address",
863
+ "internalType": "address"
864
+ }
865
+ ]
866
+ },
867
+ {
868
+ "type": "error",
869
+ "name": "OwnableUnauthorizedAccount",
870
+ "inputs": [
871
+ {
872
+ "name": "account",
873
+ "type": "address",
874
+ "internalType": "address"
875
+ }
876
+ ]
877
+ },
736
878
  {
737
879
  "type": "error",
738
880
  "name": "PathMustHaveAtLeastOneStep",
739
881
  "inputs": []
740
882
  },
883
+ {
884
+ "type": "error",
885
+ "name": "PermittedCallersLengthMismatch",
886
+ "inputs": []
887
+ },
741
888
  {
742
889
  "type": "error",
743
890
  "name": "RouterMsgSenderInvalid",
@@ -753,6 +900,11 @@
753
900
  "name": "UnlockedFillNotAllowed",
754
901
  "inputs": []
755
902
  },
903
+ {
904
+ "type": "error",
905
+ "name": "WethTransferFailed",
906
+ "inputs": []
907
+ },
756
908
  {
757
909
  "type": "error",
758
910
  "name": "ZeroMaker",