@cowprotocol/cow-sdk 5.5.1 → 5.7.0-RC.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 (34) hide show
  1. package/README.md +2 -1
  2. package/dist/README.md +2 -1
  3. package/dist/common/chains.d.ts +1 -0
  4. package/dist/common/configs.d.ts +5 -1
  5. package/dist/composable/generated/ComposableCoW.d.ts +340 -0
  6. package/dist/composable/generated/ExtensibleFallbackHandler.d.ts +282 -0
  7. package/dist/composable/generated/TWAP.d.ts +141 -0
  8. package/dist/composable/generated/common.d.ts +21 -0
  9. package/dist/composable/generated/factories/ComposableCoW__factory.d.ts +475 -0
  10. package/dist/composable/generated/factories/ExtensibleFallbackHandler__factory.d.ts +389 -0
  11. package/dist/composable/generated/factories/TWAP__factory.d.ts +260 -0
  12. package/dist/composable/generated/factories/index.d.ts +3 -0
  13. package/dist/composable/generated/index.d.ts +7 -0
  14. package/dist/index-5ea4bd62.js +29 -0
  15. package/dist/index-5ea4bd62.js.map +1 -0
  16. package/dist/index.js +2 -2
  17. package/dist/index.js.map +1 -1
  18. package/dist/index.modern.mjs +1 -1
  19. package/dist/index.module.js +2 -2
  20. package/dist/index.module.js.map +1 -1
  21. package/dist/order-book/generated/index.d.ts +1 -0
  22. package/dist/order-book/generated/models/ExecutedProtocolFee.d.ts +14 -0
  23. package/dist/order-book/generated/models/SolverSettlement.d.ts +0 -15
  24. package/dist/order-book/generated/models/Trade.d.ts +3 -3
  25. package/dist/package.json +3 -3
  26. package/dist/{utils-2e579ca0.js → utils-28261b03.js} +1 -1
  27. package/dist/{utils-2e579ca0.js.map → utils-28261b03.js.map} +1 -1
  28. package/dist/{utils-84d812ae.js → utils-67d54330.js} +1 -1
  29. package/dist/{utils-84d812ae.js.map → utils-67d54330.js.map} +1 -1
  30. package/dist/{utils-6f831831.js → utils-81055c83.js} +2 -2
  31. package/dist/{utils-6f831831.js.map → utils-81055c83.js.map} +1 -1
  32. package/package.json +3 -3
  33. package/dist/index-34e37377.js +0 -29
  34. package/dist/index-34e37377.js.map +0 -1
package/README.md CHANGED
@@ -105,7 +105,7 @@ Since the API supports different networks and environments, there are some optio
105
105
 
106
106
  #### Environment configuration
107
107
 
108
- `chainId` - can be one of `SupportedChainId.MAINNET`, `SupportedChainId.GNOSIS_CHAIN`, `SupportedChainId.ARBITRUM_ONE` or `SupportedChainId.SEPOLIA`
108
+ `chainId` - can be one of `SupportedChainId.MAINNET`, `SupportedChainId.GNOSIS_CHAIN`, `SupportedChainId.ARBITRUM_ONE`, `SupportedChainId.BASE` or `SupportedChainId.SEPOLIA`
109
109
 
110
110
  `env` - this parameter affects which environment will be used:
111
111
 
@@ -135,6 +135,7 @@ const orderBookApi = new OrderBookApi({
135
135
  [SupportedChainId.MAINNET]: 'https://YOUR_ENDPOINT/mainnet',
136
136
  [SupportedChainId.GNOSIS_CHAIN]: 'https://YOUR_ENDPOINT/gnosis_chain',
137
137
  [SupportedChainId.ARBITRUM]: 'https://YOUR_ENDPOINT/arbitrum_one',
138
+ [SupportedChainId.BASE]: 'https://YOUR_ENDPOINT/base',
138
139
  [SupportedChainId.SEPOLIA]: 'https://YOUR_ENDPOINT/sepolia',
139
140
  },
140
141
  })
package/dist/README.md CHANGED
@@ -105,7 +105,7 @@ Since the API supports different networks and environments, there are some optio
105
105
 
106
106
  #### Environment configuration
107
107
 
108
- `chainId` - can be one of `SupportedChainId.MAINNET`, `SupportedChainId.GNOSIS_CHAIN`, `SupportedChainId.ARBITRUM_ONE` or `SupportedChainId.SEPOLIA`
108
+ `chainId` - can be one of `SupportedChainId.MAINNET`, `SupportedChainId.GNOSIS_CHAIN`, `SupportedChainId.ARBITRUM_ONE`, `SupportedChainId.BASE` or `SupportedChainId.SEPOLIA`
109
109
 
110
110
  `env` - this parameter affects which environment will be used:
111
111
 
@@ -135,6 +135,7 @@ const orderBookApi = new OrderBookApi({
135
135
  [SupportedChainId.MAINNET]: 'https://YOUR_ENDPOINT/mainnet',
136
136
  [SupportedChainId.GNOSIS_CHAIN]: 'https://YOUR_ENDPOINT/gnosis_chain',
137
137
  [SupportedChainId.ARBITRUM]: 'https://YOUR_ENDPOINT/arbitrum_one',
138
+ [SupportedChainId.BASE]: 'https://YOUR_ENDPOINT/base',
138
139
  [SupportedChainId.SEPOLIA]: 'https://YOUR_ENDPOINT/sepolia',
139
140
  },
140
141
  })
@@ -6,5 +6,6 @@ export declare enum SupportedChainId {
6
6
  MAINNET = 1,
7
7
  GNOSIS_CHAIN = 100,
8
8
  ARBITRUM_ONE = 42161,
9
+ BASE = 8453,
9
10
  SEPOLIA = 11155111
10
11
  }
@@ -1,6 +1,6 @@
1
- import { SupportedChainId } from './chains';
2
1
  import { BackoffOptions } from 'exponential-backoff';
3
2
  import { RateLimiterOpts } from 'limiter/dist/esm';
3
+ import { SupportedChainId } from './chains';
4
4
  /**
5
5
  * IPFS configuration.
6
6
  *
@@ -37,6 +37,8 @@ export type PartialApiContext = Partial<ApiContext>;
37
37
  /**
38
38
  * @property {string} [1] The base URL for the mainnet API.
39
39
  * @property {string} [100] The base URL for the Gnosis Chain API.
40
+ * @property {string} [42161] The base URL for the Arbitrum One API.
41
+ * @property {string} [8453] The base URL for the Base API.
40
42
  * @property {string} [11155111] The base URL for the Sepolia testnet API.
41
43
  */
42
44
  export type ApiBaseUrls = Record<SupportedChainId, string>;
@@ -47,6 +49,8 @@ export type ApiBaseUrls = Record<SupportedChainId, string>;
47
49
  * {@link SupportedChainId Supported chains} are:
48
50
  * - Mainnet
49
51
  * - Gnosis Chain
52
+ * - Arbitrum One
53
+ * - Base
50
54
  * - Sepolia
51
55
  *
52
56
  * Each chain has it's own API, and each API has it's own base URL.
@@ -0,0 +1,340 @@
1
+ import type { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, ContractTransaction, Overrides, PopulatedTransaction, Signer, utils } from "ethers";
2
+ import type { FunctionFragment, Result, EventFragment } from "@ethersproject/abi";
3
+ import type { Listener, Provider } from "@ethersproject/providers";
4
+ import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "./common";
5
+ export declare namespace IConditionalOrder {
6
+ type ConditionalOrderParamsStruct = {
7
+ handler: string;
8
+ salt: BytesLike;
9
+ staticInput: BytesLike;
10
+ };
11
+ type ConditionalOrderParamsStructOutput = [string, string, string] & {
12
+ handler: string;
13
+ salt: string;
14
+ staticInput: string;
15
+ };
16
+ }
17
+ export declare namespace ComposableCoW {
18
+ type ProofStruct = {
19
+ location: BigNumberish;
20
+ data: BytesLike;
21
+ };
22
+ type ProofStructOutput = [BigNumber, string] & {
23
+ location: BigNumber;
24
+ data: string;
25
+ };
26
+ }
27
+ export declare namespace GPv2Order {
28
+ type DataStruct = {
29
+ sellToken: string;
30
+ buyToken: string;
31
+ receiver: string;
32
+ sellAmount: BigNumberish;
33
+ buyAmount: BigNumberish;
34
+ validTo: BigNumberish;
35
+ appData: BytesLike;
36
+ feeAmount: BigNumberish;
37
+ kind: BytesLike;
38
+ partiallyFillable: boolean;
39
+ sellTokenBalance: BytesLike;
40
+ buyTokenBalance: BytesLike;
41
+ };
42
+ type DataStructOutput = [
43
+ string,
44
+ string,
45
+ string,
46
+ BigNumber,
47
+ BigNumber,
48
+ number,
49
+ string,
50
+ BigNumber,
51
+ string,
52
+ boolean,
53
+ string,
54
+ string
55
+ ] & {
56
+ sellToken: string;
57
+ buyToken: string;
58
+ receiver: string;
59
+ sellAmount: BigNumber;
60
+ buyAmount: BigNumber;
61
+ validTo: number;
62
+ appData: string;
63
+ feeAmount: BigNumber;
64
+ kind: string;
65
+ partiallyFillable: boolean;
66
+ sellTokenBalance: string;
67
+ buyTokenBalance: string;
68
+ };
69
+ }
70
+ export interface ComposableCoWInterface extends utils.Interface {
71
+ functions: {
72
+ "cabinet(address,bytes32)": FunctionFragment;
73
+ "create((address,bytes32,bytes),bool)": FunctionFragment;
74
+ "createWithContext((address,bytes32,bytes),address,bytes,bool)": FunctionFragment;
75
+ "domainSeparator()": FunctionFragment;
76
+ "getTradeableOrderWithSignature(address,(address,bytes32,bytes),bytes,bytes32[])": FunctionFragment;
77
+ "hash((address,bytes32,bytes))": FunctionFragment;
78
+ "isValidSafeSignature(address,address,bytes32,bytes32,bytes32,bytes,bytes)": FunctionFragment;
79
+ "remove(bytes32)": FunctionFragment;
80
+ "roots(address)": FunctionFragment;
81
+ "setRoot(bytes32,(uint256,bytes))": FunctionFragment;
82
+ "setRootWithContext(bytes32,(uint256,bytes),address,bytes)": FunctionFragment;
83
+ "setSwapGuard(address)": FunctionFragment;
84
+ "singleOrders(address,bytes32)": FunctionFragment;
85
+ "swapGuards(address)": FunctionFragment;
86
+ };
87
+ getFunction(nameOrSignatureOrTopic: "cabinet" | "create" | "createWithContext" | "domainSeparator" | "getTradeableOrderWithSignature" | "hash" | "isValidSafeSignature" | "remove" | "roots" | "setRoot" | "setRootWithContext" | "setSwapGuard" | "singleOrders" | "swapGuards"): FunctionFragment;
88
+ encodeFunctionData(functionFragment: "cabinet", values: [string, BytesLike]): string;
89
+ encodeFunctionData(functionFragment: "create", values: [IConditionalOrder.ConditionalOrderParamsStruct, boolean]): string;
90
+ encodeFunctionData(functionFragment: "createWithContext", values: [
91
+ IConditionalOrder.ConditionalOrderParamsStruct,
92
+ string,
93
+ BytesLike,
94
+ boolean
95
+ ]): string;
96
+ encodeFunctionData(functionFragment: "domainSeparator", values?: undefined): string;
97
+ encodeFunctionData(functionFragment: "getTradeableOrderWithSignature", values: [
98
+ string,
99
+ IConditionalOrder.ConditionalOrderParamsStruct,
100
+ BytesLike,
101
+ BytesLike[]
102
+ ]): string;
103
+ encodeFunctionData(functionFragment: "hash", values: [IConditionalOrder.ConditionalOrderParamsStruct]): string;
104
+ encodeFunctionData(functionFragment: "isValidSafeSignature", values: [
105
+ string,
106
+ string,
107
+ BytesLike,
108
+ BytesLike,
109
+ BytesLike,
110
+ BytesLike,
111
+ BytesLike
112
+ ]): string;
113
+ encodeFunctionData(functionFragment: "remove", values: [BytesLike]): string;
114
+ encodeFunctionData(functionFragment: "roots", values: [string]): string;
115
+ encodeFunctionData(functionFragment: "setRoot", values: [BytesLike, ComposableCoW.ProofStruct]): string;
116
+ encodeFunctionData(functionFragment: "setRootWithContext", values: [BytesLike, ComposableCoW.ProofStruct, string, BytesLike]): string;
117
+ encodeFunctionData(functionFragment: "setSwapGuard", values: [string]): string;
118
+ encodeFunctionData(functionFragment: "singleOrders", values: [string, BytesLike]): string;
119
+ encodeFunctionData(functionFragment: "swapGuards", values: [string]): string;
120
+ decodeFunctionResult(functionFragment: "cabinet", data: BytesLike): Result;
121
+ decodeFunctionResult(functionFragment: "create", data: BytesLike): Result;
122
+ decodeFunctionResult(functionFragment: "createWithContext", data: BytesLike): Result;
123
+ decodeFunctionResult(functionFragment: "domainSeparator", data: BytesLike): Result;
124
+ decodeFunctionResult(functionFragment: "getTradeableOrderWithSignature", data: BytesLike): Result;
125
+ decodeFunctionResult(functionFragment: "hash", data: BytesLike): Result;
126
+ decodeFunctionResult(functionFragment: "isValidSafeSignature", data: BytesLike): Result;
127
+ decodeFunctionResult(functionFragment: "remove", data: BytesLike): Result;
128
+ decodeFunctionResult(functionFragment: "roots", data: BytesLike): Result;
129
+ decodeFunctionResult(functionFragment: "setRoot", data: BytesLike): Result;
130
+ decodeFunctionResult(functionFragment: "setRootWithContext", data: BytesLike): Result;
131
+ decodeFunctionResult(functionFragment: "setSwapGuard", data: BytesLike): Result;
132
+ decodeFunctionResult(functionFragment: "singleOrders", data: BytesLike): Result;
133
+ decodeFunctionResult(functionFragment: "swapGuards", data: BytesLike): Result;
134
+ events: {
135
+ "ConditionalOrderCreated(address,(address,bytes32,bytes))": EventFragment;
136
+ "MerkleRootSet(address,bytes32,(uint256,bytes))": EventFragment;
137
+ "SwapGuardSet(address,address)": EventFragment;
138
+ };
139
+ getEvent(nameOrSignatureOrTopic: "ConditionalOrderCreated"): EventFragment;
140
+ getEvent(nameOrSignatureOrTopic: "MerkleRootSet"): EventFragment;
141
+ getEvent(nameOrSignatureOrTopic: "SwapGuardSet"): EventFragment;
142
+ }
143
+ export interface ConditionalOrderCreatedEventObject {
144
+ owner: string;
145
+ params: IConditionalOrder.ConditionalOrderParamsStructOutput;
146
+ }
147
+ export type ConditionalOrderCreatedEvent = TypedEvent<[
148
+ string,
149
+ IConditionalOrder.ConditionalOrderParamsStructOutput
150
+ ], ConditionalOrderCreatedEventObject>;
151
+ export type ConditionalOrderCreatedEventFilter = TypedEventFilter<ConditionalOrderCreatedEvent>;
152
+ export interface MerkleRootSetEventObject {
153
+ owner: string;
154
+ root: string;
155
+ proof: ComposableCoW.ProofStructOutput;
156
+ }
157
+ export type MerkleRootSetEvent = TypedEvent<[
158
+ string,
159
+ string,
160
+ ComposableCoW.ProofStructOutput
161
+ ], MerkleRootSetEventObject>;
162
+ export type MerkleRootSetEventFilter = TypedEventFilter<MerkleRootSetEvent>;
163
+ export interface SwapGuardSetEventObject {
164
+ owner: string;
165
+ swapGuard: string;
166
+ }
167
+ export type SwapGuardSetEvent = TypedEvent<[
168
+ string,
169
+ string
170
+ ], SwapGuardSetEventObject>;
171
+ export type SwapGuardSetEventFilter = TypedEventFilter<SwapGuardSetEvent>;
172
+ export interface ComposableCoW extends BaseContract {
173
+ connect(signerOrProvider: Signer | Provider | string): this;
174
+ attach(addressOrName: string): this;
175
+ deployed(): Promise<this>;
176
+ interface: ComposableCoWInterface;
177
+ queryFilter<TEvent extends TypedEvent>(event: TypedEventFilter<TEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TEvent>>;
178
+ listeners<TEvent extends TypedEvent>(eventFilter?: TypedEventFilter<TEvent>): Array<TypedListener<TEvent>>;
179
+ listeners(eventName?: string): Array<Listener>;
180
+ removeAllListeners<TEvent extends TypedEvent>(eventFilter: TypedEventFilter<TEvent>): this;
181
+ removeAllListeners(eventName?: string): this;
182
+ off: OnEvent<this>;
183
+ on: OnEvent<this>;
184
+ once: OnEvent<this>;
185
+ removeListener: OnEvent<this>;
186
+ functions: {
187
+ cabinet(arg0: string, arg1: BytesLike, overrides?: CallOverrides): Promise<[string]>;
188
+ create(params: IConditionalOrder.ConditionalOrderParamsStruct, dispatch: boolean, overrides?: Overrides & {
189
+ from?: string;
190
+ }): Promise<ContractTransaction>;
191
+ createWithContext(params: IConditionalOrder.ConditionalOrderParamsStruct, factory: string, data: BytesLike, dispatch: boolean, overrides?: Overrides & {
192
+ from?: string;
193
+ }): Promise<ContractTransaction>;
194
+ domainSeparator(overrides?: CallOverrides): Promise<[string]>;
195
+ getTradeableOrderWithSignature(owner: string, params: IConditionalOrder.ConditionalOrderParamsStruct, offchainInput: BytesLike, proof: BytesLike[], overrides?: CallOverrides): Promise<[
196
+ GPv2Order.DataStructOutput,
197
+ string
198
+ ] & {
199
+ order: GPv2Order.DataStructOutput;
200
+ signature: string;
201
+ }>;
202
+ hash(params: IConditionalOrder.ConditionalOrderParamsStruct, overrides?: CallOverrides): Promise<[string]>;
203
+ isValidSafeSignature(safe: string, sender: string, _hash: BytesLike, _domainSeparator: BytesLike, arg4: BytesLike, encodeData: BytesLike, payload: BytesLike, overrides?: CallOverrides): Promise<[string] & {
204
+ magic: string;
205
+ }>;
206
+ remove(singleOrderHash: BytesLike, overrides?: Overrides & {
207
+ from?: string;
208
+ }): Promise<ContractTransaction>;
209
+ roots(arg0: string, overrides?: CallOverrides): Promise<[string]>;
210
+ setRoot(root: BytesLike, proof: ComposableCoW.ProofStruct, overrides?: Overrides & {
211
+ from?: string;
212
+ }): Promise<ContractTransaction>;
213
+ setRootWithContext(root: BytesLike, proof: ComposableCoW.ProofStruct, factory: string, data: BytesLike, overrides?: Overrides & {
214
+ from?: string;
215
+ }): Promise<ContractTransaction>;
216
+ setSwapGuard(swapGuard: string, overrides?: Overrides & {
217
+ from?: string;
218
+ }): Promise<ContractTransaction>;
219
+ singleOrders(arg0: string, arg1: BytesLike, overrides?: CallOverrides): Promise<[boolean]>;
220
+ swapGuards(arg0: string, overrides?: CallOverrides): Promise<[string]>;
221
+ };
222
+ cabinet(arg0: string, arg1: BytesLike, overrides?: CallOverrides): Promise<string>;
223
+ create(params: IConditionalOrder.ConditionalOrderParamsStruct, dispatch: boolean, overrides?: Overrides & {
224
+ from?: string;
225
+ }): Promise<ContractTransaction>;
226
+ createWithContext(params: IConditionalOrder.ConditionalOrderParamsStruct, factory: string, data: BytesLike, dispatch: boolean, overrides?: Overrides & {
227
+ from?: string;
228
+ }): Promise<ContractTransaction>;
229
+ domainSeparator(overrides?: CallOverrides): Promise<string>;
230
+ getTradeableOrderWithSignature(owner: string, params: IConditionalOrder.ConditionalOrderParamsStruct, offchainInput: BytesLike, proof: BytesLike[], overrides?: CallOverrides): Promise<[
231
+ GPv2Order.DataStructOutput,
232
+ string
233
+ ] & {
234
+ order: GPv2Order.DataStructOutput;
235
+ signature: string;
236
+ }>;
237
+ hash(params: IConditionalOrder.ConditionalOrderParamsStruct, overrides?: CallOverrides): Promise<string>;
238
+ isValidSafeSignature(safe: string, sender: string, _hash: BytesLike, _domainSeparator: BytesLike, arg4: BytesLike, encodeData: BytesLike, payload: BytesLike, overrides?: CallOverrides): Promise<string>;
239
+ remove(singleOrderHash: BytesLike, overrides?: Overrides & {
240
+ from?: string;
241
+ }): Promise<ContractTransaction>;
242
+ roots(arg0: string, overrides?: CallOverrides): Promise<string>;
243
+ setRoot(root: BytesLike, proof: ComposableCoW.ProofStruct, overrides?: Overrides & {
244
+ from?: string;
245
+ }): Promise<ContractTransaction>;
246
+ setRootWithContext(root: BytesLike, proof: ComposableCoW.ProofStruct, factory: string, data: BytesLike, overrides?: Overrides & {
247
+ from?: string;
248
+ }): Promise<ContractTransaction>;
249
+ setSwapGuard(swapGuard: string, overrides?: Overrides & {
250
+ from?: string;
251
+ }): Promise<ContractTransaction>;
252
+ singleOrders(arg0: string, arg1: BytesLike, overrides?: CallOverrides): Promise<boolean>;
253
+ swapGuards(arg0: string, overrides?: CallOverrides): Promise<string>;
254
+ callStatic: {
255
+ cabinet(arg0: string, arg1: BytesLike, overrides?: CallOverrides): Promise<string>;
256
+ create(params: IConditionalOrder.ConditionalOrderParamsStruct, dispatch: boolean, overrides?: CallOverrides): Promise<void>;
257
+ createWithContext(params: IConditionalOrder.ConditionalOrderParamsStruct, factory: string, data: BytesLike, dispatch: boolean, overrides?: CallOverrides): Promise<void>;
258
+ domainSeparator(overrides?: CallOverrides): Promise<string>;
259
+ getTradeableOrderWithSignature(owner: string, params: IConditionalOrder.ConditionalOrderParamsStruct, offchainInput: BytesLike, proof: BytesLike[], overrides?: CallOverrides): Promise<[
260
+ GPv2Order.DataStructOutput,
261
+ string
262
+ ] & {
263
+ order: GPv2Order.DataStructOutput;
264
+ signature: string;
265
+ }>;
266
+ hash(params: IConditionalOrder.ConditionalOrderParamsStruct, overrides?: CallOverrides): Promise<string>;
267
+ isValidSafeSignature(safe: string, sender: string, _hash: BytesLike, _domainSeparator: BytesLike, arg4: BytesLike, encodeData: BytesLike, payload: BytesLike, overrides?: CallOverrides): Promise<string>;
268
+ remove(singleOrderHash: BytesLike, overrides?: CallOverrides): Promise<void>;
269
+ roots(arg0: string, overrides?: CallOverrides): Promise<string>;
270
+ setRoot(root: BytesLike, proof: ComposableCoW.ProofStruct, overrides?: CallOverrides): Promise<void>;
271
+ setRootWithContext(root: BytesLike, proof: ComposableCoW.ProofStruct, factory: string, data: BytesLike, overrides?: CallOverrides): Promise<void>;
272
+ setSwapGuard(swapGuard: string, overrides?: CallOverrides): Promise<void>;
273
+ singleOrders(arg0: string, arg1: BytesLike, overrides?: CallOverrides): Promise<boolean>;
274
+ swapGuards(arg0: string, overrides?: CallOverrides): Promise<string>;
275
+ };
276
+ filters: {
277
+ "ConditionalOrderCreated(address,(address,bytes32,bytes))"(owner?: string | null, params?: null): ConditionalOrderCreatedEventFilter;
278
+ ConditionalOrderCreated(owner?: string | null, params?: null): ConditionalOrderCreatedEventFilter;
279
+ "MerkleRootSet(address,bytes32,(uint256,bytes))"(owner?: string | null, root?: null, proof?: null): MerkleRootSetEventFilter;
280
+ MerkleRootSet(owner?: string | null, root?: null, proof?: null): MerkleRootSetEventFilter;
281
+ "SwapGuardSet(address,address)"(owner?: string | null, swapGuard?: null): SwapGuardSetEventFilter;
282
+ SwapGuardSet(owner?: string | null, swapGuard?: null): SwapGuardSetEventFilter;
283
+ };
284
+ estimateGas: {
285
+ cabinet(arg0: string, arg1: BytesLike, overrides?: CallOverrides): Promise<BigNumber>;
286
+ create(params: IConditionalOrder.ConditionalOrderParamsStruct, dispatch: boolean, overrides?: Overrides & {
287
+ from?: string;
288
+ }): Promise<BigNumber>;
289
+ createWithContext(params: IConditionalOrder.ConditionalOrderParamsStruct, factory: string, data: BytesLike, dispatch: boolean, overrides?: Overrides & {
290
+ from?: string;
291
+ }): Promise<BigNumber>;
292
+ domainSeparator(overrides?: CallOverrides): Promise<BigNumber>;
293
+ getTradeableOrderWithSignature(owner: string, params: IConditionalOrder.ConditionalOrderParamsStruct, offchainInput: BytesLike, proof: BytesLike[], overrides?: CallOverrides): Promise<BigNumber>;
294
+ hash(params: IConditionalOrder.ConditionalOrderParamsStruct, overrides?: CallOverrides): Promise<BigNumber>;
295
+ isValidSafeSignature(safe: string, sender: string, _hash: BytesLike, _domainSeparator: BytesLike, arg4: BytesLike, encodeData: BytesLike, payload: BytesLike, overrides?: CallOverrides): Promise<BigNumber>;
296
+ remove(singleOrderHash: BytesLike, overrides?: Overrides & {
297
+ from?: string;
298
+ }): Promise<BigNumber>;
299
+ roots(arg0: string, overrides?: CallOverrides): Promise<BigNumber>;
300
+ setRoot(root: BytesLike, proof: ComposableCoW.ProofStruct, overrides?: Overrides & {
301
+ from?: string;
302
+ }): Promise<BigNumber>;
303
+ setRootWithContext(root: BytesLike, proof: ComposableCoW.ProofStruct, factory: string, data: BytesLike, overrides?: Overrides & {
304
+ from?: string;
305
+ }): Promise<BigNumber>;
306
+ setSwapGuard(swapGuard: string, overrides?: Overrides & {
307
+ from?: string;
308
+ }): Promise<BigNumber>;
309
+ singleOrders(arg0: string, arg1: BytesLike, overrides?: CallOverrides): Promise<BigNumber>;
310
+ swapGuards(arg0: string, overrides?: CallOverrides): Promise<BigNumber>;
311
+ };
312
+ populateTransaction: {
313
+ cabinet(arg0: string, arg1: BytesLike, overrides?: CallOverrides): Promise<PopulatedTransaction>;
314
+ create(params: IConditionalOrder.ConditionalOrderParamsStruct, dispatch: boolean, overrides?: Overrides & {
315
+ from?: string;
316
+ }): Promise<PopulatedTransaction>;
317
+ createWithContext(params: IConditionalOrder.ConditionalOrderParamsStruct, factory: string, data: BytesLike, dispatch: boolean, overrides?: Overrides & {
318
+ from?: string;
319
+ }): Promise<PopulatedTransaction>;
320
+ domainSeparator(overrides?: CallOverrides): Promise<PopulatedTransaction>;
321
+ getTradeableOrderWithSignature(owner: string, params: IConditionalOrder.ConditionalOrderParamsStruct, offchainInput: BytesLike, proof: BytesLike[], overrides?: CallOverrides): Promise<PopulatedTransaction>;
322
+ hash(params: IConditionalOrder.ConditionalOrderParamsStruct, overrides?: CallOverrides): Promise<PopulatedTransaction>;
323
+ isValidSafeSignature(safe: string, sender: string, _hash: BytesLike, _domainSeparator: BytesLike, arg4: BytesLike, encodeData: BytesLike, payload: BytesLike, overrides?: CallOverrides): Promise<PopulatedTransaction>;
324
+ remove(singleOrderHash: BytesLike, overrides?: Overrides & {
325
+ from?: string;
326
+ }): Promise<PopulatedTransaction>;
327
+ roots(arg0: string, overrides?: CallOverrides): Promise<PopulatedTransaction>;
328
+ setRoot(root: BytesLike, proof: ComposableCoW.ProofStruct, overrides?: Overrides & {
329
+ from?: string;
330
+ }): Promise<PopulatedTransaction>;
331
+ setRootWithContext(root: BytesLike, proof: ComposableCoW.ProofStruct, factory: string, data: BytesLike, overrides?: Overrides & {
332
+ from?: string;
333
+ }): Promise<PopulatedTransaction>;
334
+ setSwapGuard(swapGuard: string, overrides?: Overrides & {
335
+ from?: string;
336
+ }): Promise<PopulatedTransaction>;
337
+ singleOrders(arg0: string, arg1: BytesLike, overrides?: CallOverrides): Promise<PopulatedTransaction>;
338
+ swapGuards(arg0: string, overrides?: CallOverrides): Promise<PopulatedTransaction>;
339
+ };
340
+ }