@cowprotocol/cow-sdk 5.5.1 → 5.6.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.
@@ -0,0 +1,141 @@
1
+ import type { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, 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 GPv2Order {
18
+ type DataStruct = {
19
+ sellToken: string;
20
+ buyToken: string;
21
+ receiver: string;
22
+ sellAmount: BigNumberish;
23
+ buyAmount: BigNumberish;
24
+ validTo: BigNumberish;
25
+ appData: BytesLike;
26
+ feeAmount: BigNumberish;
27
+ kind: BytesLike;
28
+ partiallyFillable: boolean;
29
+ sellTokenBalance: BytesLike;
30
+ buyTokenBalance: BytesLike;
31
+ };
32
+ type DataStructOutput = [
33
+ string,
34
+ string,
35
+ string,
36
+ BigNumber,
37
+ BigNumber,
38
+ number,
39
+ string,
40
+ BigNumber,
41
+ string,
42
+ boolean,
43
+ string,
44
+ string
45
+ ] & {
46
+ sellToken: string;
47
+ buyToken: string;
48
+ receiver: string;
49
+ sellAmount: BigNumber;
50
+ buyAmount: BigNumber;
51
+ validTo: number;
52
+ appData: string;
53
+ feeAmount: BigNumber;
54
+ kind: string;
55
+ partiallyFillable: boolean;
56
+ sellTokenBalance: string;
57
+ buyTokenBalance: string;
58
+ };
59
+ }
60
+ export interface TWAPInterface extends utils.Interface {
61
+ functions: {
62
+ "getTradeableOrder(address,address,bytes32,bytes,bytes)": FunctionFragment;
63
+ "supportsInterface(bytes4)": FunctionFragment;
64
+ "verify(address,address,bytes32,bytes32,bytes32,bytes,bytes,(address,address,address,uint256,uint256,uint32,bytes32,uint256,bytes32,bool,bytes32,bytes32))": FunctionFragment;
65
+ };
66
+ getFunction(nameOrSignatureOrTopic: "getTradeableOrder" | "supportsInterface" | "verify"): FunctionFragment;
67
+ encodeFunctionData(functionFragment: "getTradeableOrder", values: [string, string, BytesLike, BytesLike, BytesLike]): string;
68
+ encodeFunctionData(functionFragment: "supportsInterface", values: [BytesLike]): string;
69
+ encodeFunctionData(functionFragment: "verify", values: [
70
+ string,
71
+ string,
72
+ BytesLike,
73
+ BytesLike,
74
+ BytesLike,
75
+ BytesLike,
76
+ BytesLike,
77
+ GPv2Order.DataStruct
78
+ ]): string;
79
+ decodeFunctionResult(functionFragment: "getTradeableOrder", data: BytesLike): Result;
80
+ decodeFunctionResult(functionFragment: "supportsInterface", data: BytesLike): Result;
81
+ decodeFunctionResult(functionFragment: "verify", data: BytesLike): Result;
82
+ events: {
83
+ "ConditionalOrderCreated(address,(address,bytes32,bytes))": EventFragment;
84
+ };
85
+ getEvent(nameOrSignatureOrTopic: "ConditionalOrderCreated"): EventFragment;
86
+ }
87
+ export interface ConditionalOrderCreatedEventObject {
88
+ owner: string;
89
+ params: IConditionalOrder.ConditionalOrderParamsStructOutput;
90
+ }
91
+ export type ConditionalOrderCreatedEvent = TypedEvent<[
92
+ string,
93
+ IConditionalOrder.ConditionalOrderParamsStructOutput
94
+ ], ConditionalOrderCreatedEventObject>;
95
+ export type ConditionalOrderCreatedEventFilter = TypedEventFilter<ConditionalOrderCreatedEvent>;
96
+ export interface TWAP extends BaseContract {
97
+ connect(signerOrProvider: Signer | Provider | string): this;
98
+ attach(addressOrName: string): this;
99
+ deployed(): Promise<this>;
100
+ interface: TWAPInterface;
101
+ queryFilter<TEvent extends TypedEvent>(event: TypedEventFilter<TEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TEvent>>;
102
+ listeners<TEvent extends TypedEvent>(eventFilter?: TypedEventFilter<TEvent>): Array<TypedListener<TEvent>>;
103
+ listeners(eventName?: string): Array<Listener>;
104
+ removeAllListeners<TEvent extends TypedEvent>(eventFilter: TypedEventFilter<TEvent>): this;
105
+ removeAllListeners(eventName?: string): this;
106
+ off: OnEvent<this>;
107
+ on: OnEvent<this>;
108
+ once: OnEvent<this>;
109
+ removeListener: OnEvent<this>;
110
+ functions: {
111
+ getTradeableOrder(owner: string, arg1: string, ctx: BytesLike, staticInput: BytesLike, arg4: BytesLike, overrides?: CallOverrides): Promise<[
112
+ GPv2Order.DataStructOutput
113
+ ] & {
114
+ order: GPv2Order.DataStructOutput;
115
+ }>;
116
+ supportsInterface(interfaceId: BytesLike, overrides?: CallOverrides): Promise<[boolean]>;
117
+ verify(owner: string, sender: string, _hash: BytesLike, domainSeparator: BytesLike, ctx: BytesLike, staticInput: BytesLike, offchainInput: BytesLike, arg7: GPv2Order.DataStruct, overrides?: CallOverrides): Promise<[void]>;
118
+ };
119
+ getTradeableOrder(owner: string, arg1: string, ctx: BytesLike, staticInput: BytesLike, arg4: BytesLike, overrides?: CallOverrides): Promise<GPv2Order.DataStructOutput>;
120
+ supportsInterface(interfaceId: BytesLike, overrides?: CallOverrides): Promise<boolean>;
121
+ verify(owner: string, sender: string, _hash: BytesLike, domainSeparator: BytesLike, ctx: BytesLike, staticInput: BytesLike, offchainInput: BytesLike, arg7: GPv2Order.DataStruct, overrides?: CallOverrides): Promise<void>;
122
+ callStatic: {
123
+ getTradeableOrder(owner: string, arg1: string, ctx: BytesLike, staticInput: BytesLike, arg4: BytesLike, overrides?: CallOverrides): Promise<GPv2Order.DataStructOutput>;
124
+ supportsInterface(interfaceId: BytesLike, overrides?: CallOverrides): Promise<boolean>;
125
+ verify(owner: string, sender: string, _hash: BytesLike, domainSeparator: BytesLike, ctx: BytesLike, staticInput: BytesLike, offchainInput: BytesLike, arg7: GPv2Order.DataStruct, overrides?: CallOverrides): Promise<void>;
126
+ };
127
+ filters: {
128
+ "ConditionalOrderCreated(address,(address,bytes32,bytes))"(owner?: string | null, params?: null): ConditionalOrderCreatedEventFilter;
129
+ ConditionalOrderCreated(owner?: string | null, params?: null): ConditionalOrderCreatedEventFilter;
130
+ };
131
+ estimateGas: {
132
+ getTradeableOrder(owner: string, arg1: string, ctx: BytesLike, staticInput: BytesLike, arg4: BytesLike, overrides?: CallOverrides): Promise<BigNumber>;
133
+ supportsInterface(interfaceId: BytesLike, overrides?: CallOverrides): Promise<BigNumber>;
134
+ verify(owner: string, sender: string, _hash: BytesLike, domainSeparator: BytesLike, ctx: BytesLike, staticInput: BytesLike, offchainInput: BytesLike, arg7: GPv2Order.DataStruct, overrides?: CallOverrides): Promise<BigNumber>;
135
+ };
136
+ populateTransaction: {
137
+ getTradeableOrder(owner: string, arg1: string, ctx: BytesLike, staticInput: BytesLike, arg4: BytesLike, overrides?: CallOverrides): Promise<PopulatedTransaction>;
138
+ supportsInterface(interfaceId: BytesLike, overrides?: CallOverrides): Promise<PopulatedTransaction>;
139
+ verify(owner: string, sender: string, _hash: BytesLike, domainSeparator: BytesLike, ctx: BytesLike, staticInput: BytesLike, offchainInput: BytesLike, arg7: GPv2Order.DataStruct, overrides?: CallOverrides): Promise<PopulatedTransaction>;
140
+ };
141
+ }
@@ -0,0 +1,21 @@
1
+ import type { Listener } from "@ethersproject/providers";
2
+ import type { Event, EventFilter } from "ethers";
3
+ export interface TypedEvent<TArgsArray extends Array<any> = any, TArgsObject = any> extends Event {
4
+ args: TArgsArray & TArgsObject;
5
+ }
6
+ export interface TypedEventFilter<_TEvent extends TypedEvent> extends EventFilter {
7
+ }
8
+ export interface TypedListener<TEvent extends TypedEvent> {
9
+ (...listenerArg: [...__TypechainArgsArray<TEvent>, TEvent]): void;
10
+ }
11
+ type __TypechainArgsArray<T> = T extends TypedEvent<infer U> ? U : never;
12
+ export interface OnEvent<TRes> {
13
+ <TEvent extends TypedEvent>(eventFilter: TypedEventFilter<TEvent>, listener: TypedListener<TEvent>): TRes;
14
+ (eventName: string, listener: Listener): TRes;
15
+ }
16
+ export type MinEthersFactory<C, ARGS> = {
17
+ deploy(...a: ARGS[]): Promise<C>;
18
+ };
19
+ export type GetContractTypeFromFactory<F> = F extends MinEthersFactory<infer C, any> ? C : never;
20
+ export type GetARGsTypeFromFactory<F> = F extends MinEthersFactory<any, any> ? Parameters<F["deploy"]> : never;
21
+ export {};
@@ -0,0 +1,475 @@
1
+ import { Signer } from "ethers";
2
+ import type { Provider } from "@ethersproject/providers";
3
+ import type { ComposableCoW, ComposableCoWInterface } from "../ComposableCoW";
4
+ export declare class ComposableCoW__factory {
5
+ static readonly abi: readonly [{
6
+ readonly inputs: readonly [{
7
+ readonly internalType: "address";
8
+ readonly name: "_settlement";
9
+ readonly type: "address";
10
+ }];
11
+ readonly stateMutability: "nonpayable";
12
+ readonly type: "constructor";
13
+ }, {
14
+ readonly inputs: readonly [];
15
+ readonly name: "InterfaceNotSupported";
16
+ readonly type: "error";
17
+ }, {
18
+ readonly inputs: readonly [];
19
+ readonly name: "InvalidHandler";
20
+ readonly type: "error";
21
+ }, {
22
+ readonly inputs: readonly [];
23
+ readonly name: "ProofNotAuthed";
24
+ readonly type: "error";
25
+ }, {
26
+ readonly inputs: readonly [];
27
+ readonly name: "SingleOrderNotAuthed";
28
+ readonly type: "error";
29
+ }, {
30
+ readonly inputs: readonly [];
31
+ readonly name: "SwapGuardRestricted";
32
+ readonly type: "error";
33
+ }, {
34
+ readonly anonymous: false;
35
+ readonly inputs: readonly [{
36
+ readonly indexed: true;
37
+ readonly internalType: "address";
38
+ readonly name: "owner";
39
+ readonly type: "address";
40
+ }, {
41
+ readonly components: readonly [{
42
+ readonly internalType: "contract IConditionalOrder";
43
+ readonly name: "handler";
44
+ readonly type: "address";
45
+ }, {
46
+ readonly internalType: "bytes32";
47
+ readonly name: "salt";
48
+ readonly type: "bytes32";
49
+ }, {
50
+ readonly internalType: "bytes";
51
+ readonly name: "staticInput";
52
+ readonly type: "bytes";
53
+ }];
54
+ readonly indexed: false;
55
+ readonly internalType: "struct IConditionalOrder.ConditionalOrderParams";
56
+ readonly name: "params";
57
+ readonly type: "tuple";
58
+ }];
59
+ readonly name: "ConditionalOrderCreated";
60
+ readonly type: "event";
61
+ }, {
62
+ readonly anonymous: false;
63
+ readonly inputs: readonly [{
64
+ readonly indexed: true;
65
+ readonly internalType: "address";
66
+ readonly name: "owner";
67
+ readonly type: "address";
68
+ }, {
69
+ readonly indexed: false;
70
+ readonly internalType: "bytes32";
71
+ readonly name: "root";
72
+ readonly type: "bytes32";
73
+ }, {
74
+ readonly components: readonly [{
75
+ readonly internalType: "uint256";
76
+ readonly name: "location";
77
+ readonly type: "uint256";
78
+ }, {
79
+ readonly internalType: "bytes";
80
+ readonly name: "data";
81
+ readonly type: "bytes";
82
+ }];
83
+ readonly indexed: false;
84
+ readonly internalType: "struct ComposableCoW.Proof";
85
+ readonly name: "proof";
86
+ readonly type: "tuple";
87
+ }];
88
+ readonly name: "MerkleRootSet";
89
+ readonly type: "event";
90
+ }, {
91
+ readonly anonymous: false;
92
+ readonly inputs: readonly [{
93
+ readonly indexed: true;
94
+ readonly internalType: "address";
95
+ readonly name: "owner";
96
+ readonly type: "address";
97
+ }, {
98
+ readonly indexed: false;
99
+ readonly internalType: "contract ISwapGuard";
100
+ readonly name: "swapGuard";
101
+ readonly type: "address";
102
+ }];
103
+ readonly name: "SwapGuardSet";
104
+ readonly type: "event";
105
+ }, {
106
+ readonly inputs: readonly [{
107
+ readonly internalType: "address";
108
+ readonly name: "";
109
+ readonly type: "address";
110
+ }, {
111
+ readonly internalType: "bytes32";
112
+ readonly name: "";
113
+ readonly type: "bytes32";
114
+ }];
115
+ readonly name: "cabinet";
116
+ readonly outputs: readonly [{
117
+ readonly internalType: "bytes32";
118
+ readonly name: "";
119
+ readonly type: "bytes32";
120
+ }];
121
+ readonly stateMutability: "view";
122
+ readonly type: "function";
123
+ }, {
124
+ readonly inputs: readonly [{
125
+ readonly components: readonly [{
126
+ readonly internalType: "contract IConditionalOrder";
127
+ readonly name: "handler";
128
+ readonly type: "address";
129
+ }, {
130
+ readonly internalType: "bytes32";
131
+ readonly name: "salt";
132
+ readonly type: "bytes32";
133
+ }, {
134
+ readonly internalType: "bytes";
135
+ readonly name: "staticInput";
136
+ readonly type: "bytes";
137
+ }];
138
+ readonly internalType: "struct IConditionalOrder.ConditionalOrderParams";
139
+ readonly name: "params";
140
+ readonly type: "tuple";
141
+ }, {
142
+ readonly internalType: "bool";
143
+ readonly name: "dispatch";
144
+ readonly type: "bool";
145
+ }];
146
+ readonly name: "create";
147
+ readonly outputs: readonly [];
148
+ readonly stateMutability: "nonpayable";
149
+ readonly type: "function";
150
+ }, {
151
+ readonly inputs: readonly [{
152
+ readonly components: readonly [{
153
+ readonly internalType: "contract IConditionalOrder";
154
+ readonly name: "handler";
155
+ readonly type: "address";
156
+ }, {
157
+ readonly internalType: "bytes32";
158
+ readonly name: "salt";
159
+ readonly type: "bytes32";
160
+ }, {
161
+ readonly internalType: "bytes";
162
+ readonly name: "staticInput";
163
+ readonly type: "bytes";
164
+ }];
165
+ readonly internalType: "struct IConditionalOrder.ConditionalOrderParams";
166
+ readonly name: "params";
167
+ readonly type: "tuple";
168
+ }, {
169
+ readonly internalType: "contract IValueFactory";
170
+ readonly name: "factory";
171
+ readonly type: "address";
172
+ }, {
173
+ readonly internalType: "bytes";
174
+ readonly name: "data";
175
+ readonly type: "bytes";
176
+ }, {
177
+ readonly internalType: "bool";
178
+ readonly name: "dispatch";
179
+ readonly type: "bool";
180
+ }];
181
+ readonly name: "createWithContext";
182
+ readonly outputs: readonly [];
183
+ readonly stateMutability: "nonpayable";
184
+ readonly type: "function";
185
+ }, {
186
+ readonly inputs: readonly [];
187
+ readonly name: "domainSeparator";
188
+ readonly outputs: readonly [{
189
+ readonly internalType: "bytes32";
190
+ readonly name: "";
191
+ readonly type: "bytes32";
192
+ }];
193
+ readonly stateMutability: "view";
194
+ readonly type: "function";
195
+ }, {
196
+ readonly inputs: readonly [{
197
+ readonly internalType: "address";
198
+ readonly name: "owner";
199
+ readonly type: "address";
200
+ }, {
201
+ readonly components: readonly [{
202
+ readonly internalType: "contract IConditionalOrder";
203
+ readonly name: "handler";
204
+ readonly type: "address";
205
+ }, {
206
+ readonly internalType: "bytes32";
207
+ readonly name: "salt";
208
+ readonly type: "bytes32";
209
+ }, {
210
+ readonly internalType: "bytes";
211
+ readonly name: "staticInput";
212
+ readonly type: "bytes";
213
+ }];
214
+ readonly internalType: "struct IConditionalOrder.ConditionalOrderParams";
215
+ readonly name: "params";
216
+ readonly type: "tuple";
217
+ }, {
218
+ readonly internalType: "bytes";
219
+ readonly name: "offchainInput";
220
+ readonly type: "bytes";
221
+ }, {
222
+ readonly internalType: "bytes32[]";
223
+ readonly name: "proof";
224
+ readonly type: "bytes32[]";
225
+ }];
226
+ readonly name: "getTradeableOrderWithSignature";
227
+ readonly outputs: readonly [{
228
+ readonly components: readonly [{
229
+ readonly internalType: "contract IERC20";
230
+ readonly name: "sellToken";
231
+ readonly type: "address";
232
+ }, {
233
+ readonly internalType: "contract IERC20";
234
+ readonly name: "buyToken";
235
+ readonly type: "address";
236
+ }, {
237
+ readonly internalType: "address";
238
+ readonly name: "receiver";
239
+ readonly type: "address";
240
+ }, {
241
+ readonly internalType: "uint256";
242
+ readonly name: "sellAmount";
243
+ readonly type: "uint256";
244
+ }, {
245
+ readonly internalType: "uint256";
246
+ readonly name: "buyAmount";
247
+ readonly type: "uint256";
248
+ }, {
249
+ readonly internalType: "uint32";
250
+ readonly name: "validTo";
251
+ readonly type: "uint32";
252
+ }, {
253
+ readonly internalType: "bytes32";
254
+ readonly name: "appData";
255
+ readonly type: "bytes32";
256
+ }, {
257
+ readonly internalType: "uint256";
258
+ readonly name: "feeAmount";
259
+ readonly type: "uint256";
260
+ }, {
261
+ readonly internalType: "bytes32";
262
+ readonly name: "kind";
263
+ readonly type: "bytes32";
264
+ }, {
265
+ readonly internalType: "bool";
266
+ readonly name: "partiallyFillable";
267
+ readonly type: "bool";
268
+ }, {
269
+ readonly internalType: "bytes32";
270
+ readonly name: "sellTokenBalance";
271
+ readonly type: "bytes32";
272
+ }, {
273
+ readonly internalType: "bytes32";
274
+ readonly name: "buyTokenBalance";
275
+ readonly type: "bytes32";
276
+ }];
277
+ readonly internalType: "struct GPv2Order.Data";
278
+ readonly name: "order";
279
+ readonly type: "tuple";
280
+ }, {
281
+ readonly internalType: "bytes";
282
+ readonly name: "signature";
283
+ readonly type: "bytes";
284
+ }];
285
+ readonly stateMutability: "view";
286
+ readonly type: "function";
287
+ }, {
288
+ readonly inputs: readonly [{
289
+ readonly components: readonly [{
290
+ readonly internalType: "contract IConditionalOrder";
291
+ readonly name: "handler";
292
+ readonly type: "address";
293
+ }, {
294
+ readonly internalType: "bytes32";
295
+ readonly name: "salt";
296
+ readonly type: "bytes32";
297
+ }, {
298
+ readonly internalType: "bytes";
299
+ readonly name: "staticInput";
300
+ readonly type: "bytes";
301
+ }];
302
+ readonly internalType: "struct IConditionalOrder.ConditionalOrderParams";
303
+ readonly name: "params";
304
+ readonly type: "tuple";
305
+ }];
306
+ readonly name: "hash";
307
+ readonly outputs: readonly [{
308
+ readonly internalType: "bytes32";
309
+ readonly name: "";
310
+ readonly type: "bytes32";
311
+ }];
312
+ readonly stateMutability: "pure";
313
+ readonly type: "function";
314
+ }, {
315
+ readonly inputs: readonly [{
316
+ readonly internalType: "contract Safe";
317
+ readonly name: "safe";
318
+ readonly type: "address";
319
+ }, {
320
+ readonly internalType: "address";
321
+ readonly name: "sender";
322
+ readonly type: "address";
323
+ }, {
324
+ readonly internalType: "bytes32";
325
+ readonly name: "_hash";
326
+ readonly type: "bytes32";
327
+ }, {
328
+ readonly internalType: "bytes32";
329
+ readonly name: "_domainSeparator";
330
+ readonly type: "bytes32";
331
+ }, {
332
+ readonly internalType: "bytes32";
333
+ readonly name: "";
334
+ readonly type: "bytes32";
335
+ }, {
336
+ readonly internalType: "bytes";
337
+ readonly name: "encodeData";
338
+ readonly type: "bytes";
339
+ }, {
340
+ readonly internalType: "bytes";
341
+ readonly name: "payload";
342
+ readonly type: "bytes";
343
+ }];
344
+ readonly name: "isValidSafeSignature";
345
+ readonly outputs: readonly [{
346
+ readonly internalType: "bytes4";
347
+ readonly name: "magic";
348
+ readonly type: "bytes4";
349
+ }];
350
+ readonly stateMutability: "view";
351
+ readonly type: "function";
352
+ }, {
353
+ readonly inputs: readonly [{
354
+ readonly internalType: "bytes32";
355
+ readonly name: "singleOrderHash";
356
+ readonly type: "bytes32";
357
+ }];
358
+ readonly name: "remove";
359
+ readonly outputs: readonly [];
360
+ readonly stateMutability: "nonpayable";
361
+ readonly type: "function";
362
+ }, {
363
+ readonly inputs: readonly [{
364
+ readonly internalType: "address";
365
+ readonly name: "";
366
+ readonly type: "address";
367
+ }];
368
+ readonly name: "roots";
369
+ readonly outputs: readonly [{
370
+ readonly internalType: "bytes32";
371
+ readonly name: "";
372
+ readonly type: "bytes32";
373
+ }];
374
+ readonly stateMutability: "view";
375
+ readonly type: "function";
376
+ }, {
377
+ readonly inputs: readonly [{
378
+ readonly internalType: "bytes32";
379
+ readonly name: "root";
380
+ readonly type: "bytes32";
381
+ }, {
382
+ readonly components: readonly [{
383
+ readonly internalType: "uint256";
384
+ readonly name: "location";
385
+ readonly type: "uint256";
386
+ }, {
387
+ readonly internalType: "bytes";
388
+ readonly name: "data";
389
+ readonly type: "bytes";
390
+ }];
391
+ readonly internalType: "struct ComposableCoW.Proof";
392
+ readonly name: "proof";
393
+ readonly type: "tuple";
394
+ }];
395
+ readonly name: "setRoot";
396
+ readonly outputs: readonly [];
397
+ readonly stateMutability: "nonpayable";
398
+ readonly type: "function";
399
+ }, {
400
+ readonly inputs: readonly [{
401
+ readonly internalType: "bytes32";
402
+ readonly name: "root";
403
+ readonly type: "bytes32";
404
+ }, {
405
+ readonly components: readonly [{
406
+ readonly internalType: "uint256";
407
+ readonly name: "location";
408
+ readonly type: "uint256";
409
+ }, {
410
+ readonly internalType: "bytes";
411
+ readonly name: "data";
412
+ readonly type: "bytes";
413
+ }];
414
+ readonly internalType: "struct ComposableCoW.Proof";
415
+ readonly name: "proof";
416
+ readonly type: "tuple";
417
+ }, {
418
+ readonly internalType: "contract IValueFactory";
419
+ readonly name: "factory";
420
+ readonly type: "address";
421
+ }, {
422
+ readonly internalType: "bytes";
423
+ readonly name: "data";
424
+ readonly type: "bytes";
425
+ }];
426
+ readonly name: "setRootWithContext";
427
+ readonly outputs: readonly [];
428
+ readonly stateMutability: "nonpayable";
429
+ readonly type: "function";
430
+ }, {
431
+ readonly inputs: readonly [{
432
+ readonly internalType: "contract ISwapGuard";
433
+ readonly name: "swapGuard";
434
+ readonly type: "address";
435
+ }];
436
+ readonly name: "setSwapGuard";
437
+ readonly outputs: readonly [];
438
+ readonly stateMutability: "nonpayable";
439
+ readonly type: "function";
440
+ }, {
441
+ readonly inputs: readonly [{
442
+ readonly internalType: "address";
443
+ readonly name: "";
444
+ readonly type: "address";
445
+ }, {
446
+ readonly internalType: "bytes32";
447
+ readonly name: "";
448
+ readonly type: "bytes32";
449
+ }];
450
+ readonly name: "singleOrders";
451
+ readonly outputs: readonly [{
452
+ readonly internalType: "bool";
453
+ readonly name: "";
454
+ readonly type: "bool";
455
+ }];
456
+ readonly stateMutability: "view";
457
+ readonly type: "function";
458
+ }, {
459
+ readonly inputs: readonly [{
460
+ readonly internalType: "address";
461
+ readonly name: "";
462
+ readonly type: "address";
463
+ }];
464
+ readonly name: "swapGuards";
465
+ readonly outputs: readonly [{
466
+ readonly internalType: "contract ISwapGuard";
467
+ readonly name: "";
468
+ readonly type: "address";
469
+ }];
470
+ readonly stateMutability: "view";
471
+ readonly type: "function";
472
+ }];
473
+ static createInterface(): ComposableCoWInterface;
474
+ static connect(address: string, signerOrProvider: Signer | Provider): ComposableCoW;
475
+ }