@gitmyabi/cap 1.0.0 → 1.0.1

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.
@@ -1,238 +1,114 @@
1
1
  import type { Address, PublicClient, WalletClient } from 'viem';
2
2
  /**
3
- * Token_json ABI
3
+ * CAPToken ABI
4
4
  *
5
5
  * This ABI is typed using viem's type system for full type safety.
6
6
  */
7
- export declare const Token_jsonAbi: readonly [{
8
- readonly inputs: readonly [];
9
- readonly stateMutability: "nonpayable";
10
- readonly type: "constructor";
11
- }, {
12
- readonly inputs: readonly [{
13
- readonly internalType: "address";
14
- readonly name: "target";
15
- readonly type: "address";
16
- }];
17
- readonly name: "AddressEmptyCode";
18
- readonly type: "error";
19
- }, {
20
- readonly inputs: readonly [];
21
- readonly name: "ECDSAInvalidSignature";
22
- readonly type: "error";
23
- }, {
24
- readonly inputs: readonly [{
25
- readonly internalType: "uint256";
26
- readonly name: "length";
27
- readonly type: "uint256";
28
- }];
29
- readonly name: "ECDSAInvalidSignatureLength";
30
- readonly type: "error";
31
- }, {
7
+ export declare const CAPTokenAbi: readonly [{
32
8
  readonly inputs: readonly [{
33
- readonly internalType: "bytes32";
34
- readonly name: "s";
35
- readonly type: "bytes32";
36
- }];
37
- readonly name: "ECDSAInvalidSignatureS";
38
- readonly type: "error";
39
- }, {
40
- readonly inputs: readonly [{
41
- readonly internalType: "address";
42
- readonly name: "implementation";
43
- readonly type: "address";
44
- }];
45
- readonly name: "ERC1967InvalidImplementation";
46
- readonly type: "error";
47
- }, {
48
- readonly inputs: readonly [];
49
- readonly name: "ERC1967NonPayable";
50
- readonly type: "error";
51
- }, {
52
- readonly inputs: readonly [{
53
- readonly internalType: "address";
54
- readonly name: "spender";
55
- readonly type: "address";
9
+ readonly internalType: "string";
10
+ readonly name: "name";
11
+ readonly type: "string";
56
12
  }, {
57
- readonly internalType: "uint256";
58
- readonly name: "allowance";
59
- readonly type: "uint256";
13
+ readonly internalType: "string";
14
+ readonly name: "symbol";
15
+ readonly type: "string";
60
16
  }, {
61
17
  readonly internalType: "uint256";
62
- readonly name: "needed";
18
+ readonly name: "cap";
63
19
  readonly type: "uint256";
64
20
  }];
65
- readonly name: "ERC20InsufficientAllowance";
66
- readonly type: "error";
21
+ readonly stateMutability: "nonpayable";
22
+ readonly type: "constructor";
67
23
  }, {
24
+ readonly anonymous: false;
68
25
  readonly inputs: readonly [{
26
+ readonly indexed: true;
69
27
  readonly internalType: "address";
70
- readonly name: "sender";
28
+ readonly name: "owner";
71
29
  readonly type: "address";
72
30
  }, {
73
- readonly internalType: "uint256";
74
- readonly name: "balance";
75
- readonly type: "uint256";
76
- }, {
77
- readonly internalType: "uint256";
78
- readonly name: "needed";
79
- readonly type: "uint256";
80
- }];
81
- readonly name: "ERC20InsufficientBalance";
82
- readonly type: "error";
83
- }, {
84
- readonly inputs: readonly [{
85
- readonly internalType: "address";
86
- readonly name: "approver";
87
- readonly type: "address";
88
- }];
89
- readonly name: "ERC20InvalidApprover";
90
- readonly type: "error";
91
- }, {
92
- readonly inputs: readonly [{
93
- readonly internalType: "address";
94
- readonly name: "receiver";
95
- readonly type: "address";
96
- }];
97
- readonly name: "ERC20InvalidReceiver";
98
- readonly type: "error";
99
- }, {
100
- readonly inputs: readonly [{
101
- readonly internalType: "address";
102
- readonly name: "sender";
103
- readonly type: "address";
104
- }];
105
- readonly name: "ERC20InvalidSender";
106
- readonly type: "error";
107
- }, {
108
- readonly inputs: readonly [{
31
+ readonly indexed: true;
109
32
  readonly internalType: "address";
110
33
  readonly name: "spender";
111
34
  readonly type: "address";
112
- }];
113
- readonly name: "ERC20InvalidSpender";
114
- readonly type: "error";
115
- }, {
116
- readonly inputs: readonly [{
117
- readonly internalType: "uint256";
118
- readonly name: "deadline";
119
- readonly type: "uint256";
120
- }];
121
- readonly name: "ERC2612ExpiredSignature";
122
- readonly type: "error";
123
- }, {
124
- readonly inputs: readonly [{
125
- readonly internalType: "address";
126
- readonly name: "signer";
127
- readonly type: "address";
128
- }, {
129
- readonly internalType: "address";
130
- readonly name: "owner";
131
- readonly type: "address";
132
- }];
133
- readonly name: "ERC2612InvalidSigner";
134
- readonly type: "error";
135
- }, {
136
- readonly inputs: readonly [];
137
- readonly name: "FailedCall";
138
- readonly type: "error";
139
- }, {
140
- readonly inputs: readonly [{
141
- readonly internalType: "address";
142
- readonly name: "account";
143
- readonly type: "address";
144
35
  }, {
36
+ readonly indexed: false;
145
37
  readonly internalType: "uint256";
146
- readonly name: "currentNonce";
38
+ readonly name: "value";
147
39
  readonly type: "uint256";
148
40
  }];
149
- readonly name: "InvalidAccountNonce";
150
- readonly type: "error";
151
- }, {
152
- readonly inputs: readonly [];
153
- readonly name: "InvalidInitialization";
154
- readonly type: "error";
155
- }, {
156
- readonly inputs: readonly [];
157
- readonly name: "NotInitializing";
158
- readonly type: "error";
159
- }, {
160
- readonly inputs: readonly [{
161
- readonly internalType: "address";
162
- readonly name: "owner";
163
- readonly type: "address";
164
- }];
165
- readonly name: "OwnableInvalidOwner";
166
- readonly type: "error";
41
+ readonly name: "Approval";
42
+ readonly type: "event";
167
43
  }, {
44
+ readonly anonymous: false;
168
45
  readonly inputs: readonly [{
46
+ readonly indexed: false;
169
47
  readonly internalType: "address";
170
48
  readonly name: "account";
171
49
  readonly type: "address";
172
50
  }];
173
- readonly name: "OwnableUnauthorizedAccount";
174
- readonly type: "error";
175
- }, {
176
- readonly inputs: readonly [];
177
- readonly name: "UUPSUnauthorizedCallContext";
178
- readonly type: "error";
51
+ readonly name: "Paused";
52
+ readonly type: "event";
179
53
  }, {
54
+ readonly anonymous: false;
180
55
  readonly inputs: readonly [{
56
+ readonly indexed: true;
181
57
  readonly internalType: "bytes32";
182
- readonly name: "slot";
58
+ readonly name: "role";
59
+ readonly type: "bytes32";
60
+ }, {
61
+ readonly indexed: true;
62
+ readonly internalType: "bytes32";
63
+ readonly name: "previousAdminRole";
64
+ readonly type: "bytes32";
65
+ }, {
66
+ readonly indexed: true;
67
+ readonly internalType: "bytes32";
68
+ readonly name: "newAdminRole";
183
69
  readonly type: "bytes32";
184
70
  }];
185
- readonly name: "UUPSUnsupportedProxiableUUID";
186
- readonly type: "error";
71
+ readonly name: "RoleAdminChanged";
72
+ readonly type: "event";
187
73
  }, {
188
74
  readonly anonymous: false;
189
75
  readonly inputs: readonly [{
76
+ readonly indexed: true;
77
+ readonly internalType: "bytes32";
78
+ readonly name: "role";
79
+ readonly type: "bytes32";
80
+ }, {
190
81
  readonly indexed: true;
191
82
  readonly internalType: "address";
192
- readonly name: "owner";
83
+ readonly name: "account";
193
84
  readonly type: "address";
194
85
  }, {
195
86
  readonly indexed: true;
196
87
  readonly internalType: "address";
197
- readonly name: "spender";
88
+ readonly name: "sender";
198
89
  readonly type: "address";
199
- }, {
200
- readonly indexed: false;
201
- readonly internalType: "uint256";
202
- readonly name: "value";
203
- readonly type: "uint256";
204
90
  }];
205
- readonly name: "Approval";
206
- readonly type: "event";
207
- }, {
208
- readonly anonymous: false;
209
- readonly inputs: readonly [];
210
- readonly name: "EIP712DomainChanged";
211
- readonly type: "event";
212
- }, {
213
- readonly anonymous: false;
214
- readonly inputs: readonly [{
215
- readonly indexed: false;
216
- readonly internalType: "uint64";
217
- readonly name: "version";
218
- readonly type: "uint64";
219
- }];
220
- readonly name: "Initialized";
91
+ readonly name: "RoleGranted";
221
92
  readonly type: "event";
222
93
  }, {
223
94
  readonly anonymous: false;
224
95
  readonly inputs: readonly [{
96
+ readonly indexed: true;
97
+ readonly internalType: "bytes32";
98
+ readonly name: "role";
99
+ readonly type: "bytes32";
100
+ }, {
225
101
  readonly indexed: true;
226
102
  readonly internalType: "address";
227
- readonly name: "previousOwner";
103
+ readonly name: "account";
228
104
  readonly type: "address";
229
105
  }, {
230
106
  readonly indexed: true;
231
107
  readonly internalType: "address";
232
- readonly name: "newOwner";
108
+ readonly name: "sender";
233
109
  readonly type: "address";
234
110
  }];
235
- readonly name: "OwnershipTransferred";
111
+ readonly name: "RoleRevoked";
236
112
  readonly type: "event";
237
113
  }, {
238
114
  readonly anonymous: false;
@@ -257,16 +133,16 @@ export declare const Token_jsonAbi: readonly [{
257
133
  }, {
258
134
  readonly anonymous: false;
259
135
  readonly inputs: readonly [{
260
- readonly indexed: true;
136
+ readonly indexed: false;
261
137
  readonly internalType: "address";
262
- readonly name: "implementation";
138
+ readonly name: "account";
263
139
  readonly type: "address";
264
140
  }];
265
- readonly name: "Upgraded";
141
+ readonly name: "Unpaused";
266
142
  readonly type: "event";
267
143
  }, {
268
144
  readonly inputs: readonly [];
269
- readonly name: "DOMAIN_SEPARATOR";
145
+ readonly name: "DEFAULT_ADMIN_ROLE";
270
146
  readonly outputs: readonly [{
271
147
  readonly internalType: "bytes32";
272
148
  readonly name: "";
@@ -276,11 +152,21 @@ export declare const Token_jsonAbi: readonly [{
276
152
  readonly type: "function";
277
153
  }, {
278
154
  readonly inputs: readonly [];
279
- readonly name: "UPGRADE_INTERFACE_VERSION";
155
+ readonly name: "MINTER_ROLE";
280
156
  readonly outputs: readonly [{
281
- readonly internalType: "string";
157
+ readonly internalType: "bytes32";
282
158
  readonly name: "";
283
- readonly type: "string";
159
+ readonly type: "bytes32";
160
+ }];
161
+ readonly stateMutability: "view";
162
+ readonly type: "function";
163
+ }, {
164
+ readonly inputs: readonly [];
165
+ readonly name: "PAUSER_ROLE";
166
+ readonly outputs: readonly [{
167
+ readonly internalType: "bytes32";
168
+ readonly name: "";
169
+ readonly type: "bytes32";
284
170
  }];
285
171
  readonly stateMutability: "view";
286
172
  readonly type: "function";
@@ -309,7 +195,7 @@ export declare const Token_jsonAbi: readonly [{
309
195
  readonly type: "address";
310
196
  }, {
311
197
  readonly internalType: "uint256";
312
- readonly name: "value";
198
+ readonly name: "amount";
313
199
  readonly type: "uint256";
314
200
  }];
315
201
  readonly name: "approve";
@@ -334,6 +220,40 @@ export declare const Token_jsonAbi: readonly [{
334
220
  }];
335
221
  readonly stateMutability: "view";
336
222
  readonly type: "function";
223
+ }, {
224
+ readonly inputs: readonly [{
225
+ readonly internalType: "uint256";
226
+ readonly name: "amount";
227
+ readonly type: "uint256";
228
+ }];
229
+ readonly name: "burn";
230
+ readonly outputs: readonly [];
231
+ readonly stateMutability: "nonpayable";
232
+ readonly type: "function";
233
+ }, {
234
+ readonly inputs: readonly [{
235
+ readonly internalType: "address";
236
+ readonly name: "account";
237
+ readonly type: "address";
238
+ }, {
239
+ readonly internalType: "uint256";
240
+ readonly name: "amount";
241
+ readonly type: "uint256";
242
+ }];
243
+ readonly name: "burnFrom";
244
+ readonly outputs: readonly [];
245
+ readonly stateMutability: "nonpayable";
246
+ readonly type: "function";
247
+ }, {
248
+ readonly inputs: readonly [];
249
+ readonly name: "cap";
250
+ readonly outputs: readonly [{
251
+ readonly internalType: "uint256";
252
+ readonly name: "";
253
+ readonly type: "uint256";
254
+ }];
255
+ readonly stateMutability: "view";
256
+ readonly type: "function";
337
257
  }, {
338
258
  readonly inputs: readonly [];
339
259
  readonly name: "decimals";
@@ -345,142 +265,184 @@ export declare const Token_jsonAbi: readonly [{
345
265
  readonly stateMutability: "view";
346
266
  readonly type: "function";
347
267
  }, {
348
- readonly inputs: readonly [];
349
- readonly name: "eip712Domain";
350
- readonly outputs: readonly [{
351
- readonly internalType: "bytes1";
352
- readonly name: "fields";
353
- readonly type: "bytes1";
354
- }, {
355
- readonly internalType: "string";
356
- readonly name: "name";
357
- readonly type: "string";
358
- }, {
359
- readonly internalType: "string";
360
- readonly name: "version";
361
- readonly type: "string";
268
+ readonly inputs: readonly [{
269
+ readonly internalType: "address";
270
+ readonly name: "spender";
271
+ readonly type: "address";
362
272
  }, {
363
273
  readonly internalType: "uint256";
364
- readonly name: "chainId";
274
+ readonly name: "subtractedValue";
365
275
  readonly type: "uint256";
276
+ }];
277
+ readonly name: "decreaseAllowance";
278
+ readonly outputs: readonly [{
279
+ readonly internalType: "bool";
280
+ readonly name: "";
281
+ readonly type: "bool";
282
+ }];
283
+ readonly stateMutability: "nonpayable";
284
+ readonly type: "function";
285
+ }, {
286
+ readonly inputs: readonly [{
287
+ readonly internalType: "bytes32";
288
+ readonly name: "role";
289
+ readonly type: "bytes32";
290
+ }];
291
+ readonly name: "getRoleAdmin";
292
+ readonly outputs: readonly [{
293
+ readonly internalType: "bytes32";
294
+ readonly name: "";
295
+ readonly type: "bytes32";
296
+ }];
297
+ readonly stateMutability: "view";
298
+ readonly type: "function";
299
+ }, {
300
+ readonly inputs: readonly [{
301
+ readonly internalType: "bytes32";
302
+ readonly name: "role";
303
+ readonly type: "bytes32";
366
304
  }, {
305
+ readonly internalType: "uint256";
306
+ readonly name: "index";
307
+ readonly type: "uint256";
308
+ }];
309
+ readonly name: "getRoleMember";
310
+ readonly outputs: readonly [{
367
311
  readonly internalType: "address";
368
- readonly name: "verifyingContract";
312
+ readonly name: "";
369
313
  readonly type: "address";
370
- }, {
314
+ }];
315
+ readonly stateMutability: "view";
316
+ readonly type: "function";
317
+ }, {
318
+ readonly inputs: readonly [{
371
319
  readonly internalType: "bytes32";
372
- readonly name: "salt";
320
+ readonly name: "role";
373
321
  readonly type: "bytes32";
374
- }, {
375
- readonly internalType: "uint256[]";
376
- readonly name: "extensions";
377
- readonly type: "uint256[]";
322
+ }];
323
+ readonly name: "getRoleMemberCount";
324
+ readonly outputs: readonly [{
325
+ readonly internalType: "uint256";
326
+ readonly name: "";
327
+ readonly type: "uint256";
378
328
  }];
379
329
  readonly stateMutability: "view";
380
330
  readonly type: "function";
381
331
  }, {
382
332
  readonly inputs: readonly [{
383
- readonly internalType: "string";
384
- readonly name: "name";
385
- readonly type: "string";
386
- }, {
387
- readonly internalType: "string";
388
- readonly name: "symbol";
389
- readonly type: "string";
333
+ readonly internalType: "bytes32";
334
+ readonly name: "role";
335
+ readonly type: "bytes32";
390
336
  }, {
391
337
  readonly internalType: "address";
392
- readonly name: "owner";
338
+ readonly name: "account";
393
339
  readonly type: "address";
394
- }, {
395
- readonly internalType: "uint256";
396
- readonly name: "supply";
397
- readonly type: "uint256";
398
340
  }];
399
- readonly name: "initialize";
341
+ readonly name: "grantRole";
400
342
  readonly outputs: readonly [];
401
343
  readonly stateMutability: "nonpayable";
402
344
  readonly type: "function";
403
345
  }, {
404
- readonly inputs: readonly [];
405
- readonly name: "name";
346
+ readonly inputs: readonly [{
347
+ readonly internalType: "bytes32";
348
+ readonly name: "role";
349
+ readonly type: "bytes32";
350
+ }, {
351
+ readonly internalType: "address";
352
+ readonly name: "account";
353
+ readonly type: "address";
354
+ }];
355
+ readonly name: "hasRole";
406
356
  readonly outputs: readonly [{
407
- readonly internalType: "string";
357
+ readonly internalType: "bool";
408
358
  readonly name: "";
409
- readonly type: "string";
359
+ readonly type: "bool";
410
360
  }];
411
361
  readonly stateMutability: "view";
412
362
  readonly type: "function";
413
363
  }, {
414
364
  readonly inputs: readonly [{
415
365
  readonly internalType: "address";
416
- readonly name: "owner";
366
+ readonly name: "spender";
417
367
  readonly type: "address";
368
+ }, {
369
+ readonly internalType: "uint256";
370
+ readonly name: "addedValue";
371
+ readonly type: "uint256";
418
372
  }];
419
- readonly name: "nonces";
373
+ readonly name: "increaseAllowance";
420
374
  readonly outputs: readonly [{
421
- readonly internalType: "uint256";
375
+ readonly internalType: "bool";
422
376
  readonly name: "";
377
+ readonly type: "bool";
378
+ }];
379
+ readonly stateMutability: "nonpayable";
380
+ readonly type: "function";
381
+ }, {
382
+ readonly inputs: readonly [{
383
+ readonly internalType: "address";
384
+ readonly name: "to";
385
+ readonly type: "address";
386
+ }, {
387
+ readonly internalType: "uint256";
388
+ readonly name: "amount";
423
389
  readonly type: "uint256";
424
390
  }];
391
+ readonly name: "mint";
392
+ readonly outputs: readonly [];
393
+ readonly stateMutability: "nonpayable";
394
+ readonly type: "function";
395
+ }, {
396
+ readonly inputs: readonly [];
397
+ readonly name: "name";
398
+ readonly outputs: readonly [{
399
+ readonly internalType: "string";
400
+ readonly name: "";
401
+ readonly type: "string";
402
+ }];
425
403
  readonly stateMutability: "view";
426
404
  readonly type: "function";
427
405
  }, {
428
406
  readonly inputs: readonly [];
429
- readonly name: "owner";
407
+ readonly name: "pause";
408
+ readonly outputs: readonly [];
409
+ readonly stateMutability: "nonpayable";
410
+ readonly type: "function";
411
+ }, {
412
+ readonly inputs: readonly [];
413
+ readonly name: "paused";
430
414
  readonly outputs: readonly [{
431
- readonly internalType: "address";
415
+ readonly internalType: "bool";
432
416
  readonly name: "";
433
- readonly type: "address";
417
+ readonly type: "bool";
434
418
  }];
435
419
  readonly stateMutability: "view";
436
420
  readonly type: "function";
437
421
  }, {
438
422
  readonly inputs: readonly [{
439
- readonly internalType: "address";
440
- readonly name: "owner";
441
- readonly type: "address";
442
- }, {
443
- readonly internalType: "address";
444
- readonly name: "spender";
445
- readonly type: "address";
446
- }, {
447
- readonly internalType: "uint256";
448
- readonly name: "value";
449
- readonly type: "uint256";
450
- }, {
451
- readonly internalType: "uint256";
452
- readonly name: "deadline";
453
- readonly type: "uint256";
454
- }, {
455
- readonly internalType: "uint8";
456
- readonly name: "v";
457
- readonly type: "uint8";
458
- }, {
459
423
  readonly internalType: "bytes32";
460
- readonly name: "r";
424
+ readonly name: "role";
461
425
  readonly type: "bytes32";
462
426
  }, {
463
- readonly internalType: "bytes32";
464
- readonly name: "s";
465
- readonly type: "bytes32";
427
+ readonly internalType: "address";
428
+ readonly name: "account";
429
+ readonly type: "address";
466
430
  }];
467
- readonly name: "permit";
431
+ readonly name: "renounceRole";
468
432
  readonly outputs: readonly [];
469
433
  readonly stateMutability: "nonpayable";
470
434
  readonly type: "function";
471
435
  }, {
472
- readonly inputs: readonly [];
473
- readonly name: "proxiableUUID";
474
- readonly outputs: readonly [{
436
+ readonly inputs: readonly [{
475
437
  readonly internalType: "bytes32";
476
- readonly name: "";
438
+ readonly name: "role";
477
439
  readonly type: "bytes32";
440
+ }, {
441
+ readonly internalType: "address";
442
+ readonly name: "account";
443
+ readonly type: "address";
478
444
  }];
479
- readonly stateMutability: "view";
480
- readonly type: "function";
481
- }, {
482
- readonly inputs: readonly [];
483
- readonly name: "renounceOwnership";
445
+ readonly name: "revokeRole";
484
446
  readonly outputs: readonly [];
485
447
  readonly stateMutability: "nonpayable";
486
448
  readonly type: "function";
@@ -507,11 +469,11 @@ export declare const Token_jsonAbi: readonly [{
507
469
  }, {
508
470
  readonly inputs: readonly [{
509
471
  readonly internalType: "address";
510
- readonly name: "to";
472
+ readonly name: "recipient";
511
473
  readonly type: "address";
512
474
  }, {
513
475
  readonly internalType: "uint256";
514
- readonly name: "value";
476
+ readonly name: "amount";
515
477
  readonly type: "uint256";
516
478
  }];
517
479
  readonly name: "transfer";
@@ -525,15 +487,15 @@ export declare const Token_jsonAbi: readonly [{
525
487
  }, {
526
488
  readonly inputs: readonly [{
527
489
  readonly internalType: "address";
528
- readonly name: "from";
490
+ readonly name: "sender";
529
491
  readonly type: "address";
530
492
  }, {
531
493
  readonly internalType: "address";
532
- readonly name: "to";
494
+ readonly name: "recipient";
533
495
  readonly type: "address";
534
496
  }, {
535
497
  readonly internalType: "uint256";
536
- readonly name: "value";
498
+ readonly name: "amount";
537
499
  readonly type: "uint256";
538
500
  }];
539
501
  readonly name: "transferFrom";
@@ -545,40 +507,22 @@ export declare const Token_jsonAbi: readonly [{
545
507
  readonly stateMutability: "nonpayable";
546
508
  readonly type: "function";
547
509
  }, {
548
- readonly inputs: readonly [{
549
- readonly internalType: "address";
550
- readonly name: "newOwner";
551
- readonly type: "address";
552
- }];
553
- readonly name: "transferOwnership";
510
+ readonly inputs: readonly [];
511
+ readonly name: "unpause";
554
512
  readonly outputs: readonly [];
555
513
  readonly stateMutability: "nonpayable";
556
514
  readonly type: "function";
557
- }, {
558
- readonly inputs: readonly [{
559
- readonly internalType: "address";
560
- readonly name: "newImplementation";
561
- readonly type: "address";
562
- }, {
563
- readonly internalType: "bytes";
564
- readonly name: "data";
565
- readonly type: "bytes";
566
- }];
567
- readonly name: "upgradeToAndCall";
568
- readonly outputs: readonly [];
569
- readonly stateMutability: "payable";
570
- readonly type: "function";
571
515
  }];
572
516
  /**
573
- * Type-safe ABI for Token_json
517
+ * Type-safe ABI for CAPToken
574
518
  */
575
- export type Token_jsonAbi = typeof Token_jsonAbi;
519
+ export type CAPTokenAbi = typeof CAPTokenAbi;
576
520
  /**
577
- * Contract instance type for Token_json
521
+ * Contract instance type for CAPToken
578
522
  */
579
- export type Token_jsonContract = any;
523
+ export type CAPTokenContract = any;
580
524
  /**
581
- * Token_json Contract Class
525
+ * CAPToken Contract Class
582
526
  *
583
527
  * Provides a class-based API similar to TypeChain for interacting with the contract.
584
528
  *
@@ -586,12 +530,12 @@ export type Token_jsonContract = any;
586
530
  * ```typescript
587
531
  * import { createPublicClient, createWalletClient, http } from 'viem';
588
532
  * import { mainnet } from 'viem/chains';
589
- * import { Token_json } from 'Token_json';
533
+ * import { CAPToken } from 'CAPToken';
590
534
  *
591
535
  * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
592
536
  * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
593
537
  *
594
- * const contract = new Token_json('0x...', { publicClient, walletClient });
538
+ * const contract = new CAPToken('0x...', { publicClient, walletClient });
595
539
  *
596
540
  * // Read functions
597
541
  * const result = await contract.balanceOf('0x...');
@@ -609,7 +553,7 @@ export type Token_jsonContract = any;
609
553
  * });
610
554
  * ```
611
555
  */
612
- export declare class Token_json {
556
+ export declare class CAPToken {
613
557
  private contract;
614
558
  private contractAddress;
615
559
  private publicClient;
@@ -622,19 +566,24 @@ export declare class Token_json {
622
566
  */
623
567
  get address(): Address;
624
568
  /**
625
- * Get the underlying viem contract instance
569
+ * Get the underlying viem contract instance.
626
570
  */
627
- getContract(): Token_jsonContract;
571
+ getContract(): CAPTokenContract;
628
572
  /**
629
- * DOMAIN_SEPARATOR
573
+ * DEFAULT_ADMIN_ROLE
630
574
  * view
631
575
  */
632
- DOMAIN_SEPARATOR(): Promise<`0x${string}`>;
576
+ DEFAULT_ADMIN_ROLE(): Promise<`0x${string}`>;
633
577
  /**
634
- * UPGRADE_INTERFACE_VERSION
578
+ * MINTER_ROLE
635
579
  * view
636
580
  */
637
- UPGRADE_INTERFACE_VERSION(): Promise<string>;
581
+ MINTER_ROLE(): Promise<`0x${string}`>;
582
+ /**
583
+ * PAUSER_ROLE
584
+ * view
585
+ */
586
+ PAUSER_ROLE(): Promise<`0x${string}`>;
638
587
  /**
639
588
  * allowance
640
589
  * view
@@ -645,36 +594,46 @@ export declare class Token_json {
645
594
  * view
646
595
  */
647
596
  balanceOf(account: `0x${string}`): Promise<bigint>;
597
+ /**
598
+ * cap
599
+ * view
600
+ */
601
+ cap(): Promise<bigint>;
648
602
  /**
649
603
  * decimals
650
604
  * view
651
605
  */
652
606
  decimals(): Promise<bigint>;
653
607
  /**
654
- * eip712Domain
608
+ * getRoleAdmin
655
609
  * view
656
610
  */
657
- eip712Domain(): Promise<[`0x${string}`, string, string, bigint, `0x${string}`, `0x${string}`, bigint[]]>;
611
+ getRoleAdmin(role: `0x${string}`): Promise<`0x${string}`>;
658
612
  /**
659
- * name
613
+ * getRoleMember
660
614
  * view
661
615
  */
662
- name(): Promise<string>;
616
+ getRoleMember(role: `0x${string}`, index: bigint): Promise<`0x${string}`>;
663
617
  /**
664
- * nonces
618
+ * getRoleMemberCount
665
619
  * view
666
620
  */
667
- nonces(owner: `0x${string}`): Promise<bigint>;
621
+ getRoleMemberCount(role: `0x${string}`): Promise<bigint>;
668
622
  /**
669
- * owner
623
+ * hasRole
670
624
  * view
671
625
  */
672
- owner(): Promise<`0x${string}`>;
626
+ hasRole(role: `0x${string}`, account: `0x${string}`): Promise<boolean>;
673
627
  /**
674
- * proxiableUUID
628
+ * name
629
+ * view
630
+ */
631
+ name(): Promise<string>;
632
+ /**
633
+ * paused
675
634
  * view
676
635
  */
677
- proxiableUUID(): Promise<`0x${string}`>;
636
+ paused(): Promise<boolean>;
678
637
  /**
679
638
  * symbol
680
639
  * view
@@ -690,7 +649,7 @@ export declare class Token_json {
690
649
  * nonpayable
691
650
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
692
651
  */
693
- approve(spender: `0x${string}`, value: bigint, options?: {
652
+ approve(spender: `0x${string}`, amount: bigint, options?: {
694
653
  accessList?: import('viem').AccessList;
695
654
  authorizationList?: import('viem').AuthorizationList;
696
655
  chain?: import('viem').Chain | null;
@@ -703,11 +662,11 @@ export declare class Token_json {
703
662
  value?: bigint;
704
663
  }): Promise<`0x${string}`>;
705
664
  /**
706
- * initialize
665
+ * burn
707
666
  * nonpayable
708
667
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
709
668
  */
710
- initialize(name: string, symbol: string, owner: `0x${string}`, supply: bigint, options?: {
669
+ burn(amount: bigint, options?: {
711
670
  accessList?: import('viem').AccessList;
712
671
  authorizationList?: import('viem').AuthorizationList;
713
672
  chain?: import('viem').Chain | null;
@@ -720,11 +679,11 @@ export declare class Token_json {
720
679
  value?: bigint;
721
680
  }): Promise<`0x${string}`>;
722
681
  /**
723
- * permit
682
+ * burnFrom
724
683
  * nonpayable
725
684
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
726
685
  */
727
- permit(owner: `0x${string}`, spender: `0x${string}`, value: bigint, deadline: bigint, v: bigint, r: `0x${string}`, s: `0x${string}`, options?: {
686
+ burnFrom(account: `0x${string}`, amount: bigint, options?: {
728
687
  accessList?: import('viem').AccessList;
729
688
  authorizationList?: import('viem').AuthorizationList;
730
689
  chain?: import('viem').Chain | null;
@@ -737,11 +696,11 @@ export declare class Token_json {
737
696
  value?: bigint;
738
697
  }): Promise<`0x${string}`>;
739
698
  /**
740
- * renounceOwnership
699
+ * decreaseAllowance
741
700
  * nonpayable
742
701
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
743
702
  */
744
- renounceOwnership(options?: {
703
+ decreaseAllowance(spender: `0x${string}`, subtractedValue: bigint, options?: {
745
704
  accessList?: import('viem').AccessList;
746
705
  authorizationList?: import('viem').AuthorizationList;
747
706
  chain?: import('viem').Chain | null;
@@ -754,11 +713,11 @@ export declare class Token_json {
754
713
  value?: bigint;
755
714
  }): Promise<`0x${string}`>;
756
715
  /**
757
- * transfer
716
+ * grantRole
758
717
  * nonpayable
759
718
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
760
719
  */
761
- transfer(to: `0x${string}`, value: bigint, options?: {
720
+ grantRole(role: `0x${string}`, account: `0x${string}`, options?: {
762
721
  accessList?: import('viem').AccessList;
763
722
  authorizationList?: import('viem').AuthorizationList;
764
723
  chain?: import('viem').Chain | null;
@@ -771,11 +730,96 @@ export declare class Token_json {
771
730
  value?: bigint;
772
731
  }): Promise<`0x${string}`>;
773
732
  /**
774
- * transferFrom
733
+ * increaseAllowance
734
+ * nonpayable
735
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
736
+ */
737
+ increaseAllowance(spender: `0x${string}`, addedValue: bigint, options?: {
738
+ accessList?: import('viem').AccessList;
739
+ authorizationList?: import('viem').AuthorizationList;
740
+ chain?: import('viem').Chain | null;
741
+ dataSuffix?: `0x${string}`;
742
+ gas?: bigint;
743
+ gasPrice?: bigint;
744
+ maxFeePerGas?: bigint;
745
+ maxPriorityFeePerGas?: bigint;
746
+ nonce?: number;
747
+ value?: bigint;
748
+ }): Promise<`0x${string}`>;
749
+ /**
750
+ * mint
751
+ * nonpayable
752
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
753
+ */
754
+ mint(to: `0x${string}`, amount: bigint, options?: {
755
+ accessList?: import('viem').AccessList;
756
+ authorizationList?: import('viem').AuthorizationList;
757
+ chain?: import('viem').Chain | null;
758
+ dataSuffix?: `0x${string}`;
759
+ gas?: bigint;
760
+ gasPrice?: bigint;
761
+ maxFeePerGas?: bigint;
762
+ maxPriorityFeePerGas?: bigint;
763
+ nonce?: number;
764
+ value?: bigint;
765
+ }): Promise<`0x${string}`>;
766
+ /**
767
+ * pause
768
+ * nonpayable
769
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
770
+ */
771
+ pause(options?: {
772
+ accessList?: import('viem').AccessList;
773
+ authorizationList?: import('viem').AuthorizationList;
774
+ chain?: import('viem').Chain | null;
775
+ dataSuffix?: `0x${string}`;
776
+ gas?: bigint;
777
+ gasPrice?: bigint;
778
+ maxFeePerGas?: bigint;
779
+ maxPriorityFeePerGas?: bigint;
780
+ nonce?: number;
781
+ value?: bigint;
782
+ }): Promise<`0x${string}`>;
783
+ /**
784
+ * renounceRole
785
+ * nonpayable
786
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
787
+ */
788
+ renounceRole(role: `0x${string}`, account: `0x${string}`, options?: {
789
+ accessList?: import('viem').AccessList;
790
+ authorizationList?: import('viem').AuthorizationList;
791
+ chain?: import('viem').Chain | null;
792
+ dataSuffix?: `0x${string}`;
793
+ gas?: bigint;
794
+ gasPrice?: bigint;
795
+ maxFeePerGas?: bigint;
796
+ maxPriorityFeePerGas?: bigint;
797
+ nonce?: number;
798
+ value?: bigint;
799
+ }): Promise<`0x${string}`>;
800
+ /**
801
+ * revokeRole
802
+ * nonpayable
803
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
804
+ */
805
+ revokeRole(role: `0x${string}`, account: `0x${string}`, options?: {
806
+ accessList?: import('viem').AccessList;
807
+ authorizationList?: import('viem').AuthorizationList;
808
+ chain?: import('viem').Chain | null;
809
+ dataSuffix?: `0x${string}`;
810
+ gas?: bigint;
811
+ gasPrice?: bigint;
812
+ maxFeePerGas?: bigint;
813
+ maxPriorityFeePerGas?: bigint;
814
+ nonce?: number;
815
+ value?: bigint;
816
+ }): Promise<`0x${string}`>;
817
+ /**
818
+ * transfer
775
819
  * nonpayable
776
820
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
777
821
  */
778
- transferFrom(from: `0x${string}`, to: `0x${string}`, value: bigint, options?: {
822
+ transfer(recipient: `0x${string}`, amount: bigint, options?: {
779
823
  accessList?: import('viem').AccessList;
780
824
  authorizationList?: import('viem').AuthorizationList;
781
825
  chain?: import('viem').Chain | null;
@@ -788,11 +832,11 @@ export declare class Token_json {
788
832
  value?: bigint;
789
833
  }): Promise<`0x${string}`>;
790
834
  /**
791
- * transferOwnership
835
+ * transferFrom
792
836
  * nonpayable
793
837
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
794
838
  */
795
- transferOwnership(newOwner: `0x${string}`, options?: {
839
+ transferFrom(sender: `0x${string}`, recipient: `0x${string}`, amount: bigint, options?: {
796
840
  accessList?: import('viem').AccessList;
797
841
  authorizationList?: import('viem').AuthorizationList;
798
842
  chain?: import('viem').Chain | null;
@@ -805,11 +849,11 @@ export declare class Token_json {
805
849
  value?: bigint;
806
850
  }): Promise<`0x${string}`>;
807
851
  /**
808
- * upgradeToAndCall
809
- * payable
852
+ * unpause
853
+ * nonpayable
810
854
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
811
855
  */
812
- upgradeToAndCall(newImplementation: `0x${string}`, data: `0x${string}`, options?: {
856
+ unpause(options?: {
813
857
  accessList?: import('viem').AccessList;
814
858
  authorizationList?: import('viem').AuthorizationList;
815
859
  chain?: import('viem').Chain | null;
@@ -835,7 +879,7 @@ export declare class Token_json {
835
879
  * Returns gas estimate and result without sending transaction
836
880
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
837
881
  */
838
- approve(spender: `0x${string}`, value: bigint, options?: {
882
+ approve(spender: `0x${string}`, amount: bigint, options?: {
839
883
  accessList?: import("viem").AccessList;
840
884
  authorizationList?: import("viem").AuthorizationList;
841
885
  chain?: import("viem").Chain | null;
@@ -848,11 +892,11 @@ export declare class Token_json {
848
892
  value?: bigint;
849
893
  }): Promise<boolean>;
850
894
  /**
851
- * Simulate initialize
895
+ * Simulate burn
852
896
  * Returns gas estimate and result without sending transaction
853
897
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
854
898
  */
855
- initialize(name: string, symbol: string, owner: `0x${string}`, supply: bigint, options?: {
899
+ burn(amount: bigint, options?: {
856
900
  accessList?: import("viem").AccessList;
857
901
  authorizationList?: import("viem").AuthorizationList;
858
902
  chain?: import("viem").Chain | null;
@@ -865,11 +909,11 @@ export declare class Token_json {
865
909
  value?: bigint;
866
910
  }): Promise<void>;
867
911
  /**
868
- * Simulate permit
912
+ * Simulate burnFrom
869
913
  * Returns gas estimate and result without sending transaction
870
914
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
871
915
  */
872
- permit(owner: `0x${string}`, spender: `0x${string}`, value: bigint, deadline: bigint, v: bigint, r: `0x${string}`, s: `0x${string}`, options?: {
916
+ burnFrom(account: `0x${string}`, amount: bigint, options?: {
873
917
  accessList?: import("viem").AccessList;
874
918
  authorizationList?: import("viem").AuthorizationList;
875
919
  chain?: import("viem").Chain | null;
@@ -882,11 +926,28 @@ export declare class Token_json {
882
926
  value?: bigint;
883
927
  }): Promise<void>;
884
928
  /**
885
- * Simulate renounceOwnership
929
+ * Simulate decreaseAllowance
930
+ * Returns gas estimate and result without sending transaction
931
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
932
+ */
933
+ decreaseAllowance(spender: `0x${string}`, subtractedValue: bigint, options?: {
934
+ accessList?: import("viem").AccessList;
935
+ authorizationList?: import("viem").AuthorizationList;
936
+ chain?: import("viem").Chain | null;
937
+ dataSuffix?: `0x${string}`;
938
+ gas?: bigint;
939
+ gasPrice?: bigint;
940
+ maxFeePerGas?: bigint;
941
+ maxPriorityFeePerGas?: bigint;
942
+ nonce?: number;
943
+ value?: bigint;
944
+ }): Promise<boolean>;
945
+ /**
946
+ * Simulate grantRole
886
947
  * Returns gas estimate and result without sending transaction
887
948
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
888
949
  */
889
- renounceOwnership(options?: {
950
+ grantRole(role: `0x${string}`, account: `0x${string}`, options?: {
890
951
  accessList?: import("viem").AccessList;
891
952
  authorizationList?: import("viem").AuthorizationList;
892
953
  chain?: import("viem").Chain | null;
@@ -899,11 +960,11 @@ export declare class Token_json {
899
960
  value?: bigint;
900
961
  }): Promise<void>;
901
962
  /**
902
- * Simulate transfer
963
+ * Simulate increaseAllowance
903
964
  * Returns gas estimate and result without sending transaction
904
965
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
905
966
  */
906
- transfer(to: `0x${string}`, value: bigint, options?: {
967
+ increaseAllowance(spender: `0x${string}`, addedValue: bigint, options?: {
907
968
  accessList?: import("viem").AccessList;
908
969
  authorizationList?: import("viem").AuthorizationList;
909
970
  chain?: import("viem").Chain | null;
@@ -916,11 +977,11 @@ export declare class Token_json {
916
977
  value?: bigint;
917
978
  }): Promise<boolean>;
918
979
  /**
919
- * Simulate transferFrom
980
+ * Simulate mint
920
981
  * Returns gas estimate and result without sending transaction
921
982
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
922
983
  */
923
- transferFrom(from: `0x${string}`, to: `0x${string}`, value: bigint, options?: {
984
+ mint(to: `0x${string}`, amount: bigint, options?: {
924
985
  accessList?: import("viem").AccessList;
925
986
  authorizationList?: import("viem").AuthorizationList;
926
987
  chain?: import("viem").Chain | null;
@@ -931,13 +992,47 @@ export declare class Token_json {
931
992
  maxPriorityFeePerGas?: bigint;
932
993
  nonce?: number;
933
994
  value?: bigint;
934
- }): Promise<boolean>;
995
+ }): Promise<void>;
996
+ /**
997
+ * Simulate pause
998
+ * Returns gas estimate and result without sending transaction
999
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1000
+ */
1001
+ pause(options?: {
1002
+ accessList?: import("viem").AccessList;
1003
+ authorizationList?: import("viem").AuthorizationList;
1004
+ chain?: import("viem").Chain | null;
1005
+ dataSuffix?: `0x${string}`;
1006
+ gas?: bigint;
1007
+ gasPrice?: bigint;
1008
+ maxFeePerGas?: bigint;
1009
+ maxPriorityFeePerGas?: bigint;
1010
+ nonce?: number;
1011
+ value?: bigint;
1012
+ }): Promise<void>;
1013
+ /**
1014
+ * Simulate renounceRole
1015
+ * Returns gas estimate and result without sending transaction
1016
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1017
+ */
1018
+ renounceRole(role: `0x${string}`, account: `0x${string}`, options?: {
1019
+ accessList?: import("viem").AccessList;
1020
+ authorizationList?: import("viem").AuthorizationList;
1021
+ chain?: import("viem").Chain | null;
1022
+ dataSuffix?: `0x${string}`;
1023
+ gas?: bigint;
1024
+ gasPrice?: bigint;
1025
+ maxFeePerGas?: bigint;
1026
+ maxPriorityFeePerGas?: bigint;
1027
+ nonce?: number;
1028
+ value?: bigint;
1029
+ }): Promise<void>;
935
1030
  /**
936
- * Simulate transferOwnership
1031
+ * Simulate revokeRole
937
1032
  * Returns gas estimate and result without sending transaction
938
1033
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
939
1034
  */
940
- transferOwnership(newOwner: `0x${string}`, options?: {
1035
+ revokeRole(role: `0x${string}`, account: `0x${string}`, options?: {
941
1036
  accessList?: import("viem").AccessList;
942
1037
  authorizationList?: import("viem").AuthorizationList;
943
1038
  chain?: import("viem").Chain | null;
@@ -950,11 +1045,45 @@ export declare class Token_json {
950
1045
  value?: bigint;
951
1046
  }): Promise<void>;
952
1047
  /**
953
- * Simulate upgradeToAndCall
1048
+ * Simulate transfer
1049
+ * Returns gas estimate and result without sending transaction
1050
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1051
+ */
1052
+ transfer(recipient: `0x${string}`, amount: bigint, options?: {
1053
+ accessList?: import("viem").AccessList;
1054
+ authorizationList?: import("viem").AuthorizationList;
1055
+ chain?: import("viem").Chain | null;
1056
+ dataSuffix?: `0x${string}`;
1057
+ gas?: bigint;
1058
+ gasPrice?: bigint;
1059
+ maxFeePerGas?: bigint;
1060
+ maxPriorityFeePerGas?: bigint;
1061
+ nonce?: number;
1062
+ value?: bigint;
1063
+ }): Promise<boolean>;
1064
+ /**
1065
+ * Simulate transferFrom
1066
+ * Returns gas estimate and result without sending transaction
1067
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1068
+ */
1069
+ transferFrom(sender: `0x${string}`, recipient: `0x${string}`, amount: bigint, options?: {
1070
+ accessList?: import("viem").AccessList;
1071
+ authorizationList?: import("viem").AuthorizationList;
1072
+ chain?: import("viem").Chain | null;
1073
+ dataSuffix?: `0x${string}`;
1074
+ gas?: bigint;
1075
+ gasPrice?: bigint;
1076
+ maxFeePerGas?: bigint;
1077
+ maxPriorityFeePerGas?: bigint;
1078
+ nonce?: number;
1079
+ value?: bigint;
1080
+ }): Promise<boolean>;
1081
+ /**
1082
+ * Simulate unpause
954
1083
  * Returns gas estimate and result without sending transaction
955
1084
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
956
1085
  */
957
- upgradeToAndCall(newImplementation: `0x${string}`, data: `0x${string}`, options?: {
1086
+ unpause(options?: {
958
1087
  accessList?: import("viem").AccessList;
959
1088
  authorizationList?: import("viem").AuthorizationList;
960
1089
  chain?: import("viem").Chain | null;
@@ -991,37 +1120,62 @@ export declare class Token_json {
991
1120
  spender: `0x${string}`;
992
1121
  value: bigint;
993
1122
  }) => void, filter?: {
994
- owner: `0x${string}`;
995
- spender: `0x${string}`;
1123
+ owner?: `0x${string}` | `0x${string}`[] | null;
1124
+ spender?: `0x${string}` | `0x${string}`[] | null;
996
1125
  }) => () => void;
997
1126
  /**
998
- * Watch EIP712DomainChanged events
1127
+ * Watch Paused events
999
1128
  * @param callback Function to call when event is emitted
1000
1129
  * @param filter Optional filter for indexed parameters
1001
1130
  * @returns Unwatch function to stop listening
1002
1131
  */
1003
- EIP712DomainChanged: (callback: (event: {}) => void) => () => void;
1132
+ Paused: (callback: (event: {
1133
+ account: `0x${string}`;
1134
+ }) => void) => () => void;
1004
1135
  /**
1005
- * Watch Initialized events
1136
+ * Watch RoleAdminChanged events
1006
1137
  * @param callback Function to call when event is emitted
1007
1138
  * @param filter Optional filter for indexed parameters
1008
1139
  * @returns Unwatch function to stop listening
1009
1140
  */
1010
- Initialized: (callback: (event: {
1011
- version: bigint;
1012
- }) => void) => () => void;
1141
+ RoleAdminChanged: (callback: (event: {
1142
+ role: `0x${string}`;
1143
+ previousAdminRole: `0x${string}`;
1144
+ newAdminRole: `0x${string}`;
1145
+ }) => void, filter?: {
1146
+ role?: `0x${string}` | `0x${string}`[] | null;
1147
+ previousAdminRole?: `0x${string}` | `0x${string}`[] | null;
1148
+ newAdminRole?: `0x${string}` | `0x${string}`[] | null;
1149
+ }) => () => void;
1150
+ /**
1151
+ * Watch RoleGranted events
1152
+ * @param callback Function to call when event is emitted
1153
+ * @param filter Optional filter for indexed parameters
1154
+ * @returns Unwatch function to stop listening
1155
+ */
1156
+ RoleGranted: (callback: (event: {
1157
+ role: `0x${string}`;
1158
+ account: `0x${string}`;
1159
+ sender: `0x${string}`;
1160
+ }) => void, filter?: {
1161
+ role?: `0x${string}` | `0x${string}`[] | null;
1162
+ account?: `0x${string}` | `0x${string}`[] | null;
1163
+ sender?: `0x${string}` | `0x${string}`[] | null;
1164
+ }) => () => void;
1013
1165
  /**
1014
- * Watch OwnershipTransferred events
1166
+ * Watch RoleRevoked events
1015
1167
  * @param callback Function to call when event is emitted
1016
1168
  * @param filter Optional filter for indexed parameters
1017
1169
  * @returns Unwatch function to stop listening
1018
1170
  */
1019
- OwnershipTransferred: (callback: (event: {
1020
- previousOwner: `0x${string}`;
1021
- newOwner: `0x${string}`;
1171
+ RoleRevoked: (callback: (event: {
1172
+ role: `0x${string}`;
1173
+ account: `0x${string}`;
1174
+ sender: `0x${string}`;
1022
1175
  }) => void, filter?: {
1023
- previousOwner: `0x${string}`;
1024
- newOwner: `0x${string}`;
1176
+ role?: `0x${string}` | `0x${string}`[] | null;
1177
+ account?: `0x${string}` | `0x${string}`[] | null;
1178
+ sender?: `0x${string}` | `0x${string}`[] | null;
1025
1179
  }) => () => void;
1026
1180
  /**
1027
1181
  * Watch Transfer events
@@ -1034,19 +1188,17 @@ export declare class Token_json {
1034
1188
  to: `0x${string}`;
1035
1189
  value: bigint;
1036
1190
  }) => void, filter?: {
1037
- from: `0x${string}`;
1038
- to: `0x${string}`;
1191
+ from?: `0x${string}` | `0x${string}`[] | null;
1192
+ to?: `0x${string}` | `0x${string}`[] | null;
1039
1193
  }) => () => void;
1040
1194
  /**
1041
- * Watch Upgraded events
1195
+ * Watch Unpaused events
1042
1196
  * @param callback Function to call when event is emitted
1043
1197
  * @param filter Optional filter for indexed parameters
1044
1198
  * @returns Unwatch function to stop listening
1045
1199
  */
1046
- Upgraded: (callback: (event: {
1047
- implementation: `0x${string}`;
1048
- }) => void, filter?: {
1049
- implementation: `0x${string}`;
1050
- }) => () => void;
1200
+ Unpaused: (callback: (event: {
1201
+ account: `0x${string}`;
1202
+ }) => void) => () => void;
1051
1203
  };
1052
1204
  }