@0xmonaco/contracts 1.0.51 → 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
package/dist/abis/sweeper.d.ts
CHANGED
|
@@ -1,19 +1,55 @@
|
|
|
1
1
|
export declare const SWEEPER_ABI: readonly [{
|
|
2
2
|
readonly inputs: readonly [{
|
|
3
3
|
readonly internalType: "address";
|
|
4
|
-
readonly name: "
|
|
4
|
+
readonly name: "factory_";
|
|
5
|
+
readonly type: "address";
|
|
6
|
+
}, {
|
|
7
|
+
readonly internalType: "address";
|
|
8
|
+
readonly name: "unwrapHelper_";
|
|
5
9
|
readonly type: "address";
|
|
6
10
|
}];
|
|
7
11
|
readonly stateMutability: "nonpayable";
|
|
8
12
|
readonly type: "constructor";
|
|
13
|
+
}, {
|
|
14
|
+
readonly inputs: readonly [];
|
|
15
|
+
readonly name: "ChainNotConfigured";
|
|
16
|
+
readonly type: "error";
|
|
17
|
+
}, {
|
|
18
|
+
readonly inputs: readonly [];
|
|
19
|
+
readonly name: "ComposeNotSupported";
|
|
20
|
+
readonly type: "error";
|
|
21
|
+
}, {
|
|
22
|
+
readonly inputs: readonly [];
|
|
23
|
+
readonly name: "ComposeSourceMismatch";
|
|
24
|
+
readonly type: "error";
|
|
9
25
|
}, {
|
|
10
26
|
readonly inputs: readonly [];
|
|
11
27
|
readonly name: "InvalidAddress";
|
|
12
28
|
readonly type: "error";
|
|
29
|
+
}, {
|
|
30
|
+
readonly inputs: readonly [];
|
|
31
|
+
readonly name: "NativeNotAccepted";
|
|
32
|
+
readonly type: "error";
|
|
13
33
|
}, {
|
|
14
34
|
readonly inputs: readonly [];
|
|
15
35
|
readonly name: "NativeTransferFailed";
|
|
16
36
|
readonly type: "error";
|
|
37
|
+
}, {
|
|
38
|
+
readonly inputs: readonly [];
|
|
39
|
+
readonly name: "NoRoute";
|
|
40
|
+
readonly type: "error";
|
|
41
|
+
}, {
|
|
42
|
+
readonly inputs: readonly [];
|
|
43
|
+
readonly name: "NotExecutor";
|
|
44
|
+
readonly type: "error";
|
|
45
|
+
}, {
|
|
46
|
+
readonly inputs: readonly [];
|
|
47
|
+
readonly name: "NotHub";
|
|
48
|
+
readonly type: "error";
|
|
49
|
+
}, {
|
|
50
|
+
readonly inputs: readonly [];
|
|
51
|
+
readonly name: "NotRemote";
|
|
52
|
+
readonly type: "error";
|
|
17
53
|
}, {
|
|
18
54
|
readonly inputs: readonly [];
|
|
19
55
|
readonly name: "NothingToSweep";
|
|
@@ -22,6 +58,10 @@ export declare const SWEEPER_ABI: readonly [{
|
|
|
22
58
|
readonly inputs: readonly [];
|
|
23
59
|
readonly name: "OnlyClone";
|
|
24
60
|
readonly type: "error";
|
|
61
|
+
}, {
|
|
62
|
+
readonly inputs: readonly [];
|
|
63
|
+
readonly name: "RoutedToken";
|
|
64
|
+
readonly type: "error";
|
|
25
65
|
}, {
|
|
26
66
|
readonly inputs: readonly [{
|
|
27
67
|
readonly internalType: "address";
|
|
@@ -30,6 +70,65 @@ export declare const SWEEPER_ABI: readonly [{
|
|
|
30
70
|
}];
|
|
31
71
|
readonly name: "SafeERC20FailedOperation";
|
|
32
72
|
readonly type: "error";
|
|
73
|
+
}, {
|
|
74
|
+
readonly inputs: readonly [];
|
|
75
|
+
readonly name: "SweepParamsRequired";
|
|
76
|
+
readonly type: "error";
|
|
77
|
+
}, {
|
|
78
|
+
readonly inputs: readonly [];
|
|
79
|
+
readonly name: "UnexpectedParams";
|
|
80
|
+
readonly type: "error";
|
|
81
|
+
}, {
|
|
82
|
+
readonly inputs: readonly [];
|
|
83
|
+
readonly name: "UnexpectedValue";
|
|
84
|
+
readonly type: "error";
|
|
85
|
+
}, {
|
|
86
|
+
readonly inputs: readonly [];
|
|
87
|
+
readonly name: "UnswapPathMissing";
|
|
88
|
+
readonly type: "error";
|
|
89
|
+
}, {
|
|
90
|
+
readonly inputs: readonly [];
|
|
91
|
+
readonly name: "UntrustedComposeCaller";
|
|
92
|
+
readonly type: "error";
|
|
93
|
+
}, {
|
|
94
|
+
readonly inputs: readonly [];
|
|
95
|
+
readonly name: "UntrustedComposeSource";
|
|
96
|
+
readonly type: "error";
|
|
97
|
+
}, {
|
|
98
|
+
readonly anonymous: false;
|
|
99
|
+
readonly inputs: readonly [{
|
|
100
|
+
readonly indexed: true;
|
|
101
|
+
readonly internalType: "address";
|
|
102
|
+
readonly name: "token";
|
|
103
|
+
readonly type: "address";
|
|
104
|
+
}, {
|
|
105
|
+
readonly indexed: true;
|
|
106
|
+
readonly internalType: "address";
|
|
107
|
+
readonly name: "user";
|
|
108
|
+
readonly type: "address";
|
|
109
|
+
}, {
|
|
110
|
+
readonly indexed: false;
|
|
111
|
+
readonly internalType: "uint256";
|
|
112
|
+
readonly name: "amountIn";
|
|
113
|
+
readonly type: "uint256";
|
|
114
|
+
}, {
|
|
115
|
+
readonly indexed: false;
|
|
116
|
+
readonly internalType: "address";
|
|
117
|
+
readonly name: "bridgeToken";
|
|
118
|
+
readonly type: "address";
|
|
119
|
+
}, {
|
|
120
|
+
readonly indexed: false;
|
|
121
|
+
readonly internalType: "uint256";
|
|
122
|
+
readonly name: "amountBridged";
|
|
123
|
+
readonly type: "uint256";
|
|
124
|
+
}, {
|
|
125
|
+
readonly indexed: false;
|
|
126
|
+
readonly internalType: "address";
|
|
127
|
+
readonly name: "destination";
|
|
128
|
+
readonly type: "address";
|
|
129
|
+
}];
|
|
130
|
+
readonly name: "Bridged";
|
|
131
|
+
readonly type: "event";
|
|
33
132
|
}, {
|
|
34
133
|
readonly anonymous: false;
|
|
35
134
|
readonly inputs: readonly [{
|
|
@@ -85,6 +184,31 @@ export declare const SWEEPER_ABI: readonly [{
|
|
|
85
184
|
}];
|
|
86
185
|
readonly name: "Swept";
|
|
87
186
|
readonly type: "event";
|
|
187
|
+
}, {
|
|
188
|
+
readonly anonymous: false;
|
|
189
|
+
readonly inputs: readonly [{
|
|
190
|
+
readonly indexed: true;
|
|
191
|
+
readonly internalType: "address";
|
|
192
|
+
readonly name: "tokenIn";
|
|
193
|
+
readonly type: "address";
|
|
194
|
+
}, {
|
|
195
|
+
readonly indexed: true;
|
|
196
|
+
readonly internalType: "address";
|
|
197
|
+
readonly name: "tokenOut";
|
|
198
|
+
readonly type: "address";
|
|
199
|
+
}, {
|
|
200
|
+
readonly indexed: false;
|
|
201
|
+
readonly internalType: "uint256";
|
|
202
|
+
readonly name: "amountIn";
|
|
203
|
+
readonly type: "uint256";
|
|
204
|
+
}, {
|
|
205
|
+
readonly indexed: false;
|
|
206
|
+
readonly internalType: "uint256";
|
|
207
|
+
readonly name: "amountOut";
|
|
208
|
+
readonly type: "uint256";
|
|
209
|
+
}];
|
|
210
|
+
readonly name: "Unswapped";
|
|
211
|
+
readonly type: "event";
|
|
88
212
|
}, {
|
|
89
213
|
readonly inputs: readonly [];
|
|
90
214
|
readonly name: "config";
|
|
@@ -96,33 +220,113 @@ export declare const SWEEPER_ABI: readonly [{
|
|
|
96
220
|
readonly internalType: "string";
|
|
97
221
|
readonly name: "applicationId";
|
|
98
222
|
readonly type: "string";
|
|
223
|
+
}, {
|
|
224
|
+
readonly internalType: "address";
|
|
225
|
+
readonly name: "hubToken";
|
|
226
|
+
readonly type: "address";
|
|
99
227
|
}];
|
|
100
228
|
readonly stateMutability: "view";
|
|
101
229
|
readonly type: "function";
|
|
102
230
|
}, {
|
|
103
231
|
readonly inputs: readonly [];
|
|
104
|
-
readonly name: "
|
|
232
|
+
readonly name: "factory";
|
|
233
|
+
readonly outputs: readonly [{
|
|
234
|
+
readonly internalType: "contract ISweeperFactory";
|
|
235
|
+
readonly name: "";
|
|
236
|
+
readonly type: "address";
|
|
237
|
+
}];
|
|
238
|
+
readonly stateMutability: "view";
|
|
239
|
+
readonly type: "function";
|
|
240
|
+
}, {
|
|
241
|
+
readonly inputs: readonly [{
|
|
242
|
+
readonly internalType: "address";
|
|
243
|
+
readonly name: "from";
|
|
244
|
+
readonly type: "address";
|
|
245
|
+
}, {
|
|
246
|
+
readonly internalType: "bytes32";
|
|
247
|
+
readonly name: "";
|
|
248
|
+
readonly type: "bytes32";
|
|
249
|
+
}, {
|
|
250
|
+
readonly internalType: "bytes";
|
|
251
|
+
readonly name: "message";
|
|
252
|
+
readonly type: "bytes";
|
|
253
|
+
}, {
|
|
254
|
+
readonly internalType: "address";
|
|
255
|
+
readonly name: "";
|
|
256
|
+
readonly type: "address";
|
|
257
|
+
}, {
|
|
258
|
+
readonly internalType: "bytes";
|
|
259
|
+
readonly name: "";
|
|
260
|
+
readonly type: "bytes";
|
|
261
|
+
}];
|
|
262
|
+
readonly name: "lzCompose";
|
|
263
|
+
readonly outputs: readonly [];
|
|
264
|
+
readonly stateMutability: "payable";
|
|
265
|
+
readonly type: "function";
|
|
266
|
+
}, {
|
|
267
|
+
readonly inputs: readonly [{
|
|
268
|
+
readonly internalType: "address";
|
|
269
|
+
readonly name: "token";
|
|
270
|
+
readonly type: "address";
|
|
271
|
+
}];
|
|
272
|
+
readonly name: "refund";
|
|
105
273
|
readonly outputs: readonly [];
|
|
106
274
|
readonly stateMutability: "nonpayable";
|
|
107
275
|
readonly type: "function";
|
|
108
276
|
}, {
|
|
109
277
|
readonly inputs: readonly [];
|
|
110
|
-
readonly name: "
|
|
111
|
-
readonly outputs: readonly [
|
|
112
|
-
|
|
113
|
-
|
|
278
|
+
readonly name: "refundNative";
|
|
279
|
+
readonly outputs: readonly [];
|
|
280
|
+
readonly stateMutability: "nonpayable";
|
|
281
|
+
readonly type: "function";
|
|
282
|
+
}, {
|
|
283
|
+
readonly inputs: readonly [{
|
|
284
|
+
readonly internalType: "address";
|
|
285
|
+
readonly name: "token";
|
|
114
286
|
readonly type: "address";
|
|
115
287
|
}];
|
|
116
|
-
readonly
|
|
288
|
+
readonly name: "sweep";
|
|
289
|
+
readonly outputs: readonly [];
|
|
290
|
+
readonly stateMutability: "nonpayable";
|
|
117
291
|
readonly type: "function";
|
|
118
292
|
}, {
|
|
119
293
|
readonly inputs: readonly [{
|
|
120
294
|
readonly internalType: "address";
|
|
121
295
|
readonly name: "token";
|
|
122
296
|
readonly type: "address";
|
|
297
|
+
}, {
|
|
298
|
+
readonly components: readonly [{
|
|
299
|
+
readonly internalType: "uint256";
|
|
300
|
+
readonly name: "minSwapOut";
|
|
301
|
+
readonly type: "uint256";
|
|
302
|
+
}, {
|
|
303
|
+
readonly internalType: "uint256";
|
|
304
|
+
readonly name: "minBridgeOut";
|
|
305
|
+
readonly type: "uint256";
|
|
306
|
+
}, {
|
|
307
|
+
readonly internalType: "bytes";
|
|
308
|
+
readonly name: "lzExtraOptions";
|
|
309
|
+
readonly type: "bytes";
|
|
310
|
+
}];
|
|
311
|
+
readonly internalType: "struct SweepParams";
|
|
312
|
+
readonly name: "params";
|
|
313
|
+
readonly type: "tuple";
|
|
123
314
|
}];
|
|
124
315
|
readonly name: "sweep";
|
|
125
316
|
readonly outputs: readonly [];
|
|
126
|
-
readonly stateMutability: "
|
|
317
|
+
readonly stateMutability: "payable";
|
|
127
318
|
readonly type: "function";
|
|
319
|
+
}, {
|
|
320
|
+
readonly inputs: readonly [];
|
|
321
|
+
readonly name: "unwrapHelper";
|
|
322
|
+
readonly outputs: readonly [{
|
|
323
|
+
readonly internalType: "address";
|
|
324
|
+
readonly name: "";
|
|
325
|
+
readonly type: "address";
|
|
326
|
+
}];
|
|
327
|
+
readonly stateMutability: "view";
|
|
328
|
+
readonly type: "function";
|
|
329
|
+
}, {
|
|
330
|
+
readonly stateMutability: "payable";
|
|
331
|
+
readonly type: "receive";
|
|
128
332
|
}];
|
package/dist/abis/sweeper.js
CHANGED
|
@@ -3,23 +3,68 @@ export const SWEEPER_ABI = [
|
|
|
3
3
|
inputs: [
|
|
4
4
|
{
|
|
5
5
|
internalType: "address",
|
|
6
|
-
name: "
|
|
6
|
+
name: "factory_",
|
|
7
|
+
type: "address",
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
internalType: "address",
|
|
11
|
+
name: "unwrapHelper_",
|
|
7
12
|
type: "address",
|
|
8
13
|
},
|
|
9
14
|
],
|
|
10
15
|
stateMutability: "nonpayable",
|
|
11
16
|
type: "constructor",
|
|
12
17
|
},
|
|
18
|
+
{
|
|
19
|
+
inputs: [],
|
|
20
|
+
name: "ChainNotConfigured",
|
|
21
|
+
type: "error",
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
inputs: [],
|
|
25
|
+
name: "ComposeNotSupported",
|
|
26
|
+
type: "error",
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
inputs: [],
|
|
30
|
+
name: "ComposeSourceMismatch",
|
|
31
|
+
type: "error",
|
|
32
|
+
},
|
|
13
33
|
{
|
|
14
34
|
inputs: [],
|
|
15
35
|
name: "InvalidAddress",
|
|
16
36
|
type: "error",
|
|
17
37
|
},
|
|
38
|
+
{
|
|
39
|
+
inputs: [],
|
|
40
|
+
name: "NativeNotAccepted",
|
|
41
|
+
type: "error",
|
|
42
|
+
},
|
|
18
43
|
{
|
|
19
44
|
inputs: [],
|
|
20
45
|
name: "NativeTransferFailed",
|
|
21
46
|
type: "error",
|
|
22
47
|
},
|
|
48
|
+
{
|
|
49
|
+
inputs: [],
|
|
50
|
+
name: "NoRoute",
|
|
51
|
+
type: "error",
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
inputs: [],
|
|
55
|
+
name: "NotExecutor",
|
|
56
|
+
type: "error",
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
inputs: [],
|
|
60
|
+
name: "NotHub",
|
|
61
|
+
type: "error",
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
inputs: [],
|
|
65
|
+
name: "NotRemote",
|
|
66
|
+
type: "error",
|
|
67
|
+
},
|
|
23
68
|
{
|
|
24
69
|
inputs: [],
|
|
25
70
|
name: "NothingToSweep",
|
|
@@ -30,6 +75,11 @@ export const SWEEPER_ABI = [
|
|
|
30
75
|
name: "OnlyClone",
|
|
31
76
|
type: "error",
|
|
32
77
|
},
|
|
78
|
+
{
|
|
79
|
+
inputs: [],
|
|
80
|
+
name: "RoutedToken",
|
|
81
|
+
type: "error",
|
|
82
|
+
},
|
|
33
83
|
{
|
|
34
84
|
inputs: [
|
|
35
85
|
{
|
|
@@ -41,6 +91,79 @@ export const SWEEPER_ABI = [
|
|
|
41
91
|
name: "SafeERC20FailedOperation",
|
|
42
92
|
type: "error",
|
|
43
93
|
},
|
|
94
|
+
{
|
|
95
|
+
inputs: [],
|
|
96
|
+
name: "SweepParamsRequired",
|
|
97
|
+
type: "error",
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
inputs: [],
|
|
101
|
+
name: "UnexpectedParams",
|
|
102
|
+
type: "error",
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
inputs: [],
|
|
106
|
+
name: "UnexpectedValue",
|
|
107
|
+
type: "error",
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
inputs: [],
|
|
111
|
+
name: "UnswapPathMissing",
|
|
112
|
+
type: "error",
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
inputs: [],
|
|
116
|
+
name: "UntrustedComposeCaller",
|
|
117
|
+
type: "error",
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
inputs: [],
|
|
121
|
+
name: "UntrustedComposeSource",
|
|
122
|
+
type: "error",
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
anonymous: false,
|
|
126
|
+
inputs: [
|
|
127
|
+
{
|
|
128
|
+
indexed: true,
|
|
129
|
+
internalType: "address",
|
|
130
|
+
name: "token",
|
|
131
|
+
type: "address",
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
indexed: true,
|
|
135
|
+
internalType: "address",
|
|
136
|
+
name: "user",
|
|
137
|
+
type: "address",
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
indexed: false,
|
|
141
|
+
internalType: "uint256",
|
|
142
|
+
name: "amountIn",
|
|
143
|
+
type: "uint256",
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
indexed: false,
|
|
147
|
+
internalType: "address",
|
|
148
|
+
name: "bridgeToken",
|
|
149
|
+
type: "address",
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
indexed: false,
|
|
153
|
+
internalType: "uint256",
|
|
154
|
+
name: "amountBridged",
|
|
155
|
+
type: "uint256",
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
indexed: false,
|
|
159
|
+
internalType: "address",
|
|
160
|
+
name: "destination",
|
|
161
|
+
type: "address",
|
|
162
|
+
},
|
|
163
|
+
],
|
|
164
|
+
name: "Bridged",
|
|
165
|
+
type: "event",
|
|
166
|
+
},
|
|
44
167
|
{
|
|
45
168
|
anonymous: false,
|
|
46
169
|
inputs: [
|
|
@@ -110,6 +233,37 @@ export const SWEEPER_ABI = [
|
|
|
110
233
|
name: "Swept",
|
|
111
234
|
type: "event",
|
|
112
235
|
},
|
|
236
|
+
{
|
|
237
|
+
anonymous: false,
|
|
238
|
+
inputs: [
|
|
239
|
+
{
|
|
240
|
+
indexed: true,
|
|
241
|
+
internalType: "address",
|
|
242
|
+
name: "tokenIn",
|
|
243
|
+
type: "address",
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
indexed: true,
|
|
247
|
+
internalType: "address",
|
|
248
|
+
name: "tokenOut",
|
|
249
|
+
type: "address",
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
indexed: false,
|
|
253
|
+
internalType: "uint256",
|
|
254
|
+
name: "amountIn",
|
|
255
|
+
type: "uint256",
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
indexed: false,
|
|
259
|
+
internalType: "uint256",
|
|
260
|
+
name: "amountOut",
|
|
261
|
+
type: "uint256",
|
|
262
|
+
},
|
|
263
|
+
],
|
|
264
|
+
name: "Unswapped",
|
|
265
|
+
type: "event",
|
|
266
|
+
},
|
|
113
267
|
{
|
|
114
268
|
inputs: [],
|
|
115
269
|
name: "config",
|
|
@@ -124,28 +278,92 @@ export const SWEEPER_ABI = [
|
|
|
124
278
|
name: "applicationId",
|
|
125
279
|
type: "string",
|
|
126
280
|
},
|
|
281
|
+
{
|
|
282
|
+
internalType: "address",
|
|
283
|
+
name: "hubToken",
|
|
284
|
+
type: "address",
|
|
285
|
+
},
|
|
127
286
|
],
|
|
128
287
|
stateMutability: "view",
|
|
129
288
|
type: "function",
|
|
130
289
|
},
|
|
131
290
|
{
|
|
132
291
|
inputs: [],
|
|
133
|
-
name: "
|
|
292
|
+
name: "factory",
|
|
293
|
+
outputs: [
|
|
294
|
+
{
|
|
295
|
+
internalType: "contract ISweeperFactory",
|
|
296
|
+
name: "",
|
|
297
|
+
type: "address",
|
|
298
|
+
},
|
|
299
|
+
],
|
|
300
|
+
stateMutability: "view",
|
|
301
|
+
type: "function",
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
inputs: [
|
|
305
|
+
{
|
|
306
|
+
internalType: "address",
|
|
307
|
+
name: "from",
|
|
308
|
+
type: "address",
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
internalType: "bytes32",
|
|
312
|
+
name: "",
|
|
313
|
+
type: "bytes32",
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
internalType: "bytes",
|
|
317
|
+
name: "message",
|
|
318
|
+
type: "bytes",
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
internalType: "address",
|
|
322
|
+
name: "",
|
|
323
|
+
type: "address",
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
internalType: "bytes",
|
|
327
|
+
name: "",
|
|
328
|
+
type: "bytes",
|
|
329
|
+
},
|
|
330
|
+
],
|
|
331
|
+
name: "lzCompose",
|
|
332
|
+
outputs: [],
|
|
333
|
+
stateMutability: "payable",
|
|
334
|
+
type: "function",
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
inputs: [
|
|
338
|
+
{
|
|
339
|
+
internalType: "address",
|
|
340
|
+
name: "token",
|
|
341
|
+
type: "address",
|
|
342
|
+
},
|
|
343
|
+
],
|
|
344
|
+
name: "refund",
|
|
134
345
|
outputs: [],
|
|
135
346
|
stateMutability: "nonpayable",
|
|
136
347
|
type: "function",
|
|
137
348
|
},
|
|
138
349
|
{
|
|
139
350
|
inputs: [],
|
|
140
|
-
name: "
|
|
141
|
-
outputs: [
|
|
351
|
+
name: "refundNative",
|
|
352
|
+
outputs: [],
|
|
353
|
+
stateMutability: "nonpayable",
|
|
354
|
+
type: "function",
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
inputs: [
|
|
142
358
|
{
|
|
143
|
-
internalType: "
|
|
144
|
-
name: "",
|
|
359
|
+
internalType: "address",
|
|
360
|
+
name: "token",
|
|
145
361
|
type: "address",
|
|
146
362
|
},
|
|
147
363
|
],
|
|
148
|
-
|
|
364
|
+
name: "sweep",
|
|
365
|
+
outputs: [],
|
|
366
|
+
stateMutability: "nonpayable",
|
|
149
367
|
type: "function",
|
|
150
368
|
},
|
|
151
369
|
{
|
|
@@ -155,10 +373,49 @@ export const SWEEPER_ABI = [
|
|
|
155
373
|
name: "token",
|
|
156
374
|
type: "address",
|
|
157
375
|
},
|
|
376
|
+
{
|
|
377
|
+
components: [
|
|
378
|
+
{
|
|
379
|
+
internalType: "uint256",
|
|
380
|
+
name: "minSwapOut",
|
|
381
|
+
type: "uint256",
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
internalType: "uint256",
|
|
385
|
+
name: "minBridgeOut",
|
|
386
|
+
type: "uint256",
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
internalType: "bytes",
|
|
390
|
+
name: "lzExtraOptions",
|
|
391
|
+
type: "bytes",
|
|
392
|
+
},
|
|
393
|
+
],
|
|
394
|
+
internalType: "struct SweepParams",
|
|
395
|
+
name: "params",
|
|
396
|
+
type: "tuple",
|
|
397
|
+
},
|
|
158
398
|
],
|
|
159
399
|
name: "sweep",
|
|
160
400
|
outputs: [],
|
|
161
|
-
stateMutability: "
|
|
401
|
+
stateMutability: "payable",
|
|
162
402
|
type: "function",
|
|
163
403
|
},
|
|
404
|
+
{
|
|
405
|
+
inputs: [],
|
|
406
|
+
name: "unwrapHelper",
|
|
407
|
+
outputs: [
|
|
408
|
+
{
|
|
409
|
+
internalType: "address",
|
|
410
|
+
name: "",
|
|
411
|
+
type: "address",
|
|
412
|
+
},
|
|
413
|
+
],
|
|
414
|
+
stateMutability: "view",
|
|
415
|
+
type: "function",
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
stateMutability: "payable",
|
|
419
|
+
type: "receive",
|
|
420
|
+
},
|
|
164
421
|
];
|