@gitmyabi/cov 0.0.0-stage → 1.0.0
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 +107 -2
- package/contracts/COVToken_json.d.ts +1707 -0
- package/contracts/COVToken_json.js +1692 -0
- package/contracts/COVToken_json.ts +2228 -0
- package/contracts/index.d.ts +2 -0
- package/contracts/index.js +7 -0
- package/contracts/index.ts +3 -0
- package/index.d.ts +1 -0
- package/index.js +19 -0
- package/package.json +40 -3
|
@@ -0,0 +1,1707 @@
|
|
|
1
|
+
import type { Address, PublicClient, WalletClient } from 'viem';
|
|
2
|
+
/**
|
|
3
|
+
* COVToken_json ABI
|
|
4
|
+
*
|
|
5
|
+
* This ABI is typed using viem's type system for full type safety.
|
|
6
|
+
*/
|
|
7
|
+
export declare const COVToken_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: true;
|
|
15
|
+
readonly internalType: "address";
|
|
16
|
+
readonly name: "owner";
|
|
17
|
+
readonly type: "address";
|
|
18
|
+
}, {
|
|
19
|
+
readonly indexed: true;
|
|
20
|
+
readonly internalType: "address";
|
|
21
|
+
readonly name: "spender";
|
|
22
|
+
readonly type: "address";
|
|
23
|
+
}, {
|
|
24
|
+
readonly indexed: false;
|
|
25
|
+
readonly internalType: "uint256";
|
|
26
|
+
readonly name: "value";
|
|
27
|
+
readonly type: "uint256";
|
|
28
|
+
}];
|
|
29
|
+
readonly name: "Approval";
|
|
30
|
+
readonly type: "event";
|
|
31
|
+
}, {
|
|
32
|
+
readonly anonymous: false;
|
|
33
|
+
readonly inputs: readonly [{
|
|
34
|
+
readonly indexed: true;
|
|
35
|
+
readonly internalType: "bytes32";
|
|
36
|
+
readonly name: "role";
|
|
37
|
+
readonly type: "bytes32";
|
|
38
|
+
}, {
|
|
39
|
+
readonly indexed: true;
|
|
40
|
+
readonly internalType: "bytes32";
|
|
41
|
+
readonly name: "previousAdminRole";
|
|
42
|
+
readonly type: "bytes32";
|
|
43
|
+
}, {
|
|
44
|
+
readonly indexed: true;
|
|
45
|
+
readonly internalType: "bytes32";
|
|
46
|
+
readonly name: "newAdminRole";
|
|
47
|
+
readonly type: "bytes32";
|
|
48
|
+
}];
|
|
49
|
+
readonly name: "RoleAdminChanged";
|
|
50
|
+
readonly type: "event";
|
|
51
|
+
}, {
|
|
52
|
+
readonly anonymous: false;
|
|
53
|
+
readonly inputs: readonly [{
|
|
54
|
+
readonly indexed: true;
|
|
55
|
+
readonly internalType: "bytes32";
|
|
56
|
+
readonly name: "role";
|
|
57
|
+
readonly type: "bytes32";
|
|
58
|
+
}, {
|
|
59
|
+
readonly indexed: true;
|
|
60
|
+
readonly internalType: "address";
|
|
61
|
+
readonly name: "account";
|
|
62
|
+
readonly type: "address";
|
|
63
|
+
}, {
|
|
64
|
+
readonly indexed: true;
|
|
65
|
+
readonly internalType: "address";
|
|
66
|
+
readonly name: "sender";
|
|
67
|
+
readonly type: "address";
|
|
68
|
+
}];
|
|
69
|
+
readonly name: "RoleGranted";
|
|
70
|
+
readonly type: "event";
|
|
71
|
+
}, {
|
|
72
|
+
readonly anonymous: false;
|
|
73
|
+
readonly inputs: readonly [{
|
|
74
|
+
readonly indexed: true;
|
|
75
|
+
readonly internalType: "bytes32";
|
|
76
|
+
readonly name: "role";
|
|
77
|
+
readonly type: "bytes32";
|
|
78
|
+
}, {
|
|
79
|
+
readonly indexed: true;
|
|
80
|
+
readonly internalType: "address";
|
|
81
|
+
readonly name: "account";
|
|
82
|
+
readonly type: "address";
|
|
83
|
+
}, {
|
|
84
|
+
readonly indexed: true;
|
|
85
|
+
readonly internalType: "address";
|
|
86
|
+
readonly name: "sender";
|
|
87
|
+
readonly type: "address";
|
|
88
|
+
}];
|
|
89
|
+
readonly name: "RoleRevoked";
|
|
90
|
+
readonly type: "event";
|
|
91
|
+
}, {
|
|
92
|
+
readonly anonymous: false;
|
|
93
|
+
readonly inputs: readonly [{
|
|
94
|
+
readonly indexed: true;
|
|
95
|
+
readonly internalType: "address";
|
|
96
|
+
readonly name: "from";
|
|
97
|
+
readonly type: "address";
|
|
98
|
+
}, {
|
|
99
|
+
readonly indexed: true;
|
|
100
|
+
readonly internalType: "address";
|
|
101
|
+
readonly name: "to";
|
|
102
|
+
readonly type: "address";
|
|
103
|
+
}, {
|
|
104
|
+
readonly indexed: false;
|
|
105
|
+
readonly internalType: "uint256";
|
|
106
|
+
readonly name: "value";
|
|
107
|
+
readonly type: "uint256";
|
|
108
|
+
}];
|
|
109
|
+
readonly name: "Transfer";
|
|
110
|
+
readonly type: "event";
|
|
111
|
+
}, {
|
|
112
|
+
readonly inputs: readonly [];
|
|
113
|
+
readonly name: "DEFAULT_ADMIN_ROLE";
|
|
114
|
+
readonly outputs: readonly [{
|
|
115
|
+
readonly internalType: "bytes32";
|
|
116
|
+
readonly name: "";
|
|
117
|
+
readonly type: "bytes32";
|
|
118
|
+
}];
|
|
119
|
+
readonly stateMutability: "view";
|
|
120
|
+
readonly type: "function";
|
|
121
|
+
}, {
|
|
122
|
+
readonly inputs: readonly [];
|
|
123
|
+
readonly name: "LOCK_ADDR_TIME_LOCK";
|
|
124
|
+
readonly outputs: readonly [{
|
|
125
|
+
readonly internalType: "bytes32";
|
|
126
|
+
readonly name: "";
|
|
127
|
+
readonly type: "bytes32";
|
|
128
|
+
}];
|
|
129
|
+
readonly stateMutability: "view";
|
|
130
|
+
readonly type: "function";
|
|
131
|
+
}, {
|
|
132
|
+
readonly inputs: readonly [];
|
|
133
|
+
readonly name: "LOCK_BURN";
|
|
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: "LOCK_MINT";
|
|
144
|
+
readonly outputs: readonly [{
|
|
145
|
+
readonly internalType: "bytes32";
|
|
146
|
+
readonly name: "";
|
|
147
|
+
readonly type: "bytes32";
|
|
148
|
+
}];
|
|
149
|
+
readonly stateMutability: "view";
|
|
150
|
+
readonly type: "function";
|
|
151
|
+
}, {
|
|
152
|
+
readonly inputs: readonly [];
|
|
153
|
+
readonly name: "LOCK_TRANSFER";
|
|
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 name: "MAX_INT";
|
|
164
|
+
readonly outputs: readonly [{
|
|
165
|
+
readonly internalType: "uint256";
|
|
166
|
+
readonly name: "";
|
|
167
|
+
readonly type: "uint256";
|
|
168
|
+
}];
|
|
169
|
+
readonly stateMutability: "view";
|
|
170
|
+
readonly type: "function";
|
|
171
|
+
}, {
|
|
172
|
+
readonly inputs: readonly [];
|
|
173
|
+
readonly name: "ROLE_ADMIN";
|
|
174
|
+
readonly outputs: readonly [{
|
|
175
|
+
readonly internalType: "bytes32";
|
|
176
|
+
readonly name: "";
|
|
177
|
+
readonly type: "bytes32";
|
|
178
|
+
}];
|
|
179
|
+
readonly stateMutability: "view";
|
|
180
|
+
readonly type: "function";
|
|
181
|
+
}, {
|
|
182
|
+
readonly inputs: readonly [];
|
|
183
|
+
readonly name: "ROLE_ALIEN_TOKEN_SENDER";
|
|
184
|
+
readonly outputs: readonly [{
|
|
185
|
+
readonly internalType: "bytes32";
|
|
186
|
+
readonly name: "";
|
|
187
|
+
readonly type: "bytes32";
|
|
188
|
+
}];
|
|
189
|
+
readonly stateMutability: "view";
|
|
190
|
+
readonly type: "function";
|
|
191
|
+
}, {
|
|
192
|
+
readonly inputs: readonly [];
|
|
193
|
+
readonly name: "ROLE_BURNER";
|
|
194
|
+
readonly outputs: readonly [{
|
|
195
|
+
readonly internalType: "bytes32";
|
|
196
|
+
readonly name: "";
|
|
197
|
+
readonly type: "bytes32";
|
|
198
|
+
}];
|
|
199
|
+
readonly stateMutability: "view";
|
|
200
|
+
readonly type: "function";
|
|
201
|
+
}, {
|
|
202
|
+
readonly inputs: readonly [];
|
|
203
|
+
readonly name: "ROLE_MINTER";
|
|
204
|
+
readonly outputs: readonly [{
|
|
205
|
+
readonly internalType: "bytes32";
|
|
206
|
+
readonly name: "";
|
|
207
|
+
readonly type: "bytes32";
|
|
208
|
+
}];
|
|
209
|
+
readonly stateMutability: "view";
|
|
210
|
+
readonly type: "function";
|
|
211
|
+
}, {
|
|
212
|
+
readonly inputs: readonly [];
|
|
213
|
+
readonly name: "ROLE_TRANSFER";
|
|
214
|
+
readonly outputs: readonly [{
|
|
215
|
+
readonly internalType: "bytes32";
|
|
216
|
+
readonly name: "";
|
|
217
|
+
readonly type: "bytes32";
|
|
218
|
+
}];
|
|
219
|
+
readonly stateMutability: "view";
|
|
220
|
+
readonly type: "function";
|
|
221
|
+
}, {
|
|
222
|
+
readonly inputs: readonly [{
|
|
223
|
+
readonly internalType: "address";
|
|
224
|
+
readonly name: "account";
|
|
225
|
+
readonly type: "address";
|
|
226
|
+
}, {
|
|
227
|
+
readonly internalType: "uint256";
|
|
228
|
+
readonly name: "amount";
|
|
229
|
+
readonly type: "uint256";
|
|
230
|
+
}];
|
|
231
|
+
readonly name: "adminBurn";
|
|
232
|
+
readonly outputs: readonly [];
|
|
233
|
+
readonly stateMutability: "nonpayable";
|
|
234
|
+
readonly type: "function";
|
|
235
|
+
}, {
|
|
236
|
+
readonly inputs: readonly [{
|
|
237
|
+
readonly internalType: "address";
|
|
238
|
+
readonly name: "account";
|
|
239
|
+
readonly type: "address";
|
|
240
|
+
}, {
|
|
241
|
+
readonly internalType: "uint256";
|
|
242
|
+
readonly name: "amount";
|
|
243
|
+
readonly type: "uint256";
|
|
244
|
+
}];
|
|
245
|
+
readonly name: "adminMint";
|
|
246
|
+
readonly outputs: readonly [];
|
|
247
|
+
readonly stateMutability: "nonpayable";
|
|
248
|
+
readonly type: "function";
|
|
249
|
+
}, {
|
|
250
|
+
readonly inputs: readonly [{
|
|
251
|
+
readonly internalType: "address";
|
|
252
|
+
readonly name: "account";
|
|
253
|
+
readonly type: "address";
|
|
254
|
+
}, {
|
|
255
|
+
readonly internalType: "uint256";
|
|
256
|
+
readonly name: "periodInDays";
|
|
257
|
+
readonly type: "uint256";
|
|
258
|
+
}];
|
|
259
|
+
readonly name: "adminTimelockTransfer";
|
|
260
|
+
readonly outputs: readonly [];
|
|
261
|
+
readonly stateMutability: "nonpayable";
|
|
262
|
+
readonly type: "function";
|
|
263
|
+
}, {
|
|
264
|
+
readonly inputs: readonly [{
|
|
265
|
+
readonly internalType: "address";
|
|
266
|
+
readonly name: "owner";
|
|
267
|
+
readonly type: "address";
|
|
268
|
+
}, {
|
|
269
|
+
readonly internalType: "address";
|
|
270
|
+
readonly name: "spender";
|
|
271
|
+
readonly type: "address";
|
|
272
|
+
}];
|
|
273
|
+
readonly name: "allowance";
|
|
274
|
+
readonly outputs: readonly [{
|
|
275
|
+
readonly internalType: "uint256";
|
|
276
|
+
readonly name: "";
|
|
277
|
+
readonly type: "uint256";
|
|
278
|
+
}];
|
|
279
|
+
readonly stateMutability: "view";
|
|
280
|
+
readonly type: "function";
|
|
281
|
+
}, {
|
|
282
|
+
readonly inputs: readonly [{
|
|
283
|
+
readonly internalType: "address";
|
|
284
|
+
readonly name: "spender";
|
|
285
|
+
readonly type: "address";
|
|
286
|
+
}, {
|
|
287
|
+
readonly internalType: "uint256";
|
|
288
|
+
readonly name: "amount";
|
|
289
|
+
readonly type: "uint256";
|
|
290
|
+
}];
|
|
291
|
+
readonly name: "approve";
|
|
292
|
+
readonly outputs: readonly [{
|
|
293
|
+
readonly internalType: "bool";
|
|
294
|
+
readonly name: "";
|
|
295
|
+
readonly type: "bool";
|
|
296
|
+
}];
|
|
297
|
+
readonly stateMutability: "nonpayable";
|
|
298
|
+
readonly type: "function";
|
|
299
|
+
}, {
|
|
300
|
+
readonly inputs: readonly [{
|
|
301
|
+
readonly internalType: "address";
|
|
302
|
+
readonly name: "account";
|
|
303
|
+
readonly type: "address";
|
|
304
|
+
}];
|
|
305
|
+
readonly name: "balanceOf";
|
|
306
|
+
readonly outputs: readonly [{
|
|
307
|
+
readonly internalType: "uint256";
|
|
308
|
+
readonly name: "";
|
|
309
|
+
readonly type: "uint256";
|
|
310
|
+
}];
|
|
311
|
+
readonly stateMutability: "view";
|
|
312
|
+
readonly type: "function";
|
|
313
|
+
}, {
|
|
314
|
+
readonly inputs: readonly [{
|
|
315
|
+
readonly internalType: "uint256";
|
|
316
|
+
readonly name: "amount";
|
|
317
|
+
readonly type: "uint256";
|
|
318
|
+
}];
|
|
319
|
+
readonly name: "burn";
|
|
320
|
+
readonly outputs: readonly [];
|
|
321
|
+
readonly stateMutability: "nonpayable";
|
|
322
|
+
readonly type: "function";
|
|
323
|
+
}, {
|
|
324
|
+
readonly inputs: readonly [{
|
|
325
|
+
readonly internalType: "address";
|
|
326
|
+
readonly name: "account";
|
|
327
|
+
readonly type: "address";
|
|
328
|
+
}, {
|
|
329
|
+
readonly internalType: "uint256";
|
|
330
|
+
readonly name: "amount";
|
|
331
|
+
readonly type: "uint256";
|
|
332
|
+
}];
|
|
333
|
+
readonly name: "burnFrom";
|
|
334
|
+
readonly outputs: readonly [];
|
|
335
|
+
readonly stateMutability: "nonpayable";
|
|
336
|
+
readonly type: "function";
|
|
337
|
+
}, {
|
|
338
|
+
readonly inputs: readonly [];
|
|
339
|
+
readonly name: "decimals";
|
|
340
|
+
readonly outputs: readonly [{
|
|
341
|
+
readonly internalType: "uint8";
|
|
342
|
+
readonly name: "";
|
|
343
|
+
readonly type: "uint8";
|
|
344
|
+
}];
|
|
345
|
+
readonly stateMutability: "view";
|
|
346
|
+
readonly type: "function";
|
|
347
|
+
}, {
|
|
348
|
+
readonly inputs: readonly [{
|
|
349
|
+
readonly internalType: "address";
|
|
350
|
+
readonly name: "spender";
|
|
351
|
+
readonly type: "address";
|
|
352
|
+
}, {
|
|
353
|
+
readonly internalType: "uint256";
|
|
354
|
+
readonly name: "subtractedValue";
|
|
355
|
+
readonly type: "uint256";
|
|
356
|
+
}];
|
|
357
|
+
readonly name: "decreaseAllowance";
|
|
358
|
+
readonly outputs: readonly [{
|
|
359
|
+
readonly internalType: "bool";
|
|
360
|
+
readonly name: "";
|
|
361
|
+
readonly type: "bool";
|
|
362
|
+
}];
|
|
363
|
+
readonly stateMutability: "nonpayable";
|
|
364
|
+
readonly type: "function";
|
|
365
|
+
}, {
|
|
366
|
+
readonly inputs: readonly [];
|
|
367
|
+
readonly name: "deregisterCallback";
|
|
368
|
+
readonly outputs: readonly [];
|
|
369
|
+
readonly stateMutability: "nonpayable";
|
|
370
|
+
readonly type: "function";
|
|
371
|
+
}, {
|
|
372
|
+
readonly inputs: readonly [{
|
|
373
|
+
readonly internalType: "address[]";
|
|
374
|
+
readonly name: "receivers";
|
|
375
|
+
readonly type: "address[]";
|
|
376
|
+
}];
|
|
377
|
+
readonly name: "distributeLockOldToken";
|
|
378
|
+
readonly outputs: readonly [];
|
|
379
|
+
readonly stateMutability: "nonpayable";
|
|
380
|
+
readonly type: "function";
|
|
381
|
+
}, {
|
|
382
|
+
readonly inputs: readonly [{
|
|
383
|
+
readonly internalType: "address[]";
|
|
384
|
+
readonly name: "receivers";
|
|
385
|
+
readonly type: "address[]";
|
|
386
|
+
}, {
|
|
387
|
+
readonly internalType: "uint256[]";
|
|
388
|
+
readonly name: "balances";
|
|
389
|
+
readonly type: "uint256[]";
|
|
390
|
+
}];
|
|
391
|
+
readonly name: "distributeMint";
|
|
392
|
+
readonly outputs: readonly [];
|
|
393
|
+
readonly stateMutability: "nonpayable";
|
|
394
|
+
readonly type: "function";
|
|
395
|
+
}, {
|
|
396
|
+
readonly inputs: readonly [{
|
|
397
|
+
readonly internalType: "bytes32";
|
|
398
|
+
readonly name: "lock";
|
|
399
|
+
readonly type: "bytes32";
|
|
400
|
+
}];
|
|
401
|
+
readonly name: "finalFuncLock";
|
|
402
|
+
readonly outputs: readonly [];
|
|
403
|
+
readonly stateMutability: "nonpayable";
|
|
404
|
+
readonly type: "function";
|
|
405
|
+
}, {
|
|
406
|
+
readonly inputs: readonly [{
|
|
407
|
+
readonly internalType: "bytes32";
|
|
408
|
+
readonly name: "";
|
|
409
|
+
readonly type: "bytes32";
|
|
410
|
+
}];
|
|
411
|
+
readonly name: "finalFuncLocks";
|
|
412
|
+
readonly outputs: readonly [{
|
|
413
|
+
readonly internalType: "bool";
|
|
414
|
+
readonly name: "";
|
|
415
|
+
readonly type: "bool";
|
|
416
|
+
}];
|
|
417
|
+
readonly stateMutability: "view";
|
|
418
|
+
readonly type: "function";
|
|
419
|
+
}, {
|
|
420
|
+
readonly inputs: readonly [{
|
|
421
|
+
readonly internalType: "bytes32";
|
|
422
|
+
readonly name: "role";
|
|
423
|
+
readonly type: "bytes32";
|
|
424
|
+
}];
|
|
425
|
+
readonly name: "getRoleAdmin";
|
|
426
|
+
readonly outputs: readonly [{
|
|
427
|
+
readonly internalType: "bytes32";
|
|
428
|
+
readonly name: "";
|
|
429
|
+
readonly type: "bytes32";
|
|
430
|
+
}];
|
|
431
|
+
readonly stateMutability: "view";
|
|
432
|
+
readonly type: "function";
|
|
433
|
+
}, {
|
|
434
|
+
readonly inputs: readonly [{
|
|
435
|
+
readonly internalType: "bytes32";
|
|
436
|
+
readonly name: "role";
|
|
437
|
+
readonly type: "bytes32";
|
|
438
|
+
}, {
|
|
439
|
+
readonly internalType: "uint256";
|
|
440
|
+
readonly name: "index";
|
|
441
|
+
readonly type: "uint256";
|
|
442
|
+
}];
|
|
443
|
+
readonly name: "getRoleMember";
|
|
444
|
+
readonly outputs: readonly [{
|
|
445
|
+
readonly internalType: "address";
|
|
446
|
+
readonly name: "";
|
|
447
|
+
readonly type: "address";
|
|
448
|
+
}];
|
|
449
|
+
readonly stateMutability: "view";
|
|
450
|
+
readonly type: "function";
|
|
451
|
+
}, {
|
|
452
|
+
readonly inputs: readonly [{
|
|
453
|
+
readonly internalType: "bytes32";
|
|
454
|
+
readonly name: "role";
|
|
455
|
+
readonly type: "bytes32";
|
|
456
|
+
}];
|
|
457
|
+
readonly name: "getRoleMemberCount";
|
|
458
|
+
readonly outputs: readonly [{
|
|
459
|
+
readonly internalType: "uint256";
|
|
460
|
+
readonly name: "";
|
|
461
|
+
readonly type: "uint256";
|
|
462
|
+
}];
|
|
463
|
+
readonly stateMutability: "view";
|
|
464
|
+
readonly type: "function";
|
|
465
|
+
}, {
|
|
466
|
+
readonly inputs: readonly [{
|
|
467
|
+
readonly internalType: "bytes32";
|
|
468
|
+
readonly name: "role";
|
|
469
|
+
readonly type: "bytes32";
|
|
470
|
+
}, {
|
|
471
|
+
readonly internalType: "address";
|
|
472
|
+
readonly name: "account";
|
|
473
|
+
readonly type: "address";
|
|
474
|
+
}];
|
|
475
|
+
readonly name: "grantRole";
|
|
476
|
+
readonly outputs: readonly [];
|
|
477
|
+
readonly stateMutability: "nonpayable";
|
|
478
|
+
readonly type: "function";
|
|
479
|
+
}, {
|
|
480
|
+
readonly inputs: readonly [{
|
|
481
|
+
readonly internalType: "bytes32";
|
|
482
|
+
readonly name: "role";
|
|
483
|
+
readonly type: "bytes32";
|
|
484
|
+
}, {
|
|
485
|
+
readonly internalType: "address";
|
|
486
|
+
readonly name: "account";
|
|
487
|
+
readonly type: "address";
|
|
488
|
+
}];
|
|
489
|
+
readonly name: "hasRole";
|
|
490
|
+
readonly outputs: readonly [{
|
|
491
|
+
readonly internalType: "bool";
|
|
492
|
+
readonly name: "";
|
|
493
|
+
readonly type: "bool";
|
|
494
|
+
}];
|
|
495
|
+
readonly stateMutability: "view";
|
|
496
|
+
readonly type: "function";
|
|
497
|
+
}, {
|
|
498
|
+
readonly inputs: readonly [{
|
|
499
|
+
readonly internalType: "address";
|
|
500
|
+
readonly name: "spender";
|
|
501
|
+
readonly type: "address";
|
|
502
|
+
}, {
|
|
503
|
+
readonly internalType: "uint256";
|
|
504
|
+
readonly name: "addedValue";
|
|
505
|
+
readonly type: "uint256";
|
|
506
|
+
}];
|
|
507
|
+
readonly name: "increaseAllowance";
|
|
508
|
+
readonly outputs: readonly [{
|
|
509
|
+
readonly internalType: "bool";
|
|
510
|
+
readonly name: "";
|
|
511
|
+
readonly type: "bool";
|
|
512
|
+
}];
|
|
513
|
+
readonly stateMutability: "nonpayable";
|
|
514
|
+
readonly type: "function";
|
|
515
|
+
}, {
|
|
516
|
+
readonly inputs: readonly [{
|
|
517
|
+
readonly internalType: "address";
|
|
518
|
+
readonly name: "";
|
|
519
|
+
readonly type: "address";
|
|
520
|
+
}];
|
|
521
|
+
readonly name: "locks";
|
|
522
|
+
readonly outputs: readonly [{
|
|
523
|
+
readonly internalType: "uint256";
|
|
524
|
+
readonly name: "";
|
|
525
|
+
readonly type: "uint256";
|
|
526
|
+
}];
|
|
527
|
+
readonly stateMutability: "view";
|
|
528
|
+
readonly type: "function";
|
|
529
|
+
}, {
|
|
530
|
+
readonly inputs: readonly [];
|
|
531
|
+
readonly name: "name";
|
|
532
|
+
readonly outputs: readonly [{
|
|
533
|
+
readonly internalType: "string";
|
|
534
|
+
readonly name: "";
|
|
535
|
+
readonly type: "string";
|
|
536
|
+
}];
|
|
537
|
+
readonly stateMutability: "view";
|
|
538
|
+
readonly type: "function";
|
|
539
|
+
}, {
|
|
540
|
+
readonly inputs: readonly [];
|
|
541
|
+
readonly name: "oldCOVToken";
|
|
542
|
+
readonly outputs: readonly [{
|
|
543
|
+
readonly internalType: "contract IOldCOVToken";
|
|
544
|
+
readonly name: "";
|
|
545
|
+
readonly type: "address";
|
|
546
|
+
}];
|
|
547
|
+
readonly stateMutability: "view";
|
|
548
|
+
readonly type: "function";
|
|
549
|
+
}, {
|
|
550
|
+
readonly inputs: readonly [{
|
|
551
|
+
readonly internalType: "address";
|
|
552
|
+
readonly name: "callback";
|
|
553
|
+
readonly type: "address";
|
|
554
|
+
}];
|
|
555
|
+
readonly name: "registerCallback";
|
|
556
|
+
readonly outputs: readonly [];
|
|
557
|
+
readonly stateMutability: "nonpayable";
|
|
558
|
+
readonly type: "function";
|
|
559
|
+
}, {
|
|
560
|
+
readonly inputs: readonly [];
|
|
561
|
+
readonly name: "registeredCallback";
|
|
562
|
+
readonly outputs: readonly [{
|
|
563
|
+
readonly internalType: "address";
|
|
564
|
+
readonly name: "";
|
|
565
|
+
readonly type: "address";
|
|
566
|
+
}];
|
|
567
|
+
readonly stateMutability: "view";
|
|
568
|
+
readonly type: "function";
|
|
569
|
+
}, {
|
|
570
|
+
readonly inputs: readonly [{
|
|
571
|
+
readonly internalType: "bytes32";
|
|
572
|
+
readonly name: "role";
|
|
573
|
+
readonly type: "bytes32";
|
|
574
|
+
}, {
|
|
575
|
+
readonly internalType: "address";
|
|
576
|
+
readonly name: "account";
|
|
577
|
+
readonly type: "address";
|
|
578
|
+
}];
|
|
579
|
+
readonly name: "renounceRole";
|
|
580
|
+
readonly outputs: readonly [];
|
|
581
|
+
readonly stateMutability: "nonpayable";
|
|
582
|
+
readonly type: "function";
|
|
583
|
+
}, {
|
|
584
|
+
readonly inputs: readonly [{
|
|
585
|
+
readonly internalType: "address";
|
|
586
|
+
readonly name: "to";
|
|
587
|
+
readonly type: "address";
|
|
588
|
+
}, {
|
|
589
|
+
readonly internalType: "address";
|
|
590
|
+
readonly name: "anotherToken";
|
|
591
|
+
readonly type: "address";
|
|
592
|
+
}];
|
|
593
|
+
readonly name: "retrieveTokens";
|
|
594
|
+
readonly outputs: readonly [];
|
|
595
|
+
readonly stateMutability: "nonpayable";
|
|
596
|
+
readonly type: "function";
|
|
597
|
+
}, {
|
|
598
|
+
readonly inputs: readonly [{
|
|
599
|
+
readonly internalType: "bytes32";
|
|
600
|
+
readonly name: "role";
|
|
601
|
+
readonly type: "bytes32";
|
|
602
|
+
}, {
|
|
603
|
+
readonly internalType: "address";
|
|
604
|
+
readonly name: "account";
|
|
605
|
+
readonly type: "address";
|
|
606
|
+
}];
|
|
607
|
+
readonly name: "revokeRole";
|
|
608
|
+
readonly outputs: readonly [];
|
|
609
|
+
readonly stateMutability: "nonpayable";
|
|
610
|
+
readonly type: "function";
|
|
611
|
+
}, {
|
|
612
|
+
readonly inputs: readonly [{
|
|
613
|
+
readonly internalType: "address";
|
|
614
|
+
readonly name: "oldCOVTokenAddress";
|
|
615
|
+
readonly type: "address";
|
|
616
|
+
}];
|
|
617
|
+
readonly name: "setOldCOVToken";
|
|
618
|
+
readonly outputs: readonly [];
|
|
619
|
+
readonly stateMutability: "nonpayable";
|
|
620
|
+
readonly type: "function";
|
|
621
|
+
}, {
|
|
622
|
+
readonly inputs: readonly [{
|
|
623
|
+
readonly internalType: "bytes32";
|
|
624
|
+
readonly name: "lock";
|
|
625
|
+
readonly type: "bytes32";
|
|
626
|
+
}, {
|
|
627
|
+
readonly internalType: "bool";
|
|
628
|
+
readonly name: "status";
|
|
629
|
+
readonly type: "bool";
|
|
630
|
+
}];
|
|
631
|
+
readonly name: "setTempFuncLock";
|
|
632
|
+
readonly outputs: readonly [];
|
|
633
|
+
readonly stateMutability: "nonpayable";
|
|
634
|
+
readonly type: "function";
|
|
635
|
+
}, {
|
|
636
|
+
readonly inputs: readonly [];
|
|
637
|
+
readonly name: "symbol";
|
|
638
|
+
readonly outputs: readonly [{
|
|
639
|
+
readonly internalType: "string";
|
|
640
|
+
readonly name: "";
|
|
641
|
+
readonly type: "string";
|
|
642
|
+
}];
|
|
643
|
+
readonly stateMutability: "view";
|
|
644
|
+
readonly type: "function";
|
|
645
|
+
}, {
|
|
646
|
+
readonly inputs: readonly [{
|
|
647
|
+
readonly internalType: "bytes32";
|
|
648
|
+
readonly name: "";
|
|
649
|
+
readonly type: "bytes32";
|
|
650
|
+
}];
|
|
651
|
+
readonly name: "tempFuncLocks";
|
|
652
|
+
readonly outputs: readonly [{
|
|
653
|
+
readonly internalType: "bool";
|
|
654
|
+
readonly name: "";
|
|
655
|
+
readonly type: "bool";
|
|
656
|
+
}];
|
|
657
|
+
readonly stateMutability: "view";
|
|
658
|
+
readonly type: "function";
|
|
659
|
+
}, {
|
|
660
|
+
readonly inputs: readonly [];
|
|
661
|
+
readonly name: "totalSupply";
|
|
662
|
+
readonly outputs: readonly [{
|
|
663
|
+
readonly internalType: "uint256";
|
|
664
|
+
readonly name: "";
|
|
665
|
+
readonly type: "uint256";
|
|
666
|
+
}];
|
|
667
|
+
readonly stateMutability: "view";
|
|
668
|
+
readonly type: "function";
|
|
669
|
+
}, {
|
|
670
|
+
readonly inputs: readonly [{
|
|
671
|
+
readonly internalType: "address";
|
|
672
|
+
readonly name: "recipient";
|
|
673
|
+
readonly type: "address";
|
|
674
|
+
}, {
|
|
675
|
+
readonly internalType: "uint256";
|
|
676
|
+
readonly name: "amount";
|
|
677
|
+
readonly type: "uint256";
|
|
678
|
+
}];
|
|
679
|
+
readonly name: "transfer";
|
|
680
|
+
readonly outputs: readonly [{
|
|
681
|
+
readonly internalType: "bool";
|
|
682
|
+
readonly name: "";
|
|
683
|
+
readonly type: "bool";
|
|
684
|
+
}];
|
|
685
|
+
readonly stateMutability: "nonpayable";
|
|
686
|
+
readonly type: "function";
|
|
687
|
+
}, {
|
|
688
|
+
readonly inputs: readonly [{
|
|
689
|
+
readonly internalType: "address";
|
|
690
|
+
readonly name: "sender";
|
|
691
|
+
readonly type: "address";
|
|
692
|
+
}, {
|
|
693
|
+
readonly internalType: "address";
|
|
694
|
+
readonly name: "recipient";
|
|
695
|
+
readonly type: "address";
|
|
696
|
+
}, {
|
|
697
|
+
readonly internalType: "uint256";
|
|
698
|
+
readonly name: "amount";
|
|
699
|
+
readonly type: "uint256";
|
|
700
|
+
}];
|
|
701
|
+
readonly name: "transferFrom";
|
|
702
|
+
readonly outputs: readonly [{
|
|
703
|
+
readonly internalType: "bool";
|
|
704
|
+
readonly name: "";
|
|
705
|
+
readonly type: "bool";
|
|
706
|
+
}];
|
|
707
|
+
readonly stateMutability: "nonpayable";
|
|
708
|
+
readonly type: "function";
|
|
709
|
+
}];
|
|
710
|
+
/**
|
|
711
|
+
* Type-safe ABI for COVToken_json
|
|
712
|
+
*/
|
|
713
|
+
export type COVToken_jsonAbi = typeof COVToken_jsonAbi;
|
|
714
|
+
/**
|
|
715
|
+
* Contract instance type for COVToken_json
|
|
716
|
+
*/
|
|
717
|
+
export type COVToken_jsonContract = any;
|
|
718
|
+
/**
|
|
719
|
+
* COVToken_json Contract Class
|
|
720
|
+
*
|
|
721
|
+
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
722
|
+
*
|
|
723
|
+
* @example
|
|
724
|
+
* ```typescript
|
|
725
|
+
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
726
|
+
* import { mainnet } from 'viem/chains';
|
|
727
|
+
* import { COVToken_json } from 'COVToken_json';
|
|
728
|
+
*
|
|
729
|
+
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
730
|
+
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
731
|
+
*
|
|
732
|
+
* const contract = new COVToken_json('0x...', { publicClient, walletClient });
|
|
733
|
+
*
|
|
734
|
+
* // Read functions
|
|
735
|
+
* const result = await contract.balanceOf('0x...');
|
|
736
|
+
*
|
|
737
|
+
* // Write functions
|
|
738
|
+
* const hash = await contract.transfer('0x...', 1000n);
|
|
739
|
+
*
|
|
740
|
+
* // Simulate transactions (dry-run)
|
|
741
|
+
* const simulation = await contract.simulate.transfer('0x...', 1000n);
|
|
742
|
+
* console.log('Gas estimate:', simulation.request.gas);
|
|
743
|
+
*
|
|
744
|
+
* // Watch events
|
|
745
|
+
* const unwatch = contract.watch.Transfer((event) => {
|
|
746
|
+
* console.log('Transfer event:', event);
|
|
747
|
+
* });
|
|
748
|
+
* ```
|
|
749
|
+
*/
|
|
750
|
+
export declare class COVToken_json {
|
|
751
|
+
private contract;
|
|
752
|
+
private contractAddress;
|
|
753
|
+
private publicClient;
|
|
754
|
+
constructor(address: Address, clients: {
|
|
755
|
+
publicClient: PublicClient;
|
|
756
|
+
walletClient?: WalletClient;
|
|
757
|
+
});
|
|
758
|
+
/**
|
|
759
|
+
* Get the contract address
|
|
760
|
+
*/
|
|
761
|
+
get address(): Address;
|
|
762
|
+
/**
|
|
763
|
+
* Get the underlying viem contract instance
|
|
764
|
+
*/
|
|
765
|
+
getContract(): COVToken_jsonContract;
|
|
766
|
+
/**
|
|
767
|
+
* DEFAULT_ADMIN_ROLE
|
|
768
|
+
* view
|
|
769
|
+
*/
|
|
770
|
+
DEFAULT_ADMIN_ROLE(): Promise<`0x${string}`>;
|
|
771
|
+
/**
|
|
772
|
+
* LOCK_ADDR_TIME_LOCK
|
|
773
|
+
* view
|
|
774
|
+
*/
|
|
775
|
+
LOCK_ADDR_TIME_LOCK(): Promise<`0x${string}`>;
|
|
776
|
+
/**
|
|
777
|
+
* LOCK_BURN
|
|
778
|
+
* view
|
|
779
|
+
*/
|
|
780
|
+
LOCK_BURN(): Promise<`0x${string}`>;
|
|
781
|
+
/**
|
|
782
|
+
* LOCK_MINT
|
|
783
|
+
* view
|
|
784
|
+
*/
|
|
785
|
+
LOCK_MINT(): Promise<`0x${string}`>;
|
|
786
|
+
/**
|
|
787
|
+
* LOCK_TRANSFER
|
|
788
|
+
* view
|
|
789
|
+
*/
|
|
790
|
+
LOCK_TRANSFER(): Promise<`0x${string}`>;
|
|
791
|
+
/**
|
|
792
|
+
* MAX_INT
|
|
793
|
+
* view
|
|
794
|
+
*/
|
|
795
|
+
MAX_INT(): Promise<bigint>;
|
|
796
|
+
/**
|
|
797
|
+
* ROLE_ADMIN
|
|
798
|
+
* view
|
|
799
|
+
*/
|
|
800
|
+
ROLE_ADMIN(): Promise<`0x${string}`>;
|
|
801
|
+
/**
|
|
802
|
+
* ROLE_ALIEN_TOKEN_SENDER
|
|
803
|
+
* view
|
|
804
|
+
*/
|
|
805
|
+
ROLE_ALIEN_TOKEN_SENDER(): Promise<`0x${string}`>;
|
|
806
|
+
/**
|
|
807
|
+
* ROLE_BURNER
|
|
808
|
+
* view
|
|
809
|
+
*/
|
|
810
|
+
ROLE_BURNER(): Promise<`0x${string}`>;
|
|
811
|
+
/**
|
|
812
|
+
* ROLE_MINTER
|
|
813
|
+
* view
|
|
814
|
+
*/
|
|
815
|
+
ROLE_MINTER(): Promise<`0x${string}`>;
|
|
816
|
+
/**
|
|
817
|
+
* ROLE_TRANSFER
|
|
818
|
+
* view
|
|
819
|
+
*/
|
|
820
|
+
ROLE_TRANSFER(): Promise<`0x${string}`>;
|
|
821
|
+
/**
|
|
822
|
+
* allowance
|
|
823
|
+
* view
|
|
824
|
+
*/
|
|
825
|
+
allowance(owner: `0x${string}`, spender: `0x${string}`): Promise<bigint>;
|
|
826
|
+
/**
|
|
827
|
+
* balanceOf
|
|
828
|
+
* view
|
|
829
|
+
*/
|
|
830
|
+
balanceOf(account: `0x${string}`): Promise<bigint>;
|
|
831
|
+
/**
|
|
832
|
+
* decimals
|
|
833
|
+
* view
|
|
834
|
+
*/
|
|
835
|
+
decimals(): Promise<bigint>;
|
|
836
|
+
/**
|
|
837
|
+
* finalFuncLocks
|
|
838
|
+
* view
|
|
839
|
+
*/
|
|
840
|
+
finalFuncLocks(arg0: `0x${string}`): Promise<boolean>;
|
|
841
|
+
/**
|
|
842
|
+
* getRoleAdmin
|
|
843
|
+
* view
|
|
844
|
+
*/
|
|
845
|
+
getRoleAdmin(role: `0x${string}`): Promise<`0x${string}`>;
|
|
846
|
+
/**
|
|
847
|
+
* getRoleMember
|
|
848
|
+
* view
|
|
849
|
+
*/
|
|
850
|
+
getRoleMember(role: `0x${string}`, index: bigint): Promise<`0x${string}`>;
|
|
851
|
+
/**
|
|
852
|
+
* getRoleMemberCount
|
|
853
|
+
* view
|
|
854
|
+
*/
|
|
855
|
+
getRoleMemberCount(role: `0x${string}`): Promise<bigint>;
|
|
856
|
+
/**
|
|
857
|
+
* hasRole
|
|
858
|
+
* view
|
|
859
|
+
*/
|
|
860
|
+
hasRole(role: `0x${string}`, account: `0x${string}`): Promise<boolean>;
|
|
861
|
+
/**
|
|
862
|
+
* locks
|
|
863
|
+
* view
|
|
864
|
+
*/
|
|
865
|
+
locks(arg0: `0x${string}`): Promise<bigint>;
|
|
866
|
+
/**
|
|
867
|
+
* name
|
|
868
|
+
* view
|
|
869
|
+
*/
|
|
870
|
+
name(): Promise<string>;
|
|
871
|
+
/**
|
|
872
|
+
* oldCOVToken
|
|
873
|
+
* view
|
|
874
|
+
*/
|
|
875
|
+
oldCOVToken(): Promise<`0x${string}`>;
|
|
876
|
+
/**
|
|
877
|
+
* registeredCallback
|
|
878
|
+
* view
|
|
879
|
+
*/
|
|
880
|
+
registeredCallback(): Promise<`0x${string}`>;
|
|
881
|
+
/**
|
|
882
|
+
* symbol
|
|
883
|
+
* view
|
|
884
|
+
*/
|
|
885
|
+
symbol(): Promise<string>;
|
|
886
|
+
/**
|
|
887
|
+
* tempFuncLocks
|
|
888
|
+
* view
|
|
889
|
+
*/
|
|
890
|
+
tempFuncLocks(arg0: `0x${string}`): Promise<boolean>;
|
|
891
|
+
/**
|
|
892
|
+
* totalSupply
|
|
893
|
+
* view
|
|
894
|
+
*/
|
|
895
|
+
totalSupply(): Promise<bigint>;
|
|
896
|
+
/**
|
|
897
|
+
* adminBurn
|
|
898
|
+
* nonpayable
|
|
899
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
900
|
+
*/
|
|
901
|
+
adminBurn(account: `0x${string}`, amount: bigint, options?: {
|
|
902
|
+
accessList?: import('viem').AccessList;
|
|
903
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
904
|
+
chain?: import('viem').Chain | null;
|
|
905
|
+
dataSuffix?: `0x${string}`;
|
|
906
|
+
gas?: bigint;
|
|
907
|
+
gasPrice?: bigint;
|
|
908
|
+
maxFeePerGas?: bigint;
|
|
909
|
+
maxPriorityFeePerGas?: bigint;
|
|
910
|
+
nonce?: number;
|
|
911
|
+
value?: bigint;
|
|
912
|
+
}): Promise<`0x${string}`>;
|
|
913
|
+
/**
|
|
914
|
+
* adminMint
|
|
915
|
+
* nonpayable
|
|
916
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
917
|
+
*/
|
|
918
|
+
adminMint(account: `0x${string}`, amount: bigint, options?: {
|
|
919
|
+
accessList?: import('viem').AccessList;
|
|
920
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
921
|
+
chain?: import('viem').Chain | null;
|
|
922
|
+
dataSuffix?: `0x${string}`;
|
|
923
|
+
gas?: bigint;
|
|
924
|
+
gasPrice?: bigint;
|
|
925
|
+
maxFeePerGas?: bigint;
|
|
926
|
+
maxPriorityFeePerGas?: bigint;
|
|
927
|
+
nonce?: number;
|
|
928
|
+
value?: bigint;
|
|
929
|
+
}): Promise<`0x${string}`>;
|
|
930
|
+
/**
|
|
931
|
+
* adminTimelockTransfer
|
|
932
|
+
* nonpayable
|
|
933
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
934
|
+
*/
|
|
935
|
+
adminTimelockTransfer(account: `0x${string}`, periodInDays: bigint, options?: {
|
|
936
|
+
accessList?: import('viem').AccessList;
|
|
937
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
938
|
+
chain?: import('viem').Chain | null;
|
|
939
|
+
dataSuffix?: `0x${string}`;
|
|
940
|
+
gas?: bigint;
|
|
941
|
+
gasPrice?: bigint;
|
|
942
|
+
maxFeePerGas?: bigint;
|
|
943
|
+
maxPriorityFeePerGas?: bigint;
|
|
944
|
+
nonce?: number;
|
|
945
|
+
value?: bigint;
|
|
946
|
+
}): Promise<`0x${string}`>;
|
|
947
|
+
/**
|
|
948
|
+
* approve
|
|
949
|
+
* nonpayable
|
|
950
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
951
|
+
*/
|
|
952
|
+
approve(spender: `0x${string}`, amount: bigint, options?: {
|
|
953
|
+
accessList?: import('viem').AccessList;
|
|
954
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
955
|
+
chain?: import('viem').Chain | null;
|
|
956
|
+
dataSuffix?: `0x${string}`;
|
|
957
|
+
gas?: bigint;
|
|
958
|
+
gasPrice?: bigint;
|
|
959
|
+
maxFeePerGas?: bigint;
|
|
960
|
+
maxPriorityFeePerGas?: bigint;
|
|
961
|
+
nonce?: number;
|
|
962
|
+
value?: bigint;
|
|
963
|
+
}): Promise<`0x${string}`>;
|
|
964
|
+
/**
|
|
965
|
+
* burn
|
|
966
|
+
* nonpayable
|
|
967
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
968
|
+
*/
|
|
969
|
+
burn(amount: bigint, options?: {
|
|
970
|
+
accessList?: import('viem').AccessList;
|
|
971
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
972
|
+
chain?: import('viem').Chain | null;
|
|
973
|
+
dataSuffix?: `0x${string}`;
|
|
974
|
+
gas?: bigint;
|
|
975
|
+
gasPrice?: bigint;
|
|
976
|
+
maxFeePerGas?: bigint;
|
|
977
|
+
maxPriorityFeePerGas?: bigint;
|
|
978
|
+
nonce?: number;
|
|
979
|
+
value?: bigint;
|
|
980
|
+
}): Promise<`0x${string}`>;
|
|
981
|
+
/**
|
|
982
|
+
* burnFrom
|
|
983
|
+
* nonpayable
|
|
984
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
985
|
+
*/
|
|
986
|
+
burnFrom(account: `0x${string}`, amount: bigint, options?: {
|
|
987
|
+
accessList?: import('viem').AccessList;
|
|
988
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
989
|
+
chain?: import('viem').Chain | null;
|
|
990
|
+
dataSuffix?: `0x${string}`;
|
|
991
|
+
gas?: bigint;
|
|
992
|
+
gasPrice?: bigint;
|
|
993
|
+
maxFeePerGas?: bigint;
|
|
994
|
+
maxPriorityFeePerGas?: bigint;
|
|
995
|
+
nonce?: number;
|
|
996
|
+
value?: bigint;
|
|
997
|
+
}): Promise<`0x${string}`>;
|
|
998
|
+
/**
|
|
999
|
+
* decreaseAllowance
|
|
1000
|
+
* nonpayable
|
|
1001
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1002
|
+
*/
|
|
1003
|
+
decreaseAllowance(spender: `0x${string}`, subtractedValue: bigint, options?: {
|
|
1004
|
+
accessList?: import('viem').AccessList;
|
|
1005
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1006
|
+
chain?: import('viem').Chain | null;
|
|
1007
|
+
dataSuffix?: `0x${string}`;
|
|
1008
|
+
gas?: bigint;
|
|
1009
|
+
gasPrice?: bigint;
|
|
1010
|
+
maxFeePerGas?: bigint;
|
|
1011
|
+
maxPriorityFeePerGas?: bigint;
|
|
1012
|
+
nonce?: number;
|
|
1013
|
+
value?: bigint;
|
|
1014
|
+
}): Promise<`0x${string}`>;
|
|
1015
|
+
/**
|
|
1016
|
+
* deregisterCallback
|
|
1017
|
+
* nonpayable
|
|
1018
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1019
|
+
*/
|
|
1020
|
+
deregisterCallback(options?: {
|
|
1021
|
+
accessList?: import('viem').AccessList;
|
|
1022
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1023
|
+
chain?: import('viem').Chain | null;
|
|
1024
|
+
dataSuffix?: `0x${string}`;
|
|
1025
|
+
gas?: bigint;
|
|
1026
|
+
gasPrice?: bigint;
|
|
1027
|
+
maxFeePerGas?: bigint;
|
|
1028
|
+
maxPriorityFeePerGas?: bigint;
|
|
1029
|
+
nonce?: number;
|
|
1030
|
+
value?: bigint;
|
|
1031
|
+
}): Promise<`0x${string}`>;
|
|
1032
|
+
/**
|
|
1033
|
+
* distributeLockOldToken
|
|
1034
|
+
* nonpayable
|
|
1035
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1036
|
+
*/
|
|
1037
|
+
distributeLockOldToken(receivers: `0x${string}`[], options?: {
|
|
1038
|
+
accessList?: import('viem').AccessList;
|
|
1039
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1040
|
+
chain?: import('viem').Chain | null;
|
|
1041
|
+
dataSuffix?: `0x${string}`;
|
|
1042
|
+
gas?: bigint;
|
|
1043
|
+
gasPrice?: bigint;
|
|
1044
|
+
maxFeePerGas?: bigint;
|
|
1045
|
+
maxPriorityFeePerGas?: bigint;
|
|
1046
|
+
nonce?: number;
|
|
1047
|
+
value?: bigint;
|
|
1048
|
+
}): Promise<`0x${string}`>;
|
|
1049
|
+
/**
|
|
1050
|
+
* distributeMint
|
|
1051
|
+
* nonpayable
|
|
1052
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1053
|
+
*/
|
|
1054
|
+
distributeMint(receivers: `0x${string}`[], balances: bigint[], options?: {
|
|
1055
|
+
accessList?: import('viem').AccessList;
|
|
1056
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1057
|
+
chain?: import('viem').Chain | null;
|
|
1058
|
+
dataSuffix?: `0x${string}`;
|
|
1059
|
+
gas?: bigint;
|
|
1060
|
+
gasPrice?: bigint;
|
|
1061
|
+
maxFeePerGas?: bigint;
|
|
1062
|
+
maxPriorityFeePerGas?: bigint;
|
|
1063
|
+
nonce?: number;
|
|
1064
|
+
value?: bigint;
|
|
1065
|
+
}): Promise<`0x${string}`>;
|
|
1066
|
+
/**
|
|
1067
|
+
* finalFuncLock
|
|
1068
|
+
* nonpayable
|
|
1069
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1070
|
+
*/
|
|
1071
|
+
finalFuncLock(lock: `0x${string}`, options?: {
|
|
1072
|
+
accessList?: import('viem').AccessList;
|
|
1073
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1074
|
+
chain?: import('viem').Chain | null;
|
|
1075
|
+
dataSuffix?: `0x${string}`;
|
|
1076
|
+
gas?: bigint;
|
|
1077
|
+
gasPrice?: bigint;
|
|
1078
|
+
maxFeePerGas?: bigint;
|
|
1079
|
+
maxPriorityFeePerGas?: bigint;
|
|
1080
|
+
nonce?: number;
|
|
1081
|
+
value?: bigint;
|
|
1082
|
+
}): Promise<`0x${string}`>;
|
|
1083
|
+
/**
|
|
1084
|
+
* grantRole
|
|
1085
|
+
* nonpayable
|
|
1086
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1087
|
+
*/
|
|
1088
|
+
grantRole(role: `0x${string}`, account: `0x${string}`, options?: {
|
|
1089
|
+
accessList?: import('viem').AccessList;
|
|
1090
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1091
|
+
chain?: import('viem').Chain | null;
|
|
1092
|
+
dataSuffix?: `0x${string}`;
|
|
1093
|
+
gas?: bigint;
|
|
1094
|
+
gasPrice?: bigint;
|
|
1095
|
+
maxFeePerGas?: bigint;
|
|
1096
|
+
maxPriorityFeePerGas?: bigint;
|
|
1097
|
+
nonce?: number;
|
|
1098
|
+
value?: bigint;
|
|
1099
|
+
}): Promise<`0x${string}`>;
|
|
1100
|
+
/**
|
|
1101
|
+
* increaseAllowance
|
|
1102
|
+
* nonpayable
|
|
1103
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1104
|
+
*/
|
|
1105
|
+
increaseAllowance(spender: `0x${string}`, addedValue: bigint, options?: {
|
|
1106
|
+
accessList?: import('viem').AccessList;
|
|
1107
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1108
|
+
chain?: import('viem').Chain | null;
|
|
1109
|
+
dataSuffix?: `0x${string}`;
|
|
1110
|
+
gas?: bigint;
|
|
1111
|
+
gasPrice?: bigint;
|
|
1112
|
+
maxFeePerGas?: bigint;
|
|
1113
|
+
maxPriorityFeePerGas?: bigint;
|
|
1114
|
+
nonce?: number;
|
|
1115
|
+
value?: bigint;
|
|
1116
|
+
}): Promise<`0x${string}`>;
|
|
1117
|
+
/**
|
|
1118
|
+
* registerCallback
|
|
1119
|
+
* nonpayable
|
|
1120
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1121
|
+
*/
|
|
1122
|
+
registerCallback(callback: `0x${string}`, options?: {
|
|
1123
|
+
accessList?: import('viem').AccessList;
|
|
1124
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1125
|
+
chain?: import('viem').Chain | null;
|
|
1126
|
+
dataSuffix?: `0x${string}`;
|
|
1127
|
+
gas?: bigint;
|
|
1128
|
+
gasPrice?: bigint;
|
|
1129
|
+
maxFeePerGas?: bigint;
|
|
1130
|
+
maxPriorityFeePerGas?: bigint;
|
|
1131
|
+
nonce?: number;
|
|
1132
|
+
value?: bigint;
|
|
1133
|
+
}): Promise<`0x${string}`>;
|
|
1134
|
+
/**
|
|
1135
|
+
* renounceRole
|
|
1136
|
+
* nonpayable
|
|
1137
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1138
|
+
*/
|
|
1139
|
+
renounceRole(role: `0x${string}`, account: `0x${string}`, options?: {
|
|
1140
|
+
accessList?: import('viem').AccessList;
|
|
1141
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1142
|
+
chain?: import('viem').Chain | null;
|
|
1143
|
+
dataSuffix?: `0x${string}`;
|
|
1144
|
+
gas?: bigint;
|
|
1145
|
+
gasPrice?: bigint;
|
|
1146
|
+
maxFeePerGas?: bigint;
|
|
1147
|
+
maxPriorityFeePerGas?: bigint;
|
|
1148
|
+
nonce?: number;
|
|
1149
|
+
value?: bigint;
|
|
1150
|
+
}): Promise<`0x${string}`>;
|
|
1151
|
+
/**
|
|
1152
|
+
* retrieveTokens
|
|
1153
|
+
* nonpayable
|
|
1154
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1155
|
+
*/
|
|
1156
|
+
retrieveTokens(to: `0x${string}`, anotherToken: `0x${string}`, options?: {
|
|
1157
|
+
accessList?: import('viem').AccessList;
|
|
1158
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1159
|
+
chain?: import('viem').Chain | null;
|
|
1160
|
+
dataSuffix?: `0x${string}`;
|
|
1161
|
+
gas?: bigint;
|
|
1162
|
+
gasPrice?: bigint;
|
|
1163
|
+
maxFeePerGas?: bigint;
|
|
1164
|
+
maxPriorityFeePerGas?: bigint;
|
|
1165
|
+
nonce?: number;
|
|
1166
|
+
value?: bigint;
|
|
1167
|
+
}): Promise<`0x${string}`>;
|
|
1168
|
+
/**
|
|
1169
|
+
* revokeRole
|
|
1170
|
+
* nonpayable
|
|
1171
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1172
|
+
*/
|
|
1173
|
+
revokeRole(role: `0x${string}`, account: `0x${string}`, options?: {
|
|
1174
|
+
accessList?: import('viem').AccessList;
|
|
1175
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1176
|
+
chain?: import('viem').Chain | null;
|
|
1177
|
+
dataSuffix?: `0x${string}`;
|
|
1178
|
+
gas?: bigint;
|
|
1179
|
+
gasPrice?: bigint;
|
|
1180
|
+
maxFeePerGas?: bigint;
|
|
1181
|
+
maxPriorityFeePerGas?: bigint;
|
|
1182
|
+
nonce?: number;
|
|
1183
|
+
value?: bigint;
|
|
1184
|
+
}): Promise<`0x${string}`>;
|
|
1185
|
+
/**
|
|
1186
|
+
* setOldCOVToken
|
|
1187
|
+
* nonpayable
|
|
1188
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1189
|
+
*/
|
|
1190
|
+
setOldCOVToken(oldCOVTokenAddress: `0x${string}`, options?: {
|
|
1191
|
+
accessList?: import('viem').AccessList;
|
|
1192
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1193
|
+
chain?: import('viem').Chain | null;
|
|
1194
|
+
dataSuffix?: `0x${string}`;
|
|
1195
|
+
gas?: bigint;
|
|
1196
|
+
gasPrice?: bigint;
|
|
1197
|
+
maxFeePerGas?: bigint;
|
|
1198
|
+
maxPriorityFeePerGas?: bigint;
|
|
1199
|
+
nonce?: number;
|
|
1200
|
+
value?: bigint;
|
|
1201
|
+
}): Promise<`0x${string}`>;
|
|
1202
|
+
/**
|
|
1203
|
+
* setTempFuncLock
|
|
1204
|
+
* nonpayable
|
|
1205
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1206
|
+
*/
|
|
1207
|
+
setTempFuncLock(lock: `0x${string}`, status: boolean, options?: {
|
|
1208
|
+
accessList?: import('viem').AccessList;
|
|
1209
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1210
|
+
chain?: import('viem').Chain | null;
|
|
1211
|
+
dataSuffix?: `0x${string}`;
|
|
1212
|
+
gas?: bigint;
|
|
1213
|
+
gasPrice?: bigint;
|
|
1214
|
+
maxFeePerGas?: bigint;
|
|
1215
|
+
maxPriorityFeePerGas?: bigint;
|
|
1216
|
+
nonce?: number;
|
|
1217
|
+
value?: bigint;
|
|
1218
|
+
}): Promise<`0x${string}`>;
|
|
1219
|
+
/**
|
|
1220
|
+
* transfer
|
|
1221
|
+
* nonpayable
|
|
1222
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1223
|
+
*/
|
|
1224
|
+
transfer(recipient: `0x${string}`, amount: bigint, options?: {
|
|
1225
|
+
accessList?: import('viem').AccessList;
|
|
1226
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1227
|
+
chain?: import('viem').Chain | null;
|
|
1228
|
+
dataSuffix?: `0x${string}`;
|
|
1229
|
+
gas?: bigint;
|
|
1230
|
+
gasPrice?: bigint;
|
|
1231
|
+
maxFeePerGas?: bigint;
|
|
1232
|
+
maxPriorityFeePerGas?: bigint;
|
|
1233
|
+
nonce?: number;
|
|
1234
|
+
value?: bigint;
|
|
1235
|
+
}): Promise<`0x${string}`>;
|
|
1236
|
+
/**
|
|
1237
|
+
* transferFrom
|
|
1238
|
+
* nonpayable
|
|
1239
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1240
|
+
*/
|
|
1241
|
+
transferFrom(sender: `0x${string}`, recipient: `0x${string}`, amount: bigint, options?: {
|
|
1242
|
+
accessList?: import('viem').AccessList;
|
|
1243
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1244
|
+
chain?: import('viem').Chain | null;
|
|
1245
|
+
dataSuffix?: `0x${string}`;
|
|
1246
|
+
gas?: bigint;
|
|
1247
|
+
gasPrice?: bigint;
|
|
1248
|
+
maxFeePerGas?: bigint;
|
|
1249
|
+
maxPriorityFeePerGas?: bigint;
|
|
1250
|
+
nonce?: number;
|
|
1251
|
+
value?: bigint;
|
|
1252
|
+
}): Promise<`0x${string}`>;
|
|
1253
|
+
/**
|
|
1254
|
+
* Simulate contract write operations (dry-run without sending transaction)
|
|
1255
|
+
*
|
|
1256
|
+
* @example
|
|
1257
|
+
* const result = await contract.simulate.transfer('0x...', 1000n);
|
|
1258
|
+
* console.log('Gas estimate:', result.request.gas);
|
|
1259
|
+
* console.log('Would succeed:', result.result);
|
|
1260
|
+
*/
|
|
1261
|
+
get simulate(): {
|
|
1262
|
+
/**
|
|
1263
|
+
* Simulate adminBurn
|
|
1264
|
+
* Returns gas estimate and result without sending transaction
|
|
1265
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1266
|
+
*/
|
|
1267
|
+
adminBurn(account: `0x${string}`, amount: bigint, options?: {
|
|
1268
|
+
accessList?: import("viem").AccessList;
|
|
1269
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1270
|
+
chain?: import("viem").Chain | null;
|
|
1271
|
+
dataSuffix?: `0x${string}`;
|
|
1272
|
+
gas?: bigint;
|
|
1273
|
+
gasPrice?: bigint;
|
|
1274
|
+
maxFeePerGas?: bigint;
|
|
1275
|
+
maxPriorityFeePerGas?: bigint;
|
|
1276
|
+
nonce?: number;
|
|
1277
|
+
value?: bigint;
|
|
1278
|
+
}): Promise<void>;
|
|
1279
|
+
/**
|
|
1280
|
+
* Simulate adminMint
|
|
1281
|
+
* Returns gas estimate and result without sending transaction
|
|
1282
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1283
|
+
*/
|
|
1284
|
+
adminMint(account: `0x${string}`, amount: bigint, options?: {
|
|
1285
|
+
accessList?: import("viem").AccessList;
|
|
1286
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1287
|
+
chain?: import("viem").Chain | null;
|
|
1288
|
+
dataSuffix?: `0x${string}`;
|
|
1289
|
+
gas?: bigint;
|
|
1290
|
+
gasPrice?: bigint;
|
|
1291
|
+
maxFeePerGas?: bigint;
|
|
1292
|
+
maxPriorityFeePerGas?: bigint;
|
|
1293
|
+
nonce?: number;
|
|
1294
|
+
value?: bigint;
|
|
1295
|
+
}): Promise<void>;
|
|
1296
|
+
/**
|
|
1297
|
+
* Simulate adminTimelockTransfer
|
|
1298
|
+
* Returns gas estimate and result without sending transaction
|
|
1299
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1300
|
+
*/
|
|
1301
|
+
adminTimelockTransfer(account: `0x${string}`, periodInDays: bigint, options?: {
|
|
1302
|
+
accessList?: import("viem").AccessList;
|
|
1303
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1304
|
+
chain?: import("viem").Chain | null;
|
|
1305
|
+
dataSuffix?: `0x${string}`;
|
|
1306
|
+
gas?: bigint;
|
|
1307
|
+
gasPrice?: bigint;
|
|
1308
|
+
maxFeePerGas?: bigint;
|
|
1309
|
+
maxPriorityFeePerGas?: bigint;
|
|
1310
|
+
nonce?: number;
|
|
1311
|
+
value?: bigint;
|
|
1312
|
+
}): Promise<void>;
|
|
1313
|
+
/**
|
|
1314
|
+
* Simulate approve
|
|
1315
|
+
* Returns gas estimate and result without sending transaction
|
|
1316
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1317
|
+
*/
|
|
1318
|
+
approve(spender: `0x${string}`, amount: bigint, options?: {
|
|
1319
|
+
accessList?: import("viem").AccessList;
|
|
1320
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1321
|
+
chain?: import("viem").Chain | null;
|
|
1322
|
+
dataSuffix?: `0x${string}`;
|
|
1323
|
+
gas?: bigint;
|
|
1324
|
+
gasPrice?: bigint;
|
|
1325
|
+
maxFeePerGas?: bigint;
|
|
1326
|
+
maxPriorityFeePerGas?: bigint;
|
|
1327
|
+
nonce?: number;
|
|
1328
|
+
value?: bigint;
|
|
1329
|
+
}): Promise<boolean>;
|
|
1330
|
+
/**
|
|
1331
|
+
* Simulate burn
|
|
1332
|
+
* Returns gas estimate and result without sending transaction
|
|
1333
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1334
|
+
*/
|
|
1335
|
+
burn(amount: bigint, options?: {
|
|
1336
|
+
accessList?: import("viem").AccessList;
|
|
1337
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1338
|
+
chain?: import("viem").Chain | null;
|
|
1339
|
+
dataSuffix?: `0x${string}`;
|
|
1340
|
+
gas?: bigint;
|
|
1341
|
+
gasPrice?: bigint;
|
|
1342
|
+
maxFeePerGas?: bigint;
|
|
1343
|
+
maxPriorityFeePerGas?: bigint;
|
|
1344
|
+
nonce?: number;
|
|
1345
|
+
value?: bigint;
|
|
1346
|
+
}): Promise<void>;
|
|
1347
|
+
/**
|
|
1348
|
+
* Simulate burnFrom
|
|
1349
|
+
* Returns gas estimate and result without sending transaction
|
|
1350
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1351
|
+
*/
|
|
1352
|
+
burnFrom(account: `0x${string}`, amount: bigint, options?: {
|
|
1353
|
+
accessList?: import("viem").AccessList;
|
|
1354
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1355
|
+
chain?: import("viem").Chain | null;
|
|
1356
|
+
dataSuffix?: `0x${string}`;
|
|
1357
|
+
gas?: bigint;
|
|
1358
|
+
gasPrice?: bigint;
|
|
1359
|
+
maxFeePerGas?: bigint;
|
|
1360
|
+
maxPriorityFeePerGas?: bigint;
|
|
1361
|
+
nonce?: number;
|
|
1362
|
+
value?: bigint;
|
|
1363
|
+
}): Promise<void>;
|
|
1364
|
+
/**
|
|
1365
|
+
* Simulate decreaseAllowance
|
|
1366
|
+
* Returns gas estimate and result without sending transaction
|
|
1367
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1368
|
+
*/
|
|
1369
|
+
decreaseAllowance(spender: `0x${string}`, subtractedValue: bigint, options?: {
|
|
1370
|
+
accessList?: import("viem").AccessList;
|
|
1371
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1372
|
+
chain?: import("viem").Chain | null;
|
|
1373
|
+
dataSuffix?: `0x${string}`;
|
|
1374
|
+
gas?: bigint;
|
|
1375
|
+
gasPrice?: bigint;
|
|
1376
|
+
maxFeePerGas?: bigint;
|
|
1377
|
+
maxPriorityFeePerGas?: bigint;
|
|
1378
|
+
nonce?: number;
|
|
1379
|
+
value?: bigint;
|
|
1380
|
+
}): Promise<boolean>;
|
|
1381
|
+
/**
|
|
1382
|
+
* Simulate deregisterCallback
|
|
1383
|
+
* Returns gas estimate and result without sending transaction
|
|
1384
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1385
|
+
*/
|
|
1386
|
+
deregisterCallback(options?: {
|
|
1387
|
+
accessList?: import("viem").AccessList;
|
|
1388
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1389
|
+
chain?: import("viem").Chain | null;
|
|
1390
|
+
dataSuffix?: `0x${string}`;
|
|
1391
|
+
gas?: bigint;
|
|
1392
|
+
gasPrice?: bigint;
|
|
1393
|
+
maxFeePerGas?: bigint;
|
|
1394
|
+
maxPriorityFeePerGas?: bigint;
|
|
1395
|
+
nonce?: number;
|
|
1396
|
+
value?: bigint;
|
|
1397
|
+
}): Promise<void>;
|
|
1398
|
+
/**
|
|
1399
|
+
* Simulate distributeLockOldToken
|
|
1400
|
+
* Returns gas estimate and result without sending transaction
|
|
1401
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1402
|
+
*/
|
|
1403
|
+
distributeLockOldToken(receivers: `0x${string}`[], options?: {
|
|
1404
|
+
accessList?: import("viem").AccessList;
|
|
1405
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1406
|
+
chain?: import("viem").Chain | null;
|
|
1407
|
+
dataSuffix?: `0x${string}`;
|
|
1408
|
+
gas?: bigint;
|
|
1409
|
+
gasPrice?: bigint;
|
|
1410
|
+
maxFeePerGas?: bigint;
|
|
1411
|
+
maxPriorityFeePerGas?: bigint;
|
|
1412
|
+
nonce?: number;
|
|
1413
|
+
value?: bigint;
|
|
1414
|
+
}): Promise<void>;
|
|
1415
|
+
/**
|
|
1416
|
+
* Simulate distributeMint
|
|
1417
|
+
* Returns gas estimate and result without sending transaction
|
|
1418
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1419
|
+
*/
|
|
1420
|
+
distributeMint(receivers: `0x${string}`[], balances: bigint[], options?: {
|
|
1421
|
+
accessList?: import("viem").AccessList;
|
|
1422
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1423
|
+
chain?: import("viem").Chain | null;
|
|
1424
|
+
dataSuffix?: `0x${string}`;
|
|
1425
|
+
gas?: bigint;
|
|
1426
|
+
gasPrice?: bigint;
|
|
1427
|
+
maxFeePerGas?: bigint;
|
|
1428
|
+
maxPriorityFeePerGas?: bigint;
|
|
1429
|
+
nonce?: number;
|
|
1430
|
+
value?: bigint;
|
|
1431
|
+
}): Promise<void>;
|
|
1432
|
+
/**
|
|
1433
|
+
* Simulate finalFuncLock
|
|
1434
|
+
* Returns gas estimate and result without sending transaction
|
|
1435
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1436
|
+
*/
|
|
1437
|
+
finalFuncLock(lock: `0x${string}`, options?: {
|
|
1438
|
+
accessList?: import("viem").AccessList;
|
|
1439
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1440
|
+
chain?: import("viem").Chain | null;
|
|
1441
|
+
dataSuffix?: `0x${string}`;
|
|
1442
|
+
gas?: bigint;
|
|
1443
|
+
gasPrice?: bigint;
|
|
1444
|
+
maxFeePerGas?: bigint;
|
|
1445
|
+
maxPriorityFeePerGas?: bigint;
|
|
1446
|
+
nonce?: number;
|
|
1447
|
+
value?: bigint;
|
|
1448
|
+
}): Promise<void>;
|
|
1449
|
+
/**
|
|
1450
|
+
* Simulate grantRole
|
|
1451
|
+
* Returns gas estimate and result without sending transaction
|
|
1452
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1453
|
+
*/
|
|
1454
|
+
grantRole(role: `0x${string}`, account: `0x${string}`, options?: {
|
|
1455
|
+
accessList?: import("viem").AccessList;
|
|
1456
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1457
|
+
chain?: import("viem").Chain | null;
|
|
1458
|
+
dataSuffix?: `0x${string}`;
|
|
1459
|
+
gas?: bigint;
|
|
1460
|
+
gasPrice?: bigint;
|
|
1461
|
+
maxFeePerGas?: bigint;
|
|
1462
|
+
maxPriorityFeePerGas?: bigint;
|
|
1463
|
+
nonce?: number;
|
|
1464
|
+
value?: bigint;
|
|
1465
|
+
}): Promise<void>;
|
|
1466
|
+
/**
|
|
1467
|
+
* Simulate increaseAllowance
|
|
1468
|
+
* Returns gas estimate and result without sending transaction
|
|
1469
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1470
|
+
*/
|
|
1471
|
+
increaseAllowance(spender: `0x${string}`, addedValue: bigint, options?: {
|
|
1472
|
+
accessList?: import("viem").AccessList;
|
|
1473
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1474
|
+
chain?: import("viem").Chain | null;
|
|
1475
|
+
dataSuffix?: `0x${string}`;
|
|
1476
|
+
gas?: bigint;
|
|
1477
|
+
gasPrice?: bigint;
|
|
1478
|
+
maxFeePerGas?: bigint;
|
|
1479
|
+
maxPriorityFeePerGas?: bigint;
|
|
1480
|
+
nonce?: number;
|
|
1481
|
+
value?: bigint;
|
|
1482
|
+
}): Promise<boolean>;
|
|
1483
|
+
/**
|
|
1484
|
+
* Simulate registerCallback
|
|
1485
|
+
* Returns gas estimate and result without sending transaction
|
|
1486
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1487
|
+
*/
|
|
1488
|
+
registerCallback(callback: `0x${string}`, options?: {
|
|
1489
|
+
accessList?: import("viem").AccessList;
|
|
1490
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1491
|
+
chain?: import("viem").Chain | null;
|
|
1492
|
+
dataSuffix?: `0x${string}`;
|
|
1493
|
+
gas?: bigint;
|
|
1494
|
+
gasPrice?: bigint;
|
|
1495
|
+
maxFeePerGas?: bigint;
|
|
1496
|
+
maxPriorityFeePerGas?: bigint;
|
|
1497
|
+
nonce?: number;
|
|
1498
|
+
value?: bigint;
|
|
1499
|
+
}): Promise<void>;
|
|
1500
|
+
/**
|
|
1501
|
+
* Simulate renounceRole
|
|
1502
|
+
* Returns gas estimate and result without sending transaction
|
|
1503
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1504
|
+
*/
|
|
1505
|
+
renounceRole(role: `0x${string}`, account: `0x${string}`, options?: {
|
|
1506
|
+
accessList?: import("viem").AccessList;
|
|
1507
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1508
|
+
chain?: import("viem").Chain | null;
|
|
1509
|
+
dataSuffix?: `0x${string}`;
|
|
1510
|
+
gas?: bigint;
|
|
1511
|
+
gasPrice?: bigint;
|
|
1512
|
+
maxFeePerGas?: bigint;
|
|
1513
|
+
maxPriorityFeePerGas?: bigint;
|
|
1514
|
+
nonce?: number;
|
|
1515
|
+
value?: bigint;
|
|
1516
|
+
}): Promise<void>;
|
|
1517
|
+
/**
|
|
1518
|
+
* Simulate retrieveTokens
|
|
1519
|
+
* Returns gas estimate and result without sending transaction
|
|
1520
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1521
|
+
*/
|
|
1522
|
+
retrieveTokens(to: `0x${string}`, anotherToken: `0x${string}`, options?: {
|
|
1523
|
+
accessList?: import("viem").AccessList;
|
|
1524
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1525
|
+
chain?: import("viem").Chain | null;
|
|
1526
|
+
dataSuffix?: `0x${string}`;
|
|
1527
|
+
gas?: bigint;
|
|
1528
|
+
gasPrice?: bigint;
|
|
1529
|
+
maxFeePerGas?: bigint;
|
|
1530
|
+
maxPriorityFeePerGas?: bigint;
|
|
1531
|
+
nonce?: number;
|
|
1532
|
+
value?: bigint;
|
|
1533
|
+
}): Promise<void>;
|
|
1534
|
+
/**
|
|
1535
|
+
* Simulate revokeRole
|
|
1536
|
+
* Returns gas estimate and result without sending transaction
|
|
1537
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1538
|
+
*/
|
|
1539
|
+
revokeRole(role: `0x${string}`, account: `0x${string}`, options?: {
|
|
1540
|
+
accessList?: import("viem").AccessList;
|
|
1541
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1542
|
+
chain?: import("viem").Chain | null;
|
|
1543
|
+
dataSuffix?: `0x${string}`;
|
|
1544
|
+
gas?: bigint;
|
|
1545
|
+
gasPrice?: bigint;
|
|
1546
|
+
maxFeePerGas?: bigint;
|
|
1547
|
+
maxPriorityFeePerGas?: bigint;
|
|
1548
|
+
nonce?: number;
|
|
1549
|
+
value?: bigint;
|
|
1550
|
+
}): Promise<void>;
|
|
1551
|
+
/**
|
|
1552
|
+
* Simulate setOldCOVToken
|
|
1553
|
+
* Returns gas estimate and result without sending transaction
|
|
1554
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1555
|
+
*/
|
|
1556
|
+
setOldCOVToken(oldCOVTokenAddress: `0x${string}`, options?: {
|
|
1557
|
+
accessList?: import("viem").AccessList;
|
|
1558
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1559
|
+
chain?: import("viem").Chain | null;
|
|
1560
|
+
dataSuffix?: `0x${string}`;
|
|
1561
|
+
gas?: bigint;
|
|
1562
|
+
gasPrice?: bigint;
|
|
1563
|
+
maxFeePerGas?: bigint;
|
|
1564
|
+
maxPriorityFeePerGas?: bigint;
|
|
1565
|
+
nonce?: number;
|
|
1566
|
+
value?: bigint;
|
|
1567
|
+
}): Promise<void>;
|
|
1568
|
+
/**
|
|
1569
|
+
* Simulate setTempFuncLock
|
|
1570
|
+
* Returns gas estimate and result without sending transaction
|
|
1571
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1572
|
+
*/
|
|
1573
|
+
setTempFuncLock(lock: `0x${string}`, status: boolean, options?: {
|
|
1574
|
+
accessList?: import("viem").AccessList;
|
|
1575
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1576
|
+
chain?: import("viem").Chain | null;
|
|
1577
|
+
dataSuffix?: `0x${string}`;
|
|
1578
|
+
gas?: bigint;
|
|
1579
|
+
gasPrice?: bigint;
|
|
1580
|
+
maxFeePerGas?: bigint;
|
|
1581
|
+
maxPriorityFeePerGas?: bigint;
|
|
1582
|
+
nonce?: number;
|
|
1583
|
+
value?: bigint;
|
|
1584
|
+
}): Promise<void>;
|
|
1585
|
+
/**
|
|
1586
|
+
* Simulate transfer
|
|
1587
|
+
* Returns gas estimate and result without sending transaction
|
|
1588
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1589
|
+
*/
|
|
1590
|
+
transfer(recipient: `0x${string}`, amount: bigint, options?: {
|
|
1591
|
+
accessList?: import("viem").AccessList;
|
|
1592
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1593
|
+
chain?: import("viem").Chain | null;
|
|
1594
|
+
dataSuffix?: `0x${string}`;
|
|
1595
|
+
gas?: bigint;
|
|
1596
|
+
gasPrice?: bigint;
|
|
1597
|
+
maxFeePerGas?: bigint;
|
|
1598
|
+
maxPriorityFeePerGas?: bigint;
|
|
1599
|
+
nonce?: number;
|
|
1600
|
+
value?: bigint;
|
|
1601
|
+
}): Promise<boolean>;
|
|
1602
|
+
/**
|
|
1603
|
+
* Simulate transferFrom
|
|
1604
|
+
* Returns gas estimate and result without sending transaction
|
|
1605
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1606
|
+
*/
|
|
1607
|
+
transferFrom(sender: `0x${string}`, recipient: `0x${string}`, amount: bigint, options?: {
|
|
1608
|
+
accessList?: import("viem").AccessList;
|
|
1609
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1610
|
+
chain?: import("viem").Chain | null;
|
|
1611
|
+
dataSuffix?: `0x${string}`;
|
|
1612
|
+
gas?: bigint;
|
|
1613
|
+
gasPrice?: bigint;
|
|
1614
|
+
maxFeePerGas?: bigint;
|
|
1615
|
+
maxPriorityFeePerGas?: bigint;
|
|
1616
|
+
nonce?: number;
|
|
1617
|
+
value?: bigint;
|
|
1618
|
+
}): Promise<boolean>;
|
|
1619
|
+
};
|
|
1620
|
+
/**
|
|
1621
|
+
* Watch contract events
|
|
1622
|
+
*
|
|
1623
|
+
* @example
|
|
1624
|
+
* // Watch all Transfer events
|
|
1625
|
+
* const unwatch = contract.watch.Transfer((event) => {
|
|
1626
|
+
* console.log('Transfer:', event);
|
|
1627
|
+
* });
|
|
1628
|
+
*
|
|
1629
|
+
* // Stop watching
|
|
1630
|
+
* unwatch();
|
|
1631
|
+
*/
|
|
1632
|
+
get watch(): {
|
|
1633
|
+
/**
|
|
1634
|
+
* Watch Approval events
|
|
1635
|
+
* @param callback Function to call when event is emitted
|
|
1636
|
+
* @param filter Optional filter for indexed parameters
|
|
1637
|
+
* @returns Unwatch function to stop listening
|
|
1638
|
+
*/
|
|
1639
|
+
Approval: (callback: (event: {
|
|
1640
|
+
owner: `0x${string}`;
|
|
1641
|
+
spender: `0x${string}`;
|
|
1642
|
+
value: bigint;
|
|
1643
|
+
}) => void, filter?: {
|
|
1644
|
+
owner: `0x${string}`;
|
|
1645
|
+
spender: `0x${string}`;
|
|
1646
|
+
}) => () => void;
|
|
1647
|
+
/**
|
|
1648
|
+
* Watch RoleAdminChanged events
|
|
1649
|
+
* @param callback Function to call when event is emitted
|
|
1650
|
+
* @param filter Optional filter for indexed parameters
|
|
1651
|
+
* @returns Unwatch function to stop listening
|
|
1652
|
+
*/
|
|
1653
|
+
RoleAdminChanged: (callback: (event: {
|
|
1654
|
+
role: `0x${string}`;
|
|
1655
|
+
previousAdminRole: `0x${string}`;
|
|
1656
|
+
newAdminRole: `0x${string}`;
|
|
1657
|
+
}) => void, filter?: {
|
|
1658
|
+
role: `0x${string}`;
|
|
1659
|
+
previousAdminRole: `0x${string}`;
|
|
1660
|
+
newAdminRole: `0x${string}`;
|
|
1661
|
+
}) => () => void;
|
|
1662
|
+
/**
|
|
1663
|
+
* Watch RoleGranted events
|
|
1664
|
+
* @param callback Function to call when event is emitted
|
|
1665
|
+
* @param filter Optional filter for indexed parameters
|
|
1666
|
+
* @returns Unwatch function to stop listening
|
|
1667
|
+
*/
|
|
1668
|
+
RoleGranted: (callback: (event: {
|
|
1669
|
+
role: `0x${string}`;
|
|
1670
|
+
account: `0x${string}`;
|
|
1671
|
+
sender: `0x${string}`;
|
|
1672
|
+
}) => void, filter?: {
|
|
1673
|
+
role: `0x${string}`;
|
|
1674
|
+
account: `0x${string}`;
|
|
1675
|
+
sender: `0x${string}`;
|
|
1676
|
+
}) => () => void;
|
|
1677
|
+
/**
|
|
1678
|
+
* Watch RoleRevoked events
|
|
1679
|
+
* @param callback Function to call when event is emitted
|
|
1680
|
+
* @param filter Optional filter for indexed parameters
|
|
1681
|
+
* @returns Unwatch function to stop listening
|
|
1682
|
+
*/
|
|
1683
|
+
RoleRevoked: (callback: (event: {
|
|
1684
|
+
role: `0x${string}`;
|
|
1685
|
+
account: `0x${string}`;
|
|
1686
|
+
sender: `0x${string}`;
|
|
1687
|
+
}) => void, filter?: {
|
|
1688
|
+
role: `0x${string}`;
|
|
1689
|
+
account: `0x${string}`;
|
|
1690
|
+
sender: `0x${string}`;
|
|
1691
|
+
}) => () => void;
|
|
1692
|
+
/**
|
|
1693
|
+
* Watch Transfer events
|
|
1694
|
+
* @param callback Function to call when event is emitted
|
|
1695
|
+
* @param filter Optional filter for indexed parameters
|
|
1696
|
+
* @returns Unwatch function to stop listening
|
|
1697
|
+
*/
|
|
1698
|
+
Transfer: (callback: (event: {
|
|
1699
|
+
from: `0x${string}`;
|
|
1700
|
+
to: `0x${string}`;
|
|
1701
|
+
value: bigint;
|
|
1702
|
+
}) => void, filter?: {
|
|
1703
|
+
from: `0x${string}`;
|
|
1704
|
+
to: `0x${string}`;
|
|
1705
|
+
}) => () => void;
|
|
1706
|
+
};
|
|
1707
|
+
}
|