@gitmyabi/eusd 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2313 +0,0 @@
1
- import type { Address, PublicClient, WalletClient } from 'viem';
2
- /**
3
- * Stablecoin_json ABI
4
- *
5
- * This ABI is typed using viem's type system for full type safety.
6
- */
7
- export declare const Stablecoin_jsonAbi: readonly [{
8
- readonly inputs: readonly [];
9
- readonly stateMutability: "nonpayable";
10
- readonly type: "constructor";
11
- }, {
12
- readonly inputs: readonly [];
13
- readonly name: "AccessControlBadConfirmation";
14
- readonly type: "error";
15
- }, {
16
- readonly inputs: readonly [{
17
- readonly internalType: "address";
18
- readonly name: "account";
19
- readonly type: "address";
20
- }, {
21
- readonly internalType: "bytes32";
22
- readonly name: "neededRole";
23
- readonly type: "bytes32";
24
- }];
25
- readonly name: "AccessControlUnauthorizedAccount";
26
- readonly type: "error";
27
- }, {
28
- readonly inputs: readonly [{
29
- readonly internalType: "address";
30
- readonly name: "user";
31
- readonly type: "address";
32
- }];
33
- readonly name: "AlreadyBlacklisted";
34
- readonly type: "error";
35
- }, {
36
- readonly inputs: readonly [];
37
- readonly name: "AuthorizationAlreadyUsed";
38
- readonly type: "error";
39
- }, {
40
- readonly inputs: readonly [];
41
- readonly name: "AuthorizationExpired";
42
- readonly type: "error";
43
- }, {
44
- readonly inputs: readonly [];
45
- readonly name: "AuthorizationNotYetValid";
46
- readonly type: "error";
47
- }, {
48
- readonly inputs: readonly [{
49
- readonly internalType: "address";
50
- readonly name: "account";
51
- readonly type: "address";
52
- }];
53
- readonly name: "Blacklisted";
54
- readonly type: "error";
55
- }, {
56
- readonly inputs: readonly [];
57
- readonly name: "CallerMustBePayee";
58
- readonly type: "error";
59
- }, {
60
- readonly inputs: readonly [];
61
- readonly name: "ECDSAInvalidSignature";
62
- readonly type: "error";
63
- }, {
64
- readonly inputs: readonly [{
65
- readonly internalType: "uint256";
66
- readonly name: "length";
67
- readonly type: "uint256";
68
- }];
69
- readonly name: "ECDSAInvalidSignatureLength";
70
- readonly type: "error";
71
- }, {
72
- readonly inputs: readonly [{
73
- readonly internalType: "bytes32";
74
- readonly name: "s";
75
- readonly type: "bytes32";
76
- }];
77
- readonly name: "ECDSAInvalidSignatureS";
78
- readonly type: "error";
79
- }, {
80
- readonly inputs: readonly [{
81
- readonly internalType: "address";
82
- readonly name: "spender";
83
- readonly type: "address";
84
- }, {
85
- readonly internalType: "uint256";
86
- readonly name: "allowance";
87
- readonly type: "uint256";
88
- }, {
89
- readonly internalType: "uint256";
90
- readonly name: "needed";
91
- readonly type: "uint256";
92
- }];
93
- readonly name: "ERC20InsufficientAllowance";
94
- readonly type: "error";
95
- }, {
96
- readonly inputs: readonly [{
97
- readonly internalType: "address";
98
- readonly name: "sender";
99
- readonly type: "address";
100
- }, {
101
- readonly internalType: "uint256";
102
- readonly name: "balance";
103
- readonly type: "uint256";
104
- }, {
105
- readonly internalType: "uint256";
106
- readonly name: "needed";
107
- readonly type: "uint256";
108
- }];
109
- readonly name: "ERC20InsufficientBalance";
110
- readonly type: "error";
111
- }, {
112
- readonly inputs: readonly [{
113
- readonly internalType: "address";
114
- readonly name: "approver";
115
- readonly type: "address";
116
- }];
117
- readonly name: "ERC20InvalidApprover";
118
- readonly type: "error";
119
- }, {
120
- readonly inputs: readonly [{
121
- readonly internalType: "address";
122
- readonly name: "receiver";
123
- readonly type: "address";
124
- }];
125
- readonly name: "ERC20InvalidReceiver";
126
- readonly type: "error";
127
- }, {
128
- readonly inputs: readonly [{
129
- readonly internalType: "address";
130
- readonly name: "sender";
131
- readonly type: "address";
132
- }];
133
- readonly name: "ERC20InvalidSender";
134
- readonly type: "error";
135
- }, {
136
- readonly inputs: readonly [{
137
- readonly internalType: "address";
138
- readonly name: "spender";
139
- readonly type: "address";
140
- }];
141
- readonly name: "ERC20InvalidSpender";
142
- readonly type: "error";
143
- }, {
144
- readonly inputs: readonly [{
145
- readonly internalType: "uint256";
146
- readonly name: "deadline";
147
- readonly type: "uint256";
148
- }];
149
- readonly name: "ERC2612ExpiredSignature";
150
- readonly type: "error";
151
- }, {
152
- readonly inputs: readonly [{
153
- readonly internalType: "address";
154
- readonly name: "signer";
155
- readonly type: "address";
156
- }, {
157
- readonly internalType: "address";
158
- readonly name: "owner";
159
- readonly type: "address";
160
- }];
161
- readonly name: "ERC2612InvalidSigner";
162
- readonly type: "error";
163
- }, {
164
- readonly inputs: readonly [];
165
- readonly name: "EnforcedPause";
166
- readonly type: "error";
167
- }, {
168
- readonly inputs: readonly [];
169
- readonly name: "ExpectedPause";
170
- readonly type: "error";
171
- }, {
172
- readonly inputs: readonly [{
173
- readonly internalType: "address";
174
- readonly name: "account";
175
- readonly type: "address";
176
- }, {
177
- readonly internalType: "uint256";
178
- readonly name: "currentNonce";
179
- readonly type: "uint256";
180
- }];
181
- readonly name: "InvalidAccountNonce";
182
- readonly type: "error";
183
- }, {
184
- readonly inputs: readonly [];
185
- readonly name: "InvalidInitialization";
186
- readonly type: "error";
187
- }, {
188
- readonly inputs: readonly [];
189
- readonly name: "InvalidSignature";
190
- readonly type: "error";
191
- }, {
192
- readonly inputs: readonly [{
193
- readonly internalType: "address";
194
- readonly name: "user";
195
- readonly type: "address";
196
- }];
197
- readonly name: "NotBlacklisted";
198
- readonly type: "error";
199
- }, {
200
- readonly inputs: readonly [];
201
- readonly name: "NotInitializing";
202
- readonly type: "error";
203
- }, {
204
- readonly inputs: readonly [{
205
- readonly internalType: "address";
206
- readonly name: "token";
207
- readonly type: "address";
208
- }];
209
- readonly name: "SafeERC20FailedOperation";
210
- readonly type: "error";
211
- }, {
212
- readonly inputs: readonly [];
213
- readonly name: "ZeroAddress";
214
- readonly type: "error";
215
- }, {
216
- readonly anonymous: false;
217
- readonly inputs: readonly [{
218
- readonly indexed: true;
219
- readonly internalType: "address";
220
- readonly name: "user";
221
- readonly type: "address";
222
- }];
223
- readonly name: "AddedBlacklist";
224
- readonly type: "event";
225
- }, {
226
- readonly anonymous: false;
227
- readonly inputs: readonly [{
228
- readonly indexed: true;
229
- readonly internalType: "address";
230
- readonly name: "owner";
231
- readonly type: "address";
232
- }, {
233
- readonly indexed: true;
234
- readonly internalType: "address";
235
- readonly name: "spender";
236
- readonly type: "address";
237
- }, {
238
- readonly indexed: false;
239
- readonly internalType: "uint256";
240
- readonly name: "value";
241
- readonly type: "uint256";
242
- }];
243
- readonly name: "Approval";
244
- readonly type: "event";
245
- }, {
246
- readonly anonymous: false;
247
- readonly inputs: readonly [{
248
- readonly indexed: true;
249
- readonly internalType: "address";
250
- readonly name: "authorizer";
251
- readonly type: "address";
252
- }, {
253
- readonly indexed: true;
254
- readonly internalType: "bytes32";
255
- readonly name: "nonce";
256
- readonly type: "bytes32";
257
- }];
258
- readonly name: "AuthorizationCanceled";
259
- readonly type: "event";
260
- }, {
261
- readonly anonymous: false;
262
- readonly inputs: readonly [{
263
- readonly indexed: true;
264
- readonly internalType: "address";
265
- readonly name: "authorizer";
266
- readonly type: "address";
267
- }, {
268
- readonly indexed: true;
269
- readonly internalType: "bytes32";
270
- readonly name: "nonce";
271
- readonly type: "bytes32";
272
- }];
273
- readonly name: "AuthorizationUsed";
274
- readonly type: "event";
275
- }, {
276
- readonly anonymous: false;
277
- readonly inputs: readonly [];
278
- readonly name: "EIP712DomainChanged";
279
- readonly type: "event";
280
- }, {
281
- readonly anonymous: false;
282
- readonly inputs: readonly [{
283
- readonly indexed: false;
284
- readonly internalType: "uint64";
285
- readonly name: "version";
286
- readonly type: "uint64";
287
- }];
288
- readonly name: "Initialized";
289
- readonly type: "event";
290
- }, {
291
- readonly anonymous: false;
292
- readonly inputs: readonly [{
293
- readonly indexed: false;
294
- readonly internalType: "address";
295
- readonly name: "account";
296
- readonly type: "address";
297
- }];
298
- readonly name: "Paused";
299
- readonly type: "event";
300
- }, {
301
- readonly anonymous: false;
302
- readonly inputs: readonly [{
303
- readonly indexed: true;
304
- readonly internalType: "address";
305
- readonly name: "user";
306
- readonly type: "address";
307
- }];
308
- readonly name: "RemovedBlacklist";
309
- readonly type: "event";
310
- }, {
311
- readonly anonymous: false;
312
- readonly inputs: readonly [{
313
- readonly indexed: true;
314
- readonly internalType: "bytes32";
315
- readonly name: "role";
316
- readonly type: "bytes32";
317
- }, {
318
- readonly indexed: true;
319
- readonly internalType: "bytes32";
320
- readonly name: "previousAdminRole";
321
- readonly type: "bytes32";
322
- }, {
323
- readonly indexed: true;
324
- readonly internalType: "bytes32";
325
- readonly name: "newAdminRole";
326
- readonly type: "bytes32";
327
- }];
328
- readonly name: "RoleAdminChanged";
329
- readonly type: "event";
330
- }, {
331
- readonly anonymous: false;
332
- readonly inputs: readonly [{
333
- readonly indexed: true;
334
- readonly internalType: "bytes32";
335
- readonly name: "role";
336
- readonly type: "bytes32";
337
- }, {
338
- readonly indexed: true;
339
- readonly internalType: "address";
340
- readonly name: "account";
341
- readonly type: "address";
342
- }, {
343
- readonly indexed: true;
344
- readonly internalType: "address";
345
- readonly name: "sender";
346
- readonly type: "address";
347
- }];
348
- readonly name: "RoleGranted";
349
- readonly type: "event";
350
- }, {
351
- readonly anonymous: false;
352
- readonly inputs: readonly [{
353
- readonly indexed: true;
354
- readonly internalType: "bytes32";
355
- readonly name: "role";
356
- readonly type: "bytes32";
357
- }, {
358
- readonly indexed: true;
359
- readonly internalType: "address";
360
- readonly name: "account";
361
- readonly type: "address";
362
- }, {
363
- readonly indexed: true;
364
- readonly internalType: "address";
365
- readonly name: "sender";
366
- readonly type: "address";
367
- }];
368
- readonly name: "RoleRevoked";
369
- readonly type: "event";
370
- }, {
371
- readonly anonymous: false;
372
- readonly inputs: readonly [{
373
- readonly indexed: true;
374
- readonly internalType: "address";
375
- readonly name: "from";
376
- readonly type: "address";
377
- }, {
378
- readonly indexed: true;
379
- readonly internalType: "address";
380
- readonly name: "to";
381
- readonly type: "address";
382
- }, {
383
- readonly indexed: false;
384
- readonly internalType: "uint256";
385
- readonly name: "value";
386
- readonly type: "uint256";
387
- }];
388
- readonly name: "Transfer";
389
- readonly type: "event";
390
- }, {
391
- readonly anonymous: false;
392
- readonly inputs: readonly [{
393
- readonly indexed: false;
394
- readonly internalType: "address";
395
- readonly name: "account";
396
- readonly type: "address";
397
- }];
398
- readonly name: "Unpaused";
399
- readonly type: "event";
400
- }, {
401
- readonly inputs: readonly [];
402
- readonly name: "BLACKLISTER_ROLE";
403
- readonly outputs: readonly [{
404
- readonly internalType: "bytes32";
405
- readonly name: "";
406
- readonly type: "bytes32";
407
- }];
408
- readonly stateMutability: "view";
409
- readonly type: "function";
410
- }, {
411
- readonly inputs: readonly [];
412
- readonly name: "BURNER_ROLE";
413
- readonly outputs: readonly [{
414
- readonly internalType: "bytes32";
415
- readonly name: "";
416
- readonly type: "bytes32";
417
- }];
418
- readonly stateMutability: "view";
419
- readonly type: "function";
420
- }, {
421
- readonly inputs: readonly [];
422
- readonly name: "CANCEL_AUTHORIZATION_TYPEHASH";
423
- readonly outputs: readonly [{
424
- readonly internalType: "bytes32";
425
- readonly name: "";
426
- readonly type: "bytes32";
427
- }];
428
- readonly stateMutability: "view";
429
- readonly type: "function";
430
- }, {
431
- readonly inputs: readonly [];
432
- readonly name: "DEFAULT_ADMIN_ROLE";
433
- readonly outputs: readonly [{
434
- readonly internalType: "bytes32";
435
- readonly name: "";
436
- readonly type: "bytes32";
437
- }];
438
- readonly stateMutability: "view";
439
- readonly type: "function";
440
- }, {
441
- readonly inputs: readonly [];
442
- readonly name: "DOMAIN_SEPARATOR";
443
- readonly outputs: readonly [{
444
- readonly internalType: "bytes32";
445
- readonly name: "";
446
- readonly type: "bytes32";
447
- }];
448
- readonly stateMutability: "view";
449
- readonly type: "function";
450
- }, {
451
- readonly inputs: readonly [];
452
- readonly name: "MINTER_ROLE";
453
- readonly outputs: readonly [{
454
- readonly internalType: "bytes32";
455
- readonly name: "";
456
- readonly type: "bytes32";
457
- }];
458
- readonly stateMutability: "view";
459
- readonly type: "function";
460
- }, {
461
- readonly inputs: readonly [];
462
- readonly name: "PAUSER_ROLE";
463
- readonly outputs: readonly [{
464
- readonly internalType: "bytes32";
465
- readonly name: "";
466
- readonly type: "bytes32";
467
- }];
468
- readonly stateMutability: "view";
469
- readonly type: "function";
470
- }, {
471
- readonly inputs: readonly [];
472
- readonly name: "PERMIT_TYPEHASH";
473
- readonly outputs: readonly [{
474
- readonly internalType: "bytes32";
475
- readonly name: "";
476
- readonly type: "bytes32";
477
- }];
478
- readonly stateMutability: "view";
479
- readonly type: "function";
480
- }, {
481
- readonly inputs: readonly [];
482
- readonly name: "RECEIVE_WITH_AUTHORIZATION_TYPEHASH";
483
- readonly outputs: readonly [{
484
- readonly internalType: "bytes32";
485
- readonly name: "";
486
- readonly type: "bytes32";
487
- }];
488
- readonly stateMutability: "view";
489
- readonly type: "function";
490
- }, {
491
- readonly inputs: readonly [];
492
- readonly name: "SUPPORT_ROLE";
493
- readonly outputs: readonly [{
494
- readonly internalType: "bytes32";
495
- readonly name: "";
496
- readonly type: "bytes32";
497
- }];
498
- readonly stateMutability: "view";
499
- readonly type: "function";
500
- }, {
501
- readonly inputs: readonly [];
502
- readonly name: "TRANSFER_WITH_AUTHORIZATION_TYPEHASH";
503
- readonly outputs: readonly [{
504
- readonly internalType: "bytes32";
505
- readonly name: "";
506
- readonly type: "bytes32";
507
- }];
508
- readonly stateMutability: "view";
509
- readonly type: "function";
510
- }, {
511
- readonly inputs: readonly [];
512
- readonly name: "UNPAUSER_ROLE";
513
- readonly outputs: readonly [{
514
- readonly internalType: "bytes32";
515
- readonly name: "";
516
- readonly type: "bytes32";
517
- }];
518
- readonly stateMutability: "view";
519
- readonly type: "function";
520
- }, {
521
- readonly inputs: readonly [];
522
- readonly name: "WALLET_CODEHASH_A";
523
- readonly outputs: readonly [{
524
- readonly internalType: "bytes32";
525
- readonly name: "";
526
- readonly type: "bytes32";
527
- }];
528
- readonly stateMutability: "view";
529
- readonly type: "function";
530
- }, {
531
- readonly inputs: readonly [];
532
- readonly name: "WALLET_CODEHASH_B";
533
- readonly outputs: readonly [{
534
- readonly internalType: "bytes32";
535
- readonly name: "";
536
- readonly type: "bytes32";
537
- }];
538
- readonly stateMutability: "view";
539
- readonly type: "function";
540
- }, {
541
- readonly inputs: readonly [];
542
- readonly name: "WALLET_CODEHASH_C";
543
- readonly outputs: readonly [{
544
- readonly internalType: "bytes32";
545
- readonly name: "";
546
- readonly type: "bytes32";
547
- }];
548
- readonly stateMutability: "view";
549
- readonly type: "function";
550
- }, {
551
- readonly inputs: readonly [];
552
- readonly name: "WALLET_CODEHASH_D";
553
- readonly outputs: readonly [{
554
- readonly internalType: "bytes32";
555
- readonly name: "";
556
- readonly type: "bytes32";
557
- }];
558
- readonly stateMutability: "view";
559
- readonly type: "function";
560
- }, {
561
- readonly inputs: readonly [{
562
- readonly internalType: "address";
563
- readonly name: "user";
564
- readonly type: "address";
565
- }];
566
- readonly name: "addBlackList";
567
- readonly outputs: readonly [];
568
- readonly stateMutability: "nonpayable";
569
- readonly type: "function";
570
- }, {
571
- readonly inputs: readonly [{
572
- readonly internalType: "address";
573
- readonly name: "owner";
574
- readonly type: "address";
575
- }, {
576
- readonly internalType: "address";
577
- readonly name: "spender";
578
- readonly type: "address";
579
- }];
580
- readonly name: "allowance";
581
- readonly outputs: readonly [{
582
- readonly internalType: "uint256";
583
- readonly name: "";
584
- readonly type: "uint256";
585
- }];
586
- readonly stateMutability: "view";
587
- readonly type: "function";
588
- }, {
589
- readonly inputs: readonly [{
590
- readonly internalType: "address";
591
- readonly name: "spender";
592
- readonly type: "address";
593
- }, {
594
- readonly internalType: "uint256";
595
- readonly name: "value";
596
- readonly type: "uint256";
597
- }];
598
- readonly name: "approve";
599
- readonly outputs: readonly [{
600
- readonly internalType: "bool";
601
- readonly name: "";
602
- readonly type: "bool";
603
- }];
604
- readonly stateMutability: "nonpayable";
605
- readonly type: "function";
606
- }, {
607
- readonly inputs: readonly [{
608
- readonly internalType: "address";
609
- readonly name: "authorizer";
610
- readonly type: "address";
611
- }, {
612
- readonly internalType: "bytes32";
613
- readonly name: "nonce";
614
- readonly type: "bytes32";
615
- }];
616
- readonly name: "authorizationState";
617
- readonly outputs: readonly [{
618
- readonly internalType: "bool";
619
- readonly name: "";
620
- readonly type: "bool";
621
- }];
622
- readonly stateMutability: "view";
623
- readonly type: "function";
624
- }, {
625
- readonly inputs: readonly [{
626
- readonly internalType: "address";
627
- readonly name: "account";
628
- readonly type: "address";
629
- }];
630
- readonly name: "balanceOf";
631
- readonly outputs: readonly [{
632
- readonly internalType: "uint256";
633
- readonly name: "";
634
- readonly type: "uint256";
635
- }];
636
- readonly stateMutability: "view";
637
- readonly type: "function";
638
- }, {
639
- readonly inputs: readonly [{
640
- readonly internalType: "address";
641
- readonly name: "user";
642
- readonly type: "address";
643
- }];
644
- readonly name: "blacklisted";
645
- readonly outputs: readonly [{
646
- readonly internalType: "bool";
647
- readonly name: "";
648
- readonly type: "bool";
649
- }];
650
- readonly stateMutability: "view";
651
- readonly type: "function";
652
- }, {
653
- readonly inputs: readonly [{
654
- readonly internalType: "uint256";
655
- readonly name: "value";
656
- readonly type: "uint256";
657
- }];
658
- readonly name: "burn";
659
- readonly outputs: readonly [];
660
- readonly stateMutability: "nonpayable";
661
- readonly type: "function";
662
- }, {
663
- readonly inputs: readonly [{
664
- readonly internalType: "address";
665
- readonly name: "account";
666
- readonly type: "address";
667
- }, {
668
- readonly internalType: "uint256";
669
- readonly name: "value";
670
- readonly type: "uint256";
671
- }];
672
- readonly name: "burnFrom";
673
- readonly outputs: readonly [];
674
- readonly stateMutability: "nonpayable";
675
- readonly type: "function";
676
- }, {
677
- readonly inputs: readonly [{
678
- readonly internalType: "address";
679
- readonly name: "authorizer";
680
- readonly type: "address";
681
- }, {
682
- readonly internalType: "bytes32";
683
- readonly name: "nonce";
684
- readonly type: "bytes32";
685
- }, {
686
- readonly internalType: "uint8";
687
- readonly name: "v";
688
- readonly type: "uint8";
689
- }, {
690
- readonly internalType: "bytes32";
691
- readonly name: "r";
692
- readonly type: "bytes32";
693
- }, {
694
- readonly internalType: "bytes32";
695
- readonly name: "s";
696
- readonly type: "bytes32";
697
- }];
698
- readonly name: "cancelAuthorization";
699
- readonly outputs: readonly [];
700
- readonly stateMutability: "nonpayable";
701
- readonly type: "function";
702
- }, {
703
- readonly inputs: readonly [{
704
- readonly internalType: "address";
705
- readonly name: "authorizer";
706
- readonly type: "address";
707
- }, {
708
- readonly internalType: "bytes32";
709
- readonly name: "nonce";
710
- readonly type: "bytes32";
711
- }, {
712
- readonly internalType: "bytes";
713
- readonly name: "signature";
714
- readonly type: "bytes";
715
- }];
716
- readonly name: "cancelAuthorization";
717
- readonly outputs: readonly [];
718
- readonly stateMutability: "nonpayable";
719
- readonly type: "function";
720
- }, {
721
- readonly inputs: readonly [];
722
- readonly name: "decimals";
723
- readonly outputs: readonly [{
724
- readonly internalType: "uint8";
725
- readonly name: "";
726
- readonly type: "uint8";
727
- }];
728
- readonly stateMutability: "view";
729
- readonly type: "function";
730
- }, {
731
- readonly inputs: readonly [];
732
- readonly name: "eip712Domain";
733
- readonly outputs: readonly [{
734
- readonly internalType: "bytes1";
735
- readonly name: "fields";
736
- readonly type: "bytes1";
737
- }, {
738
- readonly internalType: "string";
739
- readonly name: "name";
740
- readonly type: "string";
741
- }, {
742
- readonly internalType: "string";
743
- readonly name: "version";
744
- readonly type: "string";
745
- }, {
746
- readonly internalType: "uint256";
747
- readonly name: "chainId";
748
- readonly type: "uint256";
749
- }, {
750
- readonly internalType: "address";
751
- readonly name: "verifyingContract";
752
- readonly type: "address";
753
- }, {
754
- readonly internalType: "bytes32";
755
- readonly name: "salt";
756
- readonly type: "bytes32";
757
- }, {
758
- readonly internalType: "uint256[]";
759
- readonly name: "extensions";
760
- readonly type: "uint256[]";
761
- }];
762
- readonly stateMutability: "view";
763
- readonly type: "function";
764
- }, {
765
- readonly inputs: readonly [{
766
- readonly internalType: "contract IERC20";
767
- readonly name: "token";
768
- readonly type: "address";
769
- }, {
770
- readonly internalType: "address";
771
- readonly name: "destination";
772
- readonly type: "address";
773
- }, {
774
- readonly internalType: "uint256";
775
- readonly name: "amount";
776
- readonly type: "uint256";
777
- }];
778
- readonly name: "erc20Rescue";
779
- readonly outputs: readonly [];
780
- readonly stateMutability: "nonpayable";
781
- readonly type: "function";
782
- }, {
783
- readonly inputs: readonly [{
784
- readonly internalType: "bytes32";
785
- readonly name: "role";
786
- readonly type: "bytes32";
787
- }];
788
- readonly name: "getRoleAdmin";
789
- readonly outputs: readonly [{
790
- readonly internalType: "bytes32";
791
- readonly name: "";
792
- readonly type: "bytes32";
793
- }];
794
- readonly stateMutability: "view";
795
- readonly type: "function";
796
- }, {
797
- readonly inputs: readonly [{
798
- readonly internalType: "bytes32";
799
- readonly name: "role";
800
- readonly type: "bytes32";
801
- }, {
802
- readonly internalType: "address";
803
- readonly name: "account";
804
- readonly type: "address";
805
- }];
806
- readonly name: "grantRole";
807
- readonly outputs: readonly [];
808
- readonly stateMutability: "nonpayable";
809
- readonly type: "function";
810
- }, {
811
- readonly inputs: readonly [{
812
- readonly internalType: "bytes32";
813
- readonly name: "role";
814
- readonly type: "bytes32";
815
- }, {
816
- readonly internalType: "address";
817
- readonly name: "account";
818
- readonly type: "address";
819
- }];
820
- readonly name: "hasRole";
821
- readonly outputs: readonly [{
822
- readonly internalType: "bool";
823
- readonly name: "";
824
- readonly type: "bool";
825
- }];
826
- readonly stateMutability: "view";
827
- readonly type: "function";
828
- }, {
829
- readonly inputs: readonly [{
830
- readonly internalType: "string";
831
- readonly name: "name_";
832
- readonly type: "string";
833
- }, {
834
- readonly internalType: "string";
835
- readonly name: "symbol_";
836
- readonly type: "string";
837
- }, {
838
- readonly internalType: "uint8";
839
- readonly name: "decimals_";
840
- readonly type: "uint8";
841
- }];
842
- readonly name: "initialize";
843
- readonly outputs: readonly [];
844
- readonly stateMutability: "nonpayable";
845
- readonly type: "function";
846
- }, {
847
- readonly inputs: readonly [{
848
- readonly internalType: "address";
849
- readonly name: "candidate";
850
- readonly type: "address";
851
- }];
852
- readonly name: "isTelcoinWallet";
853
- readonly outputs: readonly [{
854
- readonly internalType: "bool";
855
- readonly name: "";
856
- readonly type: "bool";
857
- }];
858
- readonly stateMutability: "view";
859
- readonly type: "function";
860
- }, {
861
- readonly inputs: readonly [{
862
- readonly internalType: "uint256";
863
- readonly name: "value";
864
- readonly type: "uint256";
865
- }];
866
- readonly name: "mint";
867
- readonly outputs: readonly [];
868
- readonly stateMutability: "nonpayable";
869
- readonly type: "function";
870
- }, {
871
- readonly inputs: readonly [{
872
- readonly internalType: "address";
873
- readonly name: "account";
874
- readonly type: "address";
875
- }, {
876
- readonly internalType: "uint256";
877
- readonly name: "value";
878
- readonly type: "uint256";
879
- }];
880
- readonly name: "mintTo";
881
- readonly outputs: readonly [];
882
- readonly stateMutability: "nonpayable";
883
- readonly type: "function";
884
- }, {
885
- readonly inputs: readonly [];
886
- readonly name: "name";
887
- readonly outputs: readonly [{
888
- readonly internalType: "string";
889
- readonly name: "";
890
- readonly type: "string";
891
- }];
892
- readonly stateMutability: "view";
893
- readonly type: "function";
894
- }, {
895
- readonly inputs: readonly [{
896
- readonly internalType: "address";
897
- readonly name: "owner";
898
- readonly type: "address";
899
- }];
900
- readonly name: "nonces";
901
- readonly outputs: readonly [{
902
- readonly internalType: "uint256";
903
- readonly name: "";
904
- readonly type: "uint256";
905
- }];
906
- readonly stateMutability: "view";
907
- readonly type: "function";
908
- }, {
909
- readonly inputs: readonly [];
910
- readonly name: "pause";
911
- readonly outputs: readonly [];
912
- readonly stateMutability: "nonpayable";
913
- readonly type: "function";
914
- }, {
915
- readonly inputs: readonly [];
916
- readonly name: "paused";
917
- readonly outputs: readonly [{
918
- readonly internalType: "bool";
919
- readonly name: "";
920
- readonly type: "bool";
921
- }];
922
- readonly stateMutability: "view";
923
- readonly type: "function";
924
- }, {
925
- readonly inputs: readonly [{
926
- readonly internalType: "address";
927
- readonly name: "owner_";
928
- readonly type: "address";
929
- }, {
930
- readonly internalType: "address";
931
- readonly name: "spender";
932
- readonly type: "address";
933
- }, {
934
- readonly internalType: "uint256";
935
- readonly name: "value";
936
- readonly type: "uint256";
937
- }, {
938
- readonly internalType: "uint256";
939
- readonly name: "deadline";
940
- readonly type: "uint256";
941
- }, {
942
- readonly internalType: "bytes";
943
- readonly name: "signature";
944
- readonly type: "bytes";
945
- }];
946
- readonly name: "permit";
947
- readonly outputs: readonly [];
948
- readonly stateMutability: "nonpayable";
949
- readonly type: "function";
950
- }, {
951
- readonly inputs: readonly [{
952
- readonly internalType: "address";
953
- readonly name: "owner";
954
- readonly type: "address";
955
- }, {
956
- readonly internalType: "address";
957
- readonly name: "spender";
958
- readonly type: "address";
959
- }, {
960
- readonly internalType: "uint256";
961
- readonly name: "value";
962
- readonly type: "uint256";
963
- }, {
964
- readonly internalType: "uint256";
965
- readonly name: "deadline";
966
- readonly type: "uint256";
967
- }, {
968
- readonly internalType: "uint8";
969
- readonly name: "v";
970
- readonly type: "uint8";
971
- }, {
972
- readonly internalType: "bytes32";
973
- readonly name: "r";
974
- readonly type: "bytes32";
975
- }, {
976
- readonly internalType: "bytes32";
977
- readonly name: "s";
978
- readonly type: "bytes32";
979
- }];
980
- readonly name: "permit";
981
- readonly outputs: readonly [];
982
- readonly stateMutability: "nonpayable";
983
- readonly type: "function";
984
- }, {
985
- readonly inputs: readonly [{
986
- readonly internalType: "address";
987
- readonly name: "from";
988
- readonly type: "address";
989
- }, {
990
- readonly internalType: "address";
991
- readonly name: "to";
992
- readonly type: "address";
993
- }, {
994
- readonly internalType: "uint256";
995
- readonly name: "value";
996
- readonly type: "uint256";
997
- }, {
998
- readonly internalType: "uint256";
999
- readonly name: "validAfter";
1000
- readonly type: "uint256";
1001
- }, {
1002
- readonly internalType: "uint256";
1003
- readonly name: "validBefore";
1004
- readonly type: "uint256";
1005
- }, {
1006
- readonly internalType: "bytes32";
1007
- readonly name: "nonce";
1008
- readonly type: "bytes32";
1009
- }, {
1010
- readonly internalType: "bytes";
1011
- readonly name: "signature";
1012
- readonly type: "bytes";
1013
- }];
1014
- readonly name: "receiveWithAuthorization";
1015
- readonly outputs: readonly [];
1016
- readonly stateMutability: "nonpayable";
1017
- readonly type: "function";
1018
- }, {
1019
- readonly inputs: readonly [{
1020
- readonly internalType: "address";
1021
- readonly name: "from";
1022
- readonly type: "address";
1023
- }, {
1024
- readonly internalType: "address";
1025
- readonly name: "to";
1026
- readonly type: "address";
1027
- }, {
1028
- readonly internalType: "uint256";
1029
- readonly name: "value";
1030
- readonly type: "uint256";
1031
- }, {
1032
- readonly internalType: "uint256";
1033
- readonly name: "validAfter";
1034
- readonly type: "uint256";
1035
- }, {
1036
- readonly internalType: "uint256";
1037
- readonly name: "validBefore";
1038
- readonly type: "uint256";
1039
- }, {
1040
- readonly internalType: "bytes32";
1041
- readonly name: "nonce";
1042
- readonly type: "bytes32";
1043
- }, {
1044
- readonly internalType: "uint8";
1045
- readonly name: "v";
1046
- readonly type: "uint8";
1047
- }, {
1048
- readonly internalType: "bytes32";
1049
- readonly name: "r";
1050
- readonly type: "bytes32";
1051
- }, {
1052
- readonly internalType: "bytes32";
1053
- readonly name: "s";
1054
- readonly type: "bytes32";
1055
- }];
1056
- readonly name: "receiveWithAuthorization";
1057
- readonly outputs: readonly [];
1058
- readonly stateMutability: "nonpayable";
1059
- readonly type: "function";
1060
- }, {
1061
- readonly inputs: readonly [{
1062
- readonly internalType: "address";
1063
- readonly name: "user";
1064
- readonly type: "address";
1065
- }];
1066
- readonly name: "removeBlackList";
1067
- readonly outputs: readonly [];
1068
- readonly stateMutability: "nonpayable";
1069
- readonly type: "function";
1070
- }, {
1071
- readonly inputs: readonly [{
1072
- readonly internalType: "bytes32";
1073
- readonly name: "role";
1074
- readonly type: "bytes32";
1075
- }, {
1076
- readonly internalType: "address";
1077
- readonly name: "callerConfirmation";
1078
- readonly type: "address";
1079
- }];
1080
- readonly name: "renounceRole";
1081
- readonly outputs: readonly [];
1082
- readonly stateMutability: "nonpayable";
1083
- readonly type: "function";
1084
- }, {
1085
- readonly inputs: readonly [{
1086
- readonly internalType: "bytes32";
1087
- readonly name: "role";
1088
- readonly type: "bytes32";
1089
- }, {
1090
- readonly internalType: "address";
1091
- readonly name: "account";
1092
- readonly type: "address";
1093
- }];
1094
- readonly name: "revokeRole";
1095
- readonly outputs: readonly [];
1096
- readonly stateMutability: "nonpayable";
1097
- readonly type: "function";
1098
- }, {
1099
- readonly inputs: readonly [{
1100
- readonly internalType: "bytes4";
1101
- readonly name: "interfaceId";
1102
- readonly type: "bytes4";
1103
- }];
1104
- readonly name: "supportsInterface";
1105
- readonly outputs: readonly [{
1106
- readonly internalType: "bool";
1107
- readonly name: "";
1108
- readonly type: "bool";
1109
- }];
1110
- readonly stateMutability: "view";
1111
- readonly type: "function";
1112
- }, {
1113
- readonly inputs: readonly [];
1114
- readonly name: "symbol";
1115
- readonly outputs: readonly [{
1116
- readonly internalType: "string";
1117
- readonly name: "";
1118
- readonly type: "string";
1119
- }];
1120
- readonly stateMutability: "view";
1121
- readonly type: "function";
1122
- }, {
1123
- readonly inputs: readonly [];
1124
- readonly name: "totalSupply";
1125
- readonly outputs: readonly [{
1126
- readonly internalType: "uint256";
1127
- readonly name: "";
1128
- readonly type: "uint256";
1129
- }];
1130
- readonly stateMutability: "view";
1131
- readonly type: "function";
1132
- }, {
1133
- readonly inputs: readonly [{
1134
- readonly internalType: "address";
1135
- readonly name: "to";
1136
- readonly type: "address";
1137
- }, {
1138
- readonly internalType: "uint256";
1139
- readonly name: "value";
1140
- readonly type: "uint256";
1141
- }];
1142
- readonly name: "transfer";
1143
- readonly outputs: readonly [{
1144
- readonly internalType: "bool";
1145
- readonly name: "";
1146
- readonly type: "bool";
1147
- }];
1148
- readonly stateMutability: "nonpayable";
1149
- readonly type: "function";
1150
- }, {
1151
- readonly inputs: readonly [{
1152
- readonly internalType: "address";
1153
- readonly name: "from";
1154
- readonly type: "address";
1155
- }, {
1156
- readonly internalType: "address";
1157
- readonly name: "to";
1158
- readonly type: "address";
1159
- }, {
1160
- readonly internalType: "uint256";
1161
- readonly name: "value";
1162
- readonly type: "uint256";
1163
- }];
1164
- readonly name: "transferFrom";
1165
- readonly outputs: readonly [{
1166
- readonly internalType: "bool";
1167
- readonly name: "";
1168
- readonly type: "bool";
1169
- }];
1170
- readonly stateMutability: "nonpayable";
1171
- readonly type: "function";
1172
- }, {
1173
- readonly inputs: readonly [{
1174
- readonly internalType: "address";
1175
- readonly name: "from";
1176
- readonly type: "address";
1177
- }, {
1178
- readonly internalType: "address";
1179
- readonly name: "to";
1180
- readonly type: "address";
1181
- }, {
1182
- readonly internalType: "uint256";
1183
- readonly name: "value";
1184
- readonly type: "uint256";
1185
- }, {
1186
- readonly internalType: "uint256";
1187
- readonly name: "validAfter";
1188
- readonly type: "uint256";
1189
- }, {
1190
- readonly internalType: "uint256";
1191
- readonly name: "validBefore";
1192
- readonly type: "uint256";
1193
- }, {
1194
- readonly internalType: "bytes32";
1195
- readonly name: "nonce";
1196
- readonly type: "bytes32";
1197
- }, {
1198
- readonly internalType: "bytes";
1199
- readonly name: "signature";
1200
- readonly type: "bytes";
1201
- }];
1202
- readonly name: "transferWithAuthorization";
1203
- readonly outputs: readonly [];
1204
- readonly stateMutability: "nonpayable";
1205
- readonly type: "function";
1206
- }, {
1207
- readonly inputs: readonly [{
1208
- readonly internalType: "address";
1209
- readonly name: "from";
1210
- readonly type: "address";
1211
- }, {
1212
- readonly internalType: "address";
1213
- readonly name: "to";
1214
- readonly type: "address";
1215
- }, {
1216
- readonly internalType: "uint256";
1217
- readonly name: "value";
1218
- readonly type: "uint256";
1219
- }, {
1220
- readonly internalType: "uint256";
1221
- readonly name: "validAfter";
1222
- readonly type: "uint256";
1223
- }, {
1224
- readonly internalType: "uint256";
1225
- readonly name: "validBefore";
1226
- readonly type: "uint256";
1227
- }, {
1228
- readonly internalType: "bytes32";
1229
- readonly name: "nonce";
1230
- readonly type: "bytes32";
1231
- }, {
1232
- readonly internalType: "uint8";
1233
- readonly name: "v";
1234
- readonly type: "uint8";
1235
- }, {
1236
- readonly internalType: "bytes32";
1237
- readonly name: "r";
1238
- readonly type: "bytes32";
1239
- }, {
1240
- readonly internalType: "bytes32";
1241
- readonly name: "s";
1242
- readonly type: "bytes32";
1243
- }];
1244
- readonly name: "transferWithAuthorization";
1245
- readonly outputs: readonly [];
1246
- readonly stateMutability: "nonpayable";
1247
- readonly type: "function";
1248
- }, {
1249
- readonly inputs: readonly [];
1250
- readonly name: "unpause";
1251
- readonly outputs: readonly [];
1252
- readonly stateMutability: "nonpayable";
1253
- readonly type: "function";
1254
- }];
1255
- /**
1256
- * Type-safe ABI for Stablecoin_json
1257
- */
1258
- export type Stablecoin_jsonAbi = typeof Stablecoin_jsonAbi;
1259
- /**
1260
- * Contract instance type for Stablecoin_json
1261
- */
1262
- export type Stablecoin_jsonContract = any;
1263
- /**
1264
- * Stablecoin_json Contract Class
1265
- *
1266
- * Provides a class-based API similar to TypeChain for interacting with the contract.
1267
- *
1268
- * @example
1269
- * ```typescript
1270
- * import { createPublicClient, createWalletClient, http } from 'viem';
1271
- * import { mainnet } from 'viem/chains';
1272
- * import { Stablecoin_json } from 'Stablecoin_json';
1273
- *
1274
- * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
1275
- * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
1276
- *
1277
- * const contract = new Stablecoin_json('0x...', { publicClient, walletClient });
1278
- *
1279
- * // Read functions
1280
- * const result = await contract.balanceOf('0x...');
1281
- *
1282
- * // Write functions
1283
- * const hash = await contract.transfer('0x...', 1000n);
1284
- *
1285
- * // Simulate transactions (dry-run)
1286
- * const simulation = await contract.simulate.transfer('0x...', 1000n);
1287
- * console.log('Gas estimate:', simulation.request.gas);
1288
- *
1289
- * // Watch events
1290
- * const unwatch = contract.watch.Transfer((event) => {
1291
- * console.log('Transfer event:', event);
1292
- * });
1293
- * ```
1294
- */
1295
- export declare class Stablecoin_json {
1296
- private contract;
1297
- private contractAddress;
1298
- private publicClient;
1299
- constructor(address: Address, clients: {
1300
- publicClient: PublicClient;
1301
- walletClient?: WalletClient;
1302
- });
1303
- /**
1304
- * Get the contract address
1305
- */
1306
- get address(): Address;
1307
- /**
1308
- * Get the underlying viem contract instance
1309
- */
1310
- getContract(): Stablecoin_jsonContract;
1311
- /**
1312
- * BLACKLISTER_ROLE
1313
- * view
1314
- */
1315
- BLACKLISTER_ROLE(): Promise<`0x${string}`>;
1316
- /**
1317
- * BURNER_ROLE
1318
- * view
1319
- */
1320
- BURNER_ROLE(): Promise<`0x${string}`>;
1321
- /**
1322
- * CANCEL_AUTHORIZATION_TYPEHASH
1323
- * view
1324
- */
1325
- CANCEL_AUTHORIZATION_TYPEHASH(): Promise<`0x${string}`>;
1326
- /**
1327
- * DEFAULT_ADMIN_ROLE
1328
- * view
1329
- */
1330
- DEFAULT_ADMIN_ROLE(): Promise<`0x${string}`>;
1331
- /**
1332
- * DOMAIN_SEPARATOR
1333
- * view
1334
- */
1335
- DOMAIN_SEPARATOR(): Promise<`0x${string}`>;
1336
- /**
1337
- * MINTER_ROLE
1338
- * view
1339
- */
1340
- MINTER_ROLE(): Promise<`0x${string}`>;
1341
- /**
1342
- * PAUSER_ROLE
1343
- * view
1344
- */
1345
- PAUSER_ROLE(): Promise<`0x${string}`>;
1346
- /**
1347
- * PERMIT_TYPEHASH
1348
- * view
1349
- */
1350
- PERMIT_TYPEHASH(): Promise<`0x${string}`>;
1351
- /**
1352
- * RECEIVE_WITH_AUTHORIZATION_TYPEHASH
1353
- * view
1354
- */
1355
- RECEIVE_WITH_AUTHORIZATION_TYPEHASH(): Promise<`0x${string}`>;
1356
- /**
1357
- * SUPPORT_ROLE
1358
- * view
1359
- */
1360
- SUPPORT_ROLE(): Promise<`0x${string}`>;
1361
- /**
1362
- * TRANSFER_WITH_AUTHORIZATION_TYPEHASH
1363
- * view
1364
- */
1365
- TRANSFER_WITH_AUTHORIZATION_TYPEHASH(): Promise<`0x${string}`>;
1366
- /**
1367
- * UNPAUSER_ROLE
1368
- * view
1369
- */
1370
- UNPAUSER_ROLE(): Promise<`0x${string}`>;
1371
- /**
1372
- * WALLET_CODEHASH_A
1373
- * view
1374
- */
1375
- WALLET_CODEHASH_A(): Promise<`0x${string}`>;
1376
- /**
1377
- * WALLET_CODEHASH_B
1378
- * view
1379
- */
1380
- WALLET_CODEHASH_B(): Promise<`0x${string}`>;
1381
- /**
1382
- * WALLET_CODEHASH_C
1383
- * view
1384
- */
1385
- WALLET_CODEHASH_C(): Promise<`0x${string}`>;
1386
- /**
1387
- * WALLET_CODEHASH_D
1388
- * view
1389
- */
1390
- WALLET_CODEHASH_D(): Promise<`0x${string}`>;
1391
- /**
1392
- * allowance
1393
- * view
1394
- */
1395
- allowance(owner: `0x${string}`, spender: `0x${string}`): Promise<bigint>;
1396
- /**
1397
- * authorizationState
1398
- * view
1399
- */
1400
- authorizationState(authorizer: `0x${string}`, nonce: `0x${string}`): Promise<boolean>;
1401
- /**
1402
- * balanceOf
1403
- * view
1404
- */
1405
- balanceOf(account: `0x${string}`): Promise<bigint>;
1406
- /**
1407
- * blacklisted
1408
- * view
1409
- */
1410
- blacklisted(user: `0x${string}`): Promise<boolean>;
1411
- /**
1412
- * decimals
1413
- * view
1414
- */
1415
- decimals(): Promise<bigint>;
1416
- /**
1417
- * eip712Domain
1418
- * view
1419
- */
1420
- eip712Domain(): Promise<[`0x${string}`, string, string, bigint, `0x${string}`, `0x${string}`, bigint[]]>;
1421
- /**
1422
- * getRoleAdmin
1423
- * view
1424
- */
1425
- getRoleAdmin(role: `0x${string}`): Promise<`0x${string}`>;
1426
- /**
1427
- * hasRole
1428
- * view
1429
- */
1430
- hasRole(role: `0x${string}`, account: `0x${string}`): Promise<boolean>;
1431
- /**
1432
- * isTelcoinWallet
1433
- * view
1434
- */
1435
- isTelcoinWallet(candidate: `0x${string}`): Promise<boolean>;
1436
- /**
1437
- * name
1438
- * view
1439
- */
1440
- name(): Promise<string>;
1441
- /**
1442
- * nonces
1443
- * view
1444
- */
1445
- nonces(owner: `0x${string}`): Promise<bigint>;
1446
- /**
1447
- * paused
1448
- * view
1449
- */
1450
- paused(): Promise<boolean>;
1451
- /**
1452
- * supportsInterface
1453
- * view
1454
- */
1455
- supportsInterface(interfaceId: `0x${string}`): Promise<boolean>;
1456
- /**
1457
- * symbol
1458
- * view
1459
- */
1460
- symbol(): Promise<string>;
1461
- /**
1462
- * totalSupply
1463
- * view
1464
- */
1465
- totalSupply(): Promise<bigint>;
1466
- /**
1467
- * addBlackList
1468
- * nonpayable
1469
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1470
- */
1471
- addBlackList(user: `0x${string}`, 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<`0x${string}`>;
1483
- /**
1484
- * approve
1485
- * nonpayable
1486
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1487
- */
1488
- approve(spender: `0x${string}`, value: bigint, 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<`0x${string}`>;
1500
- /**
1501
- * burn
1502
- * nonpayable
1503
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1504
- */
1505
- burn(value: bigint, 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<`0x${string}`>;
1517
- /**
1518
- * burnFrom
1519
- * nonpayable
1520
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1521
- */
1522
- burnFrom(account: `0x${string}`, value: bigint, 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<`0x${string}`>;
1534
- cancelAuthorization(authorizer: `0x${string}`, nonce: `0x${string}`, v: bigint, r: `0x${string}`, s: `0x${string}`, options?: {
1535
- accessList?: import('viem').AccessList;
1536
- authorizationList?: import('viem').AuthorizationList;
1537
- chain?: import('viem').Chain | null;
1538
- dataSuffix?: `0x${string}`;
1539
- gas?: bigint;
1540
- gasPrice?: bigint;
1541
- maxFeePerGas?: bigint;
1542
- maxPriorityFeePerGas?: bigint;
1543
- nonce?: number;
1544
- value?: bigint;
1545
- }): Promise<`0x${string}`>;
1546
- cancelAuthorization(authorizer: `0x${string}`, nonce: `0x${string}`, signature: `0x${string}`, options?: {
1547
- accessList?: import('viem').AccessList;
1548
- authorizationList?: import('viem').AuthorizationList;
1549
- chain?: import('viem').Chain | null;
1550
- dataSuffix?: `0x${string}`;
1551
- gas?: bigint;
1552
- gasPrice?: bigint;
1553
- maxFeePerGas?: bigint;
1554
- maxPriorityFeePerGas?: bigint;
1555
- nonce?: number;
1556
- value?: bigint;
1557
- }): Promise<`0x${string}`>;
1558
- /**
1559
- * erc20Rescue
1560
- * nonpayable
1561
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1562
- */
1563
- erc20Rescue(token: `0x${string}`, destination: `0x${string}`, amount: bigint, options?: {
1564
- accessList?: import('viem').AccessList;
1565
- authorizationList?: import('viem').AuthorizationList;
1566
- chain?: import('viem').Chain | null;
1567
- dataSuffix?: `0x${string}`;
1568
- gas?: bigint;
1569
- gasPrice?: bigint;
1570
- maxFeePerGas?: bigint;
1571
- maxPriorityFeePerGas?: bigint;
1572
- nonce?: number;
1573
- value?: bigint;
1574
- }): Promise<`0x${string}`>;
1575
- /**
1576
- * grantRole
1577
- * nonpayable
1578
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1579
- */
1580
- grantRole(role: `0x${string}`, account: `0x${string}`, options?: {
1581
- accessList?: import('viem').AccessList;
1582
- authorizationList?: import('viem').AuthorizationList;
1583
- chain?: import('viem').Chain | null;
1584
- dataSuffix?: `0x${string}`;
1585
- gas?: bigint;
1586
- gasPrice?: bigint;
1587
- maxFeePerGas?: bigint;
1588
- maxPriorityFeePerGas?: bigint;
1589
- nonce?: number;
1590
- value?: bigint;
1591
- }): Promise<`0x${string}`>;
1592
- /**
1593
- * initialize
1594
- * nonpayable
1595
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1596
- */
1597
- initialize(name_: string, symbol_: string, decimals_: bigint, options?: {
1598
- accessList?: import('viem').AccessList;
1599
- authorizationList?: import('viem').AuthorizationList;
1600
- chain?: import('viem').Chain | null;
1601
- dataSuffix?: `0x${string}`;
1602
- gas?: bigint;
1603
- gasPrice?: bigint;
1604
- maxFeePerGas?: bigint;
1605
- maxPriorityFeePerGas?: bigint;
1606
- nonce?: number;
1607
- value?: bigint;
1608
- }): Promise<`0x${string}`>;
1609
- /**
1610
- * mint
1611
- * nonpayable
1612
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1613
- */
1614
- mint(value: bigint, options?: {
1615
- accessList?: import('viem').AccessList;
1616
- authorizationList?: import('viem').AuthorizationList;
1617
- chain?: import('viem').Chain | null;
1618
- dataSuffix?: `0x${string}`;
1619
- gas?: bigint;
1620
- gasPrice?: bigint;
1621
- maxFeePerGas?: bigint;
1622
- maxPriorityFeePerGas?: bigint;
1623
- nonce?: number;
1624
- value?: bigint;
1625
- }): Promise<`0x${string}`>;
1626
- /**
1627
- * mintTo
1628
- * nonpayable
1629
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1630
- */
1631
- mintTo(account: `0x${string}`, value: bigint, options?: {
1632
- accessList?: import('viem').AccessList;
1633
- authorizationList?: import('viem').AuthorizationList;
1634
- chain?: import('viem').Chain | null;
1635
- dataSuffix?: `0x${string}`;
1636
- gas?: bigint;
1637
- gasPrice?: bigint;
1638
- maxFeePerGas?: bigint;
1639
- maxPriorityFeePerGas?: bigint;
1640
- nonce?: number;
1641
- value?: bigint;
1642
- }): Promise<`0x${string}`>;
1643
- /**
1644
- * pause
1645
- * nonpayable
1646
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1647
- */
1648
- pause(options?: {
1649
- accessList?: import('viem').AccessList;
1650
- authorizationList?: import('viem').AuthorizationList;
1651
- chain?: import('viem').Chain | null;
1652
- dataSuffix?: `0x${string}`;
1653
- gas?: bigint;
1654
- gasPrice?: bigint;
1655
- maxFeePerGas?: bigint;
1656
- maxPriorityFeePerGas?: bigint;
1657
- nonce?: number;
1658
- value?: bigint;
1659
- }): Promise<`0x${string}`>;
1660
- permit(owner_: `0x${string}`, spender: `0x${string}`, value: bigint, deadline: bigint, signature: `0x${string}`, options?: {
1661
- accessList?: import('viem').AccessList;
1662
- authorizationList?: import('viem').AuthorizationList;
1663
- chain?: import('viem').Chain | null;
1664
- dataSuffix?: `0x${string}`;
1665
- gas?: bigint;
1666
- gasPrice?: bigint;
1667
- maxFeePerGas?: bigint;
1668
- maxPriorityFeePerGas?: bigint;
1669
- nonce?: number;
1670
- value?: bigint;
1671
- }): Promise<`0x${string}`>;
1672
- permit(owner: `0x${string}`, spender: `0x${string}`, value: bigint, deadline: bigint, v: bigint, r: `0x${string}`, s: `0x${string}`, options?: {
1673
- accessList?: import('viem').AccessList;
1674
- authorizationList?: import('viem').AuthorizationList;
1675
- chain?: import('viem').Chain | null;
1676
- dataSuffix?: `0x${string}`;
1677
- gas?: bigint;
1678
- gasPrice?: bigint;
1679
- maxFeePerGas?: bigint;
1680
- maxPriorityFeePerGas?: bigint;
1681
- nonce?: number;
1682
- value?: bigint;
1683
- }): Promise<`0x${string}`>;
1684
- receiveWithAuthorization(from: `0x${string}`, to: `0x${string}`, value: bigint, validAfter: bigint, validBefore: bigint, nonce: `0x${string}`, signature: `0x${string}`, options?: {
1685
- accessList?: import('viem').AccessList;
1686
- authorizationList?: import('viem').AuthorizationList;
1687
- chain?: import('viem').Chain | null;
1688
- dataSuffix?: `0x${string}`;
1689
- gas?: bigint;
1690
- gasPrice?: bigint;
1691
- maxFeePerGas?: bigint;
1692
- maxPriorityFeePerGas?: bigint;
1693
- nonce?: number;
1694
- value?: bigint;
1695
- }): Promise<`0x${string}`>;
1696
- receiveWithAuthorization(from: `0x${string}`, to: `0x${string}`, value: bigint, validAfter: bigint, validBefore: bigint, nonce: `0x${string}`, v: bigint, r: `0x${string}`, s: `0x${string}`, options?: {
1697
- accessList?: import('viem').AccessList;
1698
- authorizationList?: import('viem').AuthorizationList;
1699
- chain?: import('viem').Chain | null;
1700
- dataSuffix?: `0x${string}`;
1701
- gas?: bigint;
1702
- gasPrice?: bigint;
1703
- maxFeePerGas?: bigint;
1704
- maxPriorityFeePerGas?: bigint;
1705
- nonce?: number;
1706
- value?: bigint;
1707
- }): Promise<`0x${string}`>;
1708
- /**
1709
- * removeBlackList
1710
- * nonpayable
1711
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1712
- */
1713
- removeBlackList(user: `0x${string}`, options?: {
1714
- accessList?: import('viem').AccessList;
1715
- authorizationList?: import('viem').AuthorizationList;
1716
- chain?: import('viem').Chain | null;
1717
- dataSuffix?: `0x${string}`;
1718
- gas?: bigint;
1719
- gasPrice?: bigint;
1720
- maxFeePerGas?: bigint;
1721
- maxPriorityFeePerGas?: bigint;
1722
- nonce?: number;
1723
- value?: bigint;
1724
- }): Promise<`0x${string}`>;
1725
- /**
1726
- * renounceRole
1727
- * nonpayable
1728
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1729
- */
1730
- renounceRole(role: `0x${string}`, callerConfirmation: `0x${string}`, options?: {
1731
- accessList?: import('viem').AccessList;
1732
- authorizationList?: import('viem').AuthorizationList;
1733
- chain?: import('viem').Chain | null;
1734
- dataSuffix?: `0x${string}`;
1735
- gas?: bigint;
1736
- gasPrice?: bigint;
1737
- maxFeePerGas?: bigint;
1738
- maxPriorityFeePerGas?: bigint;
1739
- nonce?: number;
1740
- value?: bigint;
1741
- }): Promise<`0x${string}`>;
1742
- /**
1743
- * revokeRole
1744
- * nonpayable
1745
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1746
- */
1747
- revokeRole(role: `0x${string}`, account: `0x${string}`, options?: {
1748
- accessList?: import('viem').AccessList;
1749
- authorizationList?: import('viem').AuthorizationList;
1750
- chain?: import('viem').Chain | null;
1751
- dataSuffix?: `0x${string}`;
1752
- gas?: bigint;
1753
- gasPrice?: bigint;
1754
- maxFeePerGas?: bigint;
1755
- maxPriorityFeePerGas?: bigint;
1756
- nonce?: number;
1757
- value?: bigint;
1758
- }): Promise<`0x${string}`>;
1759
- /**
1760
- * transfer
1761
- * nonpayable
1762
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1763
- */
1764
- transfer(to: `0x${string}`, value: bigint, options?: {
1765
- accessList?: import('viem').AccessList;
1766
- authorizationList?: import('viem').AuthorizationList;
1767
- chain?: import('viem').Chain | null;
1768
- dataSuffix?: `0x${string}`;
1769
- gas?: bigint;
1770
- gasPrice?: bigint;
1771
- maxFeePerGas?: bigint;
1772
- maxPriorityFeePerGas?: bigint;
1773
- nonce?: number;
1774
- value?: bigint;
1775
- }): Promise<`0x${string}`>;
1776
- /**
1777
- * transferFrom
1778
- * nonpayable
1779
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1780
- */
1781
- transferFrom(from: `0x${string}`, to: `0x${string}`, value: bigint, options?: {
1782
- accessList?: import('viem').AccessList;
1783
- authorizationList?: import('viem').AuthorizationList;
1784
- chain?: import('viem').Chain | null;
1785
- dataSuffix?: `0x${string}`;
1786
- gas?: bigint;
1787
- gasPrice?: bigint;
1788
- maxFeePerGas?: bigint;
1789
- maxPriorityFeePerGas?: bigint;
1790
- nonce?: number;
1791
- value?: bigint;
1792
- }): Promise<`0x${string}`>;
1793
- transferWithAuthorization(from: `0x${string}`, to: `0x${string}`, value: bigint, validAfter: bigint, validBefore: bigint, nonce: `0x${string}`, signature: `0x${string}`, options?: {
1794
- accessList?: import('viem').AccessList;
1795
- authorizationList?: import('viem').AuthorizationList;
1796
- chain?: import('viem').Chain | null;
1797
- dataSuffix?: `0x${string}`;
1798
- gas?: bigint;
1799
- gasPrice?: bigint;
1800
- maxFeePerGas?: bigint;
1801
- maxPriorityFeePerGas?: bigint;
1802
- nonce?: number;
1803
- value?: bigint;
1804
- }): Promise<`0x${string}`>;
1805
- transferWithAuthorization(from: `0x${string}`, to: `0x${string}`, value: bigint, validAfter: bigint, validBefore: bigint, nonce: `0x${string}`, v: bigint, r: `0x${string}`, s: `0x${string}`, options?: {
1806
- accessList?: import('viem').AccessList;
1807
- authorizationList?: import('viem').AuthorizationList;
1808
- chain?: import('viem').Chain | null;
1809
- dataSuffix?: `0x${string}`;
1810
- gas?: bigint;
1811
- gasPrice?: bigint;
1812
- maxFeePerGas?: bigint;
1813
- maxPriorityFeePerGas?: bigint;
1814
- nonce?: number;
1815
- value?: bigint;
1816
- }): Promise<`0x${string}`>;
1817
- /**
1818
- * unpause
1819
- * nonpayable
1820
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1821
- */
1822
- unpause(options?: {
1823
- accessList?: import('viem').AccessList;
1824
- authorizationList?: import('viem').AuthorizationList;
1825
- chain?: import('viem').Chain | null;
1826
- dataSuffix?: `0x${string}`;
1827
- gas?: bigint;
1828
- gasPrice?: bigint;
1829
- maxFeePerGas?: bigint;
1830
- maxPriorityFeePerGas?: bigint;
1831
- nonce?: number;
1832
- value?: bigint;
1833
- }): Promise<`0x${string}`>;
1834
- /**
1835
- * Simulate contract write operations (dry-run without sending transaction)
1836
- *
1837
- * @example
1838
- * const result = await contract.simulate.transfer('0x...', 1000n);
1839
- * console.log('Gas estimate:', result.request.gas);
1840
- * console.log('Would succeed:', result.result);
1841
- */
1842
- get simulate(): {
1843
- /**
1844
- * Simulate addBlackList
1845
- * Returns gas estimate and result without sending transaction
1846
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1847
- */
1848
- addBlackList(user: `0x${string}`, options?: {
1849
- accessList?: import("viem").AccessList;
1850
- authorizationList?: import("viem").AuthorizationList;
1851
- chain?: import("viem").Chain | null;
1852
- dataSuffix?: `0x${string}`;
1853
- gas?: bigint;
1854
- gasPrice?: bigint;
1855
- maxFeePerGas?: bigint;
1856
- maxPriorityFeePerGas?: bigint;
1857
- nonce?: number;
1858
- value?: bigint;
1859
- }): Promise<void>;
1860
- /**
1861
- * Simulate approve
1862
- * Returns gas estimate and result without sending transaction
1863
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1864
- */
1865
- approve(spender: `0x${string}`, value: bigint, options?: {
1866
- accessList?: import("viem").AccessList;
1867
- authorizationList?: import("viem").AuthorizationList;
1868
- chain?: import("viem").Chain | null;
1869
- dataSuffix?: `0x${string}`;
1870
- gas?: bigint;
1871
- gasPrice?: bigint;
1872
- maxFeePerGas?: bigint;
1873
- maxPriorityFeePerGas?: bigint;
1874
- nonce?: number;
1875
- value?: bigint;
1876
- }): Promise<boolean>;
1877
- /**
1878
- * Simulate burn
1879
- * Returns gas estimate and result without sending transaction
1880
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1881
- */
1882
- burn(value: bigint, options?: {
1883
- accessList?: import("viem").AccessList;
1884
- authorizationList?: import("viem").AuthorizationList;
1885
- chain?: import("viem").Chain | null;
1886
- dataSuffix?: `0x${string}`;
1887
- gas?: bigint;
1888
- gasPrice?: bigint;
1889
- maxFeePerGas?: bigint;
1890
- maxPriorityFeePerGas?: bigint;
1891
- nonce?: number;
1892
- value?: bigint;
1893
- }): Promise<void>;
1894
- /**
1895
- * Simulate burnFrom
1896
- * Returns gas estimate and result without sending transaction
1897
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1898
- */
1899
- burnFrom(account: `0x${string}`, value: bigint, options?: {
1900
- accessList?: import("viem").AccessList;
1901
- authorizationList?: import("viem").AuthorizationList;
1902
- chain?: import("viem").Chain | null;
1903
- dataSuffix?: `0x${string}`;
1904
- gas?: bigint;
1905
- gasPrice?: bigint;
1906
- maxFeePerGas?: bigint;
1907
- maxPriorityFeePerGas?: bigint;
1908
- nonce?: number;
1909
- value?: bigint;
1910
- }): Promise<void>;
1911
- /**
1912
- * Simulate cancelAuthorization
1913
- * Returns gas estimate and result without sending transaction
1914
- * Supports multiple overloads: (address, bytes32, uint8, bytes32, bytes32), (address, bytes32, bytes)
1915
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1916
- */
1917
- cancelAuthorization(...args: any[]): Promise<any>;
1918
- /**
1919
- * Simulate erc20Rescue
1920
- * Returns gas estimate and result without sending transaction
1921
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1922
- */
1923
- erc20Rescue(token: `0x${string}`, destination: `0x${string}`, amount: bigint, options?: {
1924
- accessList?: import("viem").AccessList;
1925
- authorizationList?: import("viem").AuthorizationList;
1926
- chain?: import("viem").Chain | null;
1927
- dataSuffix?: `0x${string}`;
1928
- gas?: bigint;
1929
- gasPrice?: bigint;
1930
- maxFeePerGas?: bigint;
1931
- maxPriorityFeePerGas?: bigint;
1932
- nonce?: number;
1933
- value?: bigint;
1934
- }): Promise<void>;
1935
- /**
1936
- * Simulate grantRole
1937
- * Returns gas estimate and result without sending transaction
1938
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1939
- */
1940
- grantRole(role: `0x${string}`, account: `0x${string}`, options?: {
1941
- accessList?: import("viem").AccessList;
1942
- authorizationList?: import("viem").AuthorizationList;
1943
- chain?: import("viem").Chain | null;
1944
- dataSuffix?: `0x${string}`;
1945
- gas?: bigint;
1946
- gasPrice?: bigint;
1947
- maxFeePerGas?: bigint;
1948
- maxPriorityFeePerGas?: bigint;
1949
- nonce?: number;
1950
- value?: bigint;
1951
- }): Promise<void>;
1952
- /**
1953
- * Simulate initialize
1954
- * Returns gas estimate and result without sending transaction
1955
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1956
- */
1957
- initialize(name_: string, symbol_: string, decimals_: bigint, options?: {
1958
- accessList?: import("viem").AccessList;
1959
- authorizationList?: import("viem").AuthorizationList;
1960
- chain?: import("viem").Chain | null;
1961
- dataSuffix?: `0x${string}`;
1962
- gas?: bigint;
1963
- gasPrice?: bigint;
1964
- maxFeePerGas?: bigint;
1965
- maxPriorityFeePerGas?: bigint;
1966
- nonce?: number;
1967
- value?: bigint;
1968
- }): Promise<void>;
1969
- /**
1970
- * Simulate mint
1971
- * Returns gas estimate and result without sending transaction
1972
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1973
- */
1974
- mint(value: bigint, options?: {
1975
- accessList?: import("viem").AccessList;
1976
- authorizationList?: import("viem").AuthorizationList;
1977
- chain?: import("viem").Chain | null;
1978
- dataSuffix?: `0x${string}`;
1979
- gas?: bigint;
1980
- gasPrice?: bigint;
1981
- maxFeePerGas?: bigint;
1982
- maxPriorityFeePerGas?: bigint;
1983
- nonce?: number;
1984
- value?: bigint;
1985
- }): Promise<void>;
1986
- /**
1987
- * Simulate mintTo
1988
- * Returns gas estimate and result without sending transaction
1989
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1990
- */
1991
- mintTo(account: `0x${string}`, value: bigint, options?: {
1992
- accessList?: import("viem").AccessList;
1993
- authorizationList?: import("viem").AuthorizationList;
1994
- chain?: import("viem").Chain | null;
1995
- dataSuffix?: `0x${string}`;
1996
- gas?: bigint;
1997
- gasPrice?: bigint;
1998
- maxFeePerGas?: bigint;
1999
- maxPriorityFeePerGas?: bigint;
2000
- nonce?: number;
2001
- value?: bigint;
2002
- }): Promise<void>;
2003
- /**
2004
- * Simulate pause
2005
- * Returns gas estimate and result without sending transaction
2006
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2007
- */
2008
- pause(options?: {
2009
- accessList?: import("viem").AccessList;
2010
- authorizationList?: import("viem").AuthorizationList;
2011
- chain?: import("viem").Chain | null;
2012
- dataSuffix?: `0x${string}`;
2013
- gas?: bigint;
2014
- gasPrice?: bigint;
2015
- maxFeePerGas?: bigint;
2016
- maxPriorityFeePerGas?: bigint;
2017
- nonce?: number;
2018
- value?: bigint;
2019
- }): Promise<void>;
2020
- /**
2021
- * Simulate permit
2022
- * Returns gas estimate and result without sending transaction
2023
- * Supports multiple overloads: (address, address, uint256, uint256, bytes), (address, address, uint256, uint256, uint8, bytes32, bytes32)
2024
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2025
- */
2026
- permit(...args: any[]): Promise<any>;
2027
- /**
2028
- * Simulate receiveWithAuthorization
2029
- * Returns gas estimate and result without sending transaction
2030
- * Supports multiple overloads: (address, address, uint256, uint256, uint256, bytes32, bytes), (address, address, uint256, uint256, uint256, bytes32, uint8, bytes32, bytes32)
2031
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2032
- */
2033
- receiveWithAuthorization(...args: any[]): Promise<any>;
2034
- /**
2035
- * Simulate removeBlackList
2036
- * Returns gas estimate and result without sending transaction
2037
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2038
- */
2039
- removeBlackList(user: `0x${string}`, options?: {
2040
- accessList?: import("viem").AccessList;
2041
- authorizationList?: import("viem").AuthorizationList;
2042
- chain?: import("viem").Chain | null;
2043
- dataSuffix?: `0x${string}`;
2044
- gas?: bigint;
2045
- gasPrice?: bigint;
2046
- maxFeePerGas?: bigint;
2047
- maxPriorityFeePerGas?: bigint;
2048
- nonce?: number;
2049
- value?: bigint;
2050
- }): Promise<void>;
2051
- /**
2052
- * Simulate renounceRole
2053
- * Returns gas estimate and result without sending transaction
2054
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2055
- */
2056
- renounceRole(role: `0x${string}`, callerConfirmation: `0x${string}`, options?: {
2057
- accessList?: import("viem").AccessList;
2058
- authorizationList?: import("viem").AuthorizationList;
2059
- chain?: import("viem").Chain | null;
2060
- dataSuffix?: `0x${string}`;
2061
- gas?: bigint;
2062
- gasPrice?: bigint;
2063
- maxFeePerGas?: bigint;
2064
- maxPriorityFeePerGas?: bigint;
2065
- nonce?: number;
2066
- value?: bigint;
2067
- }): Promise<void>;
2068
- /**
2069
- * Simulate revokeRole
2070
- * Returns gas estimate and result without sending transaction
2071
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2072
- */
2073
- revokeRole(role: `0x${string}`, account: `0x${string}`, options?: {
2074
- accessList?: import("viem").AccessList;
2075
- authorizationList?: import("viem").AuthorizationList;
2076
- chain?: import("viem").Chain | null;
2077
- dataSuffix?: `0x${string}`;
2078
- gas?: bigint;
2079
- gasPrice?: bigint;
2080
- maxFeePerGas?: bigint;
2081
- maxPriorityFeePerGas?: bigint;
2082
- nonce?: number;
2083
- value?: bigint;
2084
- }): Promise<void>;
2085
- /**
2086
- * Simulate transfer
2087
- * Returns gas estimate and result without sending transaction
2088
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2089
- */
2090
- transfer(to: `0x${string}`, value: bigint, options?: {
2091
- accessList?: import("viem").AccessList;
2092
- authorizationList?: import("viem").AuthorizationList;
2093
- chain?: import("viem").Chain | null;
2094
- dataSuffix?: `0x${string}`;
2095
- gas?: bigint;
2096
- gasPrice?: bigint;
2097
- maxFeePerGas?: bigint;
2098
- maxPriorityFeePerGas?: bigint;
2099
- nonce?: number;
2100
- value?: bigint;
2101
- }): Promise<boolean>;
2102
- /**
2103
- * Simulate transferFrom
2104
- * Returns gas estimate and result without sending transaction
2105
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2106
- */
2107
- transferFrom(from: `0x${string}`, to: `0x${string}`, value: bigint, options?: {
2108
- accessList?: import("viem").AccessList;
2109
- authorizationList?: import("viem").AuthorizationList;
2110
- chain?: import("viem").Chain | null;
2111
- dataSuffix?: `0x${string}`;
2112
- gas?: bigint;
2113
- gasPrice?: bigint;
2114
- maxFeePerGas?: bigint;
2115
- maxPriorityFeePerGas?: bigint;
2116
- nonce?: number;
2117
- value?: bigint;
2118
- }): Promise<boolean>;
2119
- /**
2120
- * Simulate transferWithAuthorization
2121
- * Returns gas estimate and result without sending transaction
2122
- * Supports multiple overloads: (address, address, uint256, uint256, uint256, bytes32, bytes), (address, address, uint256, uint256, uint256, bytes32, uint8, bytes32, bytes32)
2123
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2124
- */
2125
- transferWithAuthorization(...args: any[]): Promise<any>;
2126
- /**
2127
- * Simulate unpause
2128
- * Returns gas estimate and result without sending transaction
2129
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2130
- */
2131
- unpause(options?: {
2132
- accessList?: import("viem").AccessList;
2133
- authorizationList?: import("viem").AuthorizationList;
2134
- chain?: import("viem").Chain | null;
2135
- dataSuffix?: `0x${string}`;
2136
- gas?: bigint;
2137
- gasPrice?: bigint;
2138
- maxFeePerGas?: bigint;
2139
- maxPriorityFeePerGas?: bigint;
2140
- nonce?: number;
2141
- value?: bigint;
2142
- }): Promise<void>;
2143
- };
2144
- /**
2145
- * Watch contract events
2146
- *
2147
- * @example
2148
- * // Watch all Transfer events
2149
- * const unwatch = contract.watch.Transfer((event) => {
2150
- * console.log('Transfer:', event);
2151
- * });
2152
- *
2153
- * // Stop watching
2154
- * unwatch();
2155
- */
2156
- get watch(): {
2157
- /**
2158
- * Watch AddedBlacklist events
2159
- * @param callback Function to call when event is emitted
2160
- * @param filter Optional filter for indexed parameters
2161
- * @returns Unwatch function to stop listening
2162
- */
2163
- AddedBlacklist: (callback: (event: {
2164
- user: `0x${string}`;
2165
- }) => void, filter?: {
2166
- user: `0x${string}`;
2167
- }) => () => void;
2168
- /**
2169
- * Watch Approval events
2170
- * @param callback Function to call when event is emitted
2171
- * @param filter Optional filter for indexed parameters
2172
- * @returns Unwatch function to stop listening
2173
- */
2174
- Approval: (callback: (event: {
2175
- owner: `0x${string}`;
2176
- spender: `0x${string}`;
2177
- value: bigint;
2178
- }) => void, filter?: {
2179
- owner: `0x${string}`;
2180
- spender: `0x${string}`;
2181
- }) => () => void;
2182
- /**
2183
- * Watch AuthorizationCanceled events
2184
- * @param callback Function to call when event is emitted
2185
- * @param filter Optional filter for indexed parameters
2186
- * @returns Unwatch function to stop listening
2187
- */
2188
- AuthorizationCanceled: (callback: (event: {
2189
- authorizer: `0x${string}`;
2190
- nonce: `0x${string}`;
2191
- }) => void, filter?: {
2192
- authorizer: `0x${string}`;
2193
- nonce: `0x${string}`;
2194
- }) => () => void;
2195
- /**
2196
- * Watch AuthorizationUsed events
2197
- * @param callback Function to call when event is emitted
2198
- * @param filter Optional filter for indexed parameters
2199
- * @returns Unwatch function to stop listening
2200
- */
2201
- AuthorizationUsed: (callback: (event: {
2202
- authorizer: `0x${string}`;
2203
- nonce: `0x${string}`;
2204
- }) => void, filter?: {
2205
- authorizer: `0x${string}`;
2206
- nonce: `0x${string}`;
2207
- }) => () => void;
2208
- /**
2209
- * Watch EIP712DomainChanged events
2210
- * @param callback Function to call when event is emitted
2211
- * @param filter Optional filter for indexed parameters
2212
- * @returns Unwatch function to stop listening
2213
- */
2214
- EIP712DomainChanged: (callback: (event: {}) => void) => () => void;
2215
- /**
2216
- * Watch Initialized events
2217
- * @param callback Function to call when event is emitted
2218
- * @param filter Optional filter for indexed parameters
2219
- * @returns Unwatch function to stop listening
2220
- */
2221
- Initialized: (callback: (event: {
2222
- version: bigint;
2223
- }) => void) => () => void;
2224
- /**
2225
- * Watch Paused events
2226
- * @param callback Function to call when event is emitted
2227
- * @param filter Optional filter for indexed parameters
2228
- * @returns Unwatch function to stop listening
2229
- */
2230
- Paused: (callback: (event: {
2231
- account: `0x${string}`;
2232
- }) => void) => () => void;
2233
- /**
2234
- * Watch RemovedBlacklist events
2235
- * @param callback Function to call when event is emitted
2236
- * @param filter Optional filter for indexed parameters
2237
- * @returns Unwatch function to stop listening
2238
- */
2239
- RemovedBlacklist: (callback: (event: {
2240
- user: `0x${string}`;
2241
- }) => void, filter?: {
2242
- user: `0x${string}`;
2243
- }) => () => void;
2244
- /**
2245
- * Watch RoleAdminChanged events
2246
- * @param callback Function to call when event is emitted
2247
- * @param filter Optional filter for indexed parameters
2248
- * @returns Unwatch function to stop listening
2249
- */
2250
- RoleAdminChanged: (callback: (event: {
2251
- role: `0x${string}`;
2252
- previousAdminRole: `0x${string}`;
2253
- newAdminRole: `0x${string}`;
2254
- }) => void, filter?: {
2255
- role: `0x${string}`;
2256
- previousAdminRole: `0x${string}`;
2257
- newAdminRole: `0x${string}`;
2258
- }) => () => void;
2259
- /**
2260
- * Watch RoleGranted events
2261
- * @param callback Function to call when event is emitted
2262
- * @param filter Optional filter for indexed parameters
2263
- * @returns Unwatch function to stop listening
2264
- */
2265
- RoleGranted: (callback: (event: {
2266
- role: `0x${string}`;
2267
- account: `0x${string}`;
2268
- sender: `0x${string}`;
2269
- }) => void, filter?: {
2270
- role: `0x${string}`;
2271
- account: `0x${string}`;
2272
- sender: `0x${string}`;
2273
- }) => () => void;
2274
- /**
2275
- * Watch RoleRevoked events
2276
- * @param callback Function to call when event is emitted
2277
- * @param filter Optional filter for indexed parameters
2278
- * @returns Unwatch function to stop listening
2279
- */
2280
- RoleRevoked: (callback: (event: {
2281
- role: `0x${string}`;
2282
- account: `0x${string}`;
2283
- sender: `0x${string}`;
2284
- }) => void, filter?: {
2285
- role: `0x${string}`;
2286
- account: `0x${string}`;
2287
- sender: `0x${string}`;
2288
- }) => () => void;
2289
- /**
2290
- * Watch Transfer events
2291
- * @param callback Function to call when event is emitted
2292
- * @param filter Optional filter for indexed parameters
2293
- * @returns Unwatch function to stop listening
2294
- */
2295
- Transfer: (callback: (event: {
2296
- from: `0x${string}`;
2297
- to: `0x${string}`;
2298
- value: bigint;
2299
- }) => void, filter?: {
2300
- from: `0x${string}`;
2301
- to: `0x${string}`;
2302
- }) => () => void;
2303
- /**
2304
- * Watch Unpaused events
2305
- * @param callback Function to call when event is emitted
2306
- * @param filter Optional filter for indexed parameters
2307
- * @returns Unwatch function to stop listening
2308
- */
2309
- Unpaused: (callback: (event: {
2310
- account: `0x${string}`;
2311
- }) => void) => () => void;
2312
- };
2313
- }