@gitmyabi/vault 1.0.5 → 1.0.7
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/ERC1967Proxy_json.d.ts +144 -0
- package/contracts/ERC1967Proxy_json.js +180 -0
- package/contracts/ERC1967Proxy_json.ts +209 -0
- package/contracts/Vault_json.d.ts +1069 -129
- package/contracts/Vault_json.js +1008 -126
- package/contracts/Vault_json.ts +1421 -210
- package/contracts/index.d.ts +2 -0
- package/contracts/index.js +4 -1
- package/contracts/index.ts +2 -0
- package/package.json +3 -3
|
@@ -5,46 +5,142 @@ 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;
|
|
8
63
|
readonly inputs: readonly [{
|
|
64
|
+
readonly indexed: true;
|
|
65
|
+
readonly internalType: "bytes32";
|
|
66
|
+
readonly name: "role";
|
|
67
|
+
readonly type: "bytes32";
|
|
68
|
+
}, {
|
|
69
|
+
readonly indexed: true;
|
|
9
70
|
readonly internalType: "bytes32";
|
|
10
|
-
readonly name: "
|
|
71
|
+
readonly name: "previousAdminRole";
|
|
72
|
+
readonly type: "bytes32";
|
|
73
|
+
}, {
|
|
74
|
+
readonly indexed: true;
|
|
75
|
+
readonly internalType: "bytes32";
|
|
76
|
+
readonly name: "newAdminRole";
|
|
11
77
|
readonly type: "bytes32";
|
|
12
78
|
}];
|
|
13
|
-
readonly
|
|
14
|
-
readonly type: "
|
|
79
|
+
readonly name: "RoleAdminChanged";
|
|
80
|
+
readonly type: "event";
|
|
15
81
|
}, {
|
|
16
82
|
readonly anonymous: false;
|
|
17
83
|
readonly inputs: readonly [{
|
|
84
|
+
readonly indexed: true;
|
|
85
|
+
readonly internalType: "bytes32";
|
|
86
|
+
readonly name: "role";
|
|
87
|
+
readonly type: "bytes32";
|
|
88
|
+
}, {
|
|
18
89
|
readonly indexed: true;
|
|
19
90
|
readonly internalType: "address";
|
|
20
|
-
readonly name: "
|
|
91
|
+
readonly name: "account";
|
|
21
92
|
readonly type: "address";
|
|
22
93
|
}, {
|
|
23
|
-
readonly indexed:
|
|
24
|
-
readonly internalType: "
|
|
25
|
-
readonly name: "
|
|
26
|
-
readonly type: "
|
|
94
|
+
readonly indexed: true;
|
|
95
|
+
readonly internalType: "address";
|
|
96
|
+
readonly name: "sender";
|
|
97
|
+
readonly type: "address";
|
|
27
98
|
}];
|
|
28
|
-
readonly name: "
|
|
99
|
+
readonly name: "RoleGranted";
|
|
29
100
|
readonly type: "event";
|
|
30
101
|
}, {
|
|
31
102
|
readonly anonymous: false;
|
|
32
103
|
readonly inputs: readonly [{
|
|
104
|
+
readonly indexed: true;
|
|
105
|
+
readonly internalType: "bytes32";
|
|
106
|
+
readonly name: "role";
|
|
107
|
+
readonly type: "bytes32";
|
|
108
|
+
}, {
|
|
33
109
|
readonly indexed: true;
|
|
34
110
|
readonly internalType: "address";
|
|
35
|
-
readonly name: "
|
|
111
|
+
readonly name: "account";
|
|
36
112
|
readonly type: "address";
|
|
37
113
|
}, {
|
|
38
|
-
readonly indexed:
|
|
39
|
-
readonly internalType: "
|
|
40
|
-
readonly name: "
|
|
41
|
-
readonly type: "
|
|
114
|
+
readonly indexed: true;
|
|
115
|
+
readonly internalType: "address";
|
|
116
|
+
readonly name: "sender";
|
|
117
|
+
readonly type: "address";
|
|
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";
|
|
42
128
|
}];
|
|
43
|
-
readonly name: "
|
|
129
|
+
readonly name: "Upgraded";
|
|
44
130
|
readonly type: "event";
|
|
45
131
|
}, {
|
|
46
132
|
readonly inputs: readonly [];
|
|
47
|
-
readonly name: "
|
|
133
|
+
readonly name: "DEFAULT_ADMIN_ROLE";
|
|
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";
|
|
48
144
|
readonly outputs: readonly [{
|
|
49
145
|
readonly internalType: "bytes32";
|
|
50
146
|
readonly name: "";
|
|
@@ -54,7 +150,103 @@ export declare const Vault_jsonAbi: readonly [{
|
|
|
54
150
|
readonly type: "function";
|
|
55
151
|
}, {
|
|
56
152
|
readonly inputs: readonly [];
|
|
57
|
-
readonly name: "
|
|
153
|
+
readonly name: "PAYER_ROLE";
|
|
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";
|
|
58
250
|
readonly outputs: readonly [{
|
|
59
251
|
readonly internalType: "uint256";
|
|
60
252
|
readonly name: "";
|
|
@@ -63,8 +255,30 @@ export declare const Vault_jsonAbi: readonly [{
|
|
|
63
255
|
readonly stateMutability: "view";
|
|
64
256
|
readonly type: "function";
|
|
65
257
|
}, {
|
|
66
|
-
readonly inputs: readonly [
|
|
67
|
-
|
|
258
|
+
readonly inputs: readonly [{
|
|
259
|
+
readonly internalType: "bytes32";
|
|
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";
|
|
68
282
|
readonly outputs: readonly [{
|
|
69
283
|
readonly internalType: "bool";
|
|
70
284
|
readonly name: "";
|
|
@@ -74,77 +288,227 @@ export declare const Vault_jsonAbi: readonly [{
|
|
|
74
288
|
readonly type: "function";
|
|
75
289
|
}, {
|
|
76
290
|
readonly inputs: readonly [];
|
|
77
|
-
readonly name: "
|
|
291
|
+
readonly name: "initialize";
|
|
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";
|
|
78
324
|
readonly outputs: readonly [{
|
|
79
|
-
readonly internalType: "
|
|
325
|
+
readonly internalType: "address";
|
|
80
326
|
readonly name: "";
|
|
81
|
-
readonly type: "
|
|
327
|
+
readonly type: "address";
|
|
82
328
|
}];
|
|
83
|
-
readonly stateMutability: "
|
|
329
|
+
readonly stateMutability: "view";
|
|
84
330
|
readonly type: "function";
|
|
85
331
|
}, {
|
|
86
332
|
readonly inputs: readonly [];
|
|
87
|
-
readonly name: "
|
|
333
|
+
readonly name: "proxiableUUID";
|
|
88
334
|
readonly outputs: readonly [{
|
|
89
|
-
readonly internalType: "
|
|
335
|
+
readonly internalType: "bytes32";
|
|
90
336
|
readonly name: "";
|
|
91
|
-
readonly type: "
|
|
337
|
+
readonly type: "bytes32";
|
|
92
338
|
}];
|
|
93
339
|
readonly stateMutability: "view";
|
|
94
340
|
readonly type: "function";
|
|
341
|
+
}, {
|
|
342
|
+
readonly inputs: readonly [];
|
|
343
|
+
readonly name: "renounceOwnership";
|
|
344
|
+
readonly outputs: readonly [];
|
|
345
|
+
readonly stateMutability: "nonpayable";
|
|
346
|
+
readonly type: "function";
|
|
95
347
|
}, {
|
|
96
348
|
readonly inputs: readonly [{
|
|
97
|
-
readonly internalType: "
|
|
98
|
-
readonly name: "
|
|
99
|
-
readonly type: "
|
|
349
|
+
readonly internalType: "bytes32";
|
|
350
|
+
readonly name: "role";
|
|
351
|
+
readonly type: "bytes32";
|
|
100
352
|
}, {
|
|
101
|
-
readonly internalType: "address
|
|
102
|
-
readonly name: "
|
|
353
|
+
readonly internalType: "address";
|
|
354
|
+
readonly name: "account";
|
|
103
355
|
readonly type: "address";
|
|
104
356
|
}];
|
|
105
|
-
readonly name: "
|
|
357
|
+
readonly name: "renounceRole";
|
|
106
358
|
readonly outputs: readonly [];
|
|
107
359
|
readonly stateMutability: "nonpayable";
|
|
108
360
|
readonly type: "function";
|
|
109
361
|
}, {
|
|
110
|
-
readonly
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
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";
|
|
382
|
+
readonly outputs: readonly [{
|
|
383
|
+
readonly internalType: "bool";
|
|
384
|
+
readonly name: "";
|
|
385
|
+
readonly type: "bool";
|
|
386
|
+
}];
|
|
387
|
+
readonly stateMutability: "view";
|
|
388
|
+
readonly type: "function";
|
|
389
|
+
}, {
|
|
390
|
+
readonly inputs: readonly [{
|
|
391
|
+
readonly internalType: "contract IERC20Upgradeable";
|
|
392
|
+
readonly name: "token";
|
|
393
|
+
readonly type: "address";
|
|
394
|
+
}, {
|
|
395
|
+
readonly internalType: "address";
|
|
396
|
+
readonly name: "payee";
|
|
397
|
+
readonly type: "address";
|
|
398
|
+
}, {
|
|
399
|
+
readonly internalType: "uint256";
|
|
400
|
+
readonly name: "amount";
|
|
401
|
+
readonly type: "uint256";
|
|
402
|
+
}];
|
|
403
|
+
readonly name: "transferErc20";
|
|
404
|
+
readonly outputs: readonly [];
|
|
405
|
+
readonly stateMutability: "nonpayable";
|
|
406
|
+
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
|
+
}, {
|
|
474
|
+
readonly stateMutability: "payable";
|
|
475
|
+
readonly type: "receive";
|
|
476
|
+
}];
|
|
477
|
+
/**
|
|
478
|
+
* Type-safe ABI for Vault_json
|
|
479
|
+
*/
|
|
480
|
+
export type Vault_jsonAbi = typeof Vault_jsonAbi;
|
|
481
|
+
/**
|
|
482
|
+
* Contract instance type for Vault_json
|
|
483
|
+
*/
|
|
484
|
+
export type Vault_jsonContract = any;
|
|
485
|
+
/**
|
|
486
|
+
* Vault_json Contract Class
|
|
487
|
+
*
|
|
488
|
+
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
489
|
+
*
|
|
490
|
+
* @example
|
|
491
|
+
* ```typescript
|
|
492
|
+
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
493
|
+
* import { mainnet } from 'viem/chains';
|
|
494
|
+
* import { Vault_json } from 'Vault_json';
|
|
495
|
+
*
|
|
496
|
+
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
497
|
+
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
498
|
+
*
|
|
499
|
+
* const contract = new Vault_json('0x...', { publicClient, walletClient });
|
|
500
|
+
*
|
|
501
|
+
* // Read functions
|
|
502
|
+
* const result = await contract.balanceOf('0x...');
|
|
503
|
+
*
|
|
504
|
+
* // Write functions
|
|
505
|
+
* const hash = await contract.transfer('0x...', 1000n);
|
|
506
|
+
*
|
|
507
|
+
* // Simulate transactions (dry-run)
|
|
508
|
+
* const simulation = await contract.simulate.transfer('0x...', 1000n);
|
|
509
|
+
* console.log('Gas estimate:', simulation.request.gas);
|
|
510
|
+
*
|
|
511
|
+
* // Watch events
|
|
148
512
|
* const unwatch = contract.watch.Transfer((event) => {
|
|
149
513
|
* console.log('Transfer event:', event);
|
|
150
514
|
* });
|
|
@@ -167,36 +531,61 @@ export declare class Vault_json {
|
|
|
167
531
|
*/
|
|
168
532
|
getContract(): Vault_jsonContract;
|
|
169
533
|
/**
|
|
170
|
-
*
|
|
534
|
+
* DEFAULT_ADMIN_ROLE
|
|
535
|
+
* view
|
|
536
|
+
*/
|
|
537
|
+
DEFAULT_ADMIN_ROLE(): Promise<`0x${string}`>;
|
|
538
|
+
/**
|
|
539
|
+
* PAYEE_ROLE
|
|
171
540
|
* view
|
|
172
541
|
*/
|
|
173
|
-
|
|
542
|
+
PAYEE_ROLE(): Promise<`0x${string}`>;
|
|
174
543
|
/**
|
|
175
|
-
*
|
|
544
|
+
* PAYER_ROLE
|
|
176
545
|
* view
|
|
177
546
|
*/
|
|
178
|
-
|
|
547
|
+
PAYER_ROLE(): Promise<`0x${string}`>;
|
|
179
548
|
/**
|
|
180
|
-
*
|
|
549
|
+
* getRoleAdmin
|
|
181
550
|
* view
|
|
182
551
|
*/
|
|
183
|
-
|
|
552
|
+
getRoleAdmin(role: `0x${string}`): Promise<`0x${string}`>;
|
|
184
553
|
/**
|
|
185
|
-
*
|
|
186
|
-
*
|
|
554
|
+
* getRoleMember
|
|
555
|
+
* view
|
|
556
|
+
*/
|
|
557
|
+
getRoleMember(role: `0x${string}`, index: bigint): Promise<`0x${string}`>;
|
|
558
|
+
/**
|
|
559
|
+
* getRoleMemberCount
|
|
560
|
+
* view
|
|
561
|
+
*/
|
|
562
|
+
getRoleMemberCount(role: `0x${string}`): Promise<bigint>;
|
|
563
|
+
/**
|
|
564
|
+
* hasRole
|
|
565
|
+
* view
|
|
566
|
+
*/
|
|
567
|
+
hasRole(role: `0x${string}`, account: `0x${string}`): Promise<boolean>;
|
|
568
|
+
/**
|
|
569
|
+
* owner
|
|
570
|
+
* view
|
|
571
|
+
*/
|
|
572
|
+
owner(): Promise<`0x${string}`>;
|
|
573
|
+
/**
|
|
574
|
+
* proxiableUUID
|
|
575
|
+
* view
|
|
187
576
|
*/
|
|
188
|
-
|
|
577
|
+
proxiableUUID(): Promise<`0x${string}`>;
|
|
189
578
|
/**
|
|
190
|
-
*
|
|
579
|
+
* supportsInterface
|
|
191
580
|
* view
|
|
192
581
|
*/
|
|
193
|
-
|
|
582
|
+
supportsInterface(interfaceId: `0x${string}`): Promise<boolean>;
|
|
194
583
|
/**
|
|
195
|
-
*
|
|
584
|
+
* batchTransferErc20
|
|
196
585
|
* nonpayable
|
|
197
586
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
198
587
|
*/
|
|
199
|
-
|
|
588
|
+
batchTransferErc20(tokens: `0x${string}`[], payees: `0x${string}`[], amounts: bigint[], options?: {
|
|
200
589
|
accessList?: import('viem').AccessList;
|
|
201
590
|
authorizationList?: import('viem').AuthorizationList;
|
|
202
591
|
chain?: import('viem').Chain | null;
|
|
@@ -209,68 +598,619 @@ export declare class Vault_json {
|
|
|
209
598
|
value?: bigint;
|
|
210
599
|
}): Promise<`0x${string}`>;
|
|
211
600
|
/**
|
|
212
|
-
*
|
|
213
|
-
*
|
|
214
|
-
* @
|
|
215
|
-
* const result = await contract.simulate.transfer('0x...', 1000n);
|
|
216
|
-
* console.log('Gas estimate:', result.request.gas);
|
|
217
|
-
* console.log('Would succeed:', result.result);
|
|
601
|
+
* batchTransferErc721
|
|
602
|
+
* nonpayable
|
|
603
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
218
604
|
*/
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
gasPrice?: bigint;
|
|
232
|
-
maxFeePerGas?: bigint;
|
|
233
|
-
maxPriorityFeePerGas?: bigint;
|
|
234
|
-
nonce?: number;
|
|
235
|
-
value?: bigint;
|
|
236
|
-
}): Promise<void>;
|
|
237
|
-
};
|
|
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}`>;
|
|
238
617
|
/**
|
|
239
|
-
*
|
|
240
|
-
*
|
|
241
|
-
* @
|
|
242
|
-
* // Watch all Transfer events
|
|
243
|
-
* const unwatch = contract.watch.Transfer((event) => {
|
|
244
|
-
* console.log('Transfer:', event);
|
|
245
|
-
* });
|
|
246
|
-
*
|
|
247
|
-
* // Stop watching
|
|
248
|
-
* unwatch();
|
|
618
|
+
* batchTransferEther
|
|
619
|
+
* nonpayable
|
|
620
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
249
621
|
*/
|
|
250
|
-
|
|
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}`>;
|
|
736
|
+
/**
|
|
737
|
+
* transferErc20
|
|
738
|
+
* nonpayable
|
|
739
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
740
|
+
*/
|
|
741
|
+
transferErc20(token: `0x${string}`, payee: `0x${string}`, amount: bigint, options?: {
|
|
742
|
+
accessList?: import('viem').AccessList;
|
|
743
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
744
|
+
chain?: import('viem').Chain | null;
|
|
745
|
+
dataSuffix?: `0x${string}`;
|
|
746
|
+
gas?: bigint;
|
|
747
|
+
gasPrice?: bigint;
|
|
748
|
+
maxFeePerGas?: bigint;
|
|
749
|
+
maxPriorityFeePerGas?: bigint;
|
|
750
|
+
nonce?: number;
|
|
751
|
+
value?: bigint;
|
|
752
|
+
}): Promise<`0x${string}`>;
|
|
753
|
+
/**
|
|
754
|
+
* transferErc721
|
|
755
|
+
* nonpayable
|
|
756
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
757
|
+
*/
|
|
758
|
+
transferErc721(token: `0x${string}`, payee: `0x${string}`, tokenId: bigint, options?: {
|
|
759
|
+
accessList?: import('viem').AccessList;
|
|
760
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
761
|
+
chain?: import('viem').Chain | null;
|
|
762
|
+
dataSuffix?: `0x${string}`;
|
|
763
|
+
gas?: bigint;
|
|
764
|
+
gasPrice?: bigint;
|
|
765
|
+
maxFeePerGas?: bigint;
|
|
766
|
+
maxPriorityFeePerGas?: bigint;
|
|
767
|
+
nonce?: number;
|
|
768
|
+
value?: bigint;
|
|
769
|
+
}): Promise<`0x${string}`>;
|
|
770
|
+
/**
|
|
771
|
+
* transferEther
|
|
772
|
+
* nonpayable
|
|
773
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
774
|
+
*/
|
|
775
|
+
transferEther(payee: `0x${string}`, amount: bigint, options?: {
|
|
776
|
+
accessList?: import('viem').AccessList;
|
|
777
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
778
|
+
chain?: import('viem').Chain | null;
|
|
779
|
+
dataSuffix?: `0x${string}`;
|
|
780
|
+
gas?: bigint;
|
|
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();
|
|
1114
|
+
*/
|
|
1115
|
+
get watch(): {
|
|
1116
|
+
/**
|
|
1117
|
+
* Watch AdminChanged events
|
|
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;
|
|
251
1189
|
/**
|
|
252
|
-
* Watch
|
|
1190
|
+
* Watch RoleRevoked events
|
|
253
1191
|
* @param callback Function to call when event is emitted
|
|
254
1192
|
* @param filter Optional filter for indexed parameters
|
|
255
1193
|
* @returns Unwatch function to stop listening
|
|
256
1194
|
*/
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
1195
|
+
RoleRevoked: (callback: (event: {
|
|
1196
|
+
role: `0x${string}`;
|
|
1197
|
+
account: `0x${string}`;
|
|
1198
|
+
sender: `0x${string}`;
|
|
260
1199
|
}) => void, filter?: {
|
|
261
|
-
|
|
1200
|
+
role: `0x${string}`;
|
|
1201
|
+
account: `0x${string}`;
|
|
1202
|
+
sender: `0x${string}`;
|
|
262
1203
|
}) => () => void;
|
|
263
1204
|
/**
|
|
264
|
-
* Watch
|
|
1205
|
+
* Watch Upgraded events
|
|
265
1206
|
* @param callback Function to call when event is emitted
|
|
266
1207
|
* @param filter Optional filter for indexed parameters
|
|
267
1208
|
* @returns Unwatch function to stop listening
|
|
268
1209
|
*/
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
amount: bigint;
|
|
1210
|
+
Upgraded: (callback: (event: {
|
|
1211
|
+
implementation: `0x${string}`;
|
|
272
1212
|
}) => void, filter?: {
|
|
273
|
-
|
|
1213
|
+
implementation: `0x${string}`;
|
|
274
1214
|
}) => () => void;
|
|
275
1215
|
};
|
|
276
1216
|
}
|