@0xmonaco/contracts 1.0.50 → 1.0.53
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/abis/sweeper.d.ts +212 -8
- package/dist/abis/sweeper.js +265 -8
- package/dist/abis/sweeperFactory.d.ts +752 -5
- package/dist/abis/sweeperFactory.js +1027 -65
- package/dist/index.d.ts +980 -29
- package/dist/sweeper.d.ts +31 -14
- package/dist/sweeper.js +22 -16
- package/package.json +1 -1
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
export declare const SWEEPER_FACTORY_ABI: readonly [{
|
|
2
|
+
readonly inputs: readonly [];
|
|
3
|
+
readonly stateMutability: "nonpayable";
|
|
4
|
+
readonly type: "constructor";
|
|
5
|
+
}, {
|
|
2
6
|
readonly inputs: readonly [{
|
|
3
7
|
readonly internalType: "address";
|
|
4
|
-
readonly name: "
|
|
8
|
+
readonly name: "target";
|
|
5
9
|
readonly type: "address";
|
|
6
10
|
}];
|
|
7
|
-
readonly
|
|
8
|
-
readonly type: "
|
|
11
|
+
readonly name: "AddressEmptyCode";
|
|
12
|
+
readonly type: "error";
|
|
9
13
|
}, {
|
|
10
14
|
readonly inputs: readonly [];
|
|
11
15
|
readonly name: "CloneArgumentsTooLong";
|
|
@@ -14,10 +18,30 @@ export declare const SWEEPER_FACTORY_ABI: readonly [{
|
|
|
14
18
|
readonly inputs: readonly [];
|
|
15
19
|
readonly name: "Create2EmptyBytecode";
|
|
16
20
|
readonly type: "error";
|
|
21
|
+
}, {
|
|
22
|
+
readonly inputs: readonly [{
|
|
23
|
+
readonly internalType: "address";
|
|
24
|
+
readonly name: "implementation";
|
|
25
|
+
readonly type: "address";
|
|
26
|
+
}];
|
|
27
|
+
readonly name: "ERC1967InvalidImplementation";
|
|
28
|
+
readonly type: "error";
|
|
29
|
+
}, {
|
|
30
|
+
readonly inputs: readonly [];
|
|
31
|
+
readonly name: "ERC1967NonPayable";
|
|
32
|
+
readonly type: "error";
|
|
33
|
+
}, {
|
|
34
|
+
readonly inputs: readonly [];
|
|
35
|
+
readonly name: "FailedCall";
|
|
36
|
+
readonly type: "error";
|
|
17
37
|
}, {
|
|
18
38
|
readonly inputs: readonly [];
|
|
19
39
|
readonly name: "FailedDeployment";
|
|
20
40
|
readonly type: "error";
|
|
41
|
+
}, {
|
|
42
|
+
readonly inputs: readonly [];
|
|
43
|
+
readonly name: "ImplementationNotSet";
|
|
44
|
+
readonly type: "error";
|
|
21
45
|
}, {
|
|
22
46
|
readonly inputs: readonly [{
|
|
23
47
|
readonly internalType: "uint256";
|
|
@@ -34,6 +58,190 @@ export declare const SWEEPER_FACTORY_ABI: readonly [{
|
|
|
34
58
|
readonly inputs: readonly [];
|
|
35
59
|
readonly name: "InvalidAddress";
|
|
36
60
|
readonly type: "error";
|
|
61
|
+
}, {
|
|
62
|
+
readonly inputs: readonly [];
|
|
63
|
+
readonly name: "InvalidInitialization";
|
|
64
|
+
readonly type: "error";
|
|
65
|
+
}, {
|
|
66
|
+
readonly inputs: readonly [];
|
|
67
|
+
readonly name: "NotExecutor";
|
|
68
|
+
readonly type: "error";
|
|
69
|
+
}, {
|
|
70
|
+
readonly inputs: readonly [];
|
|
71
|
+
readonly name: "NotInitializing";
|
|
72
|
+
readonly type: "error";
|
|
73
|
+
}, {
|
|
74
|
+
readonly inputs: readonly [{
|
|
75
|
+
readonly internalType: "address";
|
|
76
|
+
readonly name: "owner";
|
|
77
|
+
readonly type: "address";
|
|
78
|
+
}];
|
|
79
|
+
readonly name: "OwnableInvalidOwner";
|
|
80
|
+
readonly type: "error";
|
|
81
|
+
}, {
|
|
82
|
+
readonly inputs: readonly [{
|
|
83
|
+
readonly internalType: "address";
|
|
84
|
+
readonly name: "account";
|
|
85
|
+
readonly type: "address";
|
|
86
|
+
}];
|
|
87
|
+
readonly name: "OwnableUnauthorizedAccount";
|
|
88
|
+
readonly type: "error";
|
|
89
|
+
}, {
|
|
90
|
+
readonly inputs: readonly [];
|
|
91
|
+
readonly name: "UUPSUnauthorizedCallContext";
|
|
92
|
+
readonly type: "error";
|
|
93
|
+
}, {
|
|
94
|
+
readonly inputs: readonly [{
|
|
95
|
+
readonly internalType: "bytes32";
|
|
96
|
+
readonly name: "slot";
|
|
97
|
+
readonly type: "bytes32";
|
|
98
|
+
}];
|
|
99
|
+
readonly name: "UUPSUnsupportedProxiableUUID";
|
|
100
|
+
readonly type: "error";
|
|
101
|
+
}, {
|
|
102
|
+
readonly anonymous: false;
|
|
103
|
+
readonly inputs: readonly [{
|
|
104
|
+
readonly indexed: true;
|
|
105
|
+
readonly internalType: "address";
|
|
106
|
+
readonly name: "previousExecutor";
|
|
107
|
+
readonly type: "address";
|
|
108
|
+
}, {
|
|
109
|
+
readonly indexed: true;
|
|
110
|
+
readonly internalType: "address";
|
|
111
|
+
readonly name: "newExecutor";
|
|
112
|
+
readonly type: "address";
|
|
113
|
+
}];
|
|
114
|
+
readonly name: "ExecutorUpdated";
|
|
115
|
+
readonly type: "event";
|
|
116
|
+
}, {
|
|
117
|
+
readonly anonymous: false;
|
|
118
|
+
readonly inputs: readonly [{
|
|
119
|
+
readonly indexed: false;
|
|
120
|
+
readonly internalType: "address";
|
|
121
|
+
readonly name: "rollup";
|
|
122
|
+
readonly type: "address";
|
|
123
|
+
}, {
|
|
124
|
+
readonly indexed: false;
|
|
125
|
+
readonly internalType: "address";
|
|
126
|
+
readonly name: "bridgedStable";
|
|
127
|
+
readonly type: "address";
|
|
128
|
+
}, {
|
|
129
|
+
readonly indexed: false;
|
|
130
|
+
readonly internalType: "address";
|
|
131
|
+
readonly name: "swapRouter";
|
|
132
|
+
readonly type: "address";
|
|
133
|
+
}, {
|
|
134
|
+
readonly indexed: false;
|
|
135
|
+
readonly internalType: "address";
|
|
136
|
+
readonly name: "lzEndpoint";
|
|
137
|
+
readonly type: "address";
|
|
138
|
+
}];
|
|
139
|
+
readonly name: "HubConfigured";
|
|
140
|
+
readonly type: "event";
|
|
141
|
+
}, {
|
|
142
|
+
readonly anonymous: false;
|
|
143
|
+
readonly inputs: readonly [{
|
|
144
|
+
readonly indexed: false;
|
|
145
|
+
readonly internalType: "uint64";
|
|
146
|
+
readonly name: "version";
|
|
147
|
+
readonly type: "uint64";
|
|
148
|
+
}];
|
|
149
|
+
readonly name: "Initialized";
|
|
150
|
+
readonly type: "event";
|
|
151
|
+
}, {
|
|
152
|
+
readonly anonymous: false;
|
|
153
|
+
readonly inputs: readonly [{
|
|
154
|
+
readonly indexed: true;
|
|
155
|
+
readonly internalType: "address";
|
|
156
|
+
readonly name: "previousOwner";
|
|
157
|
+
readonly type: "address";
|
|
158
|
+
}, {
|
|
159
|
+
readonly indexed: true;
|
|
160
|
+
readonly internalType: "address";
|
|
161
|
+
readonly name: "newOwner";
|
|
162
|
+
readonly type: "address";
|
|
163
|
+
}];
|
|
164
|
+
readonly name: "OwnershipTransferStarted";
|
|
165
|
+
readonly type: "event";
|
|
166
|
+
}, {
|
|
167
|
+
readonly anonymous: false;
|
|
168
|
+
readonly inputs: readonly [{
|
|
169
|
+
readonly indexed: true;
|
|
170
|
+
readonly internalType: "address";
|
|
171
|
+
readonly name: "previousOwner";
|
|
172
|
+
readonly type: "address";
|
|
173
|
+
}, {
|
|
174
|
+
readonly indexed: true;
|
|
175
|
+
readonly internalType: "address";
|
|
176
|
+
readonly name: "newOwner";
|
|
177
|
+
readonly type: "address";
|
|
178
|
+
}];
|
|
179
|
+
readonly name: "OwnershipTransferred";
|
|
180
|
+
readonly type: "event";
|
|
181
|
+
}, {
|
|
182
|
+
readonly anonymous: false;
|
|
183
|
+
readonly inputs: readonly [{
|
|
184
|
+
readonly indexed: false;
|
|
185
|
+
readonly internalType: "address";
|
|
186
|
+
readonly name: "swapRouter";
|
|
187
|
+
readonly type: "address";
|
|
188
|
+
}, {
|
|
189
|
+
readonly indexed: false;
|
|
190
|
+
readonly internalType: "uint32";
|
|
191
|
+
readonly name: "cctpDestinationDomain";
|
|
192
|
+
readonly type: "uint32";
|
|
193
|
+
}, {
|
|
194
|
+
readonly indexed: false;
|
|
195
|
+
readonly internalType: "uint32";
|
|
196
|
+
readonly name: "stargateDestinationEid";
|
|
197
|
+
readonly type: "uint32";
|
|
198
|
+
}];
|
|
199
|
+
readonly name: "RemoteConfigured";
|
|
200
|
+
readonly type: "event";
|
|
201
|
+
}, {
|
|
202
|
+
readonly anonymous: false;
|
|
203
|
+
readonly inputs: readonly [{
|
|
204
|
+
readonly indexed: true;
|
|
205
|
+
readonly internalType: "address";
|
|
206
|
+
readonly name: "token";
|
|
207
|
+
readonly type: "address";
|
|
208
|
+
}, {
|
|
209
|
+
readonly components: readonly [{
|
|
210
|
+
readonly internalType: "enum RouteKind";
|
|
211
|
+
readonly name: "kind";
|
|
212
|
+
readonly type: "uint8";
|
|
213
|
+
}, {
|
|
214
|
+
readonly internalType: "address";
|
|
215
|
+
readonly name: "bridge";
|
|
216
|
+
readonly type: "address";
|
|
217
|
+
}, {
|
|
218
|
+
readonly internalType: "bool";
|
|
219
|
+
readonly name: "unwrapNative";
|
|
220
|
+
readonly type: "bool";
|
|
221
|
+
}, {
|
|
222
|
+
readonly internalType: "bool";
|
|
223
|
+
readonly name: "compose";
|
|
224
|
+
readonly type: "bool";
|
|
225
|
+
}, {
|
|
226
|
+
readonly internalType: "address";
|
|
227
|
+
readonly name: "bridgeToken";
|
|
228
|
+
readonly type: "address";
|
|
229
|
+
}, {
|
|
230
|
+
readonly internalType: "address";
|
|
231
|
+
readonly name: "hubToken";
|
|
232
|
+
readonly type: "address";
|
|
233
|
+
}, {
|
|
234
|
+
readonly internalType: "bytes";
|
|
235
|
+
readonly name: "swapPath";
|
|
236
|
+
readonly type: "bytes";
|
|
237
|
+
}];
|
|
238
|
+
readonly indexed: false;
|
|
239
|
+
readonly internalType: "struct BridgeRoute";
|
|
240
|
+
readonly name: "route";
|
|
241
|
+
readonly type: "tuple";
|
|
242
|
+
}];
|
|
243
|
+
readonly name: "RouteSet";
|
|
244
|
+
readonly type: "event";
|
|
37
245
|
}, {
|
|
38
246
|
readonly anonymous: false;
|
|
39
247
|
readonly inputs: readonly [{
|
|
@@ -51,9 +259,155 @@ export declare const SWEEPER_FACTORY_ABI: readonly [{
|
|
|
51
259
|
readonly internalType: "string";
|
|
52
260
|
readonly name: "applicationId";
|
|
53
261
|
readonly type: "string";
|
|
262
|
+
}, {
|
|
263
|
+
readonly indexed: false;
|
|
264
|
+
readonly internalType: "address";
|
|
265
|
+
readonly name: "hubToken";
|
|
266
|
+
readonly type: "address";
|
|
54
267
|
}];
|
|
55
268
|
readonly name: "SweeperDeployed";
|
|
56
269
|
readonly type: "event";
|
|
270
|
+
}, {
|
|
271
|
+
readonly anonymous: false;
|
|
272
|
+
readonly inputs: readonly [{
|
|
273
|
+
readonly indexed: true;
|
|
274
|
+
readonly internalType: "address";
|
|
275
|
+
readonly name: "previousImplementation";
|
|
276
|
+
readonly type: "address";
|
|
277
|
+
}, {
|
|
278
|
+
readonly indexed: true;
|
|
279
|
+
readonly internalType: "address";
|
|
280
|
+
readonly name: "newImplementation";
|
|
281
|
+
readonly type: "address";
|
|
282
|
+
}];
|
|
283
|
+
readonly name: "SweeperImplementationUpdated";
|
|
284
|
+
readonly type: "event";
|
|
285
|
+
}, {
|
|
286
|
+
readonly anonymous: false;
|
|
287
|
+
readonly inputs: readonly [{
|
|
288
|
+
readonly indexed: true;
|
|
289
|
+
readonly internalType: "address";
|
|
290
|
+
readonly name: "stargate";
|
|
291
|
+
readonly type: "address";
|
|
292
|
+
}, {
|
|
293
|
+
readonly indexed: false;
|
|
294
|
+
readonly internalType: "address";
|
|
295
|
+
readonly name: "token";
|
|
296
|
+
readonly type: "address";
|
|
297
|
+
}];
|
|
298
|
+
readonly name: "TrustedStargateSet";
|
|
299
|
+
readonly type: "event";
|
|
300
|
+
}, {
|
|
301
|
+
readonly anonymous: false;
|
|
302
|
+
readonly inputs: readonly [{
|
|
303
|
+
readonly indexed: true;
|
|
304
|
+
readonly internalType: "address";
|
|
305
|
+
readonly name: "hubToken";
|
|
306
|
+
readonly type: "address";
|
|
307
|
+
}, {
|
|
308
|
+
readonly indexed: false;
|
|
309
|
+
readonly internalType: "bytes";
|
|
310
|
+
readonly name: "path";
|
|
311
|
+
readonly type: "bytes";
|
|
312
|
+
}];
|
|
313
|
+
readonly name: "UnswapPathSet";
|
|
314
|
+
readonly type: "event";
|
|
315
|
+
}, {
|
|
316
|
+
readonly anonymous: false;
|
|
317
|
+
readonly inputs: readonly [{
|
|
318
|
+
readonly indexed: true;
|
|
319
|
+
readonly internalType: "address";
|
|
320
|
+
readonly name: "implementation";
|
|
321
|
+
readonly type: "address";
|
|
322
|
+
}];
|
|
323
|
+
readonly name: "Upgraded";
|
|
324
|
+
readonly type: "event";
|
|
325
|
+
}, {
|
|
326
|
+
readonly inputs: readonly [];
|
|
327
|
+
readonly name: "UPGRADE_INTERFACE_VERSION";
|
|
328
|
+
readonly outputs: readonly [{
|
|
329
|
+
readonly internalType: "string";
|
|
330
|
+
readonly name: "";
|
|
331
|
+
readonly type: "string";
|
|
332
|
+
}];
|
|
333
|
+
readonly stateMutability: "view";
|
|
334
|
+
readonly type: "function";
|
|
335
|
+
}, {
|
|
336
|
+
readonly inputs: readonly [];
|
|
337
|
+
readonly name: "acceptOwnership";
|
|
338
|
+
readonly outputs: readonly [];
|
|
339
|
+
readonly stateMutability: "nonpayable";
|
|
340
|
+
readonly type: "function";
|
|
341
|
+
}, {
|
|
342
|
+
readonly inputs: readonly [];
|
|
343
|
+
readonly name: "bridgedStable";
|
|
344
|
+
readonly outputs: readonly [{
|
|
345
|
+
readonly internalType: "address";
|
|
346
|
+
readonly name: "";
|
|
347
|
+
readonly type: "address";
|
|
348
|
+
}];
|
|
349
|
+
readonly stateMutability: "view";
|
|
350
|
+
readonly type: "function";
|
|
351
|
+
}, {
|
|
352
|
+
readonly inputs: readonly [];
|
|
353
|
+
readonly name: "cctpDestinationDomain";
|
|
354
|
+
readonly outputs: readonly [{
|
|
355
|
+
readonly internalType: "uint32";
|
|
356
|
+
readonly name: "";
|
|
357
|
+
readonly type: "uint32";
|
|
358
|
+
}];
|
|
359
|
+
readonly stateMutability: "view";
|
|
360
|
+
readonly type: "function";
|
|
361
|
+
}, {
|
|
362
|
+
readonly inputs: readonly [];
|
|
363
|
+
readonly name: "chainMode";
|
|
364
|
+
readonly outputs: readonly [{
|
|
365
|
+
readonly internalType: "enum ChainMode";
|
|
366
|
+
readonly name: "";
|
|
367
|
+
readonly type: "uint8";
|
|
368
|
+
}];
|
|
369
|
+
readonly stateMutability: "view";
|
|
370
|
+
readonly type: "function";
|
|
371
|
+
}, {
|
|
372
|
+
readonly inputs: readonly [{
|
|
373
|
+
readonly internalType: "address";
|
|
374
|
+
readonly name: "rollup_";
|
|
375
|
+
readonly type: "address";
|
|
376
|
+
}, {
|
|
377
|
+
readonly internalType: "address";
|
|
378
|
+
readonly name: "bridgedStable_";
|
|
379
|
+
readonly type: "address";
|
|
380
|
+
}, {
|
|
381
|
+
readonly internalType: "address";
|
|
382
|
+
readonly name: "swapRouter_";
|
|
383
|
+
readonly type: "address";
|
|
384
|
+
}, {
|
|
385
|
+
readonly internalType: "address";
|
|
386
|
+
readonly name: "lzEndpoint_";
|
|
387
|
+
readonly type: "address";
|
|
388
|
+
}];
|
|
389
|
+
readonly name: "configureHub";
|
|
390
|
+
readonly outputs: readonly [];
|
|
391
|
+
readonly stateMutability: "nonpayable";
|
|
392
|
+
readonly type: "function";
|
|
393
|
+
}, {
|
|
394
|
+
readonly inputs: readonly [{
|
|
395
|
+
readonly internalType: "address";
|
|
396
|
+
readonly name: "swapRouter_";
|
|
397
|
+
readonly type: "address";
|
|
398
|
+
}, {
|
|
399
|
+
readonly internalType: "uint32";
|
|
400
|
+
readonly name: "cctpDestinationDomain_";
|
|
401
|
+
readonly type: "uint32";
|
|
402
|
+
}, {
|
|
403
|
+
readonly internalType: "uint32";
|
|
404
|
+
readonly name: "stargateDestinationEid_";
|
|
405
|
+
readonly type: "uint32";
|
|
406
|
+
}];
|
|
407
|
+
readonly name: "configureRemote";
|
|
408
|
+
readonly outputs: readonly [];
|
|
409
|
+
readonly stateMutability: "nonpayable";
|
|
410
|
+
readonly type: "function";
|
|
57
411
|
}, {
|
|
58
412
|
readonly inputs: readonly [{
|
|
59
413
|
readonly internalType: "string";
|
|
@@ -72,9 +426,41 @@ export declare const SWEEPER_FACTORY_ABI: readonly [{
|
|
|
72
426
|
}];
|
|
73
427
|
readonly stateMutability: "nonpayable";
|
|
74
428
|
readonly type: "function";
|
|
429
|
+
}, {
|
|
430
|
+
readonly inputs: readonly [{
|
|
431
|
+
readonly internalType: "string";
|
|
432
|
+
readonly name: "applicationId";
|
|
433
|
+
readonly type: "string";
|
|
434
|
+
}, {
|
|
435
|
+
readonly internalType: "address";
|
|
436
|
+
readonly name: "user";
|
|
437
|
+
readonly type: "address";
|
|
438
|
+
}, {
|
|
439
|
+
readonly internalType: "address";
|
|
440
|
+
readonly name: "hubToken";
|
|
441
|
+
readonly type: "address";
|
|
442
|
+
}];
|
|
443
|
+
readonly name: "deployReceiver";
|
|
444
|
+
readonly outputs: readonly [{
|
|
445
|
+
readonly internalType: "address";
|
|
446
|
+
readonly name: "sweeper";
|
|
447
|
+
readonly type: "address";
|
|
448
|
+
}];
|
|
449
|
+
readonly stateMutability: "nonpayable";
|
|
450
|
+
readonly type: "function";
|
|
451
|
+
}, {
|
|
452
|
+
readonly inputs: readonly [];
|
|
453
|
+
readonly name: "executor";
|
|
454
|
+
readonly outputs: readonly [{
|
|
455
|
+
readonly internalType: "address";
|
|
456
|
+
readonly name: "";
|
|
457
|
+
readonly type: "address";
|
|
458
|
+
}];
|
|
459
|
+
readonly stateMutability: "view";
|
|
460
|
+
readonly type: "function";
|
|
75
461
|
}, {
|
|
76
462
|
readonly inputs: readonly [];
|
|
77
|
-
readonly name: "
|
|
463
|
+
readonly name: "forwarder";
|
|
78
464
|
readonly outputs: readonly [{
|
|
79
465
|
readonly internalType: "address";
|
|
80
466
|
readonly name: "";
|
|
@@ -82,6 +468,16 @@ export declare const SWEEPER_FACTORY_ABI: readonly [{
|
|
|
82
468
|
}];
|
|
83
469
|
readonly stateMutability: "view";
|
|
84
470
|
readonly type: "function";
|
|
471
|
+
}, {
|
|
472
|
+
readonly inputs: readonly [{
|
|
473
|
+
readonly internalType: "address";
|
|
474
|
+
readonly name: "owner_";
|
|
475
|
+
readonly type: "address";
|
|
476
|
+
}];
|
|
477
|
+
readonly name: "initialize";
|
|
478
|
+
readonly outputs: readonly [];
|
|
479
|
+
readonly stateMutability: "nonpayable";
|
|
480
|
+
readonly type: "function";
|
|
85
481
|
}, {
|
|
86
482
|
readonly inputs: readonly [{
|
|
87
483
|
readonly internalType: "string";
|
|
@@ -100,6 +496,68 @@ export declare const SWEEPER_FACTORY_ABI: readonly [{
|
|
|
100
496
|
}];
|
|
101
497
|
readonly stateMutability: "view";
|
|
102
498
|
readonly type: "function";
|
|
499
|
+
}, {
|
|
500
|
+
readonly inputs: readonly [];
|
|
501
|
+
readonly name: "lzEndpoint";
|
|
502
|
+
readonly outputs: readonly [{
|
|
503
|
+
readonly internalType: "address";
|
|
504
|
+
readonly name: "";
|
|
505
|
+
readonly type: "address";
|
|
506
|
+
}];
|
|
507
|
+
readonly stateMutability: "view";
|
|
508
|
+
readonly type: "function";
|
|
509
|
+
}, {
|
|
510
|
+
readonly inputs: readonly [];
|
|
511
|
+
readonly name: "owner";
|
|
512
|
+
readonly outputs: readonly [{
|
|
513
|
+
readonly internalType: "address";
|
|
514
|
+
readonly name: "";
|
|
515
|
+
readonly type: "address";
|
|
516
|
+
}];
|
|
517
|
+
readonly stateMutability: "view";
|
|
518
|
+
readonly type: "function";
|
|
519
|
+
}, {
|
|
520
|
+
readonly inputs: readonly [];
|
|
521
|
+
readonly name: "pendingOwner";
|
|
522
|
+
readonly outputs: readonly [{
|
|
523
|
+
readonly internalType: "address";
|
|
524
|
+
readonly name: "";
|
|
525
|
+
readonly type: "address";
|
|
526
|
+
}];
|
|
527
|
+
readonly stateMutability: "view";
|
|
528
|
+
readonly type: "function";
|
|
529
|
+
}, {
|
|
530
|
+
readonly inputs: readonly [];
|
|
531
|
+
readonly name: "proxiableUUID";
|
|
532
|
+
readonly outputs: readonly [{
|
|
533
|
+
readonly internalType: "bytes32";
|
|
534
|
+
readonly name: "";
|
|
535
|
+
readonly type: "bytes32";
|
|
536
|
+
}];
|
|
537
|
+
readonly stateMutability: "view";
|
|
538
|
+
readonly type: "function";
|
|
539
|
+
}, {
|
|
540
|
+
readonly inputs: readonly [{
|
|
541
|
+
readonly internalType: "string";
|
|
542
|
+
readonly name: "applicationId";
|
|
543
|
+
readonly type: "string";
|
|
544
|
+
}, {
|
|
545
|
+
readonly internalType: "address";
|
|
546
|
+
readonly name: "user";
|
|
547
|
+
readonly type: "address";
|
|
548
|
+
}, {
|
|
549
|
+
readonly internalType: "address";
|
|
550
|
+
readonly name: "hubToken";
|
|
551
|
+
readonly type: "address";
|
|
552
|
+
}];
|
|
553
|
+
readonly name: "receiverFor";
|
|
554
|
+
readonly outputs: readonly [{
|
|
555
|
+
readonly internalType: "address";
|
|
556
|
+
readonly name: "";
|
|
557
|
+
readonly type: "address";
|
|
558
|
+
}];
|
|
559
|
+
readonly stateMutability: "view";
|
|
560
|
+
readonly type: "function";
|
|
103
561
|
}, {
|
|
104
562
|
readonly inputs: readonly [{
|
|
105
563
|
readonly internalType: "string";
|
|
@@ -114,11 +572,203 @@ export declare const SWEEPER_FACTORY_ABI: readonly [{
|
|
|
114
572
|
readonly outputs: readonly [];
|
|
115
573
|
readonly stateMutability: "nonpayable";
|
|
116
574
|
readonly type: "function";
|
|
575
|
+
}, {
|
|
576
|
+
readonly inputs: readonly [{
|
|
577
|
+
readonly internalType: "string";
|
|
578
|
+
readonly name: "applicationId";
|
|
579
|
+
readonly type: "string";
|
|
580
|
+
}, {
|
|
581
|
+
readonly internalType: "address";
|
|
582
|
+
readonly name: "user";
|
|
583
|
+
readonly type: "address";
|
|
584
|
+
}, {
|
|
585
|
+
readonly internalType: "address";
|
|
586
|
+
readonly name: "token";
|
|
587
|
+
readonly type: "address";
|
|
588
|
+
}];
|
|
589
|
+
readonly name: "refundToken";
|
|
590
|
+
readonly outputs: readonly [];
|
|
591
|
+
readonly stateMutability: "nonpayable";
|
|
592
|
+
readonly type: "function";
|
|
593
|
+
}, {
|
|
594
|
+
readonly inputs: readonly [];
|
|
595
|
+
readonly name: "renounceOwnership";
|
|
596
|
+
readonly outputs: readonly [];
|
|
597
|
+
readonly stateMutability: "nonpayable";
|
|
598
|
+
readonly type: "function";
|
|
117
599
|
}, {
|
|
118
600
|
readonly inputs: readonly [];
|
|
119
601
|
readonly name: "rollup";
|
|
120
602
|
readonly outputs: readonly [{
|
|
121
|
-
readonly internalType: "
|
|
603
|
+
readonly internalType: "address";
|
|
604
|
+
readonly name: "";
|
|
605
|
+
readonly type: "address";
|
|
606
|
+
}];
|
|
607
|
+
readonly stateMutability: "view";
|
|
608
|
+
readonly type: "function";
|
|
609
|
+
}, {
|
|
610
|
+
readonly inputs: readonly [{
|
|
611
|
+
readonly internalType: "address";
|
|
612
|
+
readonly name: "token";
|
|
613
|
+
readonly type: "address";
|
|
614
|
+
}];
|
|
615
|
+
readonly name: "route";
|
|
616
|
+
readonly outputs: readonly [{
|
|
617
|
+
readonly components: readonly [{
|
|
618
|
+
readonly internalType: "enum RouteKind";
|
|
619
|
+
readonly name: "kind";
|
|
620
|
+
readonly type: "uint8";
|
|
621
|
+
}, {
|
|
622
|
+
readonly internalType: "address";
|
|
623
|
+
readonly name: "bridge";
|
|
624
|
+
readonly type: "address";
|
|
625
|
+
}, {
|
|
626
|
+
readonly internalType: "bool";
|
|
627
|
+
readonly name: "unwrapNative";
|
|
628
|
+
readonly type: "bool";
|
|
629
|
+
}, {
|
|
630
|
+
readonly internalType: "bool";
|
|
631
|
+
readonly name: "compose";
|
|
632
|
+
readonly type: "bool";
|
|
633
|
+
}, {
|
|
634
|
+
readonly internalType: "address";
|
|
635
|
+
readonly name: "bridgeToken";
|
|
636
|
+
readonly type: "address";
|
|
637
|
+
}, {
|
|
638
|
+
readonly internalType: "address";
|
|
639
|
+
readonly name: "hubToken";
|
|
640
|
+
readonly type: "address";
|
|
641
|
+
}, {
|
|
642
|
+
readonly internalType: "bytes";
|
|
643
|
+
readonly name: "swapPath";
|
|
644
|
+
readonly type: "bytes";
|
|
645
|
+
}];
|
|
646
|
+
readonly internalType: "struct BridgeRoute";
|
|
647
|
+
readonly name: "";
|
|
648
|
+
readonly type: "tuple";
|
|
649
|
+
}];
|
|
650
|
+
readonly stateMutability: "view";
|
|
651
|
+
readonly type: "function";
|
|
652
|
+
}, {
|
|
653
|
+
readonly inputs: readonly [{
|
|
654
|
+
readonly internalType: "address";
|
|
655
|
+
readonly name: "executor_";
|
|
656
|
+
readonly type: "address";
|
|
657
|
+
}];
|
|
658
|
+
readonly name: "setExecutor";
|
|
659
|
+
readonly outputs: readonly [];
|
|
660
|
+
readonly stateMutability: "nonpayable";
|
|
661
|
+
readonly type: "function";
|
|
662
|
+
}, {
|
|
663
|
+
readonly inputs: readonly [{
|
|
664
|
+
readonly internalType: "address";
|
|
665
|
+
readonly name: "token";
|
|
666
|
+
readonly type: "address";
|
|
667
|
+
}, {
|
|
668
|
+
readonly components: readonly [{
|
|
669
|
+
readonly internalType: "enum RouteKind";
|
|
670
|
+
readonly name: "kind";
|
|
671
|
+
readonly type: "uint8";
|
|
672
|
+
}, {
|
|
673
|
+
readonly internalType: "address";
|
|
674
|
+
readonly name: "bridge";
|
|
675
|
+
readonly type: "address";
|
|
676
|
+
}, {
|
|
677
|
+
readonly internalType: "bool";
|
|
678
|
+
readonly name: "unwrapNative";
|
|
679
|
+
readonly type: "bool";
|
|
680
|
+
}, {
|
|
681
|
+
readonly internalType: "bool";
|
|
682
|
+
readonly name: "compose";
|
|
683
|
+
readonly type: "bool";
|
|
684
|
+
}, {
|
|
685
|
+
readonly internalType: "address";
|
|
686
|
+
readonly name: "bridgeToken";
|
|
687
|
+
readonly type: "address";
|
|
688
|
+
}, {
|
|
689
|
+
readonly internalType: "address";
|
|
690
|
+
readonly name: "hubToken";
|
|
691
|
+
readonly type: "address";
|
|
692
|
+
}, {
|
|
693
|
+
readonly internalType: "bytes";
|
|
694
|
+
readonly name: "swapPath";
|
|
695
|
+
readonly type: "bytes";
|
|
696
|
+
}];
|
|
697
|
+
readonly internalType: "struct BridgeRoute";
|
|
698
|
+
readonly name: "route_";
|
|
699
|
+
readonly type: "tuple";
|
|
700
|
+
}];
|
|
701
|
+
readonly name: "setRoute";
|
|
702
|
+
readonly outputs: readonly [];
|
|
703
|
+
readonly stateMutability: "nonpayable";
|
|
704
|
+
readonly type: "function";
|
|
705
|
+
}, {
|
|
706
|
+
readonly inputs: readonly [{
|
|
707
|
+
readonly internalType: "address";
|
|
708
|
+
readonly name: "implementation";
|
|
709
|
+
readonly type: "address";
|
|
710
|
+
}];
|
|
711
|
+
readonly name: "setSweeperImplementation";
|
|
712
|
+
readonly outputs: readonly [];
|
|
713
|
+
readonly stateMutability: "nonpayable";
|
|
714
|
+
readonly type: "function";
|
|
715
|
+
}, {
|
|
716
|
+
readonly inputs: readonly [{
|
|
717
|
+
readonly internalType: "address";
|
|
718
|
+
readonly name: "stargate";
|
|
719
|
+
readonly type: "address";
|
|
720
|
+
}, {
|
|
721
|
+
readonly internalType: "address";
|
|
722
|
+
readonly name: "token";
|
|
723
|
+
readonly type: "address";
|
|
724
|
+
}];
|
|
725
|
+
readonly name: "setTrustedStargate";
|
|
726
|
+
readonly outputs: readonly [];
|
|
727
|
+
readonly stateMutability: "nonpayable";
|
|
728
|
+
readonly type: "function";
|
|
729
|
+
}, {
|
|
730
|
+
readonly inputs: readonly [{
|
|
731
|
+
readonly internalType: "address";
|
|
732
|
+
readonly name: "hubToken";
|
|
733
|
+
readonly type: "address";
|
|
734
|
+
}, {
|
|
735
|
+
readonly internalType: "bytes";
|
|
736
|
+
readonly name: "path";
|
|
737
|
+
readonly type: "bytes";
|
|
738
|
+
}];
|
|
739
|
+
readonly name: "setUnswapPath";
|
|
740
|
+
readonly outputs: readonly [];
|
|
741
|
+
readonly stateMutability: "nonpayable";
|
|
742
|
+
readonly type: "function";
|
|
743
|
+
}, {
|
|
744
|
+
readonly inputs: readonly [];
|
|
745
|
+
readonly name: "stargateDestinationEid";
|
|
746
|
+
readonly outputs: readonly [{
|
|
747
|
+
readonly internalType: "uint32";
|
|
748
|
+
readonly name: "";
|
|
749
|
+
readonly type: "uint32";
|
|
750
|
+
}];
|
|
751
|
+
readonly stateMutability: "view";
|
|
752
|
+
readonly type: "function";
|
|
753
|
+
}, {
|
|
754
|
+
readonly inputs: readonly [{
|
|
755
|
+
readonly internalType: "address";
|
|
756
|
+
readonly name: "stargate";
|
|
757
|
+
readonly type: "address";
|
|
758
|
+
}];
|
|
759
|
+
readonly name: "stargateToken";
|
|
760
|
+
readonly outputs: readonly [{
|
|
761
|
+
readonly internalType: "address";
|
|
762
|
+
readonly name: "";
|
|
763
|
+
readonly type: "address";
|
|
764
|
+
}];
|
|
765
|
+
readonly stateMutability: "view";
|
|
766
|
+
readonly type: "function";
|
|
767
|
+
}, {
|
|
768
|
+
readonly inputs: readonly [];
|
|
769
|
+
readonly name: "swapRouter";
|
|
770
|
+
readonly outputs: readonly [{
|
|
771
|
+
readonly internalType: "address";
|
|
122
772
|
readonly name: "";
|
|
123
773
|
readonly type: "address";
|
|
124
774
|
}];
|
|
@@ -142,6 +792,45 @@ export declare const SWEEPER_FACTORY_ABI: readonly [{
|
|
|
142
792
|
readonly outputs: readonly [];
|
|
143
793
|
readonly stateMutability: "nonpayable";
|
|
144
794
|
readonly type: "function";
|
|
795
|
+
}, {
|
|
796
|
+
readonly inputs: readonly [{
|
|
797
|
+
readonly internalType: "string";
|
|
798
|
+
readonly name: "applicationId";
|
|
799
|
+
readonly type: "string";
|
|
800
|
+
}, {
|
|
801
|
+
readonly internalType: "address";
|
|
802
|
+
readonly name: "user";
|
|
803
|
+
readonly type: "address";
|
|
804
|
+
}, {
|
|
805
|
+
readonly internalType: "address";
|
|
806
|
+
readonly name: "hubToken";
|
|
807
|
+
readonly type: "address";
|
|
808
|
+
}, {
|
|
809
|
+
readonly internalType: "address";
|
|
810
|
+
readonly name: "token";
|
|
811
|
+
readonly type: "address";
|
|
812
|
+
}, {
|
|
813
|
+
readonly components: readonly [{
|
|
814
|
+
readonly internalType: "uint256";
|
|
815
|
+
readonly name: "minSwapOut";
|
|
816
|
+
readonly type: "uint256";
|
|
817
|
+
}, {
|
|
818
|
+
readonly internalType: "uint256";
|
|
819
|
+
readonly name: "minBridgeOut";
|
|
820
|
+
readonly type: "uint256";
|
|
821
|
+
}, {
|
|
822
|
+
readonly internalType: "bytes";
|
|
823
|
+
readonly name: "lzExtraOptions";
|
|
824
|
+
readonly type: "bytes";
|
|
825
|
+
}];
|
|
826
|
+
readonly internalType: "struct SweepParams";
|
|
827
|
+
readonly name: "params";
|
|
828
|
+
readonly type: "tuple";
|
|
829
|
+
}];
|
|
830
|
+
readonly name: "sweepWithParams";
|
|
831
|
+
readonly outputs: readonly [];
|
|
832
|
+
readonly stateMutability: "payable";
|
|
833
|
+
readonly type: "function";
|
|
145
834
|
}, {
|
|
146
835
|
readonly inputs: readonly [{
|
|
147
836
|
readonly internalType: "string";
|
|
@@ -160,4 +849,62 @@ export declare const SWEEPER_FACTORY_ABI: readonly [{
|
|
|
160
849
|
}];
|
|
161
850
|
readonly stateMutability: "view";
|
|
162
851
|
readonly type: "function";
|
|
852
|
+
}, {
|
|
853
|
+
readonly inputs: readonly [];
|
|
854
|
+
readonly name: "sweeperImplementation";
|
|
855
|
+
readonly outputs: readonly [{
|
|
856
|
+
readonly internalType: "address";
|
|
857
|
+
readonly name: "";
|
|
858
|
+
readonly type: "address";
|
|
859
|
+
}];
|
|
860
|
+
readonly stateMutability: "view";
|
|
861
|
+
readonly type: "function";
|
|
862
|
+
}, {
|
|
863
|
+
readonly inputs: readonly [{
|
|
864
|
+
readonly internalType: "address";
|
|
865
|
+
readonly name: "newOwner";
|
|
866
|
+
readonly type: "address";
|
|
867
|
+
}];
|
|
868
|
+
readonly name: "transferOwnership";
|
|
869
|
+
readonly outputs: readonly [];
|
|
870
|
+
readonly stateMutability: "nonpayable";
|
|
871
|
+
readonly type: "function";
|
|
872
|
+
}, {
|
|
873
|
+
readonly inputs: readonly [{
|
|
874
|
+
readonly internalType: "address";
|
|
875
|
+
readonly name: "hubToken";
|
|
876
|
+
readonly type: "address";
|
|
877
|
+
}];
|
|
878
|
+
readonly name: "unswapPath";
|
|
879
|
+
readonly outputs: readonly [{
|
|
880
|
+
readonly internalType: "bytes";
|
|
881
|
+
readonly name: "";
|
|
882
|
+
readonly type: "bytes";
|
|
883
|
+
}];
|
|
884
|
+
readonly stateMutability: "view";
|
|
885
|
+
readonly type: "function";
|
|
886
|
+
}, {
|
|
887
|
+
readonly inputs: readonly [];
|
|
888
|
+
readonly name: "unwrapHelper";
|
|
889
|
+
readonly outputs: readonly [{
|
|
890
|
+
readonly internalType: "address";
|
|
891
|
+
readonly name: "";
|
|
892
|
+
readonly type: "address";
|
|
893
|
+
}];
|
|
894
|
+
readonly stateMutability: "view";
|
|
895
|
+
readonly type: "function";
|
|
896
|
+
}, {
|
|
897
|
+
readonly inputs: readonly [{
|
|
898
|
+
readonly internalType: "address";
|
|
899
|
+
readonly name: "newImplementation";
|
|
900
|
+
readonly type: "address";
|
|
901
|
+
}, {
|
|
902
|
+
readonly internalType: "bytes";
|
|
903
|
+
readonly name: "data";
|
|
904
|
+
readonly type: "bytes";
|
|
905
|
+
}];
|
|
906
|
+
readonly name: "upgradeToAndCall";
|
|
907
|
+
readonly outputs: readonly [];
|
|
908
|
+
readonly stateMutability: "payable";
|
|
909
|
+
readonly type: "function";
|
|
163
910
|
}];
|