@gitmyabi/vault 1.0.1 → 1.0.2
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/README.md +3 -3
- package/contracts/Vault_json.d.ts +1425 -290
- package/contracts/Vault_json.js +1431 -323
- package/contracts/Vault_json.ts +1727 -324
- package/package.json +3 -3
|
@@ -1,4 +1,44 @@
|
|
|
1
1
|
import type { Address, PublicClient, WalletClient } from 'viem';
|
|
2
|
+
/**
|
|
3
|
+
* IShared.SigData struct type
|
|
4
|
+
*/
|
|
5
|
+
export type IShared_SigData = {
|
|
6
|
+
sig: bigint;
|
|
7
|
+
nonce: bigint;
|
|
8
|
+
kTimesGAddress: `0x${string}`;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* IShared.DeployFetchParams struct type
|
|
12
|
+
*/
|
|
13
|
+
export type IShared_DeployFetchParams = {
|
|
14
|
+
swapID: `0x${string}`;
|
|
15
|
+
token: `0x${string}`;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* IShared.FetchParams struct type
|
|
19
|
+
*/
|
|
20
|
+
export type IShared_FetchParams = {
|
|
21
|
+
fetchContract: `0x${string}`;
|
|
22
|
+
token: `0x${string}`;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* IShared.TransferParams struct type
|
|
26
|
+
*/
|
|
27
|
+
export type IShared_TransferParams = {
|
|
28
|
+
token: `0x${string}`;
|
|
29
|
+
recipient: `0x${string}`;
|
|
30
|
+
amount: bigint;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* IMulticall.Call struct type
|
|
34
|
+
*/
|
|
35
|
+
export type IMulticall_Call = {
|
|
36
|
+
callType: bigint;
|
|
37
|
+
target: `0x${string}`;
|
|
38
|
+
value: bigint;
|
|
39
|
+
callData: `0x${string}`;
|
|
40
|
+
payload: `0x${string}`;
|
|
41
|
+
};
|
|
2
42
|
/**
|
|
3
43
|
* Vault_json ABI
|
|
4
44
|
*
|
|
@@ -6,251 +46,721 @@ import type { Address, PublicClient, WalletClient } from 'viem';
|
|
|
6
46
|
*/
|
|
7
47
|
export declare const Vault_jsonAbi: readonly [{
|
|
8
48
|
readonly inputs: readonly [{
|
|
9
|
-
readonly internalType: "
|
|
10
|
-
readonly name: "
|
|
11
|
-
readonly type: "address";
|
|
12
|
-
}, {
|
|
13
|
-
readonly internalType: "contract IRateProviderRegistry";
|
|
14
|
-
readonly name: "_rpr";
|
|
15
|
-
readonly type: "address";
|
|
16
|
-
}, {
|
|
17
|
-
readonly internalType: "address";
|
|
18
|
-
readonly name: "_tasset";
|
|
49
|
+
readonly internalType: "contract IKeyManager";
|
|
50
|
+
readonly name: "keyManager";
|
|
19
51
|
readonly type: "address";
|
|
20
52
|
}];
|
|
21
53
|
readonly stateMutability: "nonpayable";
|
|
22
54
|
readonly type: "constructor";
|
|
23
55
|
}, {
|
|
56
|
+
readonly anonymous: false;
|
|
24
57
|
readonly inputs: readonly [{
|
|
25
|
-
readonly
|
|
26
|
-
readonly
|
|
27
|
-
readonly
|
|
58
|
+
readonly indexed: false;
|
|
59
|
+
readonly internalType: "bytes32";
|
|
60
|
+
readonly name: "swapID";
|
|
61
|
+
readonly type: "bytes32";
|
|
62
|
+
}, {
|
|
63
|
+
readonly indexed: false;
|
|
64
|
+
readonly internalType: "uint256";
|
|
65
|
+
readonly name: "amount";
|
|
66
|
+
readonly type: "uint256";
|
|
28
67
|
}];
|
|
29
|
-
readonly name: "
|
|
30
|
-
readonly type: "
|
|
68
|
+
readonly name: "AddGasNative";
|
|
69
|
+
readonly type: "event";
|
|
31
70
|
}, {
|
|
71
|
+
readonly anonymous: false;
|
|
32
72
|
readonly inputs: readonly [{
|
|
73
|
+
readonly indexed: false;
|
|
74
|
+
readonly internalType: "bytes32";
|
|
75
|
+
readonly name: "swapID";
|
|
76
|
+
readonly type: "bytes32";
|
|
77
|
+
}, {
|
|
78
|
+
readonly indexed: false;
|
|
79
|
+
readonly internalType: "uint256";
|
|
80
|
+
readonly name: "amount";
|
|
81
|
+
readonly type: "uint256";
|
|
82
|
+
}, {
|
|
83
|
+
readonly indexed: false;
|
|
33
84
|
readonly internalType: "address";
|
|
34
|
-
readonly name: "
|
|
85
|
+
readonly name: "token";
|
|
35
86
|
readonly type: "address";
|
|
36
87
|
}];
|
|
37
|
-
readonly name: "
|
|
38
|
-
readonly type: "
|
|
39
|
-
}, {
|
|
40
|
-
readonly inputs: readonly [];
|
|
41
|
-
readonly name: "Failed";
|
|
42
|
-
readonly type: "error";
|
|
43
|
-
}, {
|
|
44
|
-
readonly inputs: readonly [];
|
|
45
|
-
readonly name: "FailedInnerCall";
|
|
46
|
-
readonly type: "error";
|
|
47
|
-
}, {
|
|
48
|
-
readonly inputs: readonly [];
|
|
49
|
-
readonly name: "InvalidAddress";
|
|
50
|
-
readonly type: "error";
|
|
51
|
-
}, {
|
|
52
|
-
readonly inputs: readonly [];
|
|
53
|
-
readonly name: "InvalidStrategy";
|
|
54
|
-
readonly type: "error";
|
|
55
|
-
}, {
|
|
56
|
-
readonly inputs: readonly [];
|
|
57
|
-
readonly name: "NotRescuer";
|
|
58
|
-
readonly type: "error";
|
|
88
|
+
readonly name: "AddGasToken";
|
|
89
|
+
readonly type: "event";
|
|
59
90
|
}, {
|
|
91
|
+
readonly anonymous: false;
|
|
60
92
|
readonly inputs: readonly [{
|
|
61
|
-
readonly
|
|
62
|
-
readonly
|
|
63
|
-
readonly
|
|
93
|
+
readonly indexed: false;
|
|
94
|
+
readonly internalType: "bool";
|
|
95
|
+
readonly name: "communityGuardDisabled";
|
|
96
|
+
readonly type: "bool";
|
|
64
97
|
}];
|
|
65
|
-
readonly name: "
|
|
66
|
-
readonly type: "
|
|
98
|
+
readonly name: "CommunityGuardDisabled";
|
|
99
|
+
readonly type: "event";
|
|
67
100
|
}, {
|
|
101
|
+
readonly anonymous: false;
|
|
68
102
|
readonly inputs: readonly [{
|
|
103
|
+
readonly indexed: true;
|
|
104
|
+
readonly internalType: "address payable";
|
|
105
|
+
readonly name: "multicallAddress";
|
|
106
|
+
readonly type: "address";
|
|
107
|
+
}, {
|
|
108
|
+
readonly indexed: false;
|
|
109
|
+
readonly internalType: "uint256";
|
|
110
|
+
readonly name: "amount";
|
|
111
|
+
readonly type: "uint256";
|
|
112
|
+
}, {
|
|
113
|
+
readonly indexed: true;
|
|
69
114
|
readonly internalType: "address";
|
|
70
|
-
readonly name: "
|
|
115
|
+
readonly name: "token";
|
|
71
116
|
readonly type: "address";
|
|
117
|
+
}, {
|
|
118
|
+
readonly indexed: false;
|
|
119
|
+
readonly internalType: "bytes";
|
|
120
|
+
readonly name: "reason";
|
|
121
|
+
readonly type: "bytes";
|
|
72
122
|
}];
|
|
73
|
-
readonly name: "
|
|
74
|
-
readonly type: "
|
|
75
|
-
}, {
|
|
76
|
-
readonly inputs: readonly [];
|
|
77
|
-
readonly name: "RescueFailed";
|
|
78
|
-
readonly type: "error";
|
|
123
|
+
readonly name: "ExecuteActionsFailed";
|
|
124
|
+
readonly type: "event";
|
|
79
125
|
}, {
|
|
126
|
+
readonly anonymous: false;
|
|
80
127
|
readonly inputs: readonly [{
|
|
128
|
+
readonly indexed: true;
|
|
81
129
|
readonly internalType: "address";
|
|
82
|
-
readonly name: "
|
|
130
|
+
readonly name: "sender";
|
|
83
131
|
readonly type: "address";
|
|
132
|
+
}, {
|
|
133
|
+
readonly indexed: false;
|
|
134
|
+
readonly internalType: "uint256";
|
|
135
|
+
readonly name: "amount";
|
|
136
|
+
readonly type: "uint256";
|
|
84
137
|
}];
|
|
85
|
-
readonly name: "
|
|
86
|
-
readonly type: "
|
|
87
|
-
}, {
|
|
88
|
-
readonly inputs: readonly [];
|
|
89
|
-
readonly name: "UnsupportedDecimals";
|
|
90
|
-
readonly type: "error";
|
|
138
|
+
readonly name: "FetchedNative";
|
|
139
|
+
readonly type: "event";
|
|
91
140
|
}, {
|
|
92
141
|
readonly anonymous: false;
|
|
93
142
|
readonly inputs: readonly [{
|
|
94
143
|
readonly indexed: false;
|
|
95
|
-
readonly internalType: "
|
|
96
|
-
readonly name: "
|
|
97
|
-
readonly type: "
|
|
144
|
+
readonly internalType: "bool";
|
|
145
|
+
readonly name: "suspended";
|
|
146
|
+
readonly type: "bool";
|
|
98
147
|
}];
|
|
99
|
-
readonly name: "
|
|
148
|
+
readonly name: "Suspended";
|
|
100
149
|
readonly type: "event";
|
|
101
150
|
}, {
|
|
102
151
|
readonly anonymous: false;
|
|
103
152
|
readonly inputs: readonly [{
|
|
104
153
|
readonly indexed: false;
|
|
154
|
+
readonly internalType: "uint32";
|
|
155
|
+
readonly name: "dstChain";
|
|
156
|
+
readonly type: "uint32";
|
|
157
|
+
}, {
|
|
158
|
+
readonly indexed: false;
|
|
159
|
+
readonly internalType: "bytes";
|
|
160
|
+
readonly name: "dstAddress";
|
|
161
|
+
readonly type: "bytes";
|
|
162
|
+
}, {
|
|
163
|
+
readonly indexed: false;
|
|
164
|
+
readonly internalType: "uint32";
|
|
165
|
+
readonly name: "dstToken";
|
|
166
|
+
readonly type: "uint32";
|
|
167
|
+
}, {
|
|
168
|
+
readonly indexed: false;
|
|
169
|
+
readonly internalType: "uint256";
|
|
170
|
+
readonly name: "amount";
|
|
171
|
+
readonly type: "uint256";
|
|
172
|
+
}, {
|
|
173
|
+
readonly indexed: true;
|
|
105
174
|
readonly internalType: "address";
|
|
106
|
-
readonly name: "
|
|
175
|
+
readonly name: "sender";
|
|
107
176
|
readonly type: "address";
|
|
177
|
+
}, {
|
|
178
|
+
readonly indexed: false;
|
|
179
|
+
readonly internalType: "bytes";
|
|
180
|
+
readonly name: "cfParameters";
|
|
181
|
+
readonly type: "bytes";
|
|
108
182
|
}];
|
|
109
|
-
readonly name: "
|
|
183
|
+
readonly name: "SwapNative";
|
|
110
184
|
readonly type: "event";
|
|
111
185
|
}, {
|
|
112
186
|
readonly anonymous: false;
|
|
113
187
|
readonly inputs: readonly [{
|
|
114
|
-
readonly indexed:
|
|
188
|
+
readonly indexed: false;
|
|
189
|
+
readonly internalType: "uint32";
|
|
190
|
+
readonly name: "dstChain";
|
|
191
|
+
readonly type: "uint32";
|
|
192
|
+
}, {
|
|
193
|
+
readonly indexed: false;
|
|
194
|
+
readonly internalType: "bytes";
|
|
195
|
+
readonly name: "dstAddress";
|
|
196
|
+
readonly type: "bytes";
|
|
197
|
+
}, {
|
|
198
|
+
readonly indexed: false;
|
|
199
|
+
readonly internalType: "uint32";
|
|
200
|
+
readonly name: "dstToken";
|
|
201
|
+
readonly type: "uint32";
|
|
202
|
+
}, {
|
|
203
|
+
readonly indexed: false;
|
|
115
204
|
readonly internalType: "address";
|
|
116
|
-
readonly name: "
|
|
205
|
+
readonly name: "srcToken";
|
|
117
206
|
readonly type: "address";
|
|
207
|
+
}, {
|
|
208
|
+
readonly indexed: false;
|
|
209
|
+
readonly internalType: "uint256";
|
|
210
|
+
readonly name: "amount";
|
|
211
|
+
readonly type: "uint256";
|
|
118
212
|
}, {
|
|
119
213
|
readonly indexed: true;
|
|
120
214
|
readonly internalType: "address";
|
|
121
|
-
readonly name: "
|
|
215
|
+
readonly name: "sender";
|
|
122
216
|
readonly type: "address";
|
|
217
|
+
}, {
|
|
218
|
+
readonly indexed: false;
|
|
219
|
+
readonly internalType: "bytes";
|
|
220
|
+
readonly name: "cfParameters";
|
|
221
|
+
readonly type: "bytes";
|
|
123
222
|
}];
|
|
124
|
-
readonly name: "
|
|
223
|
+
readonly name: "SwapToken";
|
|
125
224
|
readonly type: "event";
|
|
126
225
|
}, {
|
|
127
226
|
readonly anonymous: false;
|
|
128
227
|
readonly inputs: readonly [{
|
|
129
228
|
readonly indexed: true;
|
|
130
|
-
readonly internalType: "address";
|
|
131
|
-
readonly name: "
|
|
229
|
+
readonly internalType: "address payable";
|
|
230
|
+
readonly name: "recipient";
|
|
132
231
|
readonly type: "address";
|
|
133
232
|
}, {
|
|
134
|
-
readonly indexed:
|
|
135
|
-
readonly internalType: "
|
|
136
|
-
readonly name: "
|
|
137
|
-
readonly type: "
|
|
233
|
+
readonly indexed: false;
|
|
234
|
+
readonly internalType: "uint256";
|
|
235
|
+
readonly name: "amount";
|
|
236
|
+
readonly type: "uint256";
|
|
138
237
|
}];
|
|
139
|
-
readonly name: "
|
|
238
|
+
readonly name: "TransferNativeFailed";
|
|
140
239
|
readonly type: "event";
|
|
141
240
|
}, {
|
|
142
241
|
readonly anonymous: false;
|
|
143
242
|
readonly inputs: readonly [{
|
|
243
|
+
readonly indexed: true;
|
|
244
|
+
readonly internalType: "address payable";
|
|
245
|
+
readonly name: "recipient";
|
|
246
|
+
readonly type: "address";
|
|
247
|
+
}, {
|
|
248
|
+
readonly indexed: false;
|
|
249
|
+
readonly internalType: "uint256";
|
|
250
|
+
readonly name: "amount";
|
|
251
|
+
readonly type: "uint256";
|
|
252
|
+
}, {
|
|
144
253
|
readonly indexed: true;
|
|
145
254
|
readonly internalType: "address";
|
|
146
|
-
readonly name: "
|
|
255
|
+
readonly name: "token";
|
|
147
256
|
readonly type: "address";
|
|
148
257
|
}, {
|
|
258
|
+
readonly indexed: false;
|
|
259
|
+
readonly internalType: "bytes";
|
|
260
|
+
readonly name: "reason";
|
|
261
|
+
readonly type: "bytes";
|
|
262
|
+
}];
|
|
263
|
+
readonly name: "TransferTokenFailed";
|
|
264
|
+
readonly type: "event";
|
|
265
|
+
}, {
|
|
266
|
+
readonly anonymous: false;
|
|
267
|
+
readonly inputs: readonly [{
|
|
149
268
|
readonly indexed: false;
|
|
150
269
|
readonly internalType: "address";
|
|
151
|
-
readonly name: "
|
|
270
|
+
readonly name: "keyManager";
|
|
152
271
|
readonly type: "address";
|
|
153
272
|
}];
|
|
154
|
-
readonly name: "
|
|
273
|
+
readonly name: "UpdatedKeyManager";
|
|
155
274
|
readonly type: "event";
|
|
156
275
|
}, {
|
|
157
276
|
readonly anonymous: false;
|
|
158
277
|
readonly inputs: readonly [{
|
|
278
|
+
readonly indexed: false;
|
|
279
|
+
readonly internalType: "uint32";
|
|
280
|
+
readonly name: "dstChain";
|
|
281
|
+
readonly type: "uint32";
|
|
282
|
+
}, {
|
|
283
|
+
readonly indexed: false;
|
|
284
|
+
readonly internalType: "bytes";
|
|
285
|
+
readonly name: "dstAddress";
|
|
286
|
+
readonly type: "bytes";
|
|
287
|
+
}, {
|
|
288
|
+
readonly indexed: false;
|
|
289
|
+
readonly internalType: "uint32";
|
|
290
|
+
readonly name: "dstToken";
|
|
291
|
+
readonly type: "uint32";
|
|
292
|
+
}, {
|
|
293
|
+
readonly indexed: false;
|
|
294
|
+
readonly internalType: "uint256";
|
|
295
|
+
readonly name: "amount";
|
|
296
|
+
readonly type: "uint256";
|
|
297
|
+
}, {
|
|
159
298
|
readonly indexed: true;
|
|
160
299
|
readonly internalType: "address";
|
|
161
|
-
readonly name: "
|
|
300
|
+
readonly name: "sender";
|
|
162
301
|
readonly type: "address";
|
|
302
|
+
}, {
|
|
303
|
+
readonly indexed: false;
|
|
304
|
+
readonly internalType: "bytes";
|
|
305
|
+
readonly name: "message";
|
|
306
|
+
readonly type: "bytes";
|
|
307
|
+
}, {
|
|
308
|
+
readonly indexed: false;
|
|
309
|
+
readonly internalType: "uint256";
|
|
310
|
+
readonly name: "gasAmount";
|
|
311
|
+
readonly type: "uint256";
|
|
312
|
+
}, {
|
|
313
|
+
readonly indexed: false;
|
|
314
|
+
readonly internalType: "bytes";
|
|
315
|
+
readonly name: "cfParameters";
|
|
316
|
+
readonly type: "bytes";
|
|
163
317
|
}];
|
|
164
|
-
readonly name: "
|
|
318
|
+
readonly name: "XCallNative";
|
|
165
319
|
readonly type: "event";
|
|
166
320
|
}, {
|
|
167
321
|
readonly anonymous: false;
|
|
168
322
|
readonly inputs: readonly [{
|
|
169
|
-
readonly indexed:
|
|
323
|
+
readonly indexed: false;
|
|
324
|
+
readonly internalType: "uint32";
|
|
325
|
+
readonly name: "dstChain";
|
|
326
|
+
readonly type: "uint32";
|
|
327
|
+
}, {
|
|
328
|
+
readonly indexed: false;
|
|
329
|
+
readonly internalType: "bytes";
|
|
330
|
+
readonly name: "dstAddress";
|
|
331
|
+
readonly type: "bytes";
|
|
332
|
+
}, {
|
|
333
|
+
readonly indexed: false;
|
|
334
|
+
readonly internalType: "uint32";
|
|
335
|
+
readonly name: "dstToken";
|
|
336
|
+
readonly type: "uint32";
|
|
337
|
+
}, {
|
|
338
|
+
readonly indexed: false;
|
|
170
339
|
readonly internalType: "address";
|
|
171
|
-
readonly name: "
|
|
340
|
+
readonly name: "srcToken";
|
|
172
341
|
readonly type: "address";
|
|
173
342
|
}, {
|
|
174
343
|
readonly indexed: false;
|
|
344
|
+
readonly internalType: "uint256";
|
|
345
|
+
readonly name: "amount";
|
|
346
|
+
readonly type: "uint256";
|
|
347
|
+
}, {
|
|
348
|
+
readonly indexed: true;
|
|
175
349
|
readonly internalType: "address";
|
|
176
|
-
readonly name: "
|
|
350
|
+
readonly name: "sender";
|
|
177
351
|
readonly type: "address";
|
|
352
|
+
}, {
|
|
353
|
+
readonly indexed: false;
|
|
354
|
+
readonly internalType: "bytes";
|
|
355
|
+
readonly name: "message";
|
|
356
|
+
readonly type: "bytes";
|
|
357
|
+
}, {
|
|
358
|
+
readonly indexed: false;
|
|
359
|
+
readonly internalType: "uint256";
|
|
360
|
+
readonly name: "gasAmount";
|
|
361
|
+
readonly type: "uint256";
|
|
362
|
+
}, {
|
|
363
|
+
readonly indexed: false;
|
|
364
|
+
readonly internalType: "bytes";
|
|
365
|
+
readonly name: "cfParameters";
|
|
366
|
+
readonly type: "bytes";
|
|
178
367
|
}];
|
|
179
|
-
readonly name: "
|
|
368
|
+
readonly name: "XCallToken";
|
|
180
369
|
readonly type: "event";
|
|
181
370
|
}, {
|
|
182
|
-
readonly inputs: readonly [
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
readonly
|
|
186
|
-
|
|
371
|
+
readonly inputs: readonly [{
|
|
372
|
+
readonly internalType: "bytes32";
|
|
373
|
+
readonly name: "swapID";
|
|
374
|
+
readonly type: "bytes32";
|
|
375
|
+
}];
|
|
376
|
+
readonly name: "addGasNative";
|
|
377
|
+
readonly outputs: readonly [];
|
|
378
|
+
readonly stateMutability: "payable";
|
|
379
|
+
readonly type: "function";
|
|
380
|
+
}, {
|
|
381
|
+
readonly inputs: readonly [{
|
|
382
|
+
readonly internalType: "bytes32";
|
|
383
|
+
readonly name: "swapID";
|
|
384
|
+
readonly type: "bytes32";
|
|
385
|
+
}, {
|
|
386
|
+
readonly internalType: "uint256";
|
|
387
|
+
readonly name: "amount";
|
|
388
|
+
readonly type: "uint256";
|
|
389
|
+
}, {
|
|
390
|
+
readonly internalType: "contract IERC20";
|
|
391
|
+
readonly name: "token";
|
|
187
392
|
readonly type: "address";
|
|
188
393
|
}];
|
|
189
|
-
readonly
|
|
394
|
+
readonly name: "addGasToken";
|
|
395
|
+
readonly outputs: readonly [];
|
|
396
|
+
readonly stateMutability: "nonpayable";
|
|
190
397
|
readonly type: "function";
|
|
191
398
|
}, {
|
|
192
|
-
readonly inputs: readonly [
|
|
193
|
-
|
|
399
|
+
readonly inputs: readonly [{
|
|
400
|
+
readonly components: readonly [{
|
|
401
|
+
readonly internalType: "uint256";
|
|
402
|
+
readonly name: "sig";
|
|
403
|
+
readonly type: "uint256";
|
|
404
|
+
}, {
|
|
405
|
+
readonly internalType: "uint256";
|
|
406
|
+
readonly name: "nonce";
|
|
407
|
+
readonly type: "uint256";
|
|
408
|
+
}, {
|
|
409
|
+
readonly internalType: "address";
|
|
410
|
+
readonly name: "kTimesGAddress";
|
|
411
|
+
readonly type: "address";
|
|
412
|
+
}];
|
|
413
|
+
readonly internalType: "struct IShared.SigData";
|
|
414
|
+
readonly name: "sigData";
|
|
415
|
+
readonly type: "tuple";
|
|
416
|
+
}, {
|
|
417
|
+
readonly components: readonly [{
|
|
418
|
+
readonly internalType: "bytes32";
|
|
419
|
+
readonly name: "swapID";
|
|
420
|
+
readonly type: "bytes32";
|
|
421
|
+
}, {
|
|
422
|
+
readonly internalType: "address";
|
|
423
|
+
readonly name: "token";
|
|
424
|
+
readonly type: "address";
|
|
425
|
+
}];
|
|
426
|
+
readonly internalType: "struct IShared.DeployFetchParams[]";
|
|
427
|
+
readonly name: "deployFetchParamsArray";
|
|
428
|
+
readonly type: "tuple[]";
|
|
429
|
+
}, {
|
|
430
|
+
readonly components: readonly [{
|
|
431
|
+
readonly internalType: "address payable";
|
|
432
|
+
readonly name: "fetchContract";
|
|
433
|
+
readonly type: "address";
|
|
434
|
+
}, {
|
|
435
|
+
readonly internalType: "address";
|
|
436
|
+
readonly name: "token";
|
|
437
|
+
readonly type: "address";
|
|
438
|
+
}];
|
|
439
|
+
readonly internalType: "struct IShared.FetchParams[]";
|
|
440
|
+
readonly name: "fetchParamsArray";
|
|
441
|
+
readonly type: "tuple[]";
|
|
442
|
+
}, {
|
|
443
|
+
readonly components: readonly [{
|
|
444
|
+
readonly internalType: "address";
|
|
445
|
+
readonly name: "token";
|
|
446
|
+
readonly type: "address";
|
|
447
|
+
}, {
|
|
448
|
+
readonly internalType: "address payable";
|
|
449
|
+
readonly name: "recipient";
|
|
450
|
+
readonly type: "address";
|
|
451
|
+
}, {
|
|
452
|
+
readonly internalType: "uint256";
|
|
453
|
+
readonly name: "amount";
|
|
454
|
+
readonly type: "uint256";
|
|
455
|
+
}];
|
|
456
|
+
readonly internalType: "struct IShared.TransferParams[]";
|
|
457
|
+
readonly name: "transferParamsArray";
|
|
458
|
+
readonly type: "tuple[]";
|
|
459
|
+
}];
|
|
460
|
+
readonly name: "allBatch";
|
|
194
461
|
readonly outputs: readonly [];
|
|
195
462
|
readonly stateMutability: "nonpayable";
|
|
196
463
|
readonly type: "function";
|
|
197
464
|
}, {
|
|
198
465
|
readonly inputs: readonly [{
|
|
199
|
-
readonly
|
|
200
|
-
|
|
201
|
-
|
|
466
|
+
readonly components: readonly [{
|
|
467
|
+
readonly internalType: "uint256";
|
|
468
|
+
readonly name: "sig";
|
|
469
|
+
readonly type: "uint256";
|
|
470
|
+
}, {
|
|
471
|
+
readonly internalType: "uint256";
|
|
472
|
+
readonly name: "nonce";
|
|
473
|
+
readonly type: "uint256";
|
|
474
|
+
}, {
|
|
475
|
+
readonly internalType: "address";
|
|
476
|
+
readonly name: "kTimesGAddress";
|
|
477
|
+
readonly type: "address";
|
|
478
|
+
}];
|
|
479
|
+
readonly internalType: "struct IShared.SigData";
|
|
480
|
+
readonly name: "sigData";
|
|
481
|
+
readonly type: "tuple";
|
|
482
|
+
}, {
|
|
483
|
+
readonly components: readonly [{
|
|
484
|
+
readonly internalType: "address payable";
|
|
485
|
+
readonly name: "fetchContract";
|
|
486
|
+
readonly type: "address";
|
|
487
|
+
}, {
|
|
488
|
+
readonly internalType: "address";
|
|
489
|
+
readonly name: "token";
|
|
490
|
+
readonly type: "address";
|
|
491
|
+
}];
|
|
492
|
+
readonly internalType: "struct IShared.FetchParams[]";
|
|
493
|
+
readonly name: "fetchParamsArray";
|
|
494
|
+
readonly type: "tuple[]";
|
|
495
|
+
}, {
|
|
496
|
+
readonly components: readonly [{
|
|
497
|
+
readonly internalType: "address";
|
|
498
|
+
readonly name: "token";
|
|
499
|
+
readonly type: "address";
|
|
500
|
+
}, {
|
|
501
|
+
readonly internalType: "address payable";
|
|
502
|
+
readonly name: "recipient";
|
|
503
|
+
readonly type: "address";
|
|
504
|
+
}, {
|
|
505
|
+
readonly internalType: "uint256";
|
|
506
|
+
readonly name: "amount";
|
|
507
|
+
readonly type: "uint256";
|
|
508
|
+
}];
|
|
509
|
+
readonly internalType: "struct IShared.TransferParams[]";
|
|
510
|
+
readonly name: "transferParamsArray";
|
|
511
|
+
readonly type: "tuple[]";
|
|
202
512
|
}];
|
|
203
|
-
readonly name: "
|
|
513
|
+
readonly name: "allBatchV2";
|
|
204
514
|
readonly outputs: readonly [];
|
|
205
515
|
readonly stateMutability: "nonpayable";
|
|
206
516
|
readonly type: "function";
|
|
207
517
|
}, {
|
|
208
|
-
readonly inputs: readonly [
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
518
|
+
readonly inputs: readonly [{
|
|
519
|
+
readonly components: readonly [{
|
|
520
|
+
readonly internalType: "uint256";
|
|
521
|
+
readonly name: "sig";
|
|
522
|
+
readonly type: "uint256";
|
|
523
|
+
}, {
|
|
524
|
+
readonly internalType: "uint256";
|
|
525
|
+
readonly name: "nonce";
|
|
526
|
+
readonly type: "uint256";
|
|
527
|
+
}, {
|
|
528
|
+
readonly internalType: "address";
|
|
529
|
+
readonly name: "kTimesGAddress";
|
|
530
|
+
readonly type: "address";
|
|
531
|
+
}];
|
|
532
|
+
readonly internalType: "struct IShared.SigData";
|
|
533
|
+
readonly name: "sigData";
|
|
534
|
+
readonly type: "tuple";
|
|
535
|
+
}, {
|
|
536
|
+
readonly components: readonly [{
|
|
537
|
+
readonly internalType: "bytes32";
|
|
538
|
+
readonly name: "swapID";
|
|
539
|
+
readonly type: "bytes32";
|
|
540
|
+
}, {
|
|
541
|
+
readonly internalType: "address";
|
|
542
|
+
readonly name: "token";
|
|
543
|
+
readonly type: "address";
|
|
544
|
+
}];
|
|
545
|
+
readonly internalType: "struct IShared.DeployFetchParams[]";
|
|
546
|
+
readonly name: "deployFetchParamsArray";
|
|
547
|
+
readonly type: "tuple[]";
|
|
214
548
|
}];
|
|
215
|
-
readonly
|
|
549
|
+
readonly name: "deployAndFetchBatch";
|
|
550
|
+
readonly outputs: readonly [];
|
|
551
|
+
readonly stateMutability: "nonpayable";
|
|
216
552
|
readonly type: "function";
|
|
217
553
|
}, {
|
|
218
554
|
readonly inputs: readonly [];
|
|
219
|
-
readonly name: "
|
|
220
|
-
readonly outputs: readonly [
|
|
221
|
-
|
|
222
|
-
readonly name: "";
|
|
223
|
-
readonly type: "address[]";
|
|
224
|
-
}];
|
|
225
|
-
readonly stateMutability: "view";
|
|
555
|
+
readonly name: "disableCommunityGuard";
|
|
556
|
+
readonly outputs: readonly [];
|
|
557
|
+
readonly stateMutability: "nonpayable";
|
|
226
558
|
readonly type: "function";
|
|
227
559
|
}, {
|
|
228
560
|
readonly inputs: readonly [];
|
|
229
|
-
readonly name: "
|
|
230
|
-
readonly outputs: readonly [
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
561
|
+
readonly name: "enableCommunityGuard";
|
|
562
|
+
readonly outputs: readonly [];
|
|
563
|
+
readonly stateMutability: "nonpayable";
|
|
564
|
+
readonly type: "function";
|
|
565
|
+
}, {
|
|
566
|
+
readonly inputs: readonly [{
|
|
567
|
+
readonly components: readonly [{
|
|
568
|
+
readonly internalType: "uint256";
|
|
569
|
+
readonly name: "sig";
|
|
570
|
+
readonly type: "uint256";
|
|
571
|
+
}, {
|
|
572
|
+
readonly internalType: "uint256";
|
|
573
|
+
readonly name: "nonce";
|
|
574
|
+
readonly type: "uint256";
|
|
575
|
+
}, {
|
|
576
|
+
readonly internalType: "address";
|
|
577
|
+
readonly name: "kTimesGAddress";
|
|
578
|
+
readonly type: "address";
|
|
579
|
+
}];
|
|
580
|
+
readonly internalType: "struct IShared.SigData";
|
|
581
|
+
readonly name: "sigData";
|
|
582
|
+
readonly type: "tuple";
|
|
583
|
+
}, {
|
|
584
|
+
readonly components: readonly [{
|
|
585
|
+
readonly internalType: "address";
|
|
586
|
+
readonly name: "token";
|
|
587
|
+
readonly type: "address";
|
|
588
|
+
}, {
|
|
589
|
+
readonly internalType: "address payable";
|
|
590
|
+
readonly name: "recipient";
|
|
591
|
+
readonly type: "address";
|
|
592
|
+
}, {
|
|
593
|
+
readonly internalType: "uint256";
|
|
594
|
+
readonly name: "amount";
|
|
595
|
+
readonly type: "uint256";
|
|
596
|
+
}];
|
|
597
|
+
readonly internalType: "struct IShared.TransferParams";
|
|
598
|
+
readonly name: "transferParams";
|
|
599
|
+
readonly type: "tuple";
|
|
600
|
+
}, {
|
|
601
|
+
readonly components: readonly [{
|
|
602
|
+
readonly internalType: "enum IMulticall.CallType";
|
|
603
|
+
readonly name: "callType";
|
|
604
|
+
readonly type: "uint8";
|
|
605
|
+
}, {
|
|
606
|
+
readonly internalType: "address";
|
|
607
|
+
readonly name: "target";
|
|
608
|
+
readonly type: "address";
|
|
609
|
+
}, {
|
|
610
|
+
readonly internalType: "uint256";
|
|
611
|
+
readonly name: "value";
|
|
612
|
+
readonly type: "uint256";
|
|
613
|
+
}, {
|
|
614
|
+
readonly internalType: "bytes";
|
|
615
|
+
readonly name: "callData";
|
|
616
|
+
readonly type: "bytes";
|
|
617
|
+
}, {
|
|
618
|
+
readonly internalType: "bytes";
|
|
619
|
+
readonly name: "payload";
|
|
620
|
+
readonly type: "bytes";
|
|
621
|
+
}];
|
|
622
|
+
readonly internalType: "struct IMulticall.Call[]";
|
|
623
|
+
readonly name: "calls";
|
|
624
|
+
readonly type: "tuple[]";
|
|
625
|
+
}, {
|
|
626
|
+
readonly internalType: "uint256";
|
|
627
|
+
readonly name: "gasMulticall";
|
|
628
|
+
readonly type: "uint256";
|
|
234
629
|
}];
|
|
235
|
-
readonly
|
|
630
|
+
readonly name: "executeActions";
|
|
631
|
+
readonly outputs: readonly [];
|
|
632
|
+
readonly stateMutability: "nonpayable";
|
|
236
633
|
readonly type: "function";
|
|
237
634
|
}, {
|
|
238
|
-
readonly inputs: readonly [
|
|
239
|
-
|
|
240
|
-
|
|
635
|
+
readonly inputs: readonly [{
|
|
636
|
+
readonly components: readonly [{
|
|
637
|
+
readonly internalType: "uint256";
|
|
638
|
+
readonly name: "sig";
|
|
639
|
+
readonly type: "uint256";
|
|
640
|
+
}, {
|
|
641
|
+
readonly internalType: "uint256";
|
|
642
|
+
readonly name: "nonce";
|
|
643
|
+
readonly type: "uint256";
|
|
644
|
+
}, {
|
|
645
|
+
readonly internalType: "address";
|
|
646
|
+
readonly name: "kTimesGAddress";
|
|
647
|
+
readonly type: "address";
|
|
648
|
+
}];
|
|
649
|
+
readonly internalType: "struct IShared.SigData";
|
|
650
|
+
readonly name: "sigData";
|
|
651
|
+
readonly type: "tuple";
|
|
652
|
+
}, {
|
|
241
653
|
readonly internalType: "address";
|
|
242
|
-
readonly name: "";
|
|
654
|
+
readonly name: "recipient";
|
|
243
655
|
readonly type: "address";
|
|
656
|
+
}, {
|
|
657
|
+
readonly internalType: "uint32";
|
|
658
|
+
readonly name: "srcChain";
|
|
659
|
+
readonly type: "uint32";
|
|
660
|
+
}, {
|
|
661
|
+
readonly internalType: "bytes";
|
|
662
|
+
readonly name: "srcAddress";
|
|
663
|
+
readonly type: "bytes";
|
|
664
|
+
}, {
|
|
665
|
+
readonly internalType: "bytes";
|
|
666
|
+
readonly name: "message";
|
|
667
|
+
readonly type: "bytes";
|
|
244
668
|
}];
|
|
245
|
-
readonly
|
|
669
|
+
readonly name: "executexCall";
|
|
670
|
+
readonly outputs: readonly [];
|
|
671
|
+
readonly stateMutability: "nonpayable";
|
|
246
672
|
readonly type: "function";
|
|
247
673
|
}, {
|
|
248
674
|
readonly inputs: readonly [{
|
|
249
|
-
readonly
|
|
250
|
-
|
|
251
|
-
|
|
675
|
+
readonly components: readonly [{
|
|
676
|
+
readonly internalType: "uint256";
|
|
677
|
+
readonly name: "sig";
|
|
678
|
+
readonly type: "uint256";
|
|
679
|
+
}, {
|
|
680
|
+
readonly internalType: "uint256";
|
|
681
|
+
readonly name: "nonce";
|
|
682
|
+
readonly type: "uint256";
|
|
683
|
+
}, {
|
|
684
|
+
readonly internalType: "address";
|
|
685
|
+
readonly name: "kTimesGAddress";
|
|
686
|
+
readonly type: "address";
|
|
687
|
+
}];
|
|
688
|
+
readonly internalType: "struct IShared.SigData";
|
|
689
|
+
readonly name: "sigData";
|
|
690
|
+
readonly type: "tuple";
|
|
691
|
+
}, {
|
|
692
|
+
readonly components: readonly [{
|
|
693
|
+
readonly internalType: "address";
|
|
694
|
+
readonly name: "token";
|
|
695
|
+
readonly type: "address";
|
|
696
|
+
}, {
|
|
697
|
+
readonly internalType: "address payable";
|
|
698
|
+
readonly name: "recipient";
|
|
699
|
+
readonly type: "address";
|
|
700
|
+
}, {
|
|
701
|
+
readonly internalType: "uint256";
|
|
702
|
+
readonly name: "amount";
|
|
703
|
+
readonly type: "uint256";
|
|
704
|
+
}];
|
|
705
|
+
readonly internalType: "struct IShared.TransferParams";
|
|
706
|
+
readonly name: "transferParams";
|
|
707
|
+
readonly type: "tuple";
|
|
708
|
+
}, {
|
|
709
|
+
readonly internalType: "uint32";
|
|
710
|
+
readonly name: "srcChain";
|
|
711
|
+
readonly type: "uint32";
|
|
712
|
+
}, {
|
|
713
|
+
readonly internalType: "bytes";
|
|
714
|
+
readonly name: "srcAddress";
|
|
715
|
+
readonly type: "bytes";
|
|
716
|
+
}, {
|
|
717
|
+
readonly internalType: "bytes";
|
|
718
|
+
readonly name: "message";
|
|
719
|
+
readonly type: "bytes";
|
|
720
|
+
}];
|
|
721
|
+
readonly name: "executexSwapAndCall";
|
|
722
|
+
readonly outputs: readonly [];
|
|
723
|
+
readonly stateMutability: "nonpayable";
|
|
724
|
+
readonly type: "function";
|
|
725
|
+
}, {
|
|
726
|
+
readonly inputs: readonly [{
|
|
727
|
+
readonly components: readonly [{
|
|
728
|
+
readonly internalType: "uint256";
|
|
729
|
+
readonly name: "sig";
|
|
730
|
+
readonly type: "uint256";
|
|
731
|
+
}, {
|
|
732
|
+
readonly internalType: "uint256";
|
|
733
|
+
readonly name: "nonce";
|
|
734
|
+
readonly type: "uint256";
|
|
735
|
+
}, {
|
|
736
|
+
readonly internalType: "address";
|
|
737
|
+
readonly name: "kTimesGAddress";
|
|
738
|
+
readonly type: "address";
|
|
739
|
+
}];
|
|
740
|
+
readonly internalType: "struct IShared.SigData";
|
|
741
|
+
readonly name: "sigData";
|
|
742
|
+
readonly type: "tuple";
|
|
743
|
+
}, {
|
|
744
|
+
readonly components: readonly [{
|
|
745
|
+
readonly internalType: "address payable";
|
|
746
|
+
readonly name: "fetchContract";
|
|
747
|
+
readonly type: "address";
|
|
748
|
+
}, {
|
|
749
|
+
readonly internalType: "address";
|
|
750
|
+
readonly name: "token";
|
|
751
|
+
readonly type: "address";
|
|
752
|
+
}];
|
|
753
|
+
readonly internalType: "struct IShared.FetchParams[]";
|
|
754
|
+
readonly name: "fetchParamsArray";
|
|
755
|
+
readonly type: "tuple[]";
|
|
252
756
|
}];
|
|
253
|
-
readonly name: "
|
|
757
|
+
readonly name: "fetchBatch";
|
|
758
|
+
readonly outputs: readonly [];
|
|
759
|
+
readonly stateMutability: "nonpayable";
|
|
760
|
+
readonly type: "function";
|
|
761
|
+
}, {
|
|
762
|
+
readonly inputs: readonly [];
|
|
763
|
+
readonly name: "getCommunityGuardDisabled";
|
|
254
764
|
readonly outputs: readonly [{
|
|
255
765
|
readonly internalType: "bool";
|
|
256
766
|
readonly name: "";
|
|
@@ -260,7 +770,7 @@ export declare const Vault_jsonAbi: readonly [{
|
|
|
260
770
|
readonly type: "function";
|
|
261
771
|
}, {
|
|
262
772
|
readonly inputs: readonly [];
|
|
263
|
-
readonly name: "
|
|
773
|
+
readonly name: "getCommunityKey";
|
|
264
774
|
readonly outputs: readonly [{
|
|
265
775
|
readonly internalType: "address";
|
|
266
776
|
readonly name: "";
|
|
@@ -270,7 +780,7 @@ export declare const Vault_jsonAbi: readonly [{
|
|
|
270
780
|
readonly type: "function";
|
|
271
781
|
}, {
|
|
272
782
|
readonly inputs: readonly [];
|
|
273
|
-
readonly name: "
|
|
783
|
+
readonly name: "getGovernor";
|
|
274
784
|
readonly outputs: readonly [{
|
|
275
785
|
readonly internalType: "address";
|
|
276
786
|
readonly name: "";
|
|
@@ -280,132 +790,320 @@ export declare const Vault_jsonAbi: readonly [{
|
|
|
280
790
|
readonly type: "function";
|
|
281
791
|
}, {
|
|
282
792
|
readonly inputs: readonly [];
|
|
283
|
-
readonly name: "
|
|
793
|
+
readonly name: "getKeyManager";
|
|
284
794
|
readonly outputs: readonly [{
|
|
285
|
-
readonly internalType: "
|
|
795
|
+
readonly internalType: "contract IKeyManager";
|
|
286
796
|
readonly name: "";
|
|
287
797
|
readonly type: "address";
|
|
288
798
|
}];
|
|
289
799
|
readonly stateMutability: "view";
|
|
290
800
|
readonly type: "function";
|
|
801
|
+
}, {
|
|
802
|
+
readonly inputs: readonly [];
|
|
803
|
+
readonly name: "getSuspendedState";
|
|
804
|
+
readonly outputs: readonly [{
|
|
805
|
+
readonly internalType: "bool";
|
|
806
|
+
readonly name: "";
|
|
807
|
+
readonly type: "bool";
|
|
808
|
+
}];
|
|
809
|
+
readonly stateMutability: "view";
|
|
810
|
+
readonly type: "function";
|
|
291
811
|
}, {
|
|
292
812
|
readonly inputs: readonly [{
|
|
293
|
-
readonly internalType: "address";
|
|
294
|
-
readonly name: "
|
|
295
|
-
readonly type: "address";
|
|
813
|
+
readonly internalType: "address[]";
|
|
814
|
+
readonly name: "tokens";
|
|
815
|
+
readonly type: "address[]";
|
|
296
816
|
}];
|
|
297
|
-
readonly name: "
|
|
817
|
+
readonly name: "govWithdraw";
|
|
298
818
|
readonly outputs: readonly [];
|
|
299
819
|
readonly stateMutability: "nonpayable";
|
|
300
820
|
readonly type: "function";
|
|
301
821
|
}, {
|
|
302
822
|
readonly inputs: readonly [];
|
|
303
|
-
readonly name: "
|
|
823
|
+
readonly name: "resume";
|
|
304
824
|
readonly outputs: readonly [];
|
|
305
825
|
readonly stateMutability: "nonpayable";
|
|
306
826
|
readonly type: "function";
|
|
307
827
|
}, {
|
|
308
|
-
readonly inputs: readonly [
|
|
309
|
-
|
|
310
|
-
readonly name: "tokenContract";
|
|
311
|
-
readonly type: "address";
|
|
312
|
-
}, {
|
|
313
|
-
readonly internalType: "address";
|
|
314
|
-
readonly name: "to";
|
|
315
|
-
readonly type: "address";
|
|
316
|
-
}, {
|
|
317
|
-
readonly internalType: "uint256";
|
|
318
|
-
readonly name: "amount";
|
|
319
|
-
readonly type: "uint256";
|
|
320
|
-
}];
|
|
321
|
-
readonly name: "rescueERC20";
|
|
828
|
+
readonly inputs: readonly [];
|
|
829
|
+
readonly name: "suspend";
|
|
322
830
|
readonly outputs: readonly [];
|
|
323
831
|
readonly stateMutability: "nonpayable";
|
|
324
832
|
readonly type: "function";
|
|
325
833
|
}, {
|
|
326
834
|
readonly inputs: readonly [{
|
|
327
|
-
readonly
|
|
328
|
-
|
|
329
|
-
|
|
835
|
+
readonly components: readonly [{
|
|
836
|
+
readonly internalType: "uint256";
|
|
837
|
+
readonly name: "sig";
|
|
838
|
+
readonly type: "uint256";
|
|
839
|
+
}, {
|
|
840
|
+
readonly internalType: "uint256";
|
|
841
|
+
readonly name: "nonce";
|
|
842
|
+
readonly type: "uint256";
|
|
843
|
+
}, {
|
|
844
|
+
readonly internalType: "address";
|
|
845
|
+
readonly name: "kTimesGAddress";
|
|
846
|
+
readonly type: "address";
|
|
847
|
+
}];
|
|
848
|
+
readonly internalType: "struct IShared.SigData";
|
|
849
|
+
readonly name: "sigData";
|
|
850
|
+
readonly type: "tuple";
|
|
851
|
+
}, {
|
|
852
|
+
readonly components: readonly [{
|
|
853
|
+
readonly internalType: "address";
|
|
854
|
+
readonly name: "token";
|
|
855
|
+
readonly type: "address";
|
|
856
|
+
}, {
|
|
857
|
+
readonly internalType: "address payable";
|
|
858
|
+
readonly name: "recipient";
|
|
859
|
+
readonly type: "address";
|
|
860
|
+
}, {
|
|
861
|
+
readonly internalType: "uint256";
|
|
862
|
+
readonly name: "amount";
|
|
863
|
+
readonly type: "uint256";
|
|
864
|
+
}];
|
|
865
|
+
readonly internalType: "struct IShared.TransferParams";
|
|
866
|
+
readonly name: "transferParams";
|
|
867
|
+
readonly type: "tuple";
|
|
330
868
|
}];
|
|
331
|
-
readonly name: "
|
|
869
|
+
readonly name: "transfer";
|
|
332
870
|
readonly outputs: readonly [];
|
|
333
871
|
readonly stateMutability: "nonpayable";
|
|
334
872
|
readonly type: "function";
|
|
335
873
|
}, {
|
|
336
|
-
readonly inputs: readonly [
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
874
|
+
readonly inputs: readonly [{
|
|
875
|
+
readonly components: readonly [{
|
|
876
|
+
readonly internalType: "uint256";
|
|
877
|
+
readonly name: "sig";
|
|
878
|
+
readonly type: "uint256";
|
|
879
|
+
}, {
|
|
880
|
+
readonly internalType: "uint256";
|
|
881
|
+
readonly name: "nonce";
|
|
882
|
+
readonly type: "uint256";
|
|
883
|
+
}, {
|
|
884
|
+
readonly internalType: "address";
|
|
885
|
+
readonly name: "kTimesGAddress";
|
|
886
|
+
readonly type: "address";
|
|
887
|
+
}];
|
|
888
|
+
readonly internalType: "struct IShared.SigData";
|
|
889
|
+
readonly name: "sigData";
|
|
890
|
+
readonly type: "tuple";
|
|
891
|
+
}, {
|
|
892
|
+
readonly components: readonly [{
|
|
893
|
+
readonly internalType: "address";
|
|
894
|
+
readonly name: "token";
|
|
895
|
+
readonly type: "address";
|
|
896
|
+
}, {
|
|
897
|
+
readonly internalType: "address payable";
|
|
898
|
+
readonly name: "recipient";
|
|
899
|
+
readonly type: "address";
|
|
900
|
+
}, {
|
|
901
|
+
readonly internalType: "uint256";
|
|
902
|
+
readonly name: "amount";
|
|
903
|
+
readonly type: "uint256";
|
|
904
|
+
}];
|
|
905
|
+
readonly internalType: "struct IShared.TransferParams[]";
|
|
906
|
+
readonly name: "transferParamsArray";
|
|
907
|
+
readonly type: "tuple[]";
|
|
342
908
|
}];
|
|
343
|
-
readonly
|
|
909
|
+
readonly name: "transferBatch";
|
|
910
|
+
readonly outputs: readonly [];
|
|
911
|
+
readonly stateMutability: "nonpayable";
|
|
344
912
|
readonly type: "function";
|
|
345
913
|
}, {
|
|
346
914
|
readonly inputs: readonly [{
|
|
347
|
-
readonly
|
|
348
|
-
|
|
349
|
-
|
|
915
|
+
readonly components: readonly [{
|
|
916
|
+
readonly internalType: "uint256";
|
|
917
|
+
readonly name: "sig";
|
|
918
|
+
readonly type: "uint256";
|
|
919
|
+
}, {
|
|
920
|
+
readonly internalType: "uint256";
|
|
921
|
+
readonly name: "nonce";
|
|
922
|
+
readonly type: "uint256";
|
|
923
|
+
}, {
|
|
924
|
+
readonly internalType: "address";
|
|
925
|
+
readonly name: "kTimesGAddress";
|
|
926
|
+
readonly type: "address";
|
|
927
|
+
}];
|
|
928
|
+
readonly internalType: "struct IShared.SigData";
|
|
929
|
+
readonly name: "sigData";
|
|
930
|
+
readonly type: "tuple";
|
|
931
|
+
}, {
|
|
932
|
+
readonly components: readonly [{
|
|
933
|
+
readonly internalType: "address";
|
|
934
|
+
readonly name: "token";
|
|
935
|
+
readonly type: "address";
|
|
936
|
+
}, {
|
|
937
|
+
readonly internalType: "address payable";
|
|
938
|
+
readonly name: "recipient";
|
|
939
|
+
readonly type: "address";
|
|
940
|
+
}, {
|
|
941
|
+
readonly internalType: "uint256";
|
|
942
|
+
readonly name: "amount";
|
|
943
|
+
readonly type: "uint256";
|
|
944
|
+
}];
|
|
945
|
+
readonly internalType: "struct IShared.TransferParams";
|
|
946
|
+
readonly name: "transferParams";
|
|
947
|
+
readonly type: "tuple";
|
|
350
948
|
}];
|
|
351
|
-
readonly name: "
|
|
949
|
+
readonly name: "transferFallback";
|
|
352
950
|
readonly outputs: readonly [];
|
|
353
951
|
readonly stateMutability: "nonpayable";
|
|
354
952
|
readonly type: "function";
|
|
355
953
|
}, {
|
|
356
954
|
readonly inputs: readonly [{
|
|
357
|
-
readonly
|
|
358
|
-
|
|
955
|
+
readonly components: readonly [{
|
|
956
|
+
readonly internalType: "uint256";
|
|
957
|
+
readonly name: "sig";
|
|
958
|
+
readonly type: "uint256";
|
|
959
|
+
}, {
|
|
960
|
+
readonly internalType: "uint256";
|
|
961
|
+
readonly name: "nonce";
|
|
962
|
+
readonly type: "uint256";
|
|
963
|
+
}, {
|
|
964
|
+
readonly internalType: "address";
|
|
965
|
+
readonly name: "kTimesGAddress";
|
|
966
|
+
readonly type: "address";
|
|
967
|
+
}];
|
|
968
|
+
readonly internalType: "struct IShared.SigData";
|
|
969
|
+
readonly name: "sigData";
|
|
970
|
+
readonly type: "tuple";
|
|
971
|
+
}, {
|
|
972
|
+
readonly internalType: "contract IKeyManager";
|
|
973
|
+
readonly name: "keyManager";
|
|
359
974
|
readonly type: "address";
|
|
975
|
+
}, {
|
|
976
|
+
readonly internalType: "bool";
|
|
977
|
+
readonly name: "omitChecks";
|
|
978
|
+
readonly type: "bool";
|
|
360
979
|
}];
|
|
361
|
-
readonly name: "
|
|
980
|
+
readonly name: "updateKeyManager";
|
|
362
981
|
readonly outputs: readonly [];
|
|
363
982
|
readonly stateMutability: "nonpayable";
|
|
364
983
|
readonly type: "function";
|
|
365
984
|
}, {
|
|
366
|
-
readonly inputs: readonly [
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
readonly
|
|
370
|
-
|
|
371
|
-
readonly
|
|
985
|
+
readonly inputs: readonly [{
|
|
986
|
+
readonly internalType: "uint32";
|
|
987
|
+
readonly name: "dstChain";
|
|
988
|
+
readonly type: "uint32";
|
|
989
|
+
}, {
|
|
990
|
+
readonly internalType: "bytes";
|
|
991
|
+
readonly name: "dstAddress";
|
|
992
|
+
readonly type: "bytes";
|
|
993
|
+
}, {
|
|
994
|
+
readonly internalType: "uint32";
|
|
995
|
+
readonly name: "dstToken";
|
|
996
|
+
readonly type: "uint32";
|
|
997
|
+
}, {
|
|
998
|
+
readonly internalType: "bytes";
|
|
999
|
+
readonly name: "message";
|
|
1000
|
+
readonly type: "bytes";
|
|
1001
|
+
}, {
|
|
1002
|
+
readonly internalType: "uint256";
|
|
1003
|
+
readonly name: "gasAmount";
|
|
1004
|
+
readonly type: "uint256";
|
|
1005
|
+
}, {
|
|
1006
|
+
readonly internalType: "bytes";
|
|
1007
|
+
readonly name: "cfParameters";
|
|
1008
|
+
readonly type: "bytes";
|
|
372
1009
|
}];
|
|
373
|
-
readonly
|
|
1010
|
+
readonly name: "xCallNative";
|
|
1011
|
+
readonly outputs: readonly [];
|
|
1012
|
+
readonly stateMutability: "payable";
|
|
374
1013
|
readonly type: "function";
|
|
375
1014
|
}, {
|
|
376
1015
|
readonly inputs: readonly [{
|
|
377
|
-
readonly internalType: "
|
|
378
|
-
readonly name: "
|
|
1016
|
+
readonly internalType: "uint32";
|
|
1017
|
+
readonly name: "dstChain";
|
|
1018
|
+
readonly type: "uint32";
|
|
1019
|
+
}, {
|
|
1020
|
+
readonly internalType: "bytes";
|
|
1021
|
+
readonly name: "dstAddress";
|
|
1022
|
+
readonly type: "bytes";
|
|
1023
|
+
}, {
|
|
1024
|
+
readonly internalType: "uint32";
|
|
1025
|
+
readonly name: "dstToken";
|
|
1026
|
+
readonly type: "uint32";
|
|
1027
|
+
}, {
|
|
1028
|
+
readonly internalType: "bytes";
|
|
1029
|
+
readonly name: "message";
|
|
1030
|
+
readonly type: "bytes";
|
|
1031
|
+
}, {
|
|
1032
|
+
readonly internalType: "uint256";
|
|
1033
|
+
readonly name: "gasAmount";
|
|
1034
|
+
readonly type: "uint256";
|
|
1035
|
+
}, {
|
|
1036
|
+
readonly internalType: "contract IERC20";
|
|
1037
|
+
readonly name: "srcToken";
|
|
379
1038
|
readonly type: "address";
|
|
1039
|
+
}, {
|
|
1040
|
+
readonly internalType: "uint256";
|
|
1041
|
+
readonly name: "amount";
|
|
1042
|
+
readonly type: "uint256";
|
|
1043
|
+
}, {
|
|
1044
|
+
readonly internalType: "bytes";
|
|
1045
|
+
readonly name: "cfParameters";
|
|
1046
|
+
readonly type: "bytes";
|
|
380
1047
|
}];
|
|
381
|
-
readonly name: "
|
|
1048
|
+
readonly name: "xCallToken";
|
|
382
1049
|
readonly outputs: readonly [];
|
|
383
1050
|
readonly stateMutability: "nonpayable";
|
|
384
1051
|
readonly type: "function";
|
|
385
1052
|
}, {
|
|
386
1053
|
readonly inputs: readonly [{
|
|
387
|
-
readonly internalType: "
|
|
388
|
-
readonly name: "
|
|
389
|
-
readonly type: "
|
|
1054
|
+
readonly internalType: "uint32";
|
|
1055
|
+
readonly name: "dstChain";
|
|
1056
|
+
readonly type: "uint32";
|
|
1057
|
+
}, {
|
|
1058
|
+
readonly internalType: "bytes";
|
|
1059
|
+
readonly name: "dstAddress";
|
|
1060
|
+
readonly type: "bytes";
|
|
1061
|
+
}, {
|
|
1062
|
+
readonly internalType: "uint32";
|
|
1063
|
+
readonly name: "dstToken";
|
|
1064
|
+
readonly type: "uint32";
|
|
1065
|
+
}, {
|
|
1066
|
+
readonly internalType: "bytes";
|
|
1067
|
+
readonly name: "cfParameters";
|
|
1068
|
+
readonly type: "bytes";
|
|
390
1069
|
}];
|
|
391
|
-
readonly name: "
|
|
1070
|
+
readonly name: "xSwapNative";
|
|
392
1071
|
readonly outputs: readonly [];
|
|
393
|
-
readonly stateMutability: "
|
|
1072
|
+
readonly stateMutability: "payable";
|
|
394
1073
|
readonly type: "function";
|
|
395
1074
|
}, {
|
|
396
1075
|
readonly inputs: readonly [{
|
|
397
|
-
readonly internalType: "
|
|
398
|
-
readonly name: "
|
|
1076
|
+
readonly internalType: "uint32";
|
|
1077
|
+
readonly name: "dstChain";
|
|
1078
|
+
readonly type: "uint32";
|
|
1079
|
+
}, {
|
|
1080
|
+
readonly internalType: "bytes";
|
|
1081
|
+
readonly name: "dstAddress";
|
|
1082
|
+
readonly type: "bytes";
|
|
1083
|
+
}, {
|
|
1084
|
+
readonly internalType: "uint32";
|
|
1085
|
+
readonly name: "dstToken";
|
|
1086
|
+
readonly type: "uint32";
|
|
1087
|
+
}, {
|
|
1088
|
+
readonly internalType: "contract IERC20";
|
|
1089
|
+
readonly name: "srcToken";
|
|
399
1090
|
readonly type: "address";
|
|
400
1091
|
}, {
|
|
401
1092
|
readonly internalType: "uint256";
|
|
402
|
-
readonly name: "
|
|
1093
|
+
readonly name: "amount";
|
|
403
1094
|
readonly type: "uint256";
|
|
1095
|
+
}, {
|
|
1096
|
+
readonly internalType: "bytes";
|
|
1097
|
+
readonly name: "cfParameters";
|
|
1098
|
+
readonly type: "bytes";
|
|
404
1099
|
}];
|
|
405
|
-
readonly name: "
|
|
1100
|
+
readonly name: "xSwapToken";
|
|
406
1101
|
readonly outputs: readonly [];
|
|
407
1102
|
readonly stateMutability: "nonpayable";
|
|
408
1103
|
readonly type: "function";
|
|
1104
|
+
}, {
|
|
1105
|
+
readonly stateMutability: "payable";
|
|
1106
|
+
readonly type: "receive";
|
|
409
1107
|
}];
|
|
410
1108
|
/**
|
|
411
1109
|
* Type-safe ABI for Vault_json
|
|
@@ -464,66 +1162,223 @@ export declare class Vault_json {
|
|
|
464
1162
|
*/
|
|
465
1163
|
getContract(): Vault_jsonContract;
|
|
466
1164
|
/**
|
|
467
|
-
*
|
|
1165
|
+
* getCommunityGuardDisabled
|
|
468
1166
|
* view
|
|
469
1167
|
*/
|
|
470
|
-
|
|
1168
|
+
getCommunityGuardDisabled(): Promise<boolean>;
|
|
471
1169
|
/**
|
|
472
|
-
*
|
|
1170
|
+
* getCommunityKey
|
|
473
1171
|
* view
|
|
474
1172
|
*/
|
|
475
|
-
|
|
1173
|
+
getCommunityKey(): Promise<`0x${string}`>;
|
|
476
1174
|
/**
|
|
477
|
-
*
|
|
1175
|
+
* getGovernor
|
|
478
1176
|
* view
|
|
479
1177
|
*/
|
|
480
|
-
|
|
1178
|
+
getGovernor(): Promise<`0x${string}`>;
|
|
481
1179
|
/**
|
|
482
|
-
*
|
|
1180
|
+
* getKeyManager
|
|
483
1181
|
* view
|
|
484
1182
|
*/
|
|
485
|
-
|
|
1183
|
+
getKeyManager(): Promise<`0x${string}`>;
|
|
486
1184
|
/**
|
|
487
|
-
*
|
|
1185
|
+
* getSuspendedState
|
|
488
1186
|
* view
|
|
489
1187
|
*/
|
|
490
|
-
|
|
1188
|
+
getSuspendedState(): Promise<boolean>;
|
|
491
1189
|
/**
|
|
492
|
-
*
|
|
493
|
-
*
|
|
1190
|
+
* addGasNative
|
|
1191
|
+
* payable
|
|
1192
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
494
1193
|
*/
|
|
495
|
-
|
|
1194
|
+
addGasNative(swapID: `0x${string}`, options?: {
|
|
1195
|
+
accessList?: import('viem').AccessList;
|
|
1196
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1197
|
+
chain?: import('viem').Chain | null;
|
|
1198
|
+
dataSuffix?: `0x${string}`;
|
|
1199
|
+
gas?: bigint;
|
|
1200
|
+
gasPrice?: bigint;
|
|
1201
|
+
maxFeePerGas?: bigint;
|
|
1202
|
+
maxPriorityFeePerGas?: bigint;
|
|
1203
|
+
nonce?: number;
|
|
1204
|
+
value?: bigint;
|
|
1205
|
+
}): Promise<`0x${string}`>;
|
|
496
1206
|
/**
|
|
497
|
-
*
|
|
498
|
-
*
|
|
1207
|
+
* addGasToken
|
|
1208
|
+
* nonpayable
|
|
1209
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1210
|
+
*/
|
|
1211
|
+
addGasToken(swapID: `0x${string}`, amount: bigint, token: `0x${string}`, options?: {
|
|
1212
|
+
accessList?: import('viem').AccessList;
|
|
1213
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1214
|
+
chain?: import('viem').Chain | null;
|
|
1215
|
+
dataSuffix?: `0x${string}`;
|
|
1216
|
+
gas?: bigint;
|
|
1217
|
+
gasPrice?: bigint;
|
|
1218
|
+
maxFeePerGas?: bigint;
|
|
1219
|
+
maxPriorityFeePerGas?: bigint;
|
|
1220
|
+
nonce?: number;
|
|
1221
|
+
value?: bigint;
|
|
1222
|
+
}): Promise<`0x${string}`>;
|
|
1223
|
+
/**
|
|
1224
|
+
* allBatch
|
|
1225
|
+
* nonpayable
|
|
1226
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
499
1227
|
*/
|
|
500
|
-
|
|
1228
|
+
allBatch(sigData: IShared_SigData, deployFetchParamsArray: IShared_DeployFetchParams[], fetchParamsArray: IShared_FetchParams[], transferParamsArray: IShared_TransferParams[], options?: {
|
|
1229
|
+
accessList?: import('viem').AccessList;
|
|
1230
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1231
|
+
chain?: import('viem').Chain | null;
|
|
1232
|
+
dataSuffix?: `0x${string}`;
|
|
1233
|
+
gas?: bigint;
|
|
1234
|
+
gasPrice?: bigint;
|
|
1235
|
+
maxFeePerGas?: bigint;
|
|
1236
|
+
maxPriorityFeePerGas?: bigint;
|
|
1237
|
+
nonce?: number;
|
|
1238
|
+
value?: bigint;
|
|
1239
|
+
}): Promise<`0x${string}`>;
|
|
501
1240
|
/**
|
|
502
|
-
*
|
|
503
|
-
*
|
|
1241
|
+
* allBatchV2
|
|
1242
|
+
* nonpayable
|
|
1243
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1244
|
+
*/
|
|
1245
|
+
allBatchV2(sigData: IShared_SigData, fetchParamsArray: IShared_FetchParams[], transferParamsArray: IShared_TransferParams[], options?: {
|
|
1246
|
+
accessList?: import('viem').AccessList;
|
|
1247
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1248
|
+
chain?: import('viem').Chain | null;
|
|
1249
|
+
dataSuffix?: `0x${string}`;
|
|
1250
|
+
gas?: bigint;
|
|
1251
|
+
gasPrice?: bigint;
|
|
1252
|
+
maxFeePerGas?: bigint;
|
|
1253
|
+
maxPriorityFeePerGas?: bigint;
|
|
1254
|
+
nonce?: number;
|
|
1255
|
+
value?: bigint;
|
|
1256
|
+
}): Promise<`0x${string}`>;
|
|
1257
|
+
/**
|
|
1258
|
+
* deployAndFetchBatch
|
|
1259
|
+
* nonpayable
|
|
1260
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1261
|
+
*/
|
|
1262
|
+
deployAndFetchBatch(sigData: IShared_SigData, deployFetchParamsArray: IShared_DeployFetchParams[], options?: {
|
|
1263
|
+
accessList?: import('viem').AccessList;
|
|
1264
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1265
|
+
chain?: import('viem').Chain | null;
|
|
1266
|
+
dataSuffix?: `0x${string}`;
|
|
1267
|
+
gas?: bigint;
|
|
1268
|
+
gasPrice?: bigint;
|
|
1269
|
+
maxFeePerGas?: bigint;
|
|
1270
|
+
maxPriorityFeePerGas?: bigint;
|
|
1271
|
+
nonce?: number;
|
|
1272
|
+
value?: bigint;
|
|
1273
|
+
}): Promise<`0x${string}`>;
|
|
1274
|
+
/**
|
|
1275
|
+
* disableCommunityGuard
|
|
1276
|
+
* nonpayable
|
|
1277
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1278
|
+
*/
|
|
1279
|
+
disableCommunityGuard(options?: {
|
|
1280
|
+
accessList?: import('viem').AccessList;
|
|
1281
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1282
|
+
chain?: import('viem').Chain | null;
|
|
1283
|
+
dataSuffix?: `0x${string}`;
|
|
1284
|
+
gas?: bigint;
|
|
1285
|
+
gasPrice?: bigint;
|
|
1286
|
+
maxFeePerGas?: bigint;
|
|
1287
|
+
maxPriorityFeePerGas?: bigint;
|
|
1288
|
+
nonce?: number;
|
|
1289
|
+
value?: bigint;
|
|
1290
|
+
}): Promise<`0x${string}`>;
|
|
1291
|
+
/**
|
|
1292
|
+
* enableCommunityGuard
|
|
1293
|
+
* nonpayable
|
|
1294
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
504
1295
|
*/
|
|
505
|
-
|
|
1296
|
+
enableCommunityGuard(options?: {
|
|
1297
|
+
accessList?: import('viem').AccessList;
|
|
1298
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1299
|
+
chain?: import('viem').Chain | null;
|
|
1300
|
+
dataSuffix?: `0x${string}`;
|
|
1301
|
+
gas?: bigint;
|
|
1302
|
+
gasPrice?: bigint;
|
|
1303
|
+
maxFeePerGas?: bigint;
|
|
1304
|
+
maxPriorityFeePerGas?: bigint;
|
|
1305
|
+
nonce?: number;
|
|
1306
|
+
value?: bigint;
|
|
1307
|
+
}): Promise<`0x${string}`>;
|
|
1308
|
+
/**
|
|
1309
|
+
* executeActions
|
|
1310
|
+
* nonpayable
|
|
1311
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1312
|
+
*/
|
|
1313
|
+
executeActions(sigData: IShared_SigData, transferParams: IShared_TransferParams, calls: IMulticall_Call[], gasMulticall: bigint, options?: {
|
|
1314
|
+
accessList?: import('viem').AccessList;
|
|
1315
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1316
|
+
chain?: import('viem').Chain | null;
|
|
1317
|
+
dataSuffix?: `0x${string}`;
|
|
1318
|
+
gas?: bigint;
|
|
1319
|
+
gasPrice?: bigint;
|
|
1320
|
+
maxFeePerGas?: bigint;
|
|
1321
|
+
maxPriorityFeePerGas?: bigint;
|
|
1322
|
+
nonce?: number;
|
|
1323
|
+
value?: bigint;
|
|
1324
|
+
}): Promise<`0x${string}`>;
|
|
506
1325
|
/**
|
|
507
|
-
*
|
|
508
|
-
*
|
|
1326
|
+
* executexCall
|
|
1327
|
+
* nonpayable
|
|
1328
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
509
1329
|
*/
|
|
510
|
-
|
|
1330
|
+
executexCall(sigData: IShared_SigData, recipient: `0x${string}`, srcChain: bigint, srcAddress: `0x${string}`, message: `0x${string}`, options?: {
|
|
1331
|
+
accessList?: import('viem').AccessList;
|
|
1332
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1333
|
+
chain?: import('viem').Chain | null;
|
|
1334
|
+
dataSuffix?: `0x${string}`;
|
|
1335
|
+
gas?: bigint;
|
|
1336
|
+
gasPrice?: bigint;
|
|
1337
|
+
maxFeePerGas?: bigint;
|
|
1338
|
+
maxPriorityFeePerGas?: bigint;
|
|
1339
|
+
nonce?: number;
|
|
1340
|
+
value?: bigint;
|
|
1341
|
+
}): Promise<`0x${string}`>;
|
|
511
1342
|
/**
|
|
512
|
-
*
|
|
513
|
-
*
|
|
1343
|
+
* executexSwapAndCall
|
|
1344
|
+
* nonpayable
|
|
1345
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
514
1346
|
*/
|
|
515
|
-
|
|
1347
|
+
executexSwapAndCall(sigData: IShared_SigData, transferParams: IShared_TransferParams, srcChain: bigint, srcAddress: `0x${string}`, message: `0x${string}`, options?: {
|
|
1348
|
+
accessList?: import('viem').AccessList;
|
|
1349
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1350
|
+
chain?: import('viem').Chain | null;
|
|
1351
|
+
dataSuffix?: `0x${string}`;
|
|
1352
|
+
gas?: bigint;
|
|
1353
|
+
gasPrice?: bigint;
|
|
1354
|
+
maxFeePerGas?: bigint;
|
|
1355
|
+
maxPriorityFeePerGas?: bigint;
|
|
1356
|
+
nonce?: number;
|
|
1357
|
+
value?: bigint;
|
|
1358
|
+
}): Promise<`0x${string}`>;
|
|
516
1359
|
/**
|
|
517
|
-
*
|
|
518
|
-
*
|
|
1360
|
+
* fetchBatch
|
|
1361
|
+
* nonpayable
|
|
1362
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
519
1363
|
*/
|
|
520
|
-
|
|
1364
|
+
fetchBatch(sigData: IShared_SigData, fetchParamsArray: IShared_FetchParams[], options?: {
|
|
1365
|
+
accessList?: import('viem').AccessList;
|
|
1366
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1367
|
+
chain?: import('viem').Chain | null;
|
|
1368
|
+
dataSuffix?: `0x${string}`;
|
|
1369
|
+
gas?: bigint;
|
|
1370
|
+
gasPrice?: bigint;
|
|
1371
|
+
maxFeePerGas?: bigint;
|
|
1372
|
+
maxPriorityFeePerGas?: bigint;
|
|
1373
|
+
nonce?: number;
|
|
1374
|
+
value?: bigint;
|
|
1375
|
+
}): Promise<`0x${string}`>;
|
|
521
1376
|
/**
|
|
522
|
-
*
|
|
1377
|
+
* govWithdraw
|
|
523
1378
|
* nonpayable
|
|
524
1379
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
525
1380
|
*/
|
|
526
|
-
|
|
1381
|
+
govWithdraw(tokens: `0x${string}`[], options?: {
|
|
527
1382
|
accessList?: import('viem').AccessList;
|
|
528
1383
|
authorizationList?: import('viem').AuthorizationList;
|
|
529
1384
|
chain?: import('viem').Chain | null;
|
|
@@ -536,11 +1391,11 @@ export declare class Vault_json {
|
|
|
536
1391
|
value?: bigint;
|
|
537
1392
|
}): Promise<`0x${string}`>;
|
|
538
1393
|
/**
|
|
539
|
-
*
|
|
1394
|
+
* resume
|
|
540
1395
|
* nonpayable
|
|
541
1396
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
542
1397
|
*/
|
|
543
|
-
|
|
1398
|
+
resume(options?: {
|
|
544
1399
|
accessList?: import('viem').AccessList;
|
|
545
1400
|
authorizationList?: import('viem').AuthorizationList;
|
|
546
1401
|
chain?: import('viem').Chain | null;
|
|
@@ -553,11 +1408,11 @@ export declare class Vault_json {
|
|
|
553
1408
|
value?: bigint;
|
|
554
1409
|
}): Promise<`0x${string}`>;
|
|
555
1410
|
/**
|
|
556
|
-
*
|
|
1411
|
+
* suspend
|
|
557
1412
|
* nonpayable
|
|
558
1413
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
559
1414
|
*/
|
|
560
|
-
|
|
1415
|
+
suspend(options?: {
|
|
561
1416
|
accessList?: import('viem').AccessList;
|
|
562
1417
|
authorizationList?: import('viem').AuthorizationList;
|
|
563
1418
|
chain?: import('viem').Chain | null;
|
|
@@ -570,11 +1425,11 @@ export declare class Vault_json {
|
|
|
570
1425
|
value?: bigint;
|
|
571
1426
|
}): Promise<`0x${string}`>;
|
|
572
1427
|
/**
|
|
573
|
-
*
|
|
1428
|
+
* transfer
|
|
574
1429
|
* nonpayable
|
|
575
1430
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
576
1431
|
*/
|
|
577
|
-
|
|
1432
|
+
transfer(sigData: IShared_SigData, transferParams: IShared_TransferParams, options?: {
|
|
578
1433
|
accessList?: import('viem').AccessList;
|
|
579
1434
|
authorizationList?: import('viem').AuthorizationList;
|
|
580
1435
|
chain?: import('viem').Chain | null;
|
|
@@ -587,11 +1442,11 @@ export declare class Vault_json {
|
|
|
587
1442
|
value?: bigint;
|
|
588
1443
|
}): Promise<`0x${string}`>;
|
|
589
1444
|
/**
|
|
590
|
-
*
|
|
1445
|
+
* transferBatch
|
|
591
1446
|
* nonpayable
|
|
592
1447
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
593
1448
|
*/
|
|
594
|
-
|
|
1449
|
+
transferBatch(sigData: IShared_SigData, transferParamsArray: IShared_TransferParams[], options?: {
|
|
595
1450
|
accessList?: import('viem').AccessList;
|
|
596
1451
|
authorizationList?: import('viem').AuthorizationList;
|
|
597
1452
|
chain?: import('viem').Chain | null;
|
|
@@ -604,11 +1459,11 @@ export declare class Vault_json {
|
|
|
604
1459
|
value?: bigint;
|
|
605
1460
|
}): Promise<`0x${string}`>;
|
|
606
1461
|
/**
|
|
607
|
-
*
|
|
1462
|
+
* transferFallback
|
|
608
1463
|
* nonpayable
|
|
609
1464
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
610
1465
|
*/
|
|
611
|
-
|
|
1466
|
+
transferFallback(sigData: IShared_SigData, transferParams: IShared_TransferParams, options?: {
|
|
612
1467
|
accessList?: import('viem').AccessList;
|
|
613
1468
|
authorizationList?: import('viem').AuthorizationList;
|
|
614
1469
|
chain?: import('viem').Chain | null;
|
|
@@ -621,11 +1476,11 @@ export declare class Vault_json {
|
|
|
621
1476
|
value?: bigint;
|
|
622
1477
|
}): Promise<`0x${string}`>;
|
|
623
1478
|
/**
|
|
624
|
-
*
|
|
1479
|
+
* updateKeyManager
|
|
625
1480
|
* nonpayable
|
|
626
1481
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
627
1482
|
*/
|
|
628
|
-
|
|
1483
|
+
updateKeyManager(sigData: IShared_SigData, keyManager: `0x${string}`, omitChecks: boolean, options?: {
|
|
629
1484
|
accessList?: import('viem').AccessList;
|
|
630
1485
|
authorizationList?: import('viem').AuthorizationList;
|
|
631
1486
|
chain?: import('viem').Chain | null;
|
|
@@ -638,11 +1493,11 @@ export declare class Vault_json {
|
|
|
638
1493
|
value?: bigint;
|
|
639
1494
|
}): Promise<`0x${string}`>;
|
|
640
1495
|
/**
|
|
641
|
-
*
|
|
642
|
-
*
|
|
1496
|
+
* xCallNative
|
|
1497
|
+
* payable
|
|
643
1498
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
644
1499
|
*/
|
|
645
|
-
|
|
1500
|
+
xCallNative(dstChain: bigint, dstAddress: `0x${string}`, dstToken: bigint, message: `0x${string}`, gasAmount: bigint, cfParameters: `0x${string}`, options?: {
|
|
646
1501
|
accessList?: import('viem').AccessList;
|
|
647
1502
|
authorizationList?: import('viem').AuthorizationList;
|
|
648
1503
|
chain?: import('viem').Chain | null;
|
|
@@ -655,11 +1510,11 @@ export declare class Vault_json {
|
|
|
655
1510
|
value?: bigint;
|
|
656
1511
|
}): Promise<`0x${string}`>;
|
|
657
1512
|
/**
|
|
658
|
-
*
|
|
1513
|
+
* xCallToken
|
|
659
1514
|
* nonpayable
|
|
660
1515
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
661
1516
|
*/
|
|
662
|
-
|
|
1517
|
+
xCallToken(dstChain: bigint, dstAddress: `0x${string}`, dstToken: bigint, message: `0x${string}`, gasAmount: bigint, srcToken: `0x${string}`, amount: bigint, cfParameters: `0x${string}`, options?: {
|
|
663
1518
|
accessList?: import('viem').AccessList;
|
|
664
1519
|
authorizationList?: import('viem').AuthorizationList;
|
|
665
1520
|
chain?: import('viem').Chain | null;
|
|
@@ -672,11 +1527,11 @@ export declare class Vault_json {
|
|
|
672
1527
|
value?: bigint;
|
|
673
1528
|
}): Promise<`0x${string}`>;
|
|
674
1529
|
/**
|
|
675
|
-
*
|
|
676
|
-
*
|
|
1530
|
+
* xSwapNative
|
|
1531
|
+
* payable
|
|
677
1532
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
678
1533
|
*/
|
|
679
|
-
|
|
1534
|
+
xSwapNative(dstChain: bigint, dstAddress: `0x${string}`, dstToken: bigint, cfParameters: `0x${string}`, options?: {
|
|
680
1535
|
accessList?: import('viem').AccessList;
|
|
681
1536
|
authorizationList?: import('viem').AuthorizationList;
|
|
682
1537
|
chain?: import('viem').Chain | null;
|
|
@@ -689,11 +1544,11 @@ export declare class Vault_json {
|
|
|
689
1544
|
value?: bigint;
|
|
690
1545
|
}): Promise<`0x${string}`>;
|
|
691
1546
|
/**
|
|
692
|
-
*
|
|
1547
|
+
* xSwapToken
|
|
693
1548
|
* nonpayable
|
|
694
1549
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
695
1550
|
*/
|
|
696
|
-
|
|
1551
|
+
xSwapToken(dstChain: bigint, dstAddress: `0x${string}`, dstToken: bigint, srcToken: `0x${string}`, amount: bigint, cfParameters: `0x${string}`, options?: {
|
|
697
1552
|
accessList?: import('viem').AccessList;
|
|
698
1553
|
authorizationList?: import('viem').AuthorizationList;
|
|
699
1554
|
chain?: import('viem').Chain | null;
|
|
@@ -715,11 +1570,198 @@ export declare class Vault_json {
|
|
|
715
1570
|
*/
|
|
716
1571
|
get simulate(): {
|
|
717
1572
|
/**
|
|
718
|
-
* Simulate
|
|
1573
|
+
* Simulate addGasNative
|
|
1574
|
+
* Returns gas estimate and result without sending transaction
|
|
1575
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1576
|
+
*/
|
|
1577
|
+
addGasNative(swapID: `0x${string}`, options?: {
|
|
1578
|
+
accessList?: import("viem").AccessList;
|
|
1579
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1580
|
+
chain?: import("viem").Chain | null;
|
|
1581
|
+
dataSuffix?: `0x${string}`;
|
|
1582
|
+
gas?: bigint;
|
|
1583
|
+
gasPrice?: bigint;
|
|
1584
|
+
maxFeePerGas?: bigint;
|
|
1585
|
+
maxPriorityFeePerGas?: bigint;
|
|
1586
|
+
nonce?: number;
|
|
1587
|
+
value?: bigint;
|
|
1588
|
+
}): Promise<void>;
|
|
1589
|
+
/**
|
|
1590
|
+
* Simulate addGasToken
|
|
1591
|
+
* Returns gas estimate and result without sending transaction
|
|
1592
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1593
|
+
*/
|
|
1594
|
+
addGasToken(swapID: `0x${string}`, amount: bigint, token: `0x${string}`, options?: {
|
|
1595
|
+
accessList?: import("viem").AccessList;
|
|
1596
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1597
|
+
chain?: import("viem").Chain | null;
|
|
1598
|
+
dataSuffix?: `0x${string}`;
|
|
1599
|
+
gas?: bigint;
|
|
1600
|
+
gasPrice?: bigint;
|
|
1601
|
+
maxFeePerGas?: bigint;
|
|
1602
|
+
maxPriorityFeePerGas?: bigint;
|
|
1603
|
+
nonce?: number;
|
|
1604
|
+
value?: bigint;
|
|
1605
|
+
}): Promise<void>;
|
|
1606
|
+
/**
|
|
1607
|
+
* Simulate allBatch
|
|
1608
|
+
* Returns gas estimate and result without sending transaction
|
|
1609
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1610
|
+
*/
|
|
1611
|
+
allBatch(sigData: IShared_SigData, deployFetchParamsArray: IShared_DeployFetchParams[], fetchParamsArray: IShared_FetchParams[], transferParamsArray: IShared_TransferParams[], options?: {
|
|
1612
|
+
accessList?: import("viem").AccessList;
|
|
1613
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1614
|
+
chain?: import("viem").Chain | null;
|
|
1615
|
+
dataSuffix?: `0x${string}`;
|
|
1616
|
+
gas?: bigint;
|
|
1617
|
+
gasPrice?: bigint;
|
|
1618
|
+
maxFeePerGas?: bigint;
|
|
1619
|
+
maxPriorityFeePerGas?: bigint;
|
|
1620
|
+
nonce?: number;
|
|
1621
|
+
value?: bigint;
|
|
1622
|
+
}): Promise<void>;
|
|
1623
|
+
/**
|
|
1624
|
+
* Simulate allBatchV2
|
|
1625
|
+
* Returns gas estimate and result without sending transaction
|
|
1626
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1627
|
+
*/
|
|
1628
|
+
allBatchV2(sigData: IShared_SigData, fetchParamsArray: IShared_FetchParams[], transferParamsArray: IShared_TransferParams[], options?: {
|
|
1629
|
+
accessList?: import("viem").AccessList;
|
|
1630
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1631
|
+
chain?: import("viem").Chain | null;
|
|
1632
|
+
dataSuffix?: `0x${string}`;
|
|
1633
|
+
gas?: bigint;
|
|
1634
|
+
gasPrice?: bigint;
|
|
1635
|
+
maxFeePerGas?: bigint;
|
|
1636
|
+
maxPriorityFeePerGas?: bigint;
|
|
1637
|
+
nonce?: number;
|
|
1638
|
+
value?: bigint;
|
|
1639
|
+
}): Promise<void>;
|
|
1640
|
+
/**
|
|
1641
|
+
* Simulate deployAndFetchBatch
|
|
1642
|
+
* Returns gas estimate and result without sending transaction
|
|
1643
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1644
|
+
*/
|
|
1645
|
+
deployAndFetchBatch(sigData: IShared_SigData, deployFetchParamsArray: IShared_DeployFetchParams[], options?: {
|
|
1646
|
+
accessList?: import("viem").AccessList;
|
|
1647
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1648
|
+
chain?: import("viem").Chain | null;
|
|
1649
|
+
dataSuffix?: `0x${string}`;
|
|
1650
|
+
gas?: bigint;
|
|
1651
|
+
gasPrice?: bigint;
|
|
1652
|
+
maxFeePerGas?: bigint;
|
|
1653
|
+
maxPriorityFeePerGas?: bigint;
|
|
1654
|
+
nonce?: number;
|
|
1655
|
+
value?: bigint;
|
|
1656
|
+
}): Promise<void>;
|
|
1657
|
+
/**
|
|
1658
|
+
* Simulate disableCommunityGuard
|
|
1659
|
+
* Returns gas estimate and result without sending transaction
|
|
1660
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1661
|
+
*/
|
|
1662
|
+
disableCommunityGuard(options?: {
|
|
1663
|
+
accessList?: import("viem").AccessList;
|
|
1664
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1665
|
+
chain?: import("viem").Chain | null;
|
|
1666
|
+
dataSuffix?: `0x${string}`;
|
|
1667
|
+
gas?: bigint;
|
|
1668
|
+
gasPrice?: bigint;
|
|
1669
|
+
maxFeePerGas?: bigint;
|
|
1670
|
+
maxPriorityFeePerGas?: bigint;
|
|
1671
|
+
nonce?: number;
|
|
1672
|
+
value?: bigint;
|
|
1673
|
+
}): Promise<void>;
|
|
1674
|
+
/**
|
|
1675
|
+
* Simulate enableCommunityGuard
|
|
1676
|
+
* Returns gas estimate and result without sending transaction
|
|
1677
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1678
|
+
*/
|
|
1679
|
+
enableCommunityGuard(options?: {
|
|
1680
|
+
accessList?: import("viem").AccessList;
|
|
1681
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1682
|
+
chain?: import("viem").Chain | null;
|
|
1683
|
+
dataSuffix?: `0x${string}`;
|
|
1684
|
+
gas?: bigint;
|
|
1685
|
+
gasPrice?: bigint;
|
|
1686
|
+
maxFeePerGas?: bigint;
|
|
1687
|
+
maxPriorityFeePerGas?: bigint;
|
|
1688
|
+
nonce?: number;
|
|
1689
|
+
value?: bigint;
|
|
1690
|
+
}): Promise<void>;
|
|
1691
|
+
/**
|
|
1692
|
+
* Simulate executeActions
|
|
1693
|
+
* Returns gas estimate and result without sending transaction
|
|
1694
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1695
|
+
*/
|
|
1696
|
+
executeActions(sigData: IShared_SigData, transferParams: IShared_TransferParams, calls: IMulticall_Call[], gasMulticall: bigint, options?: {
|
|
1697
|
+
accessList?: import("viem").AccessList;
|
|
1698
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1699
|
+
chain?: import("viem").Chain | null;
|
|
1700
|
+
dataSuffix?: `0x${string}`;
|
|
1701
|
+
gas?: bigint;
|
|
1702
|
+
gasPrice?: bigint;
|
|
1703
|
+
maxFeePerGas?: bigint;
|
|
1704
|
+
maxPriorityFeePerGas?: bigint;
|
|
1705
|
+
nonce?: number;
|
|
1706
|
+
value?: bigint;
|
|
1707
|
+
}): Promise<void>;
|
|
1708
|
+
/**
|
|
1709
|
+
* Simulate executexCall
|
|
1710
|
+
* Returns gas estimate and result without sending transaction
|
|
1711
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1712
|
+
*/
|
|
1713
|
+
executexCall(sigData: IShared_SigData, recipient: `0x${string}`, srcChain: bigint, srcAddress: `0x${string}`, message: `0x${string}`, options?: {
|
|
1714
|
+
accessList?: import("viem").AccessList;
|
|
1715
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1716
|
+
chain?: import("viem").Chain | null;
|
|
1717
|
+
dataSuffix?: `0x${string}`;
|
|
1718
|
+
gas?: bigint;
|
|
1719
|
+
gasPrice?: bigint;
|
|
1720
|
+
maxFeePerGas?: bigint;
|
|
1721
|
+
maxPriorityFeePerGas?: bigint;
|
|
1722
|
+
nonce?: number;
|
|
1723
|
+
value?: bigint;
|
|
1724
|
+
}): Promise<void>;
|
|
1725
|
+
/**
|
|
1726
|
+
* Simulate executexSwapAndCall
|
|
1727
|
+
* Returns gas estimate and result without sending transaction
|
|
1728
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1729
|
+
*/
|
|
1730
|
+
executexSwapAndCall(sigData: IShared_SigData, transferParams: IShared_TransferParams, srcChain: bigint, srcAddress: `0x${string}`, message: `0x${string}`, options?: {
|
|
1731
|
+
accessList?: import("viem").AccessList;
|
|
1732
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1733
|
+
chain?: import("viem").Chain | null;
|
|
1734
|
+
dataSuffix?: `0x${string}`;
|
|
1735
|
+
gas?: bigint;
|
|
1736
|
+
gasPrice?: bigint;
|
|
1737
|
+
maxFeePerGas?: bigint;
|
|
1738
|
+
maxPriorityFeePerGas?: bigint;
|
|
1739
|
+
nonce?: number;
|
|
1740
|
+
value?: bigint;
|
|
1741
|
+
}): Promise<void>;
|
|
1742
|
+
/**
|
|
1743
|
+
* Simulate fetchBatch
|
|
1744
|
+
* Returns gas estimate and result without sending transaction
|
|
1745
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1746
|
+
*/
|
|
1747
|
+
fetchBatch(sigData: IShared_SigData, fetchParamsArray: IShared_FetchParams[], options?: {
|
|
1748
|
+
accessList?: import("viem").AccessList;
|
|
1749
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1750
|
+
chain?: import("viem").Chain | null;
|
|
1751
|
+
dataSuffix?: `0x${string}`;
|
|
1752
|
+
gas?: bigint;
|
|
1753
|
+
gasPrice?: bigint;
|
|
1754
|
+
maxFeePerGas?: bigint;
|
|
1755
|
+
maxPriorityFeePerGas?: bigint;
|
|
1756
|
+
nonce?: number;
|
|
1757
|
+
value?: bigint;
|
|
1758
|
+
}): Promise<void>;
|
|
1759
|
+
/**
|
|
1760
|
+
* Simulate govWithdraw
|
|
719
1761
|
* Returns gas estimate and result without sending transaction
|
|
720
1762
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
721
1763
|
*/
|
|
722
|
-
|
|
1764
|
+
govWithdraw(tokens: `0x${string}`[], options?: {
|
|
723
1765
|
accessList?: import("viem").AccessList;
|
|
724
1766
|
authorizationList?: import("viem").AuthorizationList;
|
|
725
1767
|
chain?: import("viem").Chain | null;
|
|
@@ -732,11 +1774,11 @@ export declare class Vault_json {
|
|
|
732
1774
|
value?: bigint;
|
|
733
1775
|
}): Promise<void>;
|
|
734
1776
|
/**
|
|
735
|
-
* Simulate
|
|
1777
|
+
* Simulate resume
|
|
736
1778
|
* Returns gas estimate and result without sending transaction
|
|
737
1779
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
738
1780
|
*/
|
|
739
|
-
|
|
1781
|
+
resume(options?: {
|
|
740
1782
|
accessList?: import("viem").AccessList;
|
|
741
1783
|
authorizationList?: import("viem").AuthorizationList;
|
|
742
1784
|
chain?: import("viem").Chain | null;
|
|
@@ -749,11 +1791,11 @@ export declare class Vault_json {
|
|
|
749
1791
|
value?: bigint;
|
|
750
1792
|
}): Promise<void>;
|
|
751
1793
|
/**
|
|
752
|
-
* Simulate
|
|
1794
|
+
* Simulate suspend
|
|
753
1795
|
* Returns gas estimate and result without sending transaction
|
|
754
1796
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
755
1797
|
*/
|
|
756
|
-
|
|
1798
|
+
suspend(options?: {
|
|
757
1799
|
accessList?: import("viem").AccessList;
|
|
758
1800
|
authorizationList?: import("viem").AuthorizationList;
|
|
759
1801
|
chain?: import("viem").Chain | null;
|
|
@@ -766,11 +1808,11 @@ export declare class Vault_json {
|
|
|
766
1808
|
value?: bigint;
|
|
767
1809
|
}): Promise<void>;
|
|
768
1810
|
/**
|
|
769
|
-
* Simulate
|
|
1811
|
+
* Simulate transfer
|
|
770
1812
|
* Returns gas estimate and result without sending transaction
|
|
771
1813
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
772
1814
|
*/
|
|
773
|
-
|
|
1815
|
+
transfer(sigData: IShared_SigData, transferParams: IShared_TransferParams, options?: {
|
|
774
1816
|
accessList?: import("viem").AccessList;
|
|
775
1817
|
authorizationList?: import("viem").AuthorizationList;
|
|
776
1818
|
chain?: import("viem").Chain | null;
|
|
@@ -783,11 +1825,11 @@ export declare class Vault_json {
|
|
|
783
1825
|
value?: bigint;
|
|
784
1826
|
}): Promise<void>;
|
|
785
1827
|
/**
|
|
786
|
-
* Simulate
|
|
1828
|
+
* Simulate transferBatch
|
|
787
1829
|
* Returns gas estimate and result without sending transaction
|
|
788
1830
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
789
1831
|
*/
|
|
790
|
-
|
|
1832
|
+
transferBatch(sigData: IShared_SigData, transferParamsArray: IShared_TransferParams[], options?: {
|
|
791
1833
|
accessList?: import("viem").AccessList;
|
|
792
1834
|
authorizationList?: import("viem").AuthorizationList;
|
|
793
1835
|
chain?: import("viem").Chain | null;
|
|
@@ -800,11 +1842,11 @@ export declare class Vault_json {
|
|
|
800
1842
|
value?: bigint;
|
|
801
1843
|
}): Promise<void>;
|
|
802
1844
|
/**
|
|
803
|
-
* Simulate
|
|
1845
|
+
* Simulate transferFallback
|
|
804
1846
|
* Returns gas estimate and result without sending transaction
|
|
805
1847
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
806
1848
|
*/
|
|
807
|
-
|
|
1849
|
+
transferFallback(sigData: IShared_SigData, transferParams: IShared_TransferParams, options?: {
|
|
808
1850
|
accessList?: import("viem").AccessList;
|
|
809
1851
|
authorizationList?: import("viem").AuthorizationList;
|
|
810
1852
|
chain?: import("viem").Chain | null;
|
|
@@ -817,11 +1859,11 @@ export declare class Vault_json {
|
|
|
817
1859
|
value?: bigint;
|
|
818
1860
|
}): Promise<void>;
|
|
819
1861
|
/**
|
|
820
|
-
* Simulate
|
|
1862
|
+
* Simulate updateKeyManager
|
|
821
1863
|
* Returns gas estimate and result without sending transaction
|
|
822
1864
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
823
1865
|
*/
|
|
824
|
-
|
|
1866
|
+
updateKeyManager(sigData: IShared_SigData, keyManager: `0x${string}`, omitChecks: boolean, options?: {
|
|
825
1867
|
accessList?: import("viem").AccessList;
|
|
826
1868
|
authorizationList?: import("viem").AuthorizationList;
|
|
827
1869
|
chain?: import("viem").Chain | null;
|
|
@@ -834,11 +1876,11 @@ export declare class Vault_json {
|
|
|
834
1876
|
value?: bigint;
|
|
835
1877
|
}): Promise<void>;
|
|
836
1878
|
/**
|
|
837
|
-
* Simulate
|
|
1879
|
+
* Simulate xCallNative
|
|
838
1880
|
* Returns gas estimate and result without sending transaction
|
|
839
1881
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
840
1882
|
*/
|
|
841
|
-
|
|
1883
|
+
xCallNative(dstChain: bigint, dstAddress: `0x${string}`, dstToken: bigint, message: `0x${string}`, gasAmount: bigint, cfParameters: `0x${string}`, options?: {
|
|
842
1884
|
accessList?: import("viem").AccessList;
|
|
843
1885
|
authorizationList?: import("viem").AuthorizationList;
|
|
844
1886
|
chain?: import("viem").Chain | null;
|
|
@@ -851,11 +1893,11 @@ export declare class Vault_json {
|
|
|
851
1893
|
value?: bigint;
|
|
852
1894
|
}): Promise<void>;
|
|
853
1895
|
/**
|
|
854
|
-
* Simulate
|
|
1896
|
+
* Simulate xCallToken
|
|
855
1897
|
* Returns gas estimate and result without sending transaction
|
|
856
1898
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
857
1899
|
*/
|
|
858
|
-
|
|
1900
|
+
xCallToken(dstChain: bigint, dstAddress: `0x${string}`, dstToken: bigint, message: `0x${string}`, gasAmount: bigint, srcToken: `0x${string}`, amount: bigint, cfParameters: `0x${string}`, options?: {
|
|
859
1901
|
accessList?: import("viem").AccessList;
|
|
860
1902
|
authorizationList?: import("viem").AuthorizationList;
|
|
861
1903
|
chain?: import("viem").Chain | null;
|
|
@@ -868,11 +1910,11 @@ export declare class Vault_json {
|
|
|
868
1910
|
value?: bigint;
|
|
869
1911
|
}): Promise<void>;
|
|
870
1912
|
/**
|
|
871
|
-
* Simulate
|
|
1913
|
+
* Simulate xSwapNative
|
|
872
1914
|
* Returns gas estimate and result without sending transaction
|
|
873
1915
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
874
1916
|
*/
|
|
875
|
-
|
|
1917
|
+
xSwapNative(dstChain: bigint, dstAddress: `0x${string}`, dstToken: bigint, cfParameters: `0x${string}`, options?: {
|
|
876
1918
|
accessList?: import("viem").AccessList;
|
|
877
1919
|
authorizationList?: import("viem").AuthorizationList;
|
|
878
1920
|
chain?: import("viem").Chain | null;
|
|
@@ -885,11 +1927,11 @@ export declare class Vault_json {
|
|
|
885
1927
|
value?: bigint;
|
|
886
1928
|
}): Promise<void>;
|
|
887
1929
|
/**
|
|
888
|
-
* Simulate
|
|
1930
|
+
* Simulate xSwapToken
|
|
889
1931
|
* Returns gas estimate and result without sending transaction
|
|
890
1932
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
891
1933
|
*/
|
|
892
|
-
|
|
1934
|
+
xSwapToken(dstChain: bigint, dstAddress: `0x${string}`, dstToken: bigint, srcToken: `0x${string}`, amount: bigint, cfParameters: `0x${string}`, options?: {
|
|
893
1935
|
accessList?: import("viem").AccessList;
|
|
894
1936
|
authorizationList?: import("viem").AuthorizationList;
|
|
895
1937
|
chain?: import("viem").Chain | null;
|
|
@@ -916,83 +1958,176 @@ export declare class Vault_json {
|
|
|
916
1958
|
*/
|
|
917
1959
|
get watch(): {
|
|
918
1960
|
/**
|
|
919
|
-
* Watch
|
|
1961
|
+
* Watch AddGasNative events
|
|
1962
|
+
* @param callback Function to call when event is emitted
|
|
1963
|
+
* @param filter Optional filter for indexed parameters
|
|
1964
|
+
* @returns Unwatch function to stop listening
|
|
1965
|
+
*/
|
|
1966
|
+
AddGasNative: (callback: (event: {
|
|
1967
|
+
swapID: `0x${string}`;
|
|
1968
|
+
amount: bigint;
|
|
1969
|
+
}) => void) => () => void;
|
|
1970
|
+
/**
|
|
1971
|
+
* Watch AddGasToken events
|
|
1972
|
+
* @param callback Function to call when event is emitted
|
|
1973
|
+
* @param filter Optional filter for indexed parameters
|
|
1974
|
+
* @returns Unwatch function to stop listening
|
|
1975
|
+
*/
|
|
1976
|
+
AddGasToken: (callback: (event: {
|
|
1977
|
+
swapID: `0x${string}`;
|
|
1978
|
+
amount: bigint;
|
|
1979
|
+
token: `0x${string}`;
|
|
1980
|
+
}) => void) => () => void;
|
|
1981
|
+
/**
|
|
1982
|
+
* Watch CommunityGuardDisabled events
|
|
920
1983
|
* @param callback Function to call when event is emitted
|
|
921
1984
|
* @param filter Optional filter for indexed parameters
|
|
922
1985
|
* @returns Unwatch function to stop listening
|
|
923
1986
|
*/
|
|
924
|
-
|
|
925
|
-
|
|
1987
|
+
CommunityGuardDisabled: (callback: (event: {
|
|
1988
|
+
communityGuardDisabled: boolean;
|
|
926
1989
|
}) => void) => () => void;
|
|
927
1990
|
/**
|
|
928
|
-
* Watch
|
|
1991
|
+
* Watch ExecuteActionsFailed events
|
|
1992
|
+
* @param callback Function to call when event is emitted
|
|
1993
|
+
* @param filter Optional filter for indexed parameters
|
|
1994
|
+
* @returns Unwatch function to stop listening
|
|
1995
|
+
*/
|
|
1996
|
+
ExecuteActionsFailed: (callback: (event: {
|
|
1997
|
+
multicallAddress: `0x${string}`;
|
|
1998
|
+
token: `0x${string}`;
|
|
1999
|
+
amount: bigint;
|
|
2000
|
+
reason: `0x${string}`;
|
|
2001
|
+
}) => void, filter?: {
|
|
2002
|
+
multicallAddress: `0x${string}`;
|
|
2003
|
+
token: `0x${string}`;
|
|
2004
|
+
}) => () => void;
|
|
2005
|
+
/**
|
|
2006
|
+
* Watch FetchedNative events
|
|
2007
|
+
* @param callback Function to call when event is emitted
|
|
2008
|
+
* @param filter Optional filter for indexed parameters
|
|
2009
|
+
* @returns Unwatch function to stop listening
|
|
2010
|
+
*/
|
|
2011
|
+
FetchedNative: (callback: (event: {
|
|
2012
|
+
sender: `0x${string}`;
|
|
2013
|
+
amount: bigint;
|
|
2014
|
+
}) => void, filter?: {
|
|
2015
|
+
sender: `0x${string}`;
|
|
2016
|
+
}) => () => void;
|
|
2017
|
+
/**
|
|
2018
|
+
* Watch Suspended events
|
|
929
2019
|
* @param callback Function to call when event is emitted
|
|
930
2020
|
* @param filter Optional filter for indexed parameters
|
|
931
2021
|
* @returns Unwatch function to stop listening
|
|
932
2022
|
*/
|
|
933
|
-
|
|
934
|
-
|
|
2023
|
+
Suspended: (callback: (event: {
|
|
2024
|
+
suspended: boolean;
|
|
935
2025
|
}) => void) => () => void;
|
|
936
2026
|
/**
|
|
937
|
-
* Watch
|
|
2027
|
+
* Watch SwapNative events
|
|
2028
|
+
* @param callback Function to call when event is emitted
|
|
2029
|
+
* @param filter Optional filter for indexed parameters
|
|
2030
|
+
* @returns Unwatch function to stop listening
|
|
2031
|
+
*/
|
|
2032
|
+
SwapNative: (callback: (event: {
|
|
2033
|
+
sender: `0x${string}`;
|
|
2034
|
+
dstChain: bigint;
|
|
2035
|
+
dstAddress: `0x${string}`;
|
|
2036
|
+
dstToken: bigint;
|
|
2037
|
+
amount: bigint;
|
|
2038
|
+
cfParameters: `0x${string}`;
|
|
2039
|
+
}) => void, filter?: {
|
|
2040
|
+
sender: `0x${string}`;
|
|
2041
|
+
}) => () => void;
|
|
2042
|
+
/**
|
|
2043
|
+
* Watch SwapToken events
|
|
938
2044
|
* @param callback Function to call when event is emitted
|
|
939
2045
|
* @param filter Optional filter for indexed parameters
|
|
940
2046
|
* @returns Unwatch function to stop listening
|
|
941
2047
|
*/
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
2048
|
+
SwapToken: (callback: (event: {
|
|
2049
|
+
sender: `0x${string}`;
|
|
2050
|
+
dstChain: bigint;
|
|
2051
|
+
dstAddress: `0x${string}`;
|
|
2052
|
+
dstToken: bigint;
|
|
2053
|
+
srcToken: `0x${string}`;
|
|
2054
|
+
amount: bigint;
|
|
2055
|
+
cfParameters: `0x${string}`;
|
|
945
2056
|
}) => void, filter?: {
|
|
946
|
-
|
|
947
|
-
newOwner: `0x${string}`;
|
|
2057
|
+
sender: `0x${string}`;
|
|
948
2058
|
}) => () => void;
|
|
949
2059
|
/**
|
|
950
|
-
* Watch
|
|
2060
|
+
* Watch TransferNativeFailed events
|
|
951
2061
|
* @param callback Function to call when event is emitted
|
|
952
2062
|
* @param filter Optional filter for indexed parameters
|
|
953
2063
|
* @returns Unwatch function to stop listening
|
|
954
2064
|
*/
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
2065
|
+
TransferNativeFailed: (callback: (event: {
|
|
2066
|
+
recipient: `0x${string}`;
|
|
2067
|
+
amount: bigint;
|
|
958
2068
|
}) => void, filter?: {
|
|
959
|
-
|
|
960
|
-
newOwner: `0x${string}`;
|
|
2069
|
+
recipient: `0x${string}`;
|
|
961
2070
|
}) => () => void;
|
|
962
2071
|
/**
|
|
963
|
-
* Watch
|
|
2072
|
+
* Watch TransferTokenFailed events
|
|
964
2073
|
* @param callback Function to call when event is emitted
|
|
965
2074
|
* @param filter Optional filter for indexed parameters
|
|
966
2075
|
* @returns Unwatch function to stop listening
|
|
967
2076
|
*/
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
2077
|
+
TransferTokenFailed: (callback: (event: {
|
|
2078
|
+
recipient: `0x${string}`;
|
|
2079
|
+
token: `0x${string}`;
|
|
2080
|
+
amount: bigint;
|
|
2081
|
+
reason: `0x${string}`;
|
|
971
2082
|
}) => void, filter?: {
|
|
972
|
-
|
|
2083
|
+
recipient: `0x${string}`;
|
|
2084
|
+
token: `0x${string}`;
|
|
973
2085
|
}) => () => void;
|
|
974
2086
|
/**
|
|
975
|
-
* Watch
|
|
2087
|
+
* Watch UpdatedKeyManager events
|
|
2088
|
+
* @param callback Function to call when event is emitted
|
|
2089
|
+
* @param filter Optional filter for indexed parameters
|
|
2090
|
+
* @returns Unwatch function to stop listening
|
|
2091
|
+
*/
|
|
2092
|
+
UpdatedKeyManager: (callback: (event: {
|
|
2093
|
+
keyManager: `0x${string}`;
|
|
2094
|
+
}) => void) => () => void;
|
|
2095
|
+
/**
|
|
2096
|
+
* Watch XCallNative events
|
|
976
2097
|
* @param callback Function to call when event is emitted
|
|
977
2098
|
* @param filter Optional filter for indexed parameters
|
|
978
2099
|
* @returns Unwatch function to stop listening
|
|
979
2100
|
*/
|
|
980
|
-
|
|
981
|
-
|
|
2101
|
+
XCallNative: (callback: (event: {
|
|
2102
|
+
sender: `0x${string}`;
|
|
2103
|
+
dstChain: bigint;
|
|
2104
|
+
dstAddress: `0x${string}`;
|
|
2105
|
+
dstToken: bigint;
|
|
2106
|
+
amount: bigint;
|
|
2107
|
+
message: `0x${string}`;
|
|
2108
|
+
gasAmount: bigint;
|
|
2109
|
+
cfParameters: `0x${string}`;
|
|
982
2110
|
}) => void, filter?: {
|
|
983
|
-
|
|
2111
|
+
sender: `0x${string}`;
|
|
984
2112
|
}) => () => void;
|
|
985
2113
|
/**
|
|
986
|
-
* Watch
|
|
2114
|
+
* Watch XCallToken events
|
|
987
2115
|
* @param callback Function to call when event is emitted
|
|
988
2116
|
* @param filter Optional filter for indexed parameters
|
|
989
2117
|
* @returns Unwatch function to stop listening
|
|
990
2118
|
*/
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
2119
|
+
XCallToken: (callback: (event: {
|
|
2120
|
+
sender: `0x${string}`;
|
|
2121
|
+
dstChain: bigint;
|
|
2122
|
+
dstAddress: `0x${string}`;
|
|
2123
|
+
dstToken: bigint;
|
|
2124
|
+
srcToken: `0x${string}`;
|
|
2125
|
+
amount: bigint;
|
|
2126
|
+
message: `0x${string}`;
|
|
2127
|
+
gasAmount: bigint;
|
|
2128
|
+
cfParameters: `0x${string}`;
|
|
994
2129
|
}) => void, filter?: {
|
|
995
|
-
|
|
2130
|
+
sender: `0x${string}`;
|
|
996
2131
|
}) => () => void;
|
|
997
2132
|
};
|
|
998
2133
|
}
|