@gitmyabi/vault 1.0.9 → 1.0.10
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 +5 -5
- package/contracts/Vault_json.d.ts +90 -1030
- package/contracts/Vault_json.js +122 -1004
- package/contracts/Vault_json.ts +94 -1305
- package/contracts/index.d.ts +0 -2
- package/contracts/index.js +1 -4
- package/contracts/index.ts +0 -2
- package/package.json +3 -3
- package/contracts/ERC1967Proxy_json.d.ts +0 -144
- package/contracts/ERC1967Proxy_json.js +0 -180
- package/contracts/ERC1967Proxy_json.ts +0 -209
|
@@ -5,142 +5,46 @@ import type { Address, PublicClient, WalletClient } from 'viem';
|
|
|
5
5
|
* This ABI is typed using viem's type system for full type safety.
|
|
6
6
|
*/
|
|
7
7
|
export declare const Vault_jsonAbi: readonly [{
|
|
8
|
-
readonly inputs: readonly [];
|
|
9
|
-
readonly stateMutability: "nonpayable";
|
|
10
|
-
readonly type: "constructor";
|
|
11
|
-
}, {
|
|
12
|
-
readonly anonymous: false;
|
|
13
|
-
readonly inputs: readonly [{
|
|
14
|
-
readonly indexed: false;
|
|
15
|
-
readonly internalType: "address";
|
|
16
|
-
readonly name: "previousAdmin";
|
|
17
|
-
readonly type: "address";
|
|
18
|
-
}, {
|
|
19
|
-
readonly indexed: false;
|
|
20
|
-
readonly internalType: "address";
|
|
21
|
-
readonly name: "newAdmin";
|
|
22
|
-
readonly type: "address";
|
|
23
|
-
}];
|
|
24
|
-
readonly name: "AdminChanged";
|
|
25
|
-
readonly type: "event";
|
|
26
|
-
}, {
|
|
27
|
-
readonly anonymous: false;
|
|
28
|
-
readonly inputs: readonly [{
|
|
29
|
-
readonly indexed: true;
|
|
30
|
-
readonly internalType: "address";
|
|
31
|
-
readonly name: "beacon";
|
|
32
|
-
readonly type: "address";
|
|
33
|
-
}];
|
|
34
|
-
readonly name: "BeaconUpgraded";
|
|
35
|
-
readonly type: "event";
|
|
36
|
-
}, {
|
|
37
|
-
readonly anonymous: false;
|
|
38
|
-
readonly inputs: readonly [{
|
|
39
|
-
readonly indexed: false;
|
|
40
|
-
readonly internalType: "uint8";
|
|
41
|
-
readonly name: "version";
|
|
42
|
-
readonly type: "uint8";
|
|
43
|
-
}];
|
|
44
|
-
readonly name: "Initialized";
|
|
45
|
-
readonly type: "event";
|
|
46
|
-
}, {
|
|
47
|
-
readonly anonymous: false;
|
|
48
|
-
readonly inputs: readonly [{
|
|
49
|
-
readonly indexed: true;
|
|
50
|
-
readonly internalType: "address";
|
|
51
|
-
readonly name: "previousOwner";
|
|
52
|
-
readonly type: "address";
|
|
53
|
-
}, {
|
|
54
|
-
readonly indexed: true;
|
|
55
|
-
readonly internalType: "address";
|
|
56
|
-
readonly name: "newOwner";
|
|
57
|
-
readonly type: "address";
|
|
58
|
-
}];
|
|
59
|
-
readonly name: "OwnershipTransferred";
|
|
60
|
-
readonly type: "event";
|
|
61
|
-
}, {
|
|
62
|
-
readonly anonymous: false;
|
|
63
8
|
readonly inputs: readonly [{
|
|
64
|
-
readonly indexed: true;
|
|
65
|
-
readonly internalType: "bytes32";
|
|
66
|
-
readonly name: "role";
|
|
67
|
-
readonly type: "bytes32";
|
|
68
|
-
}, {
|
|
69
|
-
readonly indexed: true;
|
|
70
9
|
readonly internalType: "bytes32";
|
|
71
|
-
readonly name: "
|
|
72
|
-
readonly type: "bytes32";
|
|
73
|
-
}, {
|
|
74
|
-
readonly indexed: true;
|
|
75
|
-
readonly internalType: "bytes32";
|
|
76
|
-
readonly name: "newAdminRole";
|
|
10
|
+
readonly name: "seal_";
|
|
77
11
|
readonly type: "bytes32";
|
|
78
12
|
}];
|
|
79
|
-
readonly
|
|
80
|
-
readonly type: "
|
|
13
|
+
readonly stateMutability: "nonpayable";
|
|
14
|
+
readonly type: "constructor";
|
|
81
15
|
}, {
|
|
82
16
|
readonly anonymous: false;
|
|
83
17
|
readonly inputs: readonly [{
|
|
84
|
-
readonly indexed: true;
|
|
85
|
-
readonly internalType: "bytes32";
|
|
86
|
-
readonly name: "role";
|
|
87
|
-
readonly type: "bytes32";
|
|
88
|
-
}, {
|
|
89
18
|
readonly indexed: true;
|
|
90
19
|
readonly internalType: "address";
|
|
91
|
-
readonly name: "
|
|
20
|
+
readonly name: "to";
|
|
92
21
|
readonly type: "address";
|
|
93
22
|
}, {
|
|
94
|
-
readonly indexed:
|
|
95
|
-
readonly internalType: "
|
|
96
|
-
readonly name: "
|
|
97
|
-
readonly type: "
|
|
23
|
+
readonly indexed: false;
|
|
24
|
+
readonly internalType: "uint256";
|
|
25
|
+
readonly name: "amount";
|
|
26
|
+
readonly type: "uint256";
|
|
98
27
|
}];
|
|
99
|
-
readonly name: "
|
|
28
|
+
readonly name: "Found";
|
|
100
29
|
readonly type: "event";
|
|
101
30
|
}, {
|
|
102
31
|
readonly anonymous: false;
|
|
103
32
|
readonly inputs: readonly [{
|
|
104
|
-
readonly indexed: true;
|
|
105
|
-
readonly internalType: "bytes32";
|
|
106
|
-
readonly name: "role";
|
|
107
|
-
readonly type: "bytes32";
|
|
108
|
-
}, {
|
|
109
33
|
readonly indexed: true;
|
|
110
34
|
readonly internalType: "address";
|
|
111
|
-
readonly name: "
|
|
35
|
+
readonly name: "from";
|
|
112
36
|
readonly type: "address";
|
|
113
37
|
}, {
|
|
114
|
-
readonly indexed:
|
|
115
|
-
readonly internalType: "
|
|
116
|
-
readonly name: "
|
|
117
|
-
readonly type: "
|
|
118
|
-
}];
|
|
119
|
-
readonly name: "RoleRevoked";
|
|
120
|
-
readonly type: "event";
|
|
121
|
-
}, {
|
|
122
|
-
readonly anonymous: false;
|
|
123
|
-
readonly inputs: readonly [{
|
|
124
|
-
readonly indexed: true;
|
|
125
|
-
readonly internalType: "address";
|
|
126
|
-
readonly name: "implementation";
|
|
127
|
-
readonly type: "address";
|
|
38
|
+
readonly indexed: false;
|
|
39
|
+
readonly internalType: "uint256";
|
|
40
|
+
readonly name: "amount";
|
|
41
|
+
readonly type: "uint256";
|
|
128
42
|
}];
|
|
129
|
-
readonly name: "
|
|
43
|
+
readonly name: "Funded";
|
|
130
44
|
readonly type: "event";
|
|
131
45
|
}, {
|
|
132
46
|
readonly inputs: readonly [];
|
|
133
|
-
readonly name: "
|
|
134
|
-
readonly outputs: readonly [{
|
|
135
|
-
readonly internalType: "bytes32";
|
|
136
|
-
readonly name: "";
|
|
137
|
-
readonly type: "bytes32";
|
|
138
|
-
}];
|
|
139
|
-
readonly stateMutability: "view";
|
|
140
|
-
readonly type: "function";
|
|
141
|
-
}, {
|
|
142
|
-
readonly inputs: readonly [];
|
|
143
|
-
readonly name: "PAYEE_ROLE";
|
|
47
|
+
readonly name: "SEAL";
|
|
144
48
|
readonly outputs: readonly [{
|
|
145
49
|
readonly internalType: "bytes32";
|
|
146
50
|
readonly name: "";
|
|
@@ -150,103 +54,7 @@ export declare const Vault_jsonAbi: readonly [{
|
|
|
150
54
|
readonly type: "function";
|
|
151
55
|
}, {
|
|
152
56
|
readonly inputs: readonly [];
|
|
153
|
-
readonly name: "
|
|
154
|
-
readonly outputs: readonly [{
|
|
155
|
-
readonly internalType: "bytes32";
|
|
156
|
-
readonly name: "";
|
|
157
|
-
readonly type: "bytes32";
|
|
158
|
-
}];
|
|
159
|
-
readonly stateMutability: "view";
|
|
160
|
-
readonly type: "function";
|
|
161
|
-
}, {
|
|
162
|
-
readonly inputs: readonly [{
|
|
163
|
-
readonly internalType: "contract IERC20Upgradeable[]";
|
|
164
|
-
readonly name: "tokens";
|
|
165
|
-
readonly type: "address[]";
|
|
166
|
-
}, {
|
|
167
|
-
readonly internalType: "address[]";
|
|
168
|
-
readonly name: "payees";
|
|
169
|
-
readonly type: "address[]";
|
|
170
|
-
}, {
|
|
171
|
-
readonly internalType: "uint256[]";
|
|
172
|
-
readonly name: "amounts";
|
|
173
|
-
readonly type: "uint256[]";
|
|
174
|
-
}];
|
|
175
|
-
readonly name: "batchTransferErc20";
|
|
176
|
-
readonly outputs: readonly [];
|
|
177
|
-
readonly stateMutability: "nonpayable";
|
|
178
|
-
readonly type: "function";
|
|
179
|
-
}, {
|
|
180
|
-
readonly inputs: readonly [{
|
|
181
|
-
readonly internalType: "contract IERC721Upgradeable[]";
|
|
182
|
-
readonly name: "tokens";
|
|
183
|
-
readonly type: "address[]";
|
|
184
|
-
}, {
|
|
185
|
-
readonly internalType: "address[]";
|
|
186
|
-
readonly name: "payees";
|
|
187
|
-
readonly type: "address[]";
|
|
188
|
-
}, {
|
|
189
|
-
readonly internalType: "uint256[]";
|
|
190
|
-
readonly name: "tokenIds";
|
|
191
|
-
readonly type: "uint256[]";
|
|
192
|
-
}];
|
|
193
|
-
readonly name: "batchTransferErc721";
|
|
194
|
-
readonly outputs: readonly [];
|
|
195
|
-
readonly stateMutability: "nonpayable";
|
|
196
|
-
readonly type: "function";
|
|
197
|
-
}, {
|
|
198
|
-
readonly inputs: readonly [{
|
|
199
|
-
readonly internalType: "address[]";
|
|
200
|
-
readonly name: "payees";
|
|
201
|
-
readonly type: "address[]";
|
|
202
|
-
}, {
|
|
203
|
-
readonly internalType: "uint256[]";
|
|
204
|
-
readonly name: "amounts";
|
|
205
|
-
readonly type: "uint256[]";
|
|
206
|
-
}];
|
|
207
|
-
readonly name: "batchTransferEther";
|
|
208
|
-
readonly outputs: readonly [];
|
|
209
|
-
readonly stateMutability: "nonpayable";
|
|
210
|
-
readonly type: "function";
|
|
211
|
-
}, {
|
|
212
|
-
readonly inputs: readonly [{
|
|
213
|
-
readonly internalType: "bytes32";
|
|
214
|
-
readonly name: "role";
|
|
215
|
-
readonly type: "bytes32";
|
|
216
|
-
}];
|
|
217
|
-
readonly name: "getRoleAdmin";
|
|
218
|
-
readonly outputs: readonly [{
|
|
219
|
-
readonly internalType: "bytes32";
|
|
220
|
-
readonly name: "";
|
|
221
|
-
readonly type: "bytes32";
|
|
222
|
-
}];
|
|
223
|
-
readonly stateMutability: "view";
|
|
224
|
-
readonly type: "function";
|
|
225
|
-
}, {
|
|
226
|
-
readonly inputs: readonly [{
|
|
227
|
-
readonly internalType: "bytes32";
|
|
228
|
-
readonly name: "role";
|
|
229
|
-
readonly type: "bytes32";
|
|
230
|
-
}, {
|
|
231
|
-
readonly internalType: "uint256";
|
|
232
|
-
readonly name: "index";
|
|
233
|
-
readonly type: "uint256";
|
|
234
|
-
}];
|
|
235
|
-
readonly name: "getRoleMember";
|
|
236
|
-
readonly outputs: readonly [{
|
|
237
|
-
readonly internalType: "address";
|
|
238
|
-
readonly name: "";
|
|
239
|
-
readonly type: "address";
|
|
240
|
-
}];
|
|
241
|
-
readonly stateMutability: "view";
|
|
242
|
-
readonly type: "function";
|
|
243
|
-
}, {
|
|
244
|
-
readonly inputs: readonly [{
|
|
245
|
-
readonly internalType: "bytes32";
|
|
246
|
-
readonly name: "role";
|
|
247
|
-
readonly type: "bytes32";
|
|
248
|
-
}];
|
|
249
|
-
readonly name: "getRoleMemberCount";
|
|
57
|
+
readonly name: "balance";
|
|
250
58
|
readonly outputs: readonly [{
|
|
251
59
|
readonly internalType: "uint256";
|
|
252
60
|
readonly name: "";
|
|
@@ -255,30 +63,8 @@ export declare const Vault_jsonAbi: readonly [{
|
|
|
255
63
|
readonly stateMutability: "view";
|
|
256
64
|
readonly type: "function";
|
|
257
65
|
}, {
|
|
258
|
-
readonly inputs: readonly [
|
|
259
|
-
|
|
260
|
-
readonly name: "role";
|
|
261
|
-
readonly type: "bytes32";
|
|
262
|
-
}, {
|
|
263
|
-
readonly internalType: "address";
|
|
264
|
-
readonly name: "account";
|
|
265
|
-
readonly type: "address";
|
|
266
|
-
}];
|
|
267
|
-
readonly name: "grantRole";
|
|
268
|
-
readonly outputs: readonly [];
|
|
269
|
-
readonly stateMutability: "nonpayable";
|
|
270
|
-
readonly type: "function";
|
|
271
|
-
}, {
|
|
272
|
-
readonly inputs: readonly [{
|
|
273
|
-
readonly internalType: "bytes32";
|
|
274
|
-
readonly name: "role";
|
|
275
|
-
readonly type: "bytes32";
|
|
276
|
-
}, {
|
|
277
|
-
readonly internalType: "address";
|
|
278
|
-
readonly name: "account";
|
|
279
|
-
readonly type: "address";
|
|
280
|
-
}];
|
|
281
|
-
readonly name: "hasRole";
|
|
66
|
+
readonly inputs: readonly [];
|
|
67
|
+
readonly name: "found";
|
|
282
68
|
readonly outputs: readonly [{
|
|
283
69
|
readonly internalType: "bool";
|
|
284
70
|
readonly name: "";
|
|
@@ -288,188 +74,38 @@ export declare const Vault_jsonAbi: readonly [{
|
|
|
288
74
|
readonly type: "function";
|
|
289
75
|
}, {
|
|
290
76
|
readonly inputs: readonly [];
|
|
291
|
-
readonly name: "
|
|
292
|
-
readonly outputs: readonly [];
|
|
293
|
-
readonly stateMutability: "nonpayable";
|
|
294
|
-
readonly type: "function";
|
|
295
|
-
}, {
|
|
296
|
-
readonly inputs: readonly [{
|
|
297
|
-
readonly internalType: "address";
|
|
298
|
-
readonly name: "";
|
|
299
|
-
readonly type: "address";
|
|
300
|
-
}, {
|
|
301
|
-
readonly internalType: "address";
|
|
302
|
-
readonly name: "";
|
|
303
|
-
readonly type: "address";
|
|
304
|
-
}, {
|
|
305
|
-
readonly internalType: "uint256";
|
|
306
|
-
readonly name: "";
|
|
307
|
-
readonly type: "uint256";
|
|
308
|
-
}, {
|
|
309
|
-
readonly internalType: "bytes";
|
|
310
|
-
readonly name: "";
|
|
311
|
-
readonly type: "bytes";
|
|
312
|
-
}];
|
|
313
|
-
readonly name: "onERC721Received";
|
|
314
|
-
readonly outputs: readonly [{
|
|
315
|
-
readonly internalType: "bytes4";
|
|
316
|
-
readonly name: "";
|
|
317
|
-
readonly type: "bytes4";
|
|
318
|
-
}];
|
|
319
|
-
readonly stateMutability: "nonpayable";
|
|
320
|
-
readonly type: "function";
|
|
321
|
-
}, {
|
|
322
|
-
readonly inputs: readonly [];
|
|
323
|
-
readonly name: "owner";
|
|
324
|
-
readonly outputs: readonly [{
|
|
325
|
-
readonly internalType: "address";
|
|
326
|
-
readonly name: "";
|
|
327
|
-
readonly type: "address";
|
|
328
|
-
}];
|
|
329
|
-
readonly stateMutability: "view";
|
|
330
|
-
readonly type: "function";
|
|
331
|
-
}, {
|
|
332
|
-
readonly inputs: readonly [];
|
|
333
|
-
readonly name: "proxiableUUID";
|
|
77
|
+
readonly name: "rules";
|
|
334
78
|
readonly outputs: readonly [{
|
|
335
|
-
readonly internalType: "
|
|
79
|
+
readonly internalType: "string";
|
|
336
80
|
readonly name: "";
|
|
337
|
-
readonly type: "
|
|
81
|
+
readonly type: "string";
|
|
338
82
|
}];
|
|
339
|
-
readonly stateMutability: "
|
|
83
|
+
readonly stateMutability: "pure";
|
|
340
84
|
readonly type: "function";
|
|
341
85
|
}, {
|
|
342
86
|
readonly inputs: readonly [];
|
|
343
|
-
readonly name: "
|
|
344
|
-
readonly outputs: readonly [];
|
|
345
|
-
readonly stateMutability: "nonpayable";
|
|
346
|
-
readonly type: "function";
|
|
347
|
-
}, {
|
|
348
|
-
readonly inputs: readonly [{
|
|
349
|
-
readonly internalType: "bytes32";
|
|
350
|
-
readonly name: "role";
|
|
351
|
-
readonly type: "bytes32";
|
|
352
|
-
}, {
|
|
353
|
-
readonly internalType: "address";
|
|
354
|
-
readonly name: "account";
|
|
355
|
-
readonly type: "address";
|
|
356
|
-
}];
|
|
357
|
-
readonly name: "renounceRole";
|
|
358
|
-
readonly outputs: readonly [];
|
|
359
|
-
readonly stateMutability: "nonpayable";
|
|
360
|
-
readonly type: "function";
|
|
361
|
-
}, {
|
|
362
|
-
readonly inputs: readonly [{
|
|
363
|
-
readonly internalType: "bytes32";
|
|
364
|
-
readonly name: "role";
|
|
365
|
-
readonly type: "bytes32";
|
|
366
|
-
}, {
|
|
367
|
-
readonly internalType: "address";
|
|
368
|
-
readonly name: "account";
|
|
369
|
-
readonly type: "address";
|
|
370
|
-
}];
|
|
371
|
-
readonly name: "revokeRole";
|
|
372
|
-
readonly outputs: readonly [];
|
|
373
|
-
readonly stateMutability: "nonpayable";
|
|
374
|
-
readonly type: "function";
|
|
375
|
-
}, {
|
|
376
|
-
readonly inputs: readonly [{
|
|
377
|
-
readonly internalType: "bytes4";
|
|
378
|
-
readonly name: "interfaceId";
|
|
379
|
-
readonly type: "bytes4";
|
|
380
|
-
}];
|
|
381
|
-
readonly name: "supportsInterface";
|
|
87
|
+
readonly name: "state";
|
|
382
88
|
readonly outputs: readonly [{
|
|
383
|
-
readonly internalType: "
|
|
89
|
+
readonly internalType: "string";
|
|
384
90
|
readonly name: "";
|
|
385
|
-
readonly type: "
|
|
91
|
+
readonly type: "string";
|
|
386
92
|
}];
|
|
387
93
|
readonly stateMutability: "view";
|
|
388
94
|
readonly type: "function";
|
|
389
95
|
}, {
|
|
390
96
|
readonly inputs: readonly [{
|
|
391
|
-
readonly internalType: "
|
|
392
|
-
readonly name: "
|
|
393
|
-
readonly type: "
|
|
97
|
+
readonly internalType: "bytes";
|
|
98
|
+
readonly name: "secret";
|
|
99
|
+
readonly type: "bytes";
|
|
394
100
|
}, {
|
|
395
|
-
readonly internalType: "address";
|
|
396
|
-
readonly name: "
|
|
101
|
+
readonly internalType: "address payable";
|
|
102
|
+
readonly name: "to";
|
|
397
103
|
readonly type: "address";
|
|
398
|
-
}, {
|
|
399
|
-
readonly internalType: "uint256";
|
|
400
|
-
readonly name: "amount";
|
|
401
|
-
readonly type: "uint256";
|
|
402
104
|
}];
|
|
403
|
-
readonly name: "
|
|
105
|
+
readonly name: "unlock";
|
|
404
106
|
readonly outputs: readonly [];
|
|
405
107
|
readonly stateMutability: "nonpayable";
|
|
406
108
|
readonly type: "function";
|
|
407
|
-
}, {
|
|
408
|
-
readonly inputs: readonly [{
|
|
409
|
-
readonly internalType: "contract IERC721Upgradeable";
|
|
410
|
-
readonly name: "token";
|
|
411
|
-
readonly type: "address";
|
|
412
|
-
}, {
|
|
413
|
-
readonly internalType: "address";
|
|
414
|
-
readonly name: "payee";
|
|
415
|
-
readonly type: "address";
|
|
416
|
-
}, {
|
|
417
|
-
readonly internalType: "uint256";
|
|
418
|
-
readonly name: "tokenId";
|
|
419
|
-
readonly type: "uint256";
|
|
420
|
-
}];
|
|
421
|
-
readonly name: "transferErc721";
|
|
422
|
-
readonly outputs: readonly [];
|
|
423
|
-
readonly stateMutability: "nonpayable";
|
|
424
|
-
readonly type: "function";
|
|
425
|
-
}, {
|
|
426
|
-
readonly inputs: readonly [{
|
|
427
|
-
readonly internalType: "address";
|
|
428
|
-
readonly name: "payee";
|
|
429
|
-
readonly type: "address";
|
|
430
|
-
}, {
|
|
431
|
-
readonly internalType: "uint256";
|
|
432
|
-
readonly name: "amount";
|
|
433
|
-
readonly type: "uint256";
|
|
434
|
-
}];
|
|
435
|
-
readonly name: "transferEther";
|
|
436
|
-
readonly outputs: readonly [];
|
|
437
|
-
readonly stateMutability: "nonpayable";
|
|
438
|
-
readonly type: "function";
|
|
439
|
-
}, {
|
|
440
|
-
readonly inputs: readonly [{
|
|
441
|
-
readonly internalType: "address";
|
|
442
|
-
readonly name: "newOwner";
|
|
443
|
-
readonly type: "address";
|
|
444
|
-
}];
|
|
445
|
-
readonly name: "transferOwnership";
|
|
446
|
-
readonly outputs: readonly [];
|
|
447
|
-
readonly stateMutability: "nonpayable";
|
|
448
|
-
readonly type: "function";
|
|
449
|
-
}, {
|
|
450
|
-
readonly inputs: readonly [{
|
|
451
|
-
readonly internalType: "address";
|
|
452
|
-
readonly name: "newImplementation";
|
|
453
|
-
readonly type: "address";
|
|
454
|
-
}];
|
|
455
|
-
readonly name: "upgradeTo";
|
|
456
|
-
readonly outputs: readonly [];
|
|
457
|
-
readonly stateMutability: "nonpayable";
|
|
458
|
-
readonly type: "function";
|
|
459
|
-
}, {
|
|
460
|
-
readonly inputs: readonly [{
|
|
461
|
-
readonly internalType: "address";
|
|
462
|
-
readonly name: "newImplementation";
|
|
463
|
-
readonly type: "address";
|
|
464
|
-
}, {
|
|
465
|
-
readonly internalType: "bytes";
|
|
466
|
-
readonly name: "data";
|
|
467
|
-
readonly type: "bytes";
|
|
468
|
-
}];
|
|
469
|
-
readonly name: "upgradeToAndCall";
|
|
470
|
-
readonly outputs: readonly [];
|
|
471
|
-
readonly stateMutability: "payable";
|
|
472
|
-
readonly type: "function";
|
|
473
109
|
}, {
|
|
474
110
|
readonly stateMutability: "payable";
|
|
475
111
|
readonly type: "receive";
|
|
@@ -531,214 +167,36 @@ export declare class Vault_json {
|
|
|
531
167
|
*/
|
|
532
168
|
getContract(): Vault_jsonContract;
|
|
533
169
|
/**
|
|
534
|
-
*
|
|
535
|
-
* view
|
|
536
|
-
*/
|
|
537
|
-
DEFAULT_ADMIN_ROLE(): Promise<`0x${string}`>;
|
|
538
|
-
/**
|
|
539
|
-
* PAYEE_ROLE
|
|
540
|
-
* view
|
|
541
|
-
*/
|
|
542
|
-
PAYEE_ROLE(): Promise<`0x${string}`>;
|
|
543
|
-
/**
|
|
544
|
-
* PAYER_ROLE
|
|
545
|
-
* view
|
|
546
|
-
*/
|
|
547
|
-
PAYER_ROLE(): Promise<`0x${string}`>;
|
|
548
|
-
/**
|
|
549
|
-
* getRoleAdmin
|
|
550
|
-
* view
|
|
551
|
-
*/
|
|
552
|
-
getRoleAdmin(role: `0x${string}`): Promise<`0x${string}`>;
|
|
553
|
-
/**
|
|
554
|
-
* getRoleMember
|
|
555
|
-
* view
|
|
556
|
-
*/
|
|
557
|
-
getRoleMember(role: `0x${string}`, index: bigint): Promise<`0x${string}`>;
|
|
558
|
-
/**
|
|
559
|
-
* getRoleMemberCount
|
|
170
|
+
* SEAL
|
|
560
171
|
* view
|
|
561
172
|
*/
|
|
562
|
-
|
|
173
|
+
SEAL(): Promise<`0x${string}`>;
|
|
563
174
|
/**
|
|
564
|
-
*
|
|
175
|
+
* balance
|
|
565
176
|
* view
|
|
566
177
|
*/
|
|
567
|
-
|
|
178
|
+
balance(): Promise<bigint>;
|
|
568
179
|
/**
|
|
569
|
-
*
|
|
180
|
+
* found
|
|
570
181
|
* view
|
|
571
182
|
*/
|
|
572
|
-
|
|
183
|
+
found(): Promise<boolean>;
|
|
573
184
|
/**
|
|
574
|
-
*
|
|
575
|
-
*
|
|
185
|
+
* rules
|
|
186
|
+
* pure
|
|
576
187
|
*/
|
|
577
|
-
|
|
188
|
+
rules(): Promise<string>;
|
|
578
189
|
/**
|
|
579
|
-
*
|
|
190
|
+
* state
|
|
580
191
|
* view
|
|
581
192
|
*/
|
|
582
|
-
|
|
583
|
-
/**
|
|
584
|
-
* batchTransferErc20
|
|
585
|
-
* nonpayable
|
|
586
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
587
|
-
*/
|
|
588
|
-
batchTransferErc20(tokens: `0x${string}`[], payees: `0x${string}`[], amounts: bigint[], options?: {
|
|
589
|
-
accessList?: import('viem').AccessList;
|
|
590
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
591
|
-
chain?: import('viem').Chain | null;
|
|
592
|
-
dataSuffix?: `0x${string}`;
|
|
593
|
-
gas?: bigint;
|
|
594
|
-
gasPrice?: bigint;
|
|
595
|
-
maxFeePerGas?: bigint;
|
|
596
|
-
maxPriorityFeePerGas?: bigint;
|
|
597
|
-
nonce?: number;
|
|
598
|
-
value?: bigint;
|
|
599
|
-
}): Promise<`0x${string}`>;
|
|
600
|
-
/**
|
|
601
|
-
* batchTransferErc721
|
|
602
|
-
* nonpayable
|
|
603
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
604
|
-
*/
|
|
605
|
-
batchTransferErc721(tokens: `0x${string}`[], payees: `0x${string}`[], tokenIds: bigint[], options?: {
|
|
606
|
-
accessList?: import('viem').AccessList;
|
|
607
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
608
|
-
chain?: import('viem').Chain | null;
|
|
609
|
-
dataSuffix?: `0x${string}`;
|
|
610
|
-
gas?: bigint;
|
|
611
|
-
gasPrice?: bigint;
|
|
612
|
-
maxFeePerGas?: bigint;
|
|
613
|
-
maxPriorityFeePerGas?: bigint;
|
|
614
|
-
nonce?: number;
|
|
615
|
-
value?: bigint;
|
|
616
|
-
}): Promise<`0x${string}`>;
|
|
617
|
-
/**
|
|
618
|
-
* batchTransferEther
|
|
619
|
-
* nonpayable
|
|
620
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
621
|
-
*/
|
|
622
|
-
batchTransferEther(payees: `0x${string}`[], amounts: bigint[], options?: {
|
|
623
|
-
accessList?: import('viem').AccessList;
|
|
624
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
625
|
-
chain?: import('viem').Chain | null;
|
|
626
|
-
dataSuffix?: `0x${string}`;
|
|
627
|
-
gas?: bigint;
|
|
628
|
-
gasPrice?: bigint;
|
|
629
|
-
maxFeePerGas?: bigint;
|
|
630
|
-
maxPriorityFeePerGas?: bigint;
|
|
631
|
-
nonce?: number;
|
|
632
|
-
value?: bigint;
|
|
633
|
-
}): Promise<`0x${string}`>;
|
|
634
|
-
/**
|
|
635
|
-
* grantRole
|
|
636
|
-
* nonpayable
|
|
637
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
638
|
-
*/
|
|
639
|
-
grantRole(role: `0x${string}`, account: `0x${string}`, options?: {
|
|
640
|
-
accessList?: import('viem').AccessList;
|
|
641
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
642
|
-
chain?: import('viem').Chain | null;
|
|
643
|
-
dataSuffix?: `0x${string}`;
|
|
644
|
-
gas?: bigint;
|
|
645
|
-
gasPrice?: bigint;
|
|
646
|
-
maxFeePerGas?: bigint;
|
|
647
|
-
maxPriorityFeePerGas?: bigint;
|
|
648
|
-
nonce?: number;
|
|
649
|
-
value?: bigint;
|
|
650
|
-
}): Promise<`0x${string}`>;
|
|
651
|
-
/**
|
|
652
|
-
* initialize
|
|
653
|
-
* nonpayable
|
|
654
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
655
|
-
*/
|
|
656
|
-
initialize(options?: {
|
|
657
|
-
accessList?: import('viem').AccessList;
|
|
658
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
659
|
-
chain?: import('viem').Chain | null;
|
|
660
|
-
dataSuffix?: `0x${string}`;
|
|
661
|
-
gas?: bigint;
|
|
662
|
-
gasPrice?: bigint;
|
|
663
|
-
maxFeePerGas?: bigint;
|
|
664
|
-
maxPriorityFeePerGas?: bigint;
|
|
665
|
-
nonce?: number;
|
|
666
|
-
value?: bigint;
|
|
667
|
-
}): Promise<`0x${string}`>;
|
|
668
|
-
/**
|
|
669
|
-
* onERC721Received
|
|
670
|
-
* nonpayable
|
|
671
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
672
|
-
*/
|
|
673
|
-
onERC721Received(arg0: `0x${string}`, arg1: `0x${string}`, arg2: bigint, arg3: `0x${string}`, options?: {
|
|
674
|
-
accessList?: import('viem').AccessList;
|
|
675
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
676
|
-
chain?: import('viem').Chain | null;
|
|
677
|
-
dataSuffix?: `0x${string}`;
|
|
678
|
-
gas?: bigint;
|
|
679
|
-
gasPrice?: bigint;
|
|
680
|
-
maxFeePerGas?: bigint;
|
|
681
|
-
maxPriorityFeePerGas?: bigint;
|
|
682
|
-
nonce?: number;
|
|
683
|
-
value?: bigint;
|
|
684
|
-
}): Promise<`0x${string}`>;
|
|
685
|
-
/**
|
|
686
|
-
* renounceOwnership
|
|
687
|
-
* nonpayable
|
|
688
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
689
|
-
*/
|
|
690
|
-
renounceOwnership(options?: {
|
|
691
|
-
accessList?: import('viem').AccessList;
|
|
692
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
693
|
-
chain?: import('viem').Chain | null;
|
|
694
|
-
dataSuffix?: `0x${string}`;
|
|
695
|
-
gas?: bigint;
|
|
696
|
-
gasPrice?: bigint;
|
|
697
|
-
maxFeePerGas?: bigint;
|
|
698
|
-
maxPriorityFeePerGas?: bigint;
|
|
699
|
-
nonce?: number;
|
|
700
|
-
value?: bigint;
|
|
701
|
-
}): Promise<`0x${string}`>;
|
|
702
|
-
/**
|
|
703
|
-
* renounceRole
|
|
704
|
-
* nonpayable
|
|
705
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
706
|
-
*/
|
|
707
|
-
renounceRole(role: `0x${string}`, account: `0x${string}`, options?: {
|
|
708
|
-
accessList?: import('viem').AccessList;
|
|
709
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
710
|
-
chain?: import('viem').Chain | null;
|
|
711
|
-
dataSuffix?: `0x${string}`;
|
|
712
|
-
gas?: bigint;
|
|
713
|
-
gasPrice?: bigint;
|
|
714
|
-
maxFeePerGas?: bigint;
|
|
715
|
-
maxPriorityFeePerGas?: bigint;
|
|
716
|
-
nonce?: number;
|
|
717
|
-
value?: bigint;
|
|
718
|
-
}): Promise<`0x${string}`>;
|
|
719
|
-
/**
|
|
720
|
-
* revokeRole
|
|
721
|
-
* nonpayable
|
|
722
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
723
|
-
*/
|
|
724
|
-
revokeRole(role: `0x${string}`, account: `0x${string}`, options?: {
|
|
725
|
-
accessList?: import('viem').AccessList;
|
|
726
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
727
|
-
chain?: import('viem').Chain | null;
|
|
728
|
-
dataSuffix?: `0x${string}`;
|
|
729
|
-
gas?: bigint;
|
|
730
|
-
gasPrice?: bigint;
|
|
731
|
-
maxFeePerGas?: bigint;
|
|
732
|
-
maxPriorityFeePerGas?: bigint;
|
|
733
|
-
nonce?: number;
|
|
734
|
-
value?: bigint;
|
|
735
|
-
}): Promise<`0x${string}`>;
|
|
193
|
+
state(): Promise<string>;
|
|
736
194
|
/**
|
|
737
|
-
*
|
|
195
|
+
* unlock
|
|
738
196
|
* nonpayable
|
|
739
197
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
740
198
|
*/
|
|
741
|
-
|
|
199
|
+
unlock(secret: `0x${string}`, to: `0x${string}`, options?: {
|
|
742
200
|
accessList?: import('viem').AccessList;
|
|
743
201
|
authorizationList?: import('viem').AuthorizationList;
|
|
744
202
|
chain?: import('viem').Chain | null;
|
|
@@ -751,466 +209,68 @@ export declare class Vault_json {
|
|
|
751
209
|
value?: bigint;
|
|
752
210
|
}): Promise<`0x${string}`>;
|
|
753
211
|
/**
|
|
754
|
-
*
|
|
755
|
-
*
|
|
756
|
-
* @
|
|
212
|
+
* Simulate contract write operations (dry-run without sending transaction)
|
|
213
|
+
*
|
|
214
|
+
* @example
|
|
215
|
+
* const result = await contract.simulate.transfer('0x...', 1000n);
|
|
216
|
+
* console.log('Gas estimate:', result.request.gas);
|
|
217
|
+
* console.log('Would succeed:', result.result);
|
|
757
218
|
*/
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
219
|
+
get simulate(): {
|
|
220
|
+
/**
|
|
221
|
+
* Simulate unlock
|
|
222
|
+
* Returns gas estimate and result without sending transaction
|
|
223
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
224
|
+
*/
|
|
225
|
+
unlock(secret: `0x${string}`, to: `0x${string}`, options?: {
|
|
226
|
+
accessList?: import("viem").AccessList;
|
|
227
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
228
|
+
chain?: import("viem").Chain | null;
|
|
229
|
+
dataSuffix?: `0x${string}`;
|
|
230
|
+
gas?: bigint;
|
|
231
|
+
gasPrice?: bigint;
|
|
232
|
+
maxFeePerGas?: bigint;
|
|
233
|
+
maxPriorityFeePerGas?: bigint;
|
|
234
|
+
nonce?: number;
|
|
235
|
+
value?: bigint;
|
|
236
|
+
}): Promise<void>;
|
|
237
|
+
};
|
|
770
238
|
/**
|
|
771
|
-
*
|
|
772
|
-
*
|
|
773
|
-
* @
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
gasPrice?: bigint;
|
|
782
|
-
maxFeePerGas?: bigint;
|
|
783
|
-
maxPriorityFeePerGas?: bigint;
|
|
784
|
-
nonce?: number;
|
|
785
|
-
value?: bigint;
|
|
786
|
-
}): Promise<`0x${string}`>;
|
|
787
|
-
/**
|
|
788
|
-
* transferOwnership
|
|
789
|
-
* nonpayable
|
|
790
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
791
|
-
*/
|
|
792
|
-
transferOwnership(newOwner: `0x${string}`, options?: {
|
|
793
|
-
accessList?: import('viem').AccessList;
|
|
794
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
795
|
-
chain?: import('viem').Chain | null;
|
|
796
|
-
dataSuffix?: `0x${string}`;
|
|
797
|
-
gas?: bigint;
|
|
798
|
-
gasPrice?: bigint;
|
|
799
|
-
maxFeePerGas?: bigint;
|
|
800
|
-
maxPriorityFeePerGas?: bigint;
|
|
801
|
-
nonce?: number;
|
|
802
|
-
value?: bigint;
|
|
803
|
-
}): Promise<`0x${string}`>;
|
|
804
|
-
/**
|
|
805
|
-
* upgradeTo
|
|
806
|
-
* nonpayable
|
|
807
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
808
|
-
*/
|
|
809
|
-
upgradeTo(newImplementation: `0x${string}`, options?: {
|
|
810
|
-
accessList?: import('viem').AccessList;
|
|
811
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
812
|
-
chain?: import('viem').Chain | null;
|
|
813
|
-
dataSuffix?: `0x${string}`;
|
|
814
|
-
gas?: bigint;
|
|
815
|
-
gasPrice?: bigint;
|
|
816
|
-
maxFeePerGas?: bigint;
|
|
817
|
-
maxPriorityFeePerGas?: bigint;
|
|
818
|
-
nonce?: number;
|
|
819
|
-
value?: bigint;
|
|
820
|
-
}): Promise<`0x${string}`>;
|
|
821
|
-
/**
|
|
822
|
-
* upgradeToAndCall
|
|
823
|
-
* payable
|
|
824
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
825
|
-
*/
|
|
826
|
-
upgradeToAndCall(newImplementation: `0x${string}`, data: `0x${string}`, options?: {
|
|
827
|
-
accessList?: import('viem').AccessList;
|
|
828
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
829
|
-
chain?: import('viem').Chain | null;
|
|
830
|
-
dataSuffix?: `0x${string}`;
|
|
831
|
-
gas?: bigint;
|
|
832
|
-
gasPrice?: bigint;
|
|
833
|
-
maxFeePerGas?: bigint;
|
|
834
|
-
maxPriorityFeePerGas?: bigint;
|
|
835
|
-
nonce?: number;
|
|
836
|
-
value?: bigint;
|
|
837
|
-
}): Promise<`0x${string}`>;
|
|
838
|
-
/**
|
|
839
|
-
* Simulate contract write operations (dry-run without sending transaction)
|
|
840
|
-
*
|
|
841
|
-
* @example
|
|
842
|
-
* const result = await contract.simulate.transfer('0x...', 1000n);
|
|
843
|
-
* console.log('Gas estimate:', result.request.gas);
|
|
844
|
-
* console.log('Would succeed:', result.result);
|
|
845
|
-
*/
|
|
846
|
-
get simulate(): {
|
|
847
|
-
/**
|
|
848
|
-
* Simulate batchTransferErc20
|
|
849
|
-
* Returns gas estimate and result without sending transaction
|
|
850
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
851
|
-
*/
|
|
852
|
-
batchTransferErc20(tokens: `0x${string}`[], payees: `0x${string}`[], amounts: bigint[], options?: {
|
|
853
|
-
accessList?: import("viem").AccessList;
|
|
854
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
855
|
-
chain?: import("viem").Chain | null;
|
|
856
|
-
dataSuffix?: `0x${string}`;
|
|
857
|
-
gas?: bigint;
|
|
858
|
-
gasPrice?: bigint;
|
|
859
|
-
maxFeePerGas?: bigint;
|
|
860
|
-
maxPriorityFeePerGas?: bigint;
|
|
861
|
-
nonce?: number;
|
|
862
|
-
value?: bigint;
|
|
863
|
-
}): Promise<void>;
|
|
864
|
-
/**
|
|
865
|
-
* Simulate batchTransferErc721
|
|
866
|
-
* Returns gas estimate and result without sending transaction
|
|
867
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
868
|
-
*/
|
|
869
|
-
batchTransferErc721(tokens: `0x${string}`[], payees: `0x${string}`[], tokenIds: bigint[], options?: {
|
|
870
|
-
accessList?: import("viem").AccessList;
|
|
871
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
872
|
-
chain?: import("viem").Chain | null;
|
|
873
|
-
dataSuffix?: `0x${string}`;
|
|
874
|
-
gas?: bigint;
|
|
875
|
-
gasPrice?: bigint;
|
|
876
|
-
maxFeePerGas?: bigint;
|
|
877
|
-
maxPriorityFeePerGas?: bigint;
|
|
878
|
-
nonce?: number;
|
|
879
|
-
value?: bigint;
|
|
880
|
-
}): Promise<void>;
|
|
881
|
-
/**
|
|
882
|
-
* Simulate batchTransferEther
|
|
883
|
-
* Returns gas estimate and result without sending transaction
|
|
884
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
885
|
-
*/
|
|
886
|
-
batchTransferEther(payees: `0x${string}`[], amounts: bigint[], options?: {
|
|
887
|
-
accessList?: import("viem").AccessList;
|
|
888
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
889
|
-
chain?: import("viem").Chain | null;
|
|
890
|
-
dataSuffix?: `0x${string}`;
|
|
891
|
-
gas?: bigint;
|
|
892
|
-
gasPrice?: bigint;
|
|
893
|
-
maxFeePerGas?: bigint;
|
|
894
|
-
maxPriorityFeePerGas?: bigint;
|
|
895
|
-
nonce?: number;
|
|
896
|
-
value?: bigint;
|
|
897
|
-
}): Promise<void>;
|
|
898
|
-
/**
|
|
899
|
-
* Simulate grantRole
|
|
900
|
-
* Returns gas estimate and result without sending transaction
|
|
901
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
902
|
-
*/
|
|
903
|
-
grantRole(role: `0x${string}`, account: `0x${string}`, options?: {
|
|
904
|
-
accessList?: import("viem").AccessList;
|
|
905
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
906
|
-
chain?: import("viem").Chain | null;
|
|
907
|
-
dataSuffix?: `0x${string}`;
|
|
908
|
-
gas?: bigint;
|
|
909
|
-
gasPrice?: bigint;
|
|
910
|
-
maxFeePerGas?: bigint;
|
|
911
|
-
maxPriorityFeePerGas?: bigint;
|
|
912
|
-
nonce?: number;
|
|
913
|
-
value?: bigint;
|
|
914
|
-
}): Promise<void>;
|
|
915
|
-
/**
|
|
916
|
-
* Simulate initialize
|
|
917
|
-
* Returns gas estimate and result without sending transaction
|
|
918
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
919
|
-
*/
|
|
920
|
-
initialize(options?: {
|
|
921
|
-
accessList?: import("viem").AccessList;
|
|
922
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
923
|
-
chain?: import("viem").Chain | null;
|
|
924
|
-
dataSuffix?: `0x${string}`;
|
|
925
|
-
gas?: bigint;
|
|
926
|
-
gasPrice?: bigint;
|
|
927
|
-
maxFeePerGas?: bigint;
|
|
928
|
-
maxPriorityFeePerGas?: bigint;
|
|
929
|
-
nonce?: number;
|
|
930
|
-
value?: bigint;
|
|
931
|
-
}): Promise<void>;
|
|
932
|
-
/**
|
|
933
|
-
* Simulate onERC721Received
|
|
934
|
-
* Returns gas estimate and result without sending transaction
|
|
935
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
936
|
-
*/
|
|
937
|
-
onERC721Received(arg0: `0x${string}`, arg1: `0x${string}`, arg2: bigint, arg3: `0x${string}`, options?: {
|
|
938
|
-
accessList?: import("viem").AccessList;
|
|
939
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
940
|
-
chain?: import("viem").Chain | null;
|
|
941
|
-
dataSuffix?: `0x${string}`;
|
|
942
|
-
gas?: bigint;
|
|
943
|
-
gasPrice?: bigint;
|
|
944
|
-
maxFeePerGas?: bigint;
|
|
945
|
-
maxPriorityFeePerGas?: bigint;
|
|
946
|
-
nonce?: number;
|
|
947
|
-
value?: bigint;
|
|
948
|
-
}): Promise<`0x${string}`>;
|
|
949
|
-
/**
|
|
950
|
-
* Simulate renounceOwnership
|
|
951
|
-
* Returns gas estimate and result without sending transaction
|
|
952
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
953
|
-
*/
|
|
954
|
-
renounceOwnership(options?: {
|
|
955
|
-
accessList?: import("viem").AccessList;
|
|
956
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
957
|
-
chain?: import("viem").Chain | null;
|
|
958
|
-
dataSuffix?: `0x${string}`;
|
|
959
|
-
gas?: bigint;
|
|
960
|
-
gasPrice?: bigint;
|
|
961
|
-
maxFeePerGas?: bigint;
|
|
962
|
-
maxPriorityFeePerGas?: bigint;
|
|
963
|
-
nonce?: number;
|
|
964
|
-
value?: bigint;
|
|
965
|
-
}): Promise<void>;
|
|
966
|
-
/**
|
|
967
|
-
* Simulate renounceRole
|
|
968
|
-
* Returns gas estimate and result without sending transaction
|
|
969
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
970
|
-
*/
|
|
971
|
-
renounceRole(role: `0x${string}`, account: `0x${string}`, options?: {
|
|
972
|
-
accessList?: import("viem").AccessList;
|
|
973
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
974
|
-
chain?: import("viem").Chain | null;
|
|
975
|
-
dataSuffix?: `0x${string}`;
|
|
976
|
-
gas?: bigint;
|
|
977
|
-
gasPrice?: bigint;
|
|
978
|
-
maxFeePerGas?: bigint;
|
|
979
|
-
maxPriorityFeePerGas?: bigint;
|
|
980
|
-
nonce?: number;
|
|
981
|
-
value?: bigint;
|
|
982
|
-
}): Promise<void>;
|
|
983
|
-
/**
|
|
984
|
-
* Simulate revokeRole
|
|
985
|
-
* Returns gas estimate and result without sending transaction
|
|
986
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
987
|
-
*/
|
|
988
|
-
revokeRole(role: `0x${string}`, account: `0x${string}`, options?: {
|
|
989
|
-
accessList?: import("viem").AccessList;
|
|
990
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
991
|
-
chain?: import("viem").Chain | null;
|
|
992
|
-
dataSuffix?: `0x${string}`;
|
|
993
|
-
gas?: bigint;
|
|
994
|
-
gasPrice?: bigint;
|
|
995
|
-
maxFeePerGas?: bigint;
|
|
996
|
-
maxPriorityFeePerGas?: bigint;
|
|
997
|
-
nonce?: number;
|
|
998
|
-
value?: bigint;
|
|
999
|
-
}): Promise<void>;
|
|
1000
|
-
/**
|
|
1001
|
-
* Simulate transferErc20
|
|
1002
|
-
* Returns gas estimate and result without sending transaction
|
|
1003
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1004
|
-
*/
|
|
1005
|
-
transferErc20(token: `0x${string}`, payee: `0x${string}`, amount: bigint, options?: {
|
|
1006
|
-
accessList?: import("viem").AccessList;
|
|
1007
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
1008
|
-
chain?: import("viem").Chain | null;
|
|
1009
|
-
dataSuffix?: `0x${string}`;
|
|
1010
|
-
gas?: bigint;
|
|
1011
|
-
gasPrice?: bigint;
|
|
1012
|
-
maxFeePerGas?: bigint;
|
|
1013
|
-
maxPriorityFeePerGas?: bigint;
|
|
1014
|
-
nonce?: number;
|
|
1015
|
-
value?: bigint;
|
|
1016
|
-
}): Promise<void>;
|
|
1017
|
-
/**
|
|
1018
|
-
* Simulate transferErc721
|
|
1019
|
-
* Returns gas estimate and result without sending transaction
|
|
1020
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1021
|
-
*/
|
|
1022
|
-
transferErc721(token: `0x${string}`, payee: `0x${string}`, tokenId: bigint, options?: {
|
|
1023
|
-
accessList?: import("viem").AccessList;
|
|
1024
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
1025
|
-
chain?: import("viem").Chain | null;
|
|
1026
|
-
dataSuffix?: `0x${string}`;
|
|
1027
|
-
gas?: bigint;
|
|
1028
|
-
gasPrice?: bigint;
|
|
1029
|
-
maxFeePerGas?: bigint;
|
|
1030
|
-
maxPriorityFeePerGas?: bigint;
|
|
1031
|
-
nonce?: number;
|
|
1032
|
-
value?: bigint;
|
|
1033
|
-
}): Promise<void>;
|
|
1034
|
-
/**
|
|
1035
|
-
* Simulate transferEther
|
|
1036
|
-
* Returns gas estimate and result without sending transaction
|
|
1037
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1038
|
-
*/
|
|
1039
|
-
transferEther(payee: `0x${string}`, amount: bigint, options?: {
|
|
1040
|
-
accessList?: import("viem").AccessList;
|
|
1041
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
1042
|
-
chain?: import("viem").Chain | null;
|
|
1043
|
-
dataSuffix?: `0x${string}`;
|
|
1044
|
-
gas?: bigint;
|
|
1045
|
-
gasPrice?: bigint;
|
|
1046
|
-
maxFeePerGas?: bigint;
|
|
1047
|
-
maxPriorityFeePerGas?: bigint;
|
|
1048
|
-
nonce?: number;
|
|
1049
|
-
value?: bigint;
|
|
1050
|
-
}): Promise<void>;
|
|
1051
|
-
/**
|
|
1052
|
-
* Simulate transferOwnership
|
|
1053
|
-
* Returns gas estimate and result without sending transaction
|
|
1054
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1055
|
-
*/
|
|
1056
|
-
transferOwnership(newOwner: `0x${string}`, options?: {
|
|
1057
|
-
accessList?: import("viem").AccessList;
|
|
1058
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
1059
|
-
chain?: import("viem").Chain | null;
|
|
1060
|
-
dataSuffix?: `0x${string}`;
|
|
1061
|
-
gas?: bigint;
|
|
1062
|
-
gasPrice?: bigint;
|
|
1063
|
-
maxFeePerGas?: bigint;
|
|
1064
|
-
maxPriorityFeePerGas?: bigint;
|
|
1065
|
-
nonce?: number;
|
|
1066
|
-
value?: bigint;
|
|
1067
|
-
}): Promise<void>;
|
|
1068
|
-
/**
|
|
1069
|
-
* Simulate upgradeTo
|
|
1070
|
-
* Returns gas estimate and result without sending transaction
|
|
1071
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1072
|
-
*/
|
|
1073
|
-
upgradeTo(newImplementation: `0x${string}`, options?: {
|
|
1074
|
-
accessList?: import("viem").AccessList;
|
|
1075
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
1076
|
-
chain?: import("viem").Chain | null;
|
|
1077
|
-
dataSuffix?: `0x${string}`;
|
|
1078
|
-
gas?: bigint;
|
|
1079
|
-
gasPrice?: bigint;
|
|
1080
|
-
maxFeePerGas?: bigint;
|
|
1081
|
-
maxPriorityFeePerGas?: bigint;
|
|
1082
|
-
nonce?: number;
|
|
1083
|
-
value?: bigint;
|
|
1084
|
-
}): Promise<void>;
|
|
1085
|
-
/**
|
|
1086
|
-
* Simulate upgradeToAndCall
|
|
1087
|
-
* Returns gas estimate and result without sending transaction
|
|
1088
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1089
|
-
*/
|
|
1090
|
-
upgradeToAndCall(newImplementation: `0x${string}`, data: `0x${string}`, options?: {
|
|
1091
|
-
accessList?: import("viem").AccessList;
|
|
1092
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
1093
|
-
chain?: import("viem").Chain | null;
|
|
1094
|
-
dataSuffix?: `0x${string}`;
|
|
1095
|
-
gas?: bigint;
|
|
1096
|
-
gasPrice?: bigint;
|
|
1097
|
-
maxFeePerGas?: bigint;
|
|
1098
|
-
maxPriorityFeePerGas?: bigint;
|
|
1099
|
-
nonce?: number;
|
|
1100
|
-
value?: bigint;
|
|
1101
|
-
}): Promise<void>;
|
|
1102
|
-
};
|
|
1103
|
-
/**
|
|
1104
|
-
* Watch contract events
|
|
1105
|
-
*
|
|
1106
|
-
* @example
|
|
1107
|
-
* // Watch all Transfer events
|
|
1108
|
-
* const unwatch = contract.watch.Transfer((event) => {
|
|
1109
|
-
* console.log('Transfer:', event);
|
|
1110
|
-
* });
|
|
1111
|
-
*
|
|
1112
|
-
* // Stop watching
|
|
1113
|
-
* unwatch();
|
|
239
|
+
* Watch contract events
|
|
240
|
+
*
|
|
241
|
+
* @example
|
|
242
|
+
* // Watch all Transfer events
|
|
243
|
+
* const unwatch = contract.watch.Transfer((event) => {
|
|
244
|
+
* console.log('Transfer:', event);
|
|
245
|
+
* });
|
|
246
|
+
*
|
|
247
|
+
* // Stop watching
|
|
248
|
+
* unwatch();
|
|
1114
249
|
*/
|
|
1115
250
|
get watch(): {
|
|
1116
251
|
/**
|
|
1117
|
-
* Watch
|
|
1118
|
-
* @param callback Function to call when event is emitted
|
|
1119
|
-
* @param filter Optional filter for indexed parameters
|
|
1120
|
-
* @returns Unwatch function to stop listening
|
|
1121
|
-
*/
|
|
1122
|
-
AdminChanged: (callback: (event: {
|
|
1123
|
-
previousAdmin: `0x${string}`;
|
|
1124
|
-
newAdmin: `0x${string}`;
|
|
1125
|
-
}) => void) => () => void;
|
|
1126
|
-
/**
|
|
1127
|
-
* Watch BeaconUpgraded events
|
|
1128
|
-
* @param callback Function to call when event is emitted
|
|
1129
|
-
* @param filter Optional filter for indexed parameters
|
|
1130
|
-
* @returns Unwatch function to stop listening
|
|
1131
|
-
*/
|
|
1132
|
-
BeaconUpgraded: (callback: (event: {
|
|
1133
|
-
beacon: `0x${string}`;
|
|
1134
|
-
}) => void, filter?: {
|
|
1135
|
-
beacon: `0x${string}`;
|
|
1136
|
-
}) => () => void;
|
|
1137
|
-
/**
|
|
1138
|
-
* Watch Initialized events
|
|
1139
|
-
* @param callback Function to call when event is emitted
|
|
1140
|
-
* @param filter Optional filter for indexed parameters
|
|
1141
|
-
* @returns Unwatch function to stop listening
|
|
1142
|
-
*/
|
|
1143
|
-
Initialized: (callback: (event: {
|
|
1144
|
-
version: bigint;
|
|
1145
|
-
}) => void) => () => void;
|
|
1146
|
-
/**
|
|
1147
|
-
* Watch OwnershipTransferred events
|
|
1148
|
-
* @param callback Function to call when event is emitted
|
|
1149
|
-
* @param filter Optional filter for indexed parameters
|
|
1150
|
-
* @returns Unwatch function to stop listening
|
|
1151
|
-
*/
|
|
1152
|
-
OwnershipTransferred: (callback: (event: {
|
|
1153
|
-
previousOwner: `0x${string}`;
|
|
1154
|
-
newOwner: `0x${string}`;
|
|
1155
|
-
}) => void, filter?: {
|
|
1156
|
-
previousOwner: `0x${string}`;
|
|
1157
|
-
newOwner: `0x${string}`;
|
|
1158
|
-
}) => () => void;
|
|
1159
|
-
/**
|
|
1160
|
-
* Watch RoleAdminChanged events
|
|
1161
|
-
* @param callback Function to call when event is emitted
|
|
1162
|
-
* @param filter Optional filter for indexed parameters
|
|
1163
|
-
* @returns Unwatch function to stop listening
|
|
1164
|
-
*/
|
|
1165
|
-
RoleAdminChanged: (callback: (event: {
|
|
1166
|
-
role: `0x${string}`;
|
|
1167
|
-
previousAdminRole: `0x${string}`;
|
|
1168
|
-
newAdminRole: `0x${string}`;
|
|
1169
|
-
}) => void, filter?: {
|
|
1170
|
-
role: `0x${string}`;
|
|
1171
|
-
previousAdminRole: `0x${string}`;
|
|
1172
|
-
newAdminRole: `0x${string}`;
|
|
1173
|
-
}) => () => void;
|
|
1174
|
-
/**
|
|
1175
|
-
* Watch RoleGranted events
|
|
1176
|
-
* @param callback Function to call when event is emitted
|
|
1177
|
-
* @param filter Optional filter for indexed parameters
|
|
1178
|
-
* @returns Unwatch function to stop listening
|
|
1179
|
-
*/
|
|
1180
|
-
RoleGranted: (callback: (event: {
|
|
1181
|
-
role: `0x${string}`;
|
|
1182
|
-
account: `0x${string}`;
|
|
1183
|
-
sender: `0x${string}`;
|
|
1184
|
-
}) => void, filter?: {
|
|
1185
|
-
role: `0x${string}`;
|
|
1186
|
-
account: `0x${string}`;
|
|
1187
|
-
sender: `0x${string}`;
|
|
1188
|
-
}) => () => void;
|
|
1189
|
-
/**
|
|
1190
|
-
* Watch RoleRevoked events
|
|
252
|
+
* Watch Found events
|
|
1191
253
|
* @param callback Function to call when event is emitted
|
|
1192
254
|
* @param filter Optional filter for indexed parameters
|
|
1193
255
|
* @returns Unwatch function to stop listening
|
|
1194
256
|
*/
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
sender: `0x${string}`;
|
|
257
|
+
Found: (callback: (event: {
|
|
258
|
+
to: `0x${string}`;
|
|
259
|
+
amount: bigint;
|
|
1199
260
|
}) => void, filter?: {
|
|
1200
|
-
|
|
1201
|
-
account: `0x${string}`;
|
|
1202
|
-
sender: `0x${string}`;
|
|
261
|
+
to: `0x${string}`;
|
|
1203
262
|
}) => () => void;
|
|
1204
263
|
/**
|
|
1205
|
-
* Watch
|
|
264
|
+
* Watch Funded events
|
|
1206
265
|
* @param callback Function to call when event is emitted
|
|
1207
266
|
* @param filter Optional filter for indexed parameters
|
|
1208
267
|
* @returns Unwatch function to stop listening
|
|
1209
268
|
*/
|
|
1210
|
-
|
|
1211
|
-
|
|
269
|
+
Funded: (callback: (event: {
|
|
270
|
+
from: `0x${string}`;
|
|
271
|
+
amount: bigint;
|
|
1212
272
|
}) => void, filter?: {
|
|
1213
|
-
|
|
273
|
+
from: `0x${string}`;
|
|
1214
274
|
}) => () => void;
|
|
1215
275
|
};
|
|
1216
276
|
}
|