@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.
- package/.turbo/turbo-build$colon$js.log +85 -0
- package/AUDIT_NOTES.md +33 -0
- package/AUDIT_RFP.md +408 -0
- package/CHANGELOG.md +25 -0
- package/GAS_COMPARISON_RESULTS.md +194 -0
- package/LICENSE +21 -0
- package/README.md +650 -0
- package/SPEC.md +291 -0
- package/abis/BalanceDeltaLibrary.json +15 -0
- package/abis/BeforeSwapDeltaLibrary.json +15 -0
- package/abis/CurrencyLibrary.json +25 -0
- package/abis/CustomRevert.json +28 -0
- package/abis/IAllowanceTransfer.json +486 -0
- package/abis/IAuthority.json +31 -0
- package/abis/ICoin.json +1074 -0
- package/abis/IDeployedCoinVersionLookup.json +21 -0
- package/abis/IDopplerErrors.json +44 -0
- package/abis/IEIP712.json +15 -0
- package/abis/IERC1363.json +373 -0
- package/abis/IERC165.json +21 -0
- package/abis/IERC20.json +185 -0
- package/abis/IERC20Minimal.json +172 -0
- package/abis/IERC6909Claims.json +288 -0
- package/abis/IERC7572.json +21 -0
- package/abis/IExtsload.json +64 -0
- package/abis/IExttload.json +40 -0
- package/abis/IHasCoinType.json +15 -0
- package/abis/IHasPoolKey.json +42 -0
- package/abis/IHasRewardsRecipients.json +54 -0
- package/abis/IHasSwapPath.json +60 -0
- package/abis/IHasTotalSupplyForPositions.json +15 -0
- package/abis/IHooks.json +789 -0
- package/abis/IMsgSender.json +15 -0
- package/abis/IPoolManager.json +1286 -0
- package/abis/IProtocolFees.json +174 -0
- package/abis/ISupportsLimitOrderFill.json +15 -0
- package/abis/ISwapPathRouter.json +92 -0
- package/abis/ISwapRouter.json +219 -0
- package/abis/IUniswapV3SwapCallback.json +25 -0
- package/abis/IUpgradeableDestinationV4Hook.json +84 -0
- package/abis/IUpgradeableDestinationV4HookWithUpdateableFee.json +95 -0
- package/abis/IUpgradeableV4Hook.json +112 -0
- package/abis/IZoraHookRegistry.json +188 -0
- package/abis/IZoraLimitOrderBook.json +623 -0
- package/abis/IZoraLimitOrderBookCoinsInterface.json +67 -0
- package/abis/IZoraV4CoinHook.json +610 -0
- package/abis/Permit2Payments.json +7 -0
- package/abis/Position.json +7 -0
- package/abis/SafeCast.json +7 -0
- package/abis/SafeCast160.json +7 -0
- package/abis/SafeERC20.json +34 -0
- package/abis/SimpleAccessManaged.json +57 -0
- package/abis/SimpleAccessManager.json +351 -0
- package/abis/SqrtPriceMath.json +22 -0
- package/abis/StateLibrary.json +80 -0
- package/abis/SwapLimitOrders.json +22 -0
- package/abis/SwapWithLimitOrders.json +457 -0
- package/abis/TickBitmap.json +18 -0
- package/abis/TickMath.json +24 -0
- package/abis/V3ToV4SwapLib.json +28 -0
- package/abis/ZoraLimitOrderBook.json +771 -0
- package/cache/solidity-files-cache.json +1 -0
- package/dist/index.cjs +760 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +731 -0
- package/dist/index.js.map +1 -0
- package/dist/wagmiGenerated.d.ts +1012 -0
- package/dist/wagmiGenerated.d.ts.map +1 -0
- package/foundry.toml +29 -0
- package/gas_comparison.py +49 -0
- package/out/BalanceDelta.sol/BalanceDeltaLibrary.json +1 -0
- package/out/BeforeSwapDelta.sol/BeforeSwapDeltaLibrary.json +1 -0
- package/out/BitMath.sol/BitMath.json +1 -0
- package/out/BytesLib.sol/BytesLib.json +1 -0
- package/out/CoinCommon.sol/CoinCommon.json +1 -0
- package/out/CoinConfigurationVersions.sol/CoinConfigurationVersions.json +1 -0
- package/out/CoinConstants.sol/CoinConstants.json +1 -0
- package/out/Context.sol/Context.json +1 -0
- package/out/Currency.sol/CurrencyLibrary.json +1 -0
- package/out/CurrencyReserves.sol/CurrencyReserves.json +1 -0
- package/out/CustomRevert.sol/CustomRevert.json +1 -0
- package/out/DopplerMath.sol/DopplerMath.json +1 -0
- package/out/FixedPoint128.sol/FixedPoint128.json +1 -0
- package/out/FixedPoint96.sol/FixedPoint96.json +1 -0
- package/out/FullMath.sol/FullMath.json +1 -0
- package/out/IAllowanceTransfer.sol/IAllowanceTransfer.json +1 -0
- package/out/IAuthority.sol/IAuthority.json +1 -0
- package/out/ICoin.sol/ICoin.json +1 -0
- package/out/ICoin.sol/IHasCoinType.json +1 -0
- package/out/ICoin.sol/IHasPoolKey.json +1 -0
- package/out/ICoin.sol/IHasSwapPath.json +1 -0
- package/out/ICoin.sol/IHasTotalSupplyForPositions.json +1 -0
- package/out/IDeployedCoinVersionLookup.sol/IDeployedCoinVersionLookup.json +1 -0
- package/out/IDopplerErrors.sol/IDopplerErrors.json +1 -0
- package/out/IEIP712.sol/IEIP712.json +1 -0
- package/out/IERC1363.sol/IERC1363.json +1 -0
- package/out/IERC165.sol/IERC165.json +1 -0
- package/out/IERC20.sol/IERC20.json +1 -0
- package/out/IERC20Minimal.sol/IERC20Minimal.json +1 -0
- package/out/IERC6909Claims.sol/IERC6909Claims.json +1 -0
- package/out/IERC7572.sol/IERC7572.json +1 -0
- package/out/IExtsload.sol/IExtsload.json +1 -0
- package/out/IExttload.sol/IExttload.json +1 -0
- package/out/IHasRewardsRecipients.sol/IHasRewardsRecipients.json +1 -0
- package/out/IHooks.sol/IHooks.json +1 -0
- package/out/IMsgSender.sol/IMsgSender.json +1 -0
- package/out/IPoolManager.sol/IPoolManager.json +1 -0
- package/out/IProtocolFees.sol/IProtocolFees.json +1 -0
- package/out/ISupportsLimitOrderFill.sol/ISupportsLimitOrderFill.json +1 -0
- package/out/ISwapPathRouter.sol/ISwapPathRouter.json +1 -0
- package/out/ISwapRouter.sol/ISwapRouter.json +1 -0
- package/out/IUniswapV3SwapCallback.sol/IUniswapV3SwapCallback.json +1 -0
- package/out/IUpgradeableV4Hook.sol/IUpgradeableDestinationV4Hook.json +1 -0
- package/out/IUpgradeableV4Hook.sol/IUpgradeableDestinationV4HookWithUpdateableFee.json +1 -0
- package/out/IUpgradeableV4Hook.sol/IUpgradeableV4Hook.json +1 -0
- package/out/IZoraHookRegistry.sol/IZoraHookRegistry.json +1 -0
- package/out/IZoraLimitOrderBook.sol/IZoraLimitOrderBook.json +1 -0
- package/out/IZoraLimitOrderBookCoinsInterface.sol/IZoraLimitOrderBookCoinsInterface.json +1 -0
- package/out/IZoraV4CoinHook.sol/IZoraV4CoinHook.json +1 -0
- package/out/LimitOrderBitmap.sol/LimitOrderBitmap.json +1 -0
- package/out/LimitOrderCommon.sol/LimitOrderCommon.json +1 -0
- package/out/LimitOrderCreate.sol/LimitOrderCreate.json +1 -0
- package/out/LimitOrderFill.sol/LimitOrderFill.json +1 -0
- package/out/LimitOrderLiquidity.sol/LimitOrderLiquidity.json +1 -0
- package/out/LimitOrderQueues.sol/LimitOrderQueues.json +1 -0
- package/out/LimitOrderStorage.sol/LimitOrderStorage.json +1 -0
- package/out/LimitOrderTypes.sol/LimitOrderTypes.json +1 -0
- package/out/LimitOrderWithdraw.sol/LimitOrderWithdraw.json +1 -0
- package/out/LiquidityAmounts.sol/LiquidityAmounts.json +1 -0
- package/out/LiquidityMath.sol/LiquidityMath.json +1 -0
- package/out/Lock.sol/Lock.json +1 -0
- package/out/NonzeroDeltaCount.sol/NonzeroDeltaCount.json +1 -0
- package/out/Path.sol/Path.json +1 -0
- package/out/PathKey.sol/PathKeyLibrary.json +1 -0
- package/out/Permit2Payments.sol/Permit2Payments.json +1 -0
- package/out/PoolId.sol/PoolIdLibrary.json +1 -0
- package/out/Position.sol/Position.json +1 -0
- package/out/SafeCast.sol/SafeCast.json +1 -0
- package/out/SafeCast160.sol/SafeCast160.json +1 -0
- package/out/SafeERC20.sol/SafeERC20.json +1 -0
- package/out/SimpleAccessManaged.sol/SimpleAccessManaged.json +1 -0
- package/out/SimpleAccessManager.sol/SimpleAccessManager.json +1 -0
- package/out/SqrtPriceMath.sol/SqrtPriceMath.json +1 -0
- package/out/StateLibrary.sol/StateLibrary.json +1 -0
- package/out/SwapLimitOrders.sol/SwapLimitOrders.json +1 -0
- package/out/SwapWithLimitOrders.sol/SwapWithLimitOrders.json +1 -0
- package/out/TickBitmap.sol/TickBitmap.json +1 -0
- package/out/TickMath.sol/TickMath.json +1 -0
- package/out/TransientSlot.sol/TransientSlot.json +1 -0
- package/out/TransientStateLibrary.sol/TransientStateLibrary.json +1 -0
- package/out/UniV4SwapToCurrency.sol/UniV4SwapToCurrency.json +1 -0
- package/out/UnsafeMath.sol/UnsafeMath.json +1 -0
- package/out/V3ToV4SwapLib.sol/V3ToV4SwapLib.json +1 -0
- package/out/ZoraLimitOrderBook.sol/ZoraLimitOrderBook.json +1 -0
- package/out/build-info/69718f10d1dc37f0.json +1 -0
- package/out/uniswap/BitMath.sol/BitMath.json +1 -0
- package/out/uniswap/CustomRevert.sol/CustomRevert.json +1 -0
- package/out/uniswap/FullMath.sol/FullMath.json +1 -0
- package/out/uniswap/SafeCast.sol/SafeCast.json +1 -0
- package/out/uniswap/TickMath.sol/TickMath.json +1 -0
- package/package/index.ts +1 -0
- package/package/wagmiGenerated.ts +738 -0
- package/package.json +57 -0
- package/remappings.txt +11 -0
- package/src/IZoraLimitOrderBook.sol +195 -0
- package/src/ZoraLimitOrderBook.sol +220 -0
- package/src/access/SimpleAccessManaged.sol +76 -0
- package/src/access/SimpleAccessManager.sol +268 -0
- package/src/libs/LimitOrderBitmap.sol +84 -0
- package/src/libs/LimitOrderCommon.sol +91 -0
- package/src/libs/LimitOrderCreate.sol +277 -0
- package/src/libs/LimitOrderFill.sol +362 -0
- package/src/libs/LimitOrderLiquidity.sol +222 -0
- package/src/libs/LimitOrderQueues.sol +101 -0
- package/src/libs/LimitOrderStorage.sol +34 -0
- package/src/libs/LimitOrderTypes.sol +41 -0
- package/src/libs/LimitOrderWithdraw.sol +100 -0
- package/src/libs/Permit2Payments.sol +41 -0
- package/src/libs/SwapLimitOrders.sol +209 -0
- package/src/router/SwapWithLimitOrders.sol +454 -0
- package/test/LimitOrderAccessControl.t.sol +461 -0
- package/test/LimitOrderBitmap.t.sol +194 -0
- package/test/LimitOrderCreate.t.sol +348 -0
- package/test/LimitOrderFill.t.sol +1005 -0
- package/test/LimitOrderLibraries.t.sol +354 -0
- package/test/LimitOrderLiquidityPayouts.t.sol +333 -0
- package/test/LimitOrderV4Pools.t.sol +157 -0
- package/test/LimitOrderWithdraw.t.sol +653 -0
- package/test/SimpleAccessManager.t.sol +420 -0
- package/test/SwapWithLimitOrders.t.sol +107 -0
- package/test/SwapWithLimitOrdersRouter.t.sol +1073 -0
- package/test/gas/LimitOrderFillGas.t.sol +1008 -0
- package/test/gas/LimitOrderSwapGas.t.sol +403 -0
- package/test/gas/logs/gas_benchmarks_fill_20251201.log +30 -0
- package/test/gas/logs/gas_benchmarks_swap_20251201.log +27 -0
- package/test/unit/LimitOrderBitmapUnit.t.sol +276 -0
- package/test/unit/LimitOrderCreateUnit.t.sol +358 -0
- package/test/unit/SwapLimitOrdersUnit.t.sol +672 -0
- package/test/unit/SwapLimitOrdersValidation.t.sol +423 -0
- package/test/unit/SwapWithLimitOrdersUnit.t.sol +321 -0
- package/test/utils/BaseTest.sol +793 -0
- package/test/utils/TestableZoraLimitOrderBook.sol +54 -0
- package/tsconfig.build.json +10 -0
- package/tsconfig.json +9 -0
- package/tsup.config.ts +11 -0
- package/wagmi.config.ts +18 -0
|
@@ -0,0 +1,1012 @@
|
|
|
1
|
+
export declare const iZoraLimitOrderBookCoinsInterfaceABI: readonly [{
|
|
2
|
+
readonly type: "function";
|
|
3
|
+
readonly inputs: readonly [{
|
|
4
|
+
readonly name: "key";
|
|
5
|
+
readonly internalType: "struct PoolKey";
|
|
6
|
+
readonly type: "tuple";
|
|
7
|
+
readonly components: readonly [{
|
|
8
|
+
readonly name: "currency0";
|
|
9
|
+
readonly internalType: "Currency";
|
|
10
|
+
readonly type: "address";
|
|
11
|
+
}, {
|
|
12
|
+
readonly name: "currency1";
|
|
13
|
+
readonly internalType: "Currency";
|
|
14
|
+
readonly type: "address";
|
|
15
|
+
}, {
|
|
16
|
+
readonly name: "fee";
|
|
17
|
+
readonly internalType: "uint24";
|
|
18
|
+
readonly type: "uint24";
|
|
19
|
+
}, {
|
|
20
|
+
readonly name: "tickSpacing";
|
|
21
|
+
readonly internalType: "int24";
|
|
22
|
+
readonly type: "int24";
|
|
23
|
+
}, {
|
|
24
|
+
readonly name: "hooks";
|
|
25
|
+
readonly internalType: "contract IHooks";
|
|
26
|
+
readonly type: "address";
|
|
27
|
+
}];
|
|
28
|
+
}, {
|
|
29
|
+
readonly name: "isCurrency0";
|
|
30
|
+
readonly internalType: "bool";
|
|
31
|
+
readonly type: "bool";
|
|
32
|
+
}, {
|
|
33
|
+
readonly name: "startTick";
|
|
34
|
+
readonly internalType: "int24";
|
|
35
|
+
readonly type: "int24";
|
|
36
|
+
}, {
|
|
37
|
+
readonly name: "endTick";
|
|
38
|
+
readonly internalType: "int24";
|
|
39
|
+
readonly type: "int24";
|
|
40
|
+
}, {
|
|
41
|
+
readonly name: "maxFillCount";
|
|
42
|
+
readonly internalType: "uint256";
|
|
43
|
+
readonly type: "uint256";
|
|
44
|
+
}, {
|
|
45
|
+
readonly name: "fillReferral";
|
|
46
|
+
readonly internalType: "address";
|
|
47
|
+
readonly type: "address";
|
|
48
|
+
}];
|
|
49
|
+
readonly name: "fill";
|
|
50
|
+
readonly outputs: readonly [];
|
|
51
|
+
readonly stateMutability: "nonpayable";
|
|
52
|
+
}];
|
|
53
|
+
export declare const swapWithLimitOrdersABI: readonly [{
|
|
54
|
+
readonly type: "constructor";
|
|
55
|
+
readonly inputs: readonly [{
|
|
56
|
+
readonly name: "poolManager_";
|
|
57
|
+
readonly internalType: "contract IPoolManager";
|
|
58
|
+
readonly type: "address";
|
|
59
|
+
}, {
|
|
60
|
+
readonly name: "zoraLimitOrderBook_";
|
|
61
|
+
readonly internalType: "contract IZoraLimitOrderBook";
|
|
62
|
+
readonly type: "address";
|
|
63
|
+
}, {
|
|
64
|
+
readonly name: "swapRouter_";
|
|
65
|
+
readonly internalType: "contract ISwapRouter";
|
|
66
|
+
readonly type: "address";
|
|
67
|
+
}, {
|
|
68
|
+
readonly name: "permit2_";
|
|
69
|
+
readonly internalType: "address";
|
|
70
|
+
readonly type: "address";
|
|
71
|
+
}];
|
|
72
|
+
readonly stateMutability: "nonpayable";
|
|
73
|
+
}, {
|
|
74
|
+
readonly type: "receive";
|
|
75
|
+
readonly stateMutability: "payable";
|
|
76
|
+
}, {
|
|
77
|
+
readonly type: "function";
|
|
78
|
+
readonly inputs: readonly [];
|
|
79
|
+
readonly name: "getLimitOrderConfig";
|
|
80
|
+
readonly outputs: readonly [{
|
|
81
|
+
readonly name: "";
|
|
82
|
+
readonly internalType: "struct LimitOrderConfig";
|
|
83
|
+
readonly type: "tuple";
|
|
84
|
+
readonly components: readonly [{
|
|
85
|
+
readonly name: "multiples";
|
|
86
|
+
readonly internalType: "uint256[]";
|
|
87
|
+
readonly type: "uint256[]";
|
|
88
|
+
}, {
|
|
89
|
+
readonly name: "percentages";
|
|
90
|
+
readonly internalType: "uint256[]";
|
|
91
|
+
readonly type: "uint256[]";
|
|
92
|
+
}];
|
|
93
|
+
}];
|
|
94
|
+
readonly stateMutability: "view";
|
|
95
|
+
}, {
|
|
96
|
+
readonly type: "function";
|
|
97
|
+
readonly inputs: readonly [];
|
|
98
|
+
readonly name: "msgSender";
|
|
99
|
+
readonly outputs: readonly [{
|
|
100
|
+
readonly name: "";
|
|
101
|
+
readonly internalType: "address";
|
|
102
|
+
readonly type: "address";
|
|
103
|
+
}];
|
|
104
|
+
readonly stateMutability: "view";
|
|
105
|
+
}, {
|
|
106
|
+
readonly type: "function";
|
|
107
|
+
readonly inputs: readonly [];
|
|
108
|
+
readonly name: "poolManager";
|
|
109
|
+
readonly outputs: readonly [{
|
|
110
|
+
readonly name: "";
|
|
111
|
+
readonly internalType: "contract IPoolManager";
|
|
112
|
+
readonly type: "address";
|
|
113
|
+
}];
|
|
114
|
+
readonly stateMutability: "view";
|
|
115
|
+
}, {
|
|
116
|
+
readonly type: "function";
|
|
117
|
+
readonly inputs: readonly [{
|
|
118
|
+
readonly name: "config";
|
|
119
|
+
readonly internalType: "struct LimitOrderConfig";
|
|
120
|
+
readonly type: "tuple";
|
|
121
|
+
readonly components: readonly [{
|
|
122
|
+
readonly name: "multiples";
|
|
123
|
+
readonly internalType: "uint256[]";
|
|
124
|
+
readonly type: "uint256[]";
|
|
125
|
+
}, {
|
|
126
|
+
readonly name: "percentages";
|
|
127
|
+
readonly internalType: "uint256[]";
|
|
128
|
+
readonly type: "uint256[]";
|
|
129
|
+
}];
|
|
130
|
+
}];
|
|
131
|
+
readonly name: "setLimitOrderConfig";
|
|
132
|
+
readonly outputs: readonly [];
|
|
133
|
+
readonly stateMutability: "nonpayable";
|
|
134
|
+
}, {
|
|
135
|
+
readonly type: "function";
|
|
136
|
+
readonly inputs: readonly [];
|
|
137
|
+
readonly name: "swapRouter";
|
|
138
|
+
readonly outputs: readonly [{
|
|
139
|
+
readonly name: "";
|
|
140
|
+
readonly internalType: "contract ISwapRouter";
|
|
141
|
+
readonly type: "address";
|
|
142
|
+
}];
|
|
143
|
+
readonly stateMutability: "view";
|
|
144
|
+
}, {
|
|
145
|
+
readonly type: "function";
|
|
146
|
+
readonly inputs: readonly [{
|
|
147
|
+
readonly name: "params";
|
|
148
|
+
readonly internalType: "struct SwapWithLimitOrders.SwapWithLimitOrdersParams";
|
|
149
|
+
readonly type: "tuple";
|
|
150
|
+
readonly components: readonly [{
|
|
151
|
+
readonly name: "recipient";
|
|
152
|
+
readonly internalType: "address";
|
|
153
|
+
readonly type: "address";
|
|
154
|
+
}, {
|
|
155
|
+
readonly name: "limitOrderConfig";
|
|
156
|
+
readonly internalType: "struct LimitOrderConfig";
|
|
157
|
+
readonly type: "tuple";
|
|
158
|
+
readonly components: readonly [{
|
|
159
|
+
readonly name: "multiples";
|
|
160
|
+
readonly internalType: "uint256[]";
|
|
161
|
+
readonly type: "uint256[]";
|
|
162
|
+
}, {
|
|
163
|
+
readonly name: "percentages";
|
|
164
|
+
readonly internalType: "uint256[]";
|
|
165
|
+
readonly type: "uint256[]";
|
|
166
|
+
}];
|
|
167
|
+
}, {
|
|
168
|
+
readonly name: "inputCurrency";
|
|
169
|
+
readonly internalType: "address";
|
|
170
|
+
readonly type: "address";
|
|
171
|
+
}, {
|
|
172
|
+
readonly name: "inputAmount";
|
|
173
|
+
readonly internalType: "uint256";
|
|
174
|
+
readonly type: "uint256";
|
|
175
|
+
}, {
|
|
176
|
+
readonly name: "v3Route";
|
|
177
|
+
readonly internalType: "bytes";
|
|
178
|
+
readonly type: "bytes";
|
|
179
|
+
}, {
|
|
180
|
+
readonly name: "v4Route";
|
|
181
|
+
readonly internalType: "struct PoolKey[]";
|
|
182
|
+
readonly type: "tuple[]";
|
|
183
|
+
readonly components: readonly [{
|
|
184
|
+
readonly name: "currency0";
|
|
185
|
+
readonly internalType: "Currency";
|
|
186
|
+
readonly type: "address";
|
|
187
|
+
}, {
|
|
188
|
+
readonly name: "currency1";
|
|
189
|
+
readonly internalType: "Currency";
|
|
190
|
+
readonly type: "address";
|
|
191
|
+
}, {
|
|
192
|
+
readonly name: "fee";
|
|
193
|
+
readonly internalType: "uint24";
|
|
194
|
+
readonly type: "uint24";
|
|
195
|
+
}, {
|
|
196
|
+
readonly name: "tickSpacing";
|
|
197
|
+
readonly internalType: "int24";
|
|
198
|
+
readonly type: "int24";
|
|
199
|
+
}, {
|
|
200
|
+
readonly name: "hooks";
|
|
201
|
+
readonly internalType: "contract IHooks";
|
|
202
|
+
readonly type: "address";
|
|
203
|
+
}];
|
|
204
|
+
}, {
|
|
205
|
+
readonly name: "minAmountOut";
|
|
206
|
+
readonly internalType: "uint256";
|
|
207
|
+
readonly type: "uint256";
|
|
208
|
+
}];
|
|
209
|
+
}];
|
|
210
|
+
readonly name: "swapWithLimitOrders";
|
|
211
|
+
readonly outputs: readonly [{
|
|
212
|
+
readonly name: "delta";
|
|
213
|
+
readonly internalType: "BalanceDelta";
|
|
214
|
+
readonly type: "int256";
|
|
215
|
+
}];
|
|
216
|
+
readonly stateMutability: "payable";
|
|
217
|
+
}, {
|
|
218
|
+
readonly type: "function";
|
|
219
|
+
readonly inputs: readonly [{
|
|
220
|
+
readonly name: "data";
|
|
221
|
+
readonly internalType: "bytes";
|
|
222
|
+
readonly type: "bytes";
|
|
223
|
+
}];
|
|
224
|
+
readonly name: "unlockCallback";
|
|
225
|
+
readonly outputs: readonly [{
|
|
226
|
+
readonly name: "";
|
|
227
|
+
readonly internalType: "bytes";
|
|
228
|
+
readonly type: "bytes";
|
|
229
|
+
}];
|
|
230
|
+
readonly stateMutability: "nonpayable";
|
|
231
|
+
}, {
|
|
232
|
+
readonly type: "function";
|
|
233
|
+
readonly inputs: readonly [];
|
|
234
|
+
readonly name: "zoraLimitOrderBook";
|
|
235
|
+
readonly outputs: readonly [{
|
|
236
|
+
readonly name: "";
|
|
237
|
+
readonly internalType: "contract IZoraLimitOrderBook";
|
|
238
|
+
readonly type: "address";
|
|
239
|
+
}];
|
|
240
|
+
readonly stateMutability: "view";
|
|
241
|
+
}, {
|
|
242
|
+
readonly type: "event";
|
|
243
|
+
readonly anonymous: false;
|
|
244
|
+
readonly inputs: readonly [{
|
|
245
|
+
readonly name: "multiples";
|
|
246
|
+
readonly internalType: "uint256[]";
|
|
247
|
+
readonly type: "uint256[]";
|
|
248
|
+
readonly indexed: false;
|
|
249
|
+
}, {
|
|
250
|
+
readonly name: "percentages";
|
|
251
|
+
readonly internalType: "uint256[]";
|
|
252
|
+
readonly type: "uint256[]";
|
|
253
|
+
readonly indexed: false;
|
|
254
|
+
}];
|
|
255
|
+
readonly name: "LimitOrderConfigUpdated";
|
|
256
|
+
}, {
|
|
257
|
+
readonly type: "event";
|
|
258
|
+
readonly anonymous: false;
|
|
259
|
+
readonly inputs: readonly [{
|
|
260
|
+
readonly name: "sender";
|
|
261
|
+
readonly internalType: "address";
|
|
262
|
+
readonly type: "address";
|
|
263
|
+
readonly indexed: true;
|
|
264
|
+
}, {
|
|
265
|
+
readonly name: "recipient";
|
|
266
|
+
readonly internalType: "address";
|
|
267
|
+
readonly type: "address";
|
|
268
|
+
readonly indexed: true;
|
|
269
|
+
}, {
|
|
270
|
+
readonly name: "poolKey";
|
|
271
|
+
readonly internalType: "struct PoolKey";
|
|
272
|
+
readonly type: "tuple";
|
|
273
|
+
readonly components: readonly [{
|
|
274
|
+
readonly name: "currency0";
|
|
275
|
+
readonly internalType: "Currency";
|
|
276
|
+
readonly type: "address";
|
|
277
|
+
}, {
|
|
278
|
+
readonly name: "currency1";
|
|
279
|
+
readonly internalType: "Currency";
|
|
280
|
+
readonly type: "address";
|
|
281
|
+
}, {
|
|
282
|
+
readonly name: "fee";
|
|
283
|
+
readonly internalType: "uint24";
|
|
284
|
+
readonly type: "uint24";
|
|
285
|
+
}, {
|
|
286
|
+
readonly name: "tickSpacing";
|
|
287
|
+
readonly internalType: "int24";
|
|
288
|
+
readonly type: "int24";
|
|
289
|
+
}, {
|
|
290
|
+
readonly name: "hooks";
|
|
291
|
+
readonly internalType: "contract IHooks";
|
|
292
|
+
readonly type: "address";
|
|
293
|
+
}];
|
|
294
|
+
readonly indexed: false;
|
|
295
|
+
}, {
|
|
296
|
+
readonly name: "delta";
|
|
297
|
+
readonly internalType: "BalanceDelta";
|
|
298
|
+
readonly type: "int256";
|
|
299
|
+
readonly indexed: false;
|
|
300
|
+
}, {
|
|
301
|
+
readonly name: "tickBeforeSwap";
|
|
302
|
+
readonly internalType: "int24";
|
|
303
|
+
readonly type: "int24";
|
|
304
|
+
readonly indexed: false;
|
|
305
|
+
}, {
|
|
306
|
+
readonly name: "tickAfterSwap";
|
|
307
|
+
readonly internalType: "int24";
|
|
308
|
+
readonly type: "int24";
|
|
309
|
+
readonly indexed: false;
|
|
310
|
+
}, {
|
|
311
|
+
readonly name: "orders";
|
|
312
|
+
readonly internalType: "struct SwapWithLimitOrders.CreatedOrder[]";
|
|
313
|
+
readonly type: "tuple[]";
|
|
314
|
+
readonly components: readonly [{
|
|
315
|
+
readonly name: "orderId";
|
|
316
|
+
readonly internalType: "bytes32";
|
|
317
|
+
readonly type: "bytes32";
|
|
318
|
+
}, {
|
|
319
|
+
readonly name: "multiple";
|
|
320
|
+
readonly internalType: "uint256";
|
|
321
|
+
readonly type: "uint256";
|
|
322
|
+
}, {
|
|
323
|
+
readonly name: "percentage";
|
|
324
|
+
readonly internalType: "uint256";
|
|
325
|
+
readonly type: "uint256";
|
|
326
|
+
}];
|
|
327
|
+
readonly indexed: false;
|
|
328
|
+
}];
|
|
329
|
+
readonly name: "SwapWithLimitOrdersExecuted";
|
|
330
|
+
}, {
|
|
331
|
+
readonly type: "error";
|
|
332
|
+
readonly inputs: readonly [];
|
|
333
|
+
readonly name: "EmptyV4Route";
|
|
334
|
+
}, {
|
|
335
|
+
readonly type: "error";
|
|
336
|
+
readonly inputs: readonly [];
|
|
337
|
+
readonly name: "FromAddressIsNotOwner";
|
|
338
|
+
}, {
|
|
339
|
+
readonly type: "error";
|
|
340
|
+
readonly inputs: readonly [{
|
|
341
|
+
readonly name: "inputAmount";
|
|
342
|
+
readonly internalType: "uint256";
|
|
343
|
+
readonly type: "uint256";
|
|
344
|
+
}, {
|
|
345
|
+
readonly name: "availableAmount";
|
|
346
|
+
readonly internalType: "uint256";
|
|
347
|
+
readonly type: "uint256";
|
|
348
|
+
}];
|
|
349
|
+
readonly name: "InsufficientInputCurrency";
|
|
350
|
+
}, {
|
|
351
|
+
readonly type: "error";
|
|
352
|
+
readonly inputs: readonly [];
|
|
353
|
+
readonly name: "InsufficientOutputAmount";
|
|
354
|
+
}, {
|
|
355
|
+
readonly type: "error";
|
|
356
|
+
readonly inputs: readonly [];
|
|
357
|
+
readonly name: "InsufficientTransferFunds";
|
|
358
|
+
}, {
|
|
359
|
+
readonly type: "error";
|
|
360
|
+
readonly inputs: readonly [];
|
|
361
|
+
readonly name: "InvalidLimitOrderConfig";
|
|
362
|
+
}, {
|
|
363
|
+
readonly type: "error";
|
|
364
|
+
readonly inputs: readonly [];
|
|
365
|
+
readonly name: "InvalidMultiple";
|
|
366
|
+
}, {
|
|
367
|
+
readonly type: "error";
|
|
368
|
+
readonly inputs: readonly [];
|
|
369
|
+
readonly name: "InvalidPercent";
|
|
370
|
+
}, {
|
|
371
|
+
readonly type: "error";
|
|
372
|
+
readonly inputs: readonly [];
|
|
373
|
+
readonly name: "LengthMismatch";
|
|
374
|
+
}, {
|
|
375
|
+
readonly type: "error";
|
|
376
|
+
readonly inputs: readonly [];
|
|
377
|
+
readonly name: "OnlyAuthority";
|
|
378
|
+
}, {
|
|
379
|
+
readonly type: "error";
|
|
380
|
+
readonly inputs: readonly [];
|
|
381
|
+
readonly name: "OnlyPoolManager";
|
|
382
|
+
}, {
|
|
383
|
+
readonly type: "error";
|
|
384
|
+
readonly inputs: readonly [];
|
|
385
|
+
readonly name: "PercentOverflow";
|
|
386
|
+
}, {
|
|
387
|
+
readonly type: "error";
|
|
388
|
+
readonly inputs: readonly [{
|
|
389
|
+
readonly name: "token";
|
|
390
|
+
readonly internalType: "address";
|
|
391
|
+
readonly type: "address";
|
|
392
|
+
}];
|
|
393
|
+
readonly name: "SafeERC20FailedOperation";
|
|
394
|
+
}, {
|
|
395
|
+
readonly type: "error";
|
|
396
|
+
readonly inputs: readonly [];
|
|
397
|
+
readonly name: "UnsafeCast";
|
|
398
|
+
}, {
|
|
399
|
+
readonly type: "error";
|
|
400
|
+
readonly inputs: readonly [];
|
|
401
|
+
readonly name: "V3RouteDoesNotConnectToV4RouteStart";
|
|
402
|
+
}, {
|
|
403
|
+
readonly type: "error";
|
|
404
|
+
readonly inputs: readonly [];
|
|
405
|
+
readonly name: "ZeroSwapDelta";
|
|
406
|
+
}];
|
|
407
|
+
export declare const zoraLimitOrderBookABI: readonly [{
|
|
408
|
+
readonly type: "constructor";
|
|
409
|
+
readonly inputs: readonly [{
|
|
410
|
+
readonly name: "poolManager_";
|
|
411
|
+
readonly internalType: "address";
|
|
412
|
+
readonly type: "address";
|
|
413
|
+
}, {
|
|
414
|
+
readonly name: "zoraCoinVersionLookup_";
|
|
415
|
+
readonly internalType: "address";
|
|
416
|
+
readonly type: "address";
|
|
417
|
+
}, {
|
|
418
|
+
readonly name: "zoraHookRegistry_";
|
|
419
|
+
readonly internalType: "address";
|
|
420
|
+
readonly type: "address";
|
|
421
|
+
}, {
|
|
422
|
+
readonly name: "authority_";
|
|
423
|
+
readonly internalType: "address";
|
|
424
|
+
readonly type: "address";
|
|
425
|
+
}];
|
|
426
|
+
readonly stateMutability: "nonpayable";
|
|
427
|
+
}, {
|
|
428
|
+
readonly type: "receive";
|
|
429
|
+
readonly stateMutability: "payable";
|
|
430
|
+
}, {
|
|
431
|
+
readonly type: "function";
|
|
432
|
+
readonly inputs: readonly [];
|
|
433
|
+
readonly name: "authority";
|
|
434
|
+
readonly outputs: readonly [{
|
|
435
|
+
readonly name: "";
|
|
436
|
+
readonly internalType: "address";
|
|
437
|
+
readonly type: "address";
|
|
438
|
+
}];
|
|
439
|
+
readonly stateMutability: "view";
|
|
440
|
+
}, {
|
|
441
|
+
readonly type: "function";
|
|
442
|
+
readonly inputs: readonly [{
|
|
443
|
+
readonly name: "maker";
|
|
444
|
+
readonly internalType: "address";
|
|
445
|
+
readonly type: "address";
|
|
446
|
+
}, {
|
|
447
|
+
readonly name: "coin";
|
|
448
|
+
readonly internalType: "address";
|
|
449
|
+
readonly type: "address";
|
|
450
|
+
}];
|
|
451
|
+
readonly name: "balanceOf";
|
|
452
|
+
readonly outputs: readonly [{
|
|
453
|
+
readonly name: "";
|
|
454
|
+
readonly internalType: "uint256";
|
|
455
|
+
readonly type: "uint256";
|
|
456
|
+
}];
|
|
457
|
+
readonly stateMutability: "view";
|
|
458
|
+
}, {
|
|
459
|
+
readonly type: "function";
|
|
460
|
+
readonly inputs: readonly [{
|
|
461
|
+
readonly name: "key";
|
|
462
|
+
readonly internalType: "struct PoolKey";
|
|
463
|
+
readonly type: "tuple";
|
|
464
|
+
readonly components: readonly [{
|
|
465
|
+
readonly name: "currency0";
|
|
466
|
+
readonly internalType: "Currency";
|
|
467
|
+
readonly type: "address";
|
|
468
|
+
}, {
|
|
469
|
+
readonly name: "currency1";
|
|
470
|
+
readonly internalType: "Currency";
|
|
471
|
+
readonly type: "address";
|
|
472
|
+
}, {
|
|
473
|
+
readonly name: "fee";
|
|
474
|
+
readonly internalType: "uint24";
|
|
475
|
+
readonly type: "uint24";
|
|
476
|
+
}, {
|
|
477
|
+
readonly name: "tickSpacing";
|
|
478
|
+
readonly internalType: "int24";
|
|
479
|
+
readonly type: "int24";
|
|
480
|
+
}, {
|
|
481
|
+
readonly name: "hooks";
|
|
482
|
+
readonly internalType: "contract IHooks";
|
|
483
|
+
readonly type: "address";
|
|
484
|
+
}];
|
|
485
|
+
}, {
|
|
486
|
+
readonly name: "isCurrency0";
|
|
487
|
+
readonly internalType: "bool";
|
|
488
|
+
readonly type: "bool";
|
|
489
|
+
}, {
|
|
490
|
+
readonly name: "orderSizes";
|
|
491
|
+
readonly internalType: "uint256[]";
|
|
492
|
+
readonly type: "uint256[]";
|
|
493
|
+
}, {
|
|
494
|
+
readonly name: "orderTicks";
|
|
495
|
+
readonly internalType: "int24[]";
|
|
496
|
+
readonly type: "int24[]";
|
|
497
|
+
}, {
|
|
498
|
+
readonly name: "maker";
|
|
499
|
+
readonly internalType: "address";
|
|
500
|
+
readonly type: "address";
|
|
501
|
+
}];
|
|
502
|
+
readonly name: "create";
|
|
503
|
+
readonly outputs: readonly [{
|
|
504
|
+
readonly name: "";
|
|
505
|
+
readonly internalType: "bytes32[]";
|
|
506
|
+
readonly type: "bytes32[]";
|
|
507
|
+
}];
|
|
508
|
+
readonly stateMutability: "payable";
|
|
509
|
+
}, {
|
|
510
|
+
readonly type: "function";
|
|
511
|
+
readonly inputs: readonly [{
|
|
512
|
+
readonly name: "key";
|
|
513
|
+
readonly internalType: "struct PoolKey";
|
|
514
|
+
readonly type: "tuple";
|
|
515
|
+
readonly components: readonly [{
|
|
516
|
+
readonly name: "currency0";
|
|
517
|
+
readonly internalType: "Currency";
|
|
518
|
+
readonly type: "address";
|
|
519
|
+
}, {
|
|
520
|
+
readonly name: "currency1";
|
|
521
|
+
readonly internalType: "Currency";
|
|
522
|
+
readonly type: "address";
|
|
523
|
+
}, {
|
|
524
|
+
readonly name: "fee";
|
|
525
|
+
readonly internalType: "uint24";
|
|
526
|
+
readonly type: "uint24";
|
|
527
|
+
}, {
|
|
528
|
+
readonly name: "tickSpacing";
|
|
529
|
+
readonly internalType: "int24";
|
|
530
|
+
readonly type: "int24";
|
|
531
|
+
}, {
|
|
532
|
+
readonly name: "hooks";
|
|
533
|
+
readonly internalType: "contract IHooks";
|
|
534
|
+
readonly type: "address";
|
|
535
|
+
}];
|
|
536
|
+
}, {
|
|
537
|
+
readonly name: "isCurrency0";
|
|
538
|
+
readonly internalType: "bool";
|
|
539
|
+
readonly type: "bool";
|
|
540
|
+
}, {
|
|
541
|
+
readonly name: "startTick";
|
|
542
|
+
readonly internalType: "int24";
|
|
543
|
+
readonly type: "int24";
|
|
544
|
+
}, {
|
|
545
|
+
readonly name: "endTick";
|
|
546
|
+
readonly internalType: "int24";
|
|
547
|
+
readonly type: "int24";
|
|
548
|
+
}, {
|
|
549
|
+
readonly name: "maxFillCount";
|
|
550
|
+
readonly internalType: "uint256";
|
|
551
|
+
readonly type: "uint256";
|
|
552
|
+
}, {
|
|
553
|
+
readonly name: "fillReferral";
|
|
554
|
+
readonly internalType: "address";
|
|
555
|
+
readonly type: "address";
|
|
556
|
+
}];
|
|
557
|
+
readonly name: "fill";
|
|
558
|
+
readonly outputs: readonly [];
|
|
559
|
+
readonly stateMutability: "nonpayable";
|
|
560
|
+
}, {
|
|
561
|
+
readonly type: "function";
|
|
562
|
+
readonly inputs: readonly [{
|
|
563
|
+
readonly name: "batches";
|
|
564
|
+
readonly internalType: "struct IZoraLimitOrderBook.OrderBatch[]";
|
|
565
|
+
readonly type: "tuple[]";
|
|
566
|
+
readonly components: readonly [{
|
|
567
|
+
readonly name: "key";
|
|
568
|
+
readonly internalType: "struct PoolKey";
|
|
569
|
+
readonly type: "tuple";
|
|
570
|
+
readonly components: readonly [{
|
|
571
|
+
readonly name: "currency0";
|
|
572
|
+
readonly internalType: "Currency";
|
|
573
|
+
readonly type: "address";
|
|
574
|
+
}, {
|
|
575
|
+
readonly name: "currency1";
|
|
576
|
+
readonly internalType: "Currency";
|
|
577
|
+
readonly type: "address";
|
|
578
|
+
}, {
|
|
579
|
+
readonly name: "fee";
|
|
580
|
+
readonly internalType: "uint24";
|
|
581
|
+
readonly type: "uint24";
|
|
582
|
+
}, {
|
|
583
|
+
readonly name: "tickSpacing";
|
|
584
|
+
readonly internalType: "int24";
|
|
585
|
+
readonly type: "int24";
|
|
586
|
+
}, {
|
|
587
|
+
readonly name: "hooks";
|
|
588
|
+
readonly internalType: "contract IHooks";
|
|
589
|
+
readonly type: "address";
|
|
590
|
+
}];
|
|
591
|
+
}, {
|
|
592
|
+
readonly name: "isCurrency0";
|
|
593
|
+
readonly internalType: "bool";
|
|
594
|
+
readonly type: "bool";
|
|
595
|
+
}, {
|
|
596
|
+
readonly name: "orderIds";
|
|
597
|
+
readonly internalType: "bytes32[]";
|
|
598
|
+
readonly type: "bytes32[]";
|
|
599
|
+
}];
|
|
600
|
+
}, {
|
|
601
|
+
readonly name: "fillReferral";
|
|
602
|
+
readonly internalType: "address";
|
|
603
|
+
readonly type: "address";
|
|
604
|
+
}];
|
|
605
|
+
readonly name: "fill";
|
|
606
|
+
readonly outputs: readonly [];
|
|
607
|
+
readonly stateMutability: "nonpayable";
|
|
608
|
+
}, {
|
|
609
|
+
readonly type: "function";
|
|
610
|
+
readonly inputs: readonly [];
|
|
611
|
+
readonly name: "getMaxFillCount";
|
|
612
|
+
readonly outputs: readonly [{
|
|
613
|
+
readonly name: "";
|
|
614
|
+
readonly internalType: "uint256";
|
|
615
|
+
readonly type: "uint256";
|
|
616
|
+
}];
|
|
617
|
+
readonly stateMutability: "view";
|
|
618
|
+
}, {
|
|
619
|
+
readonly type: "function";
|
|
620
|
+
readonly inputs: readonly [];
|
|
621
|
+
readonly name: "poolManager";
|
|
622
|
+
readonly outputs: readonly [{
|
|
623
|
+
readonly name: "";
|
|
624
|
+
readonly internalType: "contract IPoolManager";
|
|
625
|
+
readonly type: "address";
|
|
626
|
+
}];
|
|
627
|
+
readonly stateMutability: "view";
|
|
628
|
+
}, {
|
|
629
|
+
readonly type: "function";
|
|
630
|
+
readonly inputs: readonly [{
|
|
631
|
+
readonly name: "newAuthority";
|
|
632
|
+
readonly internalType: "address";
|
|
633
|
+
readonly type: "address";
|
|
634
|
+
}];
|
|
635
|
+
readonly name: "setAuthority";
|
|
636
|
+
readonly outputs: readonly [];
|
|
637
|
+
readonly stateMutability: "nonpayable";
|
|
638
|
+
}, {
|
|
639
|
+
readonly type: "function";
|
|
640
|
+
readonly inputs: readonly [{
|
|
641
|
+
readonly name: "maxFillCount";
|
|
642
|
+
readonly internalType: "uint256";
|
|
643
|
+
readonly type: "uint256";
|
|
644
|
+
}];
|
|
645
|
+
readonly name: "setMaxFillCount";
|
|
646
|
+
readonly outputs: readonly [];
|
|
647
|
+
readonly stateMutability: "nonpayable";
|
|
648
|
+
}, {
|
|
649
|
+
readonly type: "function";
|
|
650
|
+
readonly inputs: readonly [{
|
|
651
|
+
readonly name: "data";
|
|
652
|
+
readonly internalType: "bytes";
|
|
653
|
+
readonly type: "bytes";
|
|
654
|
+
}];
|
|
655
|
+
readonly name: "unlockCallback";
|
|
656
|
+
readonly outputs: readonly [{
|
|
657
|
+
readonly name: "";
|
|
658
|
+
readonly internalType: "bytes";
|
|
659
|
+
readonly type: "bytes";
|
|
660
|
+
}];
|
|
661
|
+
readonly stateMutability: "nonpayable";
|
|
662
|
+
}, {
|
|
663
|
+
readonly type: "function";
|
|
664
|
+
readonly inputs: readonly [{
|
|
665
|
+
readonly name: "orderIds";
|
|
666
|
+
readonly internalType: "bytes32[]";
|
|
667
|
+
readonly type: "bytes32[]";
|
|
668
|
+
}, {
|
|
669
|
+
readonly name: "coin";
|
|
670
|
+
readonly internalType: "address";
|
|
671
|
+
readonly type: "address";
|
|
672
|
+
}, {
|
|
673
|
+
readonly name: "minAmountOut";
|
|
674
|
+
readonly internalType: "uint256";
|
|
675
|
+
readonly type: "uint256";
|
|
676
|
+
}, {
|
|
677
|
+
readonly name: "recipient";
|
|
678
|
+
readonly internalType: "address";
|
|
679
|
+
readonly type: "address";
|
|
680
|
+
}];
|
|
681
|
+
readonly name: "withdraw";
|
|
682
|
+
readonly outputs: readonly [];
|
|
683
|
+
readonly stateMutability: "nonpayable";
|
|
684
|
+
}, {
|
|
685
|
+
readonly type: "function";
|
|
686
|
+
readonly inputs: readonly [];
|
|
687
|
+
readonly name: "zoraCoinVersionLookup";
|
|
688
|
+
readonly outputs: readonly [{
|
|
689
|
+
readonly name: "";
|
|
690
|
+
readonly internalType: "contract IDeployedCoinVersionLookup";
|
|
691
|
+
readonly type: "address";
|
|
692
|
+
}];
|
|
693
|
+
readonly stateMutability: "view";
|
|
694
|
+
}, {
|
|
695
|
+
readonly type: "function";
|
|
696
|
+
readonly inputs: readonly [];
|
|
697
|
+
readonly name: "zoraHookRegistry";
|
|
698
|
+
readonly outputs: readonly [{
|
|
699
|
+
readonly name: "";
|
|
700
|
+
readonly internalType: "contract IZoraHookRegistry";
|
|
701
|
+
readonly type: "address";
|
|
702
|
+
}];
|
|
703
|
+
readonly stateMutability: "view";
|
|
704
|
+
}, {
|
|
705
|
+
readonly type: "event";
|
|
706
|
+
readonly anonymous: false;
|
|
707
|
+
readonly inputs: readonly [{
|
|
708
|
+
readonly name: "authority";
|
|
709
|
+
readonly internalType: "address";
|
|
710
|
+
readonly type: "address";
|
|
711
|
+
readonly indexed: false;
|
|
712
|
+
}];
|
|
713
|
+
readonly name: "AuthorityUpdated";
|
|
714
|
+
}, {
|
|
715
|
+
readonly type: "event";
|
|
716
|
+
readonly anonymous: false;
|
|
717
|
+
readonly inputs: readonly [{
|
|
718
|
+
readonly name: "maker";
|
|
719
|
+
readonly internalType: "address";
|
|
720
|
+
readonly type: "address";
|
|
721
|
+
readonly indexed: true;
|
|
722
|
+
}, {
|
|
723
|
+
readonly name: "coin";
|
|
724
|
+
readonly internalType: "address";
|
|
725
|
+
readonly type: "address";
|
|
726
|
+
readonly indexed: true;
|
|
727
|
+
}, {
|
|
728
|
+
readonly name: "poolKeyHash";
|
|
729
|
+
readonly internalType: "bytes32";
|
|
730
|
+
readonly type: "bytes32";
|
|
731
|
+
readonly indexed: false;
|
|
732
|
+
}, {
|
|
733
|
+
readonly name: "isCurrency0";
|
|
734
|
+
readonly internalType: "bool";
|
|
735
|
+
readonly type: "bool";
|
|
736
|
+
readonly indexed: false;
|
|
737
|
+
}, {
|
|
738
|
+
readonly name: "orderTick";
|
|
739
|
+
readonly internalType: "int24";
|
|
740
|
+
readonly type: "int24";
|
|
741
|
+
readonly indexed: false;
|
|
742
|
+
}, {
|
|
743
|
+
readonly name: "currentTick";
|
|
744
|
+
readonly internalType: "int24";
|
|
745
|
+
readonly type: "int24";
|
|
746
|
+
readonly indexed: false;
|
|
747
|
+
}, {
|
|
748
|
+
readonly name: "orderSize";
|
|
749
|
+
readonly internalType: "uint128";
|
|
750
|
+
readonly type: "uint128";
|
|
751
|
+
readonly indexed: false;
|
|
752
|
+
}, {
|
|
753
|
+
readonly name: "orderId";
|
|
754
|
+
readonly internalType: "bytes32";
|
|
755
|
+
readonly type: "bytes32";
|
|
756
|
+
readonly indexed: false;
|
|
757
|
+
}];
|
|
758
|
+
readonly name: "LimitOrderCreated";
|
|
759
|
+
}, {
|
|
760
|
+
readonly type: "event";
|
|
761
|
+
readonly anonymous: false;
|
|
762
|
+
readonly inputs: readonly [{
|
|
763
|
+
readonly name: "maker";
|
|
764
|
+
readonly internalType: "address";
|
|
765
|
+
readonly type: "address";
|
|
766
|
+
readonly indexed: true;
|
|
767
|
+
}, {
|
|
768
|
+
readonly name: "coinIn";
|
|
769
|
+
readonly internalType: "address";
|
|
770
|
+
readonly type: "address";
|
|
771
|
+
readonly indexed: true;
|
|
772
|
+
}, {
|
|
773
|
+
readonly name: "coinOut";
|
|
774
|
+
readonly internalType: "address";
|
|
775
|
+
readonly type: "address";
|
|
776
|
+
readonly indexed: false;
|
|
777
|
+
}, {
|
|
778
|
+
readonly name: "amountIn";
|
|
779
|
+
readonly internalType: "uint128";
|
|
780
|
+
readonly type: "uint128";
|
|
781
|
+
readonly indexed: false;
|
|
782
|
+
}, {
|
|
783
|
+
readonly name: "amountOut";
|
|
784
|
+
readonly internalType: "uint128";
|
|
785
|
+
readonly type: "uint128";
|
|
786
|
+
readonly indexed: false;
|
|
787
|
+
}, {
|
|
788
|
+
readonly name: "fillReferral";
|
|
789
|
+
readonly internalType: "address";
|
|
790
|
+
readonly type: "address";
|
|
791
|
+
readonly indexed: false;
|
|
792
|
+
}, {
|
|
793
|
+
readonly name: "fillReferralAmount";
|
|
794
|
+
readonly internalType: "uint128";
|
|
795
|
+
readonly type: "uint128";
|
|
796
|
+
readonly indexed: false;
|
|
797
|
+
}, {
|
|
798
|
+
readonly name: "poolKeyHash";
|
|
799
|
+
readonly internalType: "bytes32";
|
|
800
|
+
readonly type: "bytes32";
|
|
801
|
+
readonly indexed: false;
|
|
802
|
+
}, {
|
|
803
|
+
readonly name: "tick";
|
|
804
|
+
readonly internalType: "int24";
|
|
805
|
+
readonly type: "int24";
|
|
806
|
+
readonly indexed: false;
|
|
807
|
+
}, {
|
|
808
|
+
readonly name: "orderId";
|
|
809
|
+
readonly internalType: "bytes32";
|
|
810
|
+
readonly type: "bytes32";
|
|
811
|
+
readonly indexed: false;
|
|
812
|
+
}];
|
|
813
|
+
readonly name: "LimitOrderFilled";
|
|
814
|
+
}, {
|
|
815
|
+
readonly type: "event";
|
|
816
|
+
readonly anonymous: false;
|
|
817
|
+
readonly inputs: readonly [{
|
|
818
|
+
readonly name: "maker";
|
|
819
|
+
readonly internalType: "address";
|
|
820
|
+
readonly type: "address";
|
|
821
|
+
readonly indexed: true;
|
|
822
|
+
}, {
|
|
823
|
+
readonly name: "coin";
|
|
824
|
+
readonly internalType: "address";
|
|
825
|
+
readonly type: "address";
|
|
826
|
+
readonly indexed: true;
|
|
827
|
+
}, {
|
|
828
|
+
readonly name: "poolKeyHash";
|
|
829
|
+
readonly internalType: "bytes32";
|
|
830
|
+
readonly type: "bytes32";
|
|
831
|
+
readonly indexed: false;
|
|
832
|
+
}, {
|
|
833
|
+
readonly name: "isCurrency0";
|
|
834
|
+
readonly internalType: "bool";
|
|
835
|
+
readonly type: "bool";
|
|
836
|
+
readonly indexed: false;
|
|
837
|
+
}, {
|
|
838
|
+
readonly name: "tick";
|
|
839
|
+
readonly internalType: "int24";
|
|
840
|
+
readonly type: "int24";
|
|
841
|
+
readonly indexed: false;
|
|
842
|
+
}, {
|
|
843
|
+
readonly name: "orderSize";
|
|
844
|
+
readonly internalType: "uint128";
|
|
845
|
+
readonly type: "uint128";
|
|
846
|
+
readonly indexed: false;
|
|
847
|
+
}, {
|
|
848
|
+
readonly name: "orderId";
|
|
849
|
+
readonly internalType: "bytes32";
|
|
850
|
+
readonly type: "bytes32";
|
|
851
|
+
readonly indexed: false;
|
|
852
|
+
}, {
|
|
853
|
+
readonly name: "isCancelled";
|
|
854
|
+
readonly internalType: "bool";
|
|
855
|
+
readonly type: "bool";
|
|
856
|
+
readonly indexed: false;
|
|
857
|
+
}];
|
|
858
|
+
readonly name: "LimitOrderUpdated";
|
|
859
|
+
}, {
|
|
860
|
+
readonly type: "event";
|
|
861
|
+
readonly anonymous: false;
|
|
862
|
+
readonly inputs: readonly [{
|
|
863
|
+
readonly name: "maker";
|
|
864
|
+
readonly internalType: "address";
|
|
865
|
+
readonly type: "address";
|
|
866
|
+
readonly indexed: true;
|
|
867
|
+
}, {
|
|
868
|
+
readonly name: "coin";
|
|
869
|
+
readonly internalType: "address";
|
|
870
|
+
readonly type: "address";
|
|
871
|
+
readonly indexed: true;
|
|
872
|
+
}, {
|
|
873
|
+
readonly name: "newBalance";
|
|
874
|
+
readonly internalType: "uint256";
|
|
875
|
+
readonly type: "uint256";
|
|
876
|
+
readonly indexed: false;
|
|
877
|
+
}];
|
|
878
|
+
readonly name: "MakerBalanceUpdated";
|
|
879
|
+
}, {
|
|
880
|
+
readonly type: "error";
|
|
881
|
+
readonly inputs: readonly [{
|
|
882
|
+
readonly name: "authority";
|
|
883
|
+
readonly internalType: "address";
|
|
884
|
+
readonly type: "address";
|
|
885
|
+
}];
|
|
886
|
+
readonly name: "AccessManagedInvalidAuthority";
|
|
887
|
+
}, {
|
|
888
|
+
readonly type: "error";
|
|
889
|
+
readonly inputs: readonly [];
|
|
890
|
+
readonly name: "AccessManagedUnauthorized";
|
|
891
|
+
}, {
|
|
892
|
+
readonly type: "error";
|
|
893
|
+
readonly inputs: readonly [];
|
|
894
|
+
readonly name: "AddressZero";
|
|
895
|
+
}, {
|
|
896
|
+
readonly type: "error";
|
|
897
|
+
readonly inputs: readonly [];
|
|
898
|
+
readonly name: "ArrayLengthMismatch";
|
|
899
|
+
}, {
|
|
900
|
+
readonly type: "error";
|
|
901
|
+
readonly inputs: readonly [{
|
|
902
|
+
readonly name: "orderId";
|
|
903
|
+
readonly internalType: "bytes32";
|
|
904
|
+
readonly type: "bytes32";
|
|
905
|
+
}, {
|
|
906
|
+
readonly name: "expectedCoin";
|
|
907
|
+
readonly internalType: "address";
|
|
908
|
+
readonly type: "address";
|
|
909
|
+
}, {
|
|
910
|
+
readonly name: "actualCoin";
|
|
911
|
+
readonly internalType: "address";
|
|
912
|
+
readonly type: "address";
|
|
913
|
+
}];
|
|
914
|
+
readonly name: "CoinMismatch";
|
|
915
|
+
}, {
|
|
916
|
+
readonly type: "error";
|
|
917
|
+
readonly inputs: readonly [];
|
|
918
|
+
readonly name: "InsufficientForwardedFunds";
|
|
919
|
+
}, {
|
|
920
|
+
readonly type: "error";
|
|
921
|
+
readonly inputs: readonly [];
|
|
922
|
+
readonly name: "InsufficientTransferFunds";
|
|
923
|
+
}, {
|
|
924
|
+
readonly type: "error";
|
|
925
|
+
readonly inputs: readonly [{
|
|
926
|
+
readonly name: "startTick";
|
|
927
|
+
readonly internalType: "int24";
|
|
928
|
+
readonly type: "int24";
|
|
929
|
+
}, {
|
|
930
|
+
readonly name: "endTick";
|
|
931
|
+
readonly internalType: "int24";
|
|
932
|
+
readonly type: "int24";
|
|
933
|
+
}, {
|
|
934
|
+
readonly name: "isCurrency0";
|
|
935
|
+
readonly internalType: "bool";
|
|
936
|
+
readonly type: "bool";
|
|
937
|
+
}];
|
|
938
|
+
readonly name: "InvalidFillWindow";
|
|
939
|
+
}, {
|
|
940
|
+
readonly type: "error";
|
|
941
|
+
readonly inputs: readonly [];
|
|
942
|
+
readonly name: "InvalidOrder";
|
|
943
|
+
}, {
|
|
944
|
+
readonly type: "error";
|
|
945
|
+
readonly inputs: readonly [];
|
|
946
|
+
readonly name: "InvalidPoolKey";
|
|
947
|
+
}, {
|
|
948
|
+
readonly type: "error";
|
|
949
|
+
readonly inputs: readonly [];
|
|
950
|
+
readonly name: "MaxFillCountCannotBeZero";
|
|
951
|
+
}, {
|
|
952
|
+
readonly type: "error";
|
|
953
|
+
readonly inputs: readonly [{
|
|
954
|
+
readonly name: "withdrawn";
|
|
955
|
+
readonly internalType: "uint256";
|
|
956
|
+
readonly type: "uint256";
|
|
957
|
+
}, {
|
|
958
|
+
readonly name: "minAmountOut";
|
|
959
|
+
readonly internalType: "uint256";
|
|
960
|
+
readonly type: "uint256";
|
|
961
|
+
}];
|
|
962
|
+
readonly name: "MinAmountNotReached";
|
|
963
|
+
}, {
|
|
964
|
+
readonly type: "error";
|
|
965
|
+
readonly inputs: readonly [];
|
|
966
|
+
readonly name: "NativeValueMismatch";
|
|
967
|
+
}, {
|
|
968
|
+
readonly type: "error";
|
|
969
|
+
readonly inputs: readonly [];
|
|
970
|
+
readonly name: "NotPoolManager";
|
|
971
|
+
}, {
|
|
972
|
+
readonly type: "error";
|
|
973
|
+
readonly inputs: readonly [];
|
|
974
|
+
readonly name: "OnlyZoraHook";
|
|
975
|
+
}, {
|
|
976
|
+
readonly type: "error";
|
|
977
|
+
readonly inputs: readonly [];
|
|
978
|
+
readonly name: "OrderClosed";
|
|
979
|
+
}, {
|
|
980
|
+
readonly type: "error";
|
|
981
|
+
readonly inputs: readonly [];
|
|
982
|
+
readonly name: "OrderNotMaker";
|
|
983
|
+
}, {
|
|
984
|
+
readonly type: "error";
|
|
985
|
+
readonly inputs: readonly [];
|
|
986
|
+
readonly name: "PathMustHaveAtLeastOneStep";
|
|
987
|
+
}, {
|
|
988
|
+
readonly type: "error";
|
|
989
|
+
readonly inputs: readonly [];
|
|
990
|
+
readonly name: "RouterMsgSenderInvalid";
|
|
991
|
+
}, {
|
|
992
|
+
readonly type: "error";
|
|
993
|
+
readonly inputs: readonly [];
|
|
994
|
+
readonly name: "UnknownCallback";
|
|
995
|
+
}, {
|
|
996
|
+
readonly type: "error";
|
|
997
|
+
readonly inputs: readonly [];
|
|
998
|
+
readonly name: "UnlockedFillNotAllowed";
|
|
999
|
+
}, {
|
|
1000
|
+
readonly type: "error";
|
|
1001
|
+
readonly inputs: readonly [];
|
|
1002
|
+
readonly name: "ZeroMaker";
|
|
1003
|
+
}, {
|
|
1004
|
+
readonly type: "error";
|
|
1005
|
+
readonly inputs: readonly [];
|
|
1006
|
+
readonly name: "ZeroOrderSize";
|
|
1007
|
+
}, {
|
|
1008
|
+
readonly type: "error";
|
|
1009
|
+
readonly inputs: readonly [];
|
|
1010
|
+
readonly name: "ZeroRealizedOrder";
|
|
1011
|
+
}];
|
|
1012
|
+
//# sourceMappingURL=wagmiGenerated.d.ts.map
|