@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.
- package/dist/composable/generated/ComposableCoW.d.ts +340 -0
- package/dist/composable/generated/ExtensibleFallbackHandler.d.ts +282 -0
- package/dist/composable/generated/TWAP.d.ts +141 -0
- package/dist/composable/generated/common.d.ts +21 -0
- package/dist/composable/generated/factories/ComposableCoW__factory.d.ts +475 -0
- package/dist/composable/generated/factories/ExtensibleFallbackHandler__factory.d.ts +389 -0
- package/dist/composable/generated/factories/TWAP__factory.d.ts +260 -0
- package/dist/composable/generated/factories/index.d.ts +3 -0
- package/dist/composable/generated/index.d.ts +7 -0
- package/dist/order-book/generated/index.d.ts +1 -0
- package/dist/order-book/generated/models/ExecutedProtocolFee.d.ts +14 -0
- package/dist/order-book/generated/models/SolverSettlement.d.ts +0 -15
- package/dist/order-book/generated/models/Trade.d.ts +3 -3
- package/dist/package.json +2 -2
- package/package.json +2 -2
|
@@ -0,0 +1,389 @@
|
|
|
1
|
+
import { Signer } from "ethers";
|
|
2
|
+
import type { Provider } from "@ethersproject/providers";
|
|
3
|
+
import type { ExtensibleFallbackHandler, ExtensibleFallbackHandlerInterface } from "../ExtensibleFallbackHandler";
|
|
4
|
+
export declare class ExtensibleFallbackHandler__factory {
|
|
5
|
+
static readonly abi: readonly [{
|
|
6
|
+
readonly anonymous: false;
|
|
7
|
+
readonly inputs: readonly [{
|
|
8
|
+
readonly indexed: true;
|
|
9
|
+
readonly internalType: "contract Safe";
|
|
10
|
+
readonly name: "safe";
|
|
11
|
+
readonly type: "address";
|
|
12
|
+
}, {
|
|
13
|
+
readonly indexed: false;
|
|
14
|
+
readonly internalType: "bytes32";
|
|
15
|
+
readonly name: "domainSeparator";
|
|
16
|
+
readonly type: "bytes32";
|
|
17
|
+
}, {
|
|
18
|
+
readonly indexed: false;
|
|
19
|
+
readonly internalType: "contract ISafeSignatureVerifier";
|
|
20
|
+
readonly name: "verifier";
|
|
21
|
+
readonly type: "address";
|
|
22
|
+
}];
|
|
23
|
+
readonly name: "AddedDomainVerifier";
|
|
24
|
+
readonly type: "event";
|
|
25
|
+
}, {
|
|
26
|
+
readonly anonymous: false;
|
|
27
|
+
readonly inputs: readonly [{
|
|
28
|
+
readonly indexed: true;
|
|
29
|
+
readonly internalType: "contract Safe";
|
|
30
|
+
readonly name: "safe";
|
|
31
|
+
readonly type: "address";
|
|
32
|
+
}, {
|
|
33
|
+
readonly indexed: false;
|
|
34
|
+
readonly internalType: "bytes4";
|
|
35
|
+
readonly name: "interfaceId";
|
|
36
|
+
readonly type: "bytes4";
|
|
37
|
+
}];
|
|
38
|
+
readonly name: "AddedInterface";
|
|
39
|
+
readonly type: "event";
|
|
40
|
+
}, {
|
|
41
|
+
readonly anonymous: false;
|
|
42
|
+
readonly inputs: readonly [{
|
|
43
|
+
readonly indexed: true;
|
|
44
|
+
readonly internalType: "contract Safe";
|
|
45
|
+
readonly name: "safe";
|
|
46
|
+
readonly type: "address";
|
|
47
|
+
}, {
|
|
48
|
+
readonly indexed: false;
|
|
49
|
+
readonly internalType: "bytes4";
|
|
50
|
+
readonly name: "selector";
|
|
51
|
+
readonly type: "bytes4";
|
|
52
|
+
}, {
|
|
53
|
+
readonly indexed: false;
|
|
54
|
+
readonly internalType: "bytes32";
|
|
55
|
+
readonly name: "method";
|
|
56
|
+
readonly type: "bytes32";
|
|
57
|
+
}];
|
|
58
|
+
readonly name: "AddedSafeMethod";
|
|
59
|
+
readonly type: "event";
|
|
60
|
+
}, {
|
|
61
|
+
readonly anonymous: false;
|
|
62
|
+
readonly inputs: readonly [{
|
|
63
|
+
readonly indexed: true;
|
|
64
|
+
readonly internalType: "contract Safe";
|
|
65
|
+
readonly name: "safe";
|
|
66
|
+
readonly type: "address";
|
|
67
|
+
}, {
|
|
68
|
+
readonly indexed: false;
|
|
69
|
+
readonly internalType: "bytes32";
|
|
70
|
+
readonly name: "domainSeparator";
|
|
71
|
+
readonly type: "bytes32";
|
|
72
|
+
}, {
|
|
73
|
+
readonly indexed: false;
|
|
74
|
+
readonly internalType: "contract ISafeSignatureVerifier";
|
|
75
|
+
readonly name: "oldVerifier";
|
|
76
|
+
readonly type: "address";
|
|
77
|
+
}, {
|
|
78
|
+
readonly indexed: false;
|
|
79
|
+
readonly internalType: "contract ISafeSignatureVerifier";
|
|
80
|
+
readonly name: "newVerifier";
|
|
81
|
+
readonly type: "address";
|
|
82
|
+
}];
|
|
83
|
+
readonly name: "ChangedDomainVerifier";
|
|
84
|
+
readonly type: "event";
|
|
85
|
+
}, {
|
|
86
|
+
readonly anonymous: false;
|
|
87
|
+
readonly inputs: readonly [{
|
|
88
|
+
readonly indexed: true;
|
|
89
|
+
readonly internalType: "contract Safe";
|
|
90
|
+
readonly name: "safe";
|
|
91
|
+
readonly type: "address";
|
|
92
|
+
}, {
|
|
93
|
+
readonly indexed: false;
|
|
94
|
+
readonly internalType: "bytes4";
|
|
95
|
+
readonly name: "selector";
|
|
96
|
+
readonly type: "bytes4";
|
|
97
|
+
}, {
|
|
98
|
+
readonly indexed: false;
|
|
99
|
+
readonly internalType: "bytes32";
|
|
100
|
+
readonly name: "oldMethod";
|
|
101
|
+
readonly type: "bytes32";
|
|
102
|
+
}, {
|
|
103
|
+
readonly indexed: false;
|
|
104
|
+
readonly internalType: "bytes32";
|
|
105
|
+
readonly name: "newMethod";
|
|
106
|
+
readonly type: "bytes32";
|
|
107
|
+
}];
|
|
108
|
+
readonly name: "ChangedSafeMethod";
|
|
109
|
+
readonly type: "event";
|
|
110
|
+
}, {
|
|
111
|
+
readonly anonymous: false;
|
|
112
|
+
readonly inputs: readonly [{
|
|
113
|
+
readonly indexed: true;
|
|
114
|
+
readonly internalType: "contract Safe";
|
|
115
|
+
readonly name: "safe";
|
|
116
|
+
readonly type: "address";
|
|
117
|
+
}, {
|
|
118
|
+
readonly indexed: false;
|
|
119
|
+
readonly internalType: "bytes32";
|
|
120
|
+
readonly name: "domainSeparator";
|
|
121
|
+
readonly type: "bytes32";
|
|
122
|
+
}];
|
|
123
|
+
readonly name: "RemovedDomainVerifier";
|
|
124
|
+
readonly type: "event";
|
|
125
|
+
}, {
|
|
126
|
+
readonly anonymous: false;
|
|
127
|
+
readonly inputs: readonly [{
|
|
128
|
+
readonly indexed: true;
|
|
129
|
+
readonly internalType: "contract Safe";
|
|
130
|
+
readonly name: "safe";
|
|
131
|
+
readonly type: "address";
|
|
132
|
+
}, {
|
|
133
|
+
readonly indexed: false;
|
|
134
|
+
readonly internalType: "bytes4";
|
|
135
|
+
readonly name: "interfaceId";
|
|
136
|
+
readonly type: "bytes4";
|
|
137
|
+
}];
|
|
138
|
+
readonly name: "RemovedInterface";
|
|
139
|
+
readonly type: "event";
|
|
140
|
+
}, {
|
|
141
|
+
readonly anonymous: false;
|
|
142
|
+
readonly inputs: readonly [{
|
|
143
|
+
readonly indexed: true;
|
|
144
|
+
readonly internalType: "contract Safe";
|
|
145
|
+
readonly name: "safe";
|
|
146
|
+
readonly type: "address";
|
|
147
|
+
}, {
|
|
148
|
+
readonly indexed: false;
|
|
149
|
+
readonly internalType: "bytes4";
|
|
150
|
+
readonly name: "selector";
|
|
151
|
+
readonly type: "bytes4";
|
|
152
|
+
}];
|
|
153
|
+
readonly name: "RemovedSafeMethod";
|
|
154
|
+
readonly type: "event";
|
|
155
|
+
}, {
|
|
156
|
+
readonly stateMutability: "nonpayable";
|
|
157
|
+
readonly type: "fallback";
|
|
158
|
+
}, {
|
|
159
|
+
readonly inputs: readonly [{
|
|
160
|
+
readonly internalType: "contract Safe";
|
|
161
|
+
readonly name: "";
|
|
162
|
+
readonly type: "address";
|
|
163
|
+
}, {
|
|
164
|
+
readonly internalType: "bytes32";
|
|
165
|
+
readonly name: "";
|
|
166
|
+
readonly type: "bytes32";
|
|
167
|
+
}];
|
|
168
|
+
readonly name: "domainVerifiers";
|
|
169
|
+
readonly outputs: readonly [{
|
|
170
|
+
readonly internalType: "contract ISafeSignatureVerifier";
|
|
171
|
+
readonly name: "";
|
|
172
|
+
readonly type: "address";
|
|
173
|
+
}];
|
|
174
|
+
readonly stateMutability: "view";
|
|
175
|
+
readonly type: "function";
|
|
176
|
+
}, {
|
|
177
|
+
readonly inputs: readonly [{
|
|
178
|
+
readonly internalType: "bytes32";
|
|
179
|
+
readonly name: "_hash";
|
|
180
|
+
readonly type: "bytes32";
|
|
181
|
+
}, {
|
|
182
|
+
readonly internalType: "bytes";
|
|
183
|
+
readonly name: "signature";
|
|
184
|
+
readonly type: "bytes";
|
|
185
|
+
}];
|
|
186
|
+
readonly name: "isValidSignature";
|
|
187
|
+
readonly outputs: readonly [{
|
|
188
|
+
readonly internalType: "bytes4";
|
|
189
|
+
readonly name: "magic";
|
|
190
|
+
readonly type: "bytes4";
|
|
191
|
+
}];
|
|
192
|
+
readonly stateMutability: "view";
|
|
193
|
+
readonly type: "function";
|
|
194
|
+
}, {
|
|
195
|
+
readonly inputs: readonly [{
|
|
196
|
+
readonly internalType: "address";
|
|
197
|
+
readonly name: "";
|
|
198
|
+
readonly type: "address";
|
|
199
|
+
}, {
|
|
200
|
+
readonly internalType: "address";
|
|
201
|
+
readonly name: "";
|
|
202
|
+
readonly type: "address";
|
|
203
|
+
}, {
|
|
204
|
+
readonly internalType: "uint256[]";
|
|
205
|
+
readonly name: "";
|
|
206
|
+
readonly type: "uint256[]";
|
|
207
|
+
}, {
|
|
208
|
+
readonly internalType: "uint256[]";
|
|
209
|
+
readonly name: "";
|
|
210
|
+
readonly type: "uint256[]";
|
|
211
|
+
}, {
|
|
212
|
+
readonly internalType: "bytes";
|
|
213
|
+
readonly name: "";
|
|
214
|
+
readonly type: "bytes";
|
|
215
|
+
}];
|
|
216
|
+
readonly name: "onERC1155BatchReceived";
|
|
217
|
+
readonly outputs: readonly [{
|
|
218
|
+
readonly internalType: "bytes4";
|
|
219
|
+
readonly name: "";
|
|
220
|
+
readonly type: "bytes4";
|
|
221
|
+
}];
|
|
222
|
+
readonly stateMutability: "pure";
|
|
223
|
+
readonly type: "function";
|
|
224
|
+
}, {
|
|
225
|
+
readonly inputs: readonly [{
|
|
226
|
+
readonly internalType: "address";
|
|
227
|
+
readonly name: "";
|
|
228
|
+
readonly type: "address";
|
|
229
|
+
}, {
|
|
230
|
+
readonly internalType: "address";
|
|
231
|
+
readonly name: "";
|
|
232
|
+
readonly type: "address";
|
|
233
|
+
}, {
|
|
234
|
+
readonly internalType: "uint256";
|
|
235
|
+
readonly name: "";
|
|
236
|
+
readonly type: "uint256";
|
|
237
|
+
}, {
|
|
238
|
+
readonly internalType: "uint256";
|
|
239
|
+
readonly name: "";
|
|
240
|
+
readonly type: "uint256";
|
|
241
|
+
}, {
|
|
242
|
+
readonly internalType: "bytes";
|
|
243
|
+
readonly name: "";
|
|
244
|
+
readonly type: "bytes";
|
|
245
|
+
}];
|
|
246
|
+
readonly name: "onERC1155Received";
|
|
247
|
+
readonly outputs: readonly [{
|
|
248
|
+
readonly internalType: "bytes4";
|
|
249
|
+
readonly name: "";
|
|
250
|
+
readonly type: "bytes4";
|
|
251
|
+
}];
|
|
252
|
+
readonly stateMutability: "pure";
|
|
253
|
+
readonly type: "function";
|
|
254
|
+
}, {
|
|
255
|
+
readonly inputs: readonly [{
|
|
256
|
+
readonly internalType: "address";
|
|
257
|
+
readonly name: "";
|
|
258
|
+
readonly type: "address";
|
|
259
|
+
}, {
|
|
260
|
+
readonly internalType: "address";
|
|
261
|
+
readonly name: "";
|
|
262
|
+
readonly type: "address";
|
|
263
|
+
}, {
|
|
264
|
+
readonly internalType: "uint256";
|
|
265
|
+
readonly name: "";
|
|
266
|
+
readonly type: "uint256";
|
|
267
|
+
}, {
|
|
268
|
+
readonly internalType: "bytes";
|
|
269
|
+
readonly name: "";
|
|
270
|
+
readonly type: "bytes";
|
|
271
|
+
}];
|
|
272
|
+
readonly name: "onERC721Received";
|
|
273
|
+
readonly outputs: readonly [{
|
|
274
|
+
readonly internalType: "bytes4";
|
|
275
|
+
readonly name: "";
|
|
276
|
+
readonly type: "bytes4";
|
|
277
|
+
}];
|
|
278
|
+
readonly stateMutability: "pure";
|
|
279
|
+
readonly type: "function";
|
|
280
|
+
}, {
|
|
281
|
+
readonly inputs: readonly [{
|
|
282
|
+
readonly internalType: "contract Safe";
|
|
283
|
+
readonly name: "";
|
|
284
|
+
readonly type: "address";
|
|
285
|
+
}, {
|
|
286
|
+
readonly internalType: "bytes4";
|
|
287
|
+
readonly name: "";
|
|
288
|
+
readonly type: "bytes4";
|
|
289
|
+
}];
|
|
290
|
+
readonly name: "safeInterfaces";
|
|
291
|
+
readonly outputs: readonly [{
|
|
292
|
+
readonly internalType: "bool";
|
|
293
|
+
readonly name: "";
|
|
294
|
+
readonly type: "bool";
|
|
295
|
+
}];
|
|
296
|
+
readonly stateMutability: "view";
|
|
297
|
+
readonly type: "function";
|
|
298
|
+
}, {
|
|
299
|
+
readonly inputs: readonly [{
|
|
300
|
+
readonly internalType: "contract Safe";
|
|
301
|
+
readonly name: "";
|
|
302
|
+
readonly type: "address";
|
|
303
|
+
}, {
|
|
304
|
+
readonly internalType: "bytes4";
|
|
305
|
+
readonly name: "";
|
|
306
|
+
readonly type: "bytes4";
|
|
307
|
+
}];
|
|
308
|
+
readonly name: "safeMethods";
|
|
309
|
+
readonly outputs: readonly [{
|
|
310
|
+
readonly internalType: "bytes32";
|
|
311
|
+
readonly name: "";
|
|
312
|
+
readonly type: "bytes32";
|
|
313
|
+
}];
|
|
314
|
+
readonly stateMutability: "view";
|
|
315
|
+
readonly type: "function";
|
|
316
|
+
}, {
|
|
317
|
+
readonly inputs: readonly [{
|
|
318
|
+
readonly internalType: "bytes32";
|
|
319
|
+
readonly name: "domainSeparator";
|
|
320
|
+
readonly type: "bytes32";
|
|
321
|
+
}, {
|
|
322
|
+
readonly internalType: "contract ISafeSignatureVerifier";
|
|
323
|
+
readonly name: "newVerifier";
|
|
324
|
+
readonly type: "address";
|
|
325
|
+
}];
|
|
326
|
+
readonly name: "setDomainVerifier";
|
|
327
|
+
readonly outputs: readonly [];
|
|
328
|
+
readonly stateMutability: "nonpayable";
|
|
329
|
+
readonly type: "function";
|
|
330
|
+
}, {
|
|
331
|
+
readonly inputs: readonly [{
|
|
332
|
+
readonly internalType: "bytes4";
|
|
333
|
+
readonly name: "selector";
|
|
334
|
+
readonly type: "bytes4";
|
|
335
|
+
}, {
|
|
336
|
+
readonly internalType: "bytes32";
|
|
337
|
+
readonly name: "newMethod";
|
|
338
|
+
readonly type: "bytes32";
|
|
339
|
+
}];
|
|
340
|
+
readonly name: "setSafeMethod";
|
|
341
|
+
readonly outputs: readonly [];
|
|
342
|
+
readonly stateMutability: "nonpayable";
|
|
343
|
+
readonly type: "function";
|
|
344
|
+
}, {
|
|
345
|
+
readonly inputs: readonly [{
|
|
346
|
+
readonly internalType: "bytes4";
|
|
347
|
+
readonly name: "interfaceId";
|
|
348
|
+
readonly type: "bytes4";
|
|
349
|
+
}, {
|
|
350
|
+
readonly internalType: "bool";
|
|
351
|
+
readonly name: "supported";
|
|
352
|
+
readonly type: "bool";
|
|
353
|
+
}];
|
|
354
|
+
readonly name: "setSupportedInterface";
|
|
355
|
+
readonly outputs: readonly [];
|
|
356
|
+
readonly stateMutability: "nonpayable";
|
|
357
|
+
readonly type: "function";
|
|
358
|
+
}, {
|
|
359
|
+
readonly inputs: readonly [{
|
|
360
|
+
readonly internalType: "bytes4";
|
|
361
|
+
readonly name: "_interfaceId";
|
|
362
|
+
readonly type: "bytes4";
|
|
363
|
+
}, {
|
|
364
|
+
readonly internalType: "bytes32[]";
|
|
365
|
+
readonly name: "handlerWithSelectors";
|
|
366
|
+
readonly type: "bytes32[]";
|
|
367
|
+
}];
|
|
368
|
+
readonly name: "setSupportedInterfaceBatch";
|
|
369
|
+
readonly outputs: readonly [];
|
|
370
|
+
readonly stateMutability: "nonpayable";
|
|
371
|
+
readonly type: "function";
|
|
372
|
+
}, {
|
|
373
|
+
readonly inputs: readonly [{
|
|
374
|
+
readonly internalType: "bytes4";
|
|
375
|
+
readonly name: "interfaceId";
|
|
376
|
+
readonly type: "bytes4";
|
|
377
|
+
}];
|
|
378
|
+
readonly name: "supportsInterface";
|
|
379
|
+
readonly outputs: readonly [{
|
|
380
|
+
readonly internalType: "bool";
|
|
381
|
+
readonly name: "";
|
|
382
|
+
readonly type: "bool";
|
|
383
|
+
}];
|
|
384
|
+
readonly stateMutability: "view";
|
|
385
|
+
readonly type: "function";
|
|
386
|
+
}];
|
|
387
|
+
static createInterface(): ExtensibleFallbackHandlerInterface;
|
|
388
|
+
static connect(address: string, signerOrProvider: Signer | Provider): ExtensibleFallbackHandler;
|
|
389
|
+
}
|
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
import { Signer } from "ethers";
|
|
2
|
+
import type { Provider } from "@ethersproject/providers";
|
|
3
|
+
import type { TWAP, TWAPInterface } from "../TWAP";
|
|
4
|
+
export declare class TWAP__factory {
|
|
5
|
+
static readonly abi: readonly [{
|
|
6
|
+
readonly inputs: readonly [{
|
|
7
|
+
readonly internalType: "contract ComposableCoW";
|
|
8
|
+
readonly name: "_composableCow";
|
|
9
|
+
readonly type: "address";
|
|
10
|
+
}];
|
|
11
|
+
readonly stateMutability: "nonpayable";
|
|
12
|
+
readonly type: "constructor";
|
|
13
|
+
}, {
|
|
14
|
+
readonly inputs: readonly [];
|
|
15
|
+
readonly name: "InvalidFrequency";
|
|
16
|
+
readonly type: "error";
|
|
17
|
+
}, {
|
|
18
|
+
readonly inputs: readonly [];
|
|
19
|
+
readonly name: "InvalidMinPartLimit";
|
|
20
|
+
readonly type: "error";
|
|
21
|
+
}, {
|
|
22
|
+
readonly inputs: readonly [];
|
|
23
|
+
readonly name: "InvalidNumParts";
|
|
24
|
+
readonly type: "error";
|
|
25
|
+
}, {
|
|
26
|
+
readonly inputs: readonly [];
|
|
27
|
+
readonly name: "InvalidPartSellAmount";
|
|
28
|
+
readonly type: "error";
|
|
29
|
+
}, {
|
|
30
|
+
readonly inputs: readonly [];
|
|
31
|
+
readonly name: "InvalidSameToken";
|
|
32
|
+
readonly type: "error";
|
|
33
|
+
}, {
|
|
34
|
+
readonly inputs: readonly [];
|
|
35
|
+
readonly name: "InvalidSpan";
|
|
36
|
+
readonly type: "error";
|
|
37
|
+
}, {
|
|
38
|
+
readonly inputs: readonly [];
|
|
39
|
+
readonly name: "InvalidStartTime";
|
|
40
|
+
readonly type: "error";
|
|
41
|
+
}, {
|
|
42
|
+
readonly inputs: readonly [];
|
|
43
|
+
readonly name: "InvalidToken";
|
|
44
|
+
readonly type: "error";
|
|
45
|
+
}, {
|
|
46
|
+
readonly inputs: readonly [];
|
|
47
|
+
readonly name: "OrderNotValid";
|
|
48
|
+
readonly type: "error";
|
|
49
|
+
}, {
|
|
50
|
+
readonly anonymous: false;
|
|
51
|
+
readonly inputs: readonly [{
|
|
52
|
+
readonly indexed: true;
|
|
53
|
+
readonly internalType: "address";
|
|
54
|
+
readonly name: "owner";
|
|
55
|
+
readonly type: "address";
|
|
56
|
+
}, {
|
|
57
|
+
readonly components: readonly [{
|
|
58
|
+
readonly internalType: "contract IConditionalOrder";
|
|
59
|
+
readonly name: "handler";
|
|
60
|
+
readonly type: "address";
|
|
61
|
+
}, {
|
|
62
|
+
readonly internalType: "bytes32";
|
|
63
|
+
readonly name: "salt";
|
|
64
|
+
readonly type: "bytes32";
|
|
65
|
+
}, {
|
|
66
|
+
readonly internalType: "bytes";
|
|
67
|
+
readonly name: "staticInput";
|
|
68
|
+
readonly type: "bytes";
|
|
69
|
+
}];
|
|
70
|
+
readonly indexed: false;
|
|
71
|
+
readonly internalType: "struct IConditionalOrder.ConditionalOrderParams";
|
|
72
|
+
readonly name: "params";
|
|
73
|
+
readonly type: "tuple";
|
|
74
|
+
}];
|
|
75
|
+
readonly name: "ConditionalOrderCreated";
|
|
76
|
+
readonly type: "event";
|
|
77
|
+
}, {
|
|
78
|
+
readonly inputs: readonly [{
|
|
79
|
+
readonly internalType: "address";
|
|
80
|
+
readonly name: "owner";
|
|
81
|
+
readonly type: "address";
|
|
82
|
+
}, {
|
|
83
|
+
readonly internalType: "address";
|
|
84
|
+
readonly name: "";
|
|
85
|
+
readonly type: "address";
|
|
86
|
+
}, {
|
|
87
|
+
readonly internalType: "bytes32";
|
|
88
|
+
readonly name: "ctx";
|
|
89
|
+
readonly type: "bytes32";
|
|
90
|
+
}, {
|
|
91
|
+
readonly internalType: "bytes";
|
|
92
|
+
readonly name: "staticInput";
|
|
93
|
+
readonly type: "bytes";
|
|
94
|
+
}, {
|
|
95
|
+
readonly internalType: "bytes";
|
|
96
|
+
readonly name: "";
|
|
97
|
+
readonly type: "bytes";
|
|
98
|
+
}];
|
|
99
|
+
readonly name: "getTradeableOrder";
|
|
100
|
+
readonly outputs: readonly [{
|
|
101
|
+
readonly components: readonly [{
|
|
102
|
+
readonly internalType: "contract IERC20";
|
|
103
|
+
readonly name: "sellToken";
|
|
104
|
+
readonly type: "address";
|
|
105
|
+
}, {
|
|
106
|
+
readonly internalType: "contract IERC20";
|
|
107
|
+
readonly name: "buyToken";
|
|
108
|
+
readonly type: "address";
|
|
109
|
+
}, {
|
|
110
|
+
readonly internalType: "address";
|
|
111
|
+
readonly name: "receiver";
|
|
112
|
+
readonly type: "address";
|
|
113
|
+
}, {
|
|
114
|
+
readonly internalType: "uint256";
|
|
115
|
+
readonly name: "sellAmount";
|
|
116
|
+
readonly type: "uint256";
|
|
117
|
+
}, {
|
|
118
|
+
readonly internalType: "uint256";
|
|
119
|
+
readonly name: "buyAmount";
|
|
120
|
+
readonly type: "uint256";
|
|
121
|
+
}, {
|
|
122
|
+
readonly internalType: "uint32";
|
|
123
|
+
readonly name: "validTo";
|
|
124
|
+
readonly type: "uint32";
|
|
125
|
+
}, {
|
|
126
|
+
readonly internalType: "bytes32";
|
|
127
|
+
readonly name: "appData";
|
|
128
|
+
readonly type: "bytes32";
|
|
129
|
+
}, {
|
|
130
|
+
readonly internalType: "uint256";
|
|
131
|
+
readonly name: "feeAmount";
|
|
132
|
+
readonly type: "uint256";
|
|
133
|
+
}, {
|
|
134
|
+
readonly internalType: "bytes32";
|
|
135
|
+
readonly name: "kind";
|
|
136
|
+
readonly type: "bytes32";
|
|
137
|
+
}, {
|
|
138
|
+
readonly internalType: "bool";
|
|
139
|
+
readonly name: "partiallyFillable";
|
|
140
|
+
readonly type: "bool";
|
|
141
|
+
}, {
|
|
142
|
+
readonly internalType: "bytes32";
|
|
143
|
+
readonly name: "sellTokenBalance";
|
|
144
|
+
readonly type: "bytes32";
|
|
145
|
+
}, {
|
|
146
|
+
readonly internalType: "bytes32";
|
|
147
|
+
readonly name: "buyTokenBalance";
|
|
148
|
+
readonly type: "bytes32";
|
|
149
|
+
}];
|
|
150
|
+
readonly internalType: "struct GPv2Order.Data";
|
|
151
|
+
readonly name: "order";
|
|
152
|
+
readonly type: "tuple";
|
|
153
|
+
}];
|
|
154
|
+
readonly stateMutability: "view";
|
|
155
|
+
readonly type: "function";
|
|
156
|
+
}, {
|
|
157
|
+
readonly inputs: readonly [{
|
|
158
|
+
readonly internalType: "bytes4";
|
|
159
|
+
readonly name: "interfaceId";
|
|
160
|
+
readonly type: "bytes4";
|
|
161
|
+
}];
|
|
162
|
+
readonly name: "supportsInterface";
|
|
163
|
+
readonly outputs: readonly [{
|
|
164
|
+
readonly internalType: "bool";
|
|
165
|
+
readonly name: "";
|
|
166
|
+
readonly type: "bool";
|
|
167
|
+
}];
|
|
168
|
+
readonly stateMutability: "view";
|
|
169
|
+
readonly type: "function";
|
|
170
|
+
}, {
|
|
171
|
+
readonly inputs: readonly [{
|
|
172
|
+
readonly internalType: "address";
|
|
173
|
+
readonly name: "owner";
|
|
174
|
+
readonly type: "address";
|
|
175
|
+
}, {
|
|
176
|
+
readonly internalType: "address";
|
|
177
|
+
readonly name: "sender";
|
|
178
|
+
readonly type: "address";
|
|
179
|
+
}, {
|
|
180
|
+
readonly internalType: "bytes32";
|
|
181
|
+
readonly name: "_hash";
|
|
182
|
+
readonly type: "bytes32";
|
|
183
|
+
}, {
|
|
184
|
+
readonly internalType: "bytes32";
|
|
185
|
+
readonly name: "domainSeparator";
|
|
186
|
+
readonly type: "bytes32";
|
|
187
|
+
}, {
|
|
188
|
+
readonly internalType: "bytes32";
|
|
189
|
+
readonly name: "ctx";
|
|
190
|
+
readonly type: "bytes32";
|
|
191
|
+
}, {
|
|
192
|
+
readonly internalType: "bytes";
|
|
193
|
+
readonly name: "staticInput";
|
|
194
|
+
readonly type: "bytes";
|
|
195
|
+
}, {
|
|
196
|
+
readonly internalType: "bytes";
|
|
197
|
+
readonly name: "offchainInput";
|
|
198
|
+
readonly type: "bytes";
|
|
199
|
+
}, {
|
|
200
|
+
readonly components: readonly [{
|
|
201
|
+
readonly internalType: "contract IERC20";
|
|
202
|
+
readonly name: "sellToken";
|
|
203
|
+
readonly type: "address";
|
|
204
|
+
}, {
|
|
205
|
+
readonly internalType: "contract IERC20";
|
|
206
|
+
readonly name: "buyToken";
|
|
207
|
+
readonly type: "address";
|
|
208
|
+
}, {
|
|
209
|
+
readonly internalType: "address";
|
|
210
|
+
readonly name: "receiver";
|
|
211
|
+
readonly type: "address";
|
|
212
|
+
}, {
|
|
213
|
+
readonly internalType: "uint256";
|
|
214
|
+
readonly name: "sellAmount";
|
|
215
|
+
readonly type: "uint256";
|
|
216
|
+
}, {
|
|
217
|
+
readonly internalType: "uint256";
|
|
218
|
+
readonly name: "buyAmount";
|
|
219
|
+
readonly type: "uint256";
|
|
220
|
+
}, {
|
|
221
|
+
readonly internalType: "uint32";
|
|
222
|
+
readonly name: "validTo";
|
|
223
|
+
readonly type: "uint32";
|
|
224
|
+
}, {
|
|
225
|
+
readonly internalType: "bytes32";
|
|
226
|
+
readonly name: "appData";
|
|
227
|
+
readonly type: "bytes32";
|
|
228
|
+
}, {
|
|
229
|
+
readonly internalType: "uint256";
|
|
230
|
+
readonly name: "feeAmount";
|
|
231
|
+
readonly type: "uint256";
|
|
232
|
+
}, {
|
|
233
|
+
readonly internalType: "bytes32";
|
|
234
|
+
readonly name: "kind";
|
|
235
|
+
readonly type: "bytes32";
|
|
236
|
+
}, {
|
|
237
|
+
readonly internalType: "bool";
|
|
238
|
+
readonly name: "partiallyFillable";
|
|
239
|
+
readonly type: "bool";
|
|
240
|
+
}, {
|
|
241
|
+
readonly internalType: "bytes32";
|
|
242
|
+
readonly name: "sellTokenBalance";
|
|
243
|
+
readonly type: "bytes32";
|
|
244
|
+
}, {
|
|
245
|
+
readonly internalType: "bytes32";
|
|
246
|
+
readonly name: "buyTokenBalance";
|
|
247
|
+
readonly type: "bytes32";
|
|
248
|
+
}];
|
|
249
|
+
readonly internalType: "struct GPv2Order.Data";
|
|
250
|
+
readonly name: "";
|
|
251
|
+
readonly type: "tuple";
|
|
252
|
+
}];
|
|
253
|
+
readonly name: "verify";
|
|
254
|
+
readonly outputs: readonly [];
|
|
255
|
+
readonly stateMutability: "view";
|
|
256
|
+
readonly type: "function";
|
|
257
|
+
}];
|
|
258
|
+
static createInterface(): TWAPInterface;
|
|
259
|
+
static connect(address: string, signerOrProvider: Signer | Provider): TWAP;
|
|
260
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export type { ComposableCoW } from "./ComposableCoW";
|
|
2
|
+
export type { ExtensibleFallbackHandler } from "./ExtensibleFallbackHandler";
|
|
3
|
+
export type { TWAP } from "./TWAP";
|
|
4
|
+
export * as factories from "./factories";
|
|
5
|
+
export { ComposableCoW__factory } from "./factories/ComposableCoW__factory";
|
|
6
|
+
export { ExtensibleFallbackHandler__factory } from "./factories/ExtensibleFallbackHandler__factory";
|
|
7
|
+
export { TWAP__factory } from "./factories/TWAP__factory";
|
|
@@ -14,6 +14,7 @@ export type { EcdsaSignature } from './models/EcdsaSignature';
|
|
|
14
14
|
export { EcdsaSigningScheme } from './models/EcdsaSigningScheme';
|
|
15
15
|
export type { EthflowData } from './models/EthflowData';
|
|
16
16
|
export type { ExecutedAmounts } from './models/ExecutedAmounts';
|
|
17
|
+
export type { ExecutedProtocolFee } from './models/ExecutedProtocolFee';
|
|
17
18
|
export type { FeePolicy } from './models/FeePolicy';
|
|
18
19
|
export type { InteractionData } from './models/InteractionData';
|
|
19
20
|
export type { NativePriceResponse } from './models/NativePriceResponse';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Address } from './Address';
|
|
2
|
+
import type { FeePolicy } from './FeePolicy';
|
|
3
|
+
import type { TokenAmount } from './TokenAmount';
|
|
4
|
+
export type ExecutedProtocolFee = {
|
|
5
|
+
policy?: FeePolicy;
|
|
6
|
+
/**
|
|
7
|
+
* Fee amount taken
|
|
8
|
+
*/
|
|
9
|
+
amount?: TokenAmount;
|
|
10
|
+
/**
|
|
11
|
+
* The token in which the fee is taken
|
|
12
|
+
*/
|
|
13
|
+
token?: Address;
|
|
14
|
+
};
|