@gitmyabi/eusd 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,3071 +0,0 @@
1
- import type { Abi, Address, PublicClient, WalletClient, GetContractReturnType } from 'viem';
2
- import { getContract } from 'viem';
3
-
4
- /**
5
- * Stablecoin_json ABI
6
- *
7
- * This ABI is typed using viem's type system for full type safety.
8
- */
9
- export const Stablecoin_jsonAbi = [
10
- {
11
- "inputs": [],
12
- "stateMutability": "nonpayable",
13
- "type": "constructor"
14
- },
15
- {
16
- "inputs": [],
17
- "name": "AccessControlBadConfirmation",
18
- "type": "error"
19
- },
20
- {
21
- "inputs": [
22
- {
23
- "internalType": "address",
24
- "name": "account",
25
- "type": "address"
26
- },
27
- {
28
- "internalType": "bytes32",
29
- "name": "neededRole",
30
- "type": "bytes32"
31
- }
32
- ],
33
- "name": "AccessControlUnauthorizedAccount",
34
- "type": "error"
35
- },
36
- {
37
- "inputs": [
38
- {
39
- "internalType": "address",
40
- "name": "user",
41
- "type": "address"
42
- }
43
- ],
44
- "name": "AlreadyBlacklisted",
45
- "type": "error"
46
- },
47
- {
48
- "inputs": [],
49
- "name": "AuthorizationAlreadyUsed",
50
- "type": "error"
51
- },
52
- {
53
- "inputs": [],
54
- "name": "AuthorizationExpired",
55
- "type": "error"
56
- },
57
- {
58
- "inputs": [],
59
- "name": "AuthorizationNotYetValid",
60
- "type": "error"
61
- },
62
- {
63
- "inputs": [
64
- {
65
- "internalType": "address",
66
- "name": "account",
67
- "type": "address"
68
- }
69
- ],
70
- "name": "Blacklisted",
71
- "type": "error"
72
- },
73
- {
74
- "inputs": [],
75
- "name": "CallerMustBePayee",
76
- "type": "error"
77
- },
78
- {
79
- "inputs": [],
80
- "name": "ECDSAInvalidSignature",
81
- "type": "error"
82
- },
83
- {
84
- "inputs": [
85
- {
86
- "internalType": "uint256",
87
- "name": "length",
88
- "type": "uint256"
89
- }
90
- ],
91
- "name": "ECDSAInvalidSignatureLength",
92
- "type": "error"
93
- },
94
- {
95
- "inputs": [
96
- {
97
- "internalType": "bytes32",
98
- "name": "s",
99
- "type": "bytes32"
100
- }
101
- ],
102
- "name": "ECDSAInvalidSignatureS",
103
- "type": "error"
104
- },
105
- {
106
- "inputs": [
107
- {
108
- "internalType": "address",
109
- "name": "spender",
110
- "type": "address"
111
- },
112
- {
113
- "internalType": "uint256",
114
- "name": "allowance",
115
- "type": "uint256"
116
- },
117
- {
118
- "internalType": "uint256",
119
- "name": "needed",
120
- "type": "uint256"
121
- }
122
- ],
123
- "name": "ERC20InsufficientAllowance",
124
- "type": "error"
125
- },
126
- {
127
- "inputs": [
128
- {
129
- "internalType": "address",
130
- "name": "sender",
131
- "type": "address"
132
- },
133
- {
134
- "internalType": "uint256",
135
- "name": "balance",
136
- "type": "uint256"
137
- },
138
- {
139
- "internalType": "uint256",
140
- "name": "needed",
141
- "type": "uint256"
142
- }
143
- ],
144
- "name": "ERC20InsufficientBalance",
145
- "type": "error"
146
- },
147
- {
148
- "inputs": [
149
- {
150
- "internalType": "address",
151
- "name": "approver",
152
- "type": "address"
153
- }
154
- ],
155
- "name": "ERC20InvalidApprover",
156
- "type": "error"
157
- },
158
- {
159
- "inputs": [
160
- {
161
- "internalType": "address",
162
- "name": "receiver",
163
- "type": "address"
164
- }
165
- ],
166
- "name": "ERC20InvalidReceiver",
167
- "type": "error"
168
- },
169
- {
170
- "inputs": [
171
- {
172
- "internalType": "address",
173
- "name": "sender",
174
- "type": "address"
175
- }
176
- ],
177
- "name": "ERC20InvalidSender",
178
- "type": "error"
179
- },
180
- {
181
- "inputs": [
182
- {
183
- "internalType": "address",
184
- "name": "spender",
185
- "type": "address"
186
- }
187
- ],
188
- "name": "ERC20InvalidSpender",
189
- "type": "error"
190
- },
191
- {
192
- "inputs": [
193
- {
194
- "internalType": "uint256",
195
- "name": "deadline",
196
- "type": "uint256"
197
- }
198
- ],
199
- "name": "ERC2612ExpiredSignature",
200
- "type": "error"
201
- },
202
- {
203
- "inputs": [
204
- {
205
- "internalType": "address",
206
- "name": "signer",
207
- "type": "address"
208
- },
209
- {
210
- "internalType": "address",
211
- "name": "owner",
212
- "type": "address"
213
- }
214
- ],
215
- "name": "ERC2612InvalidSigner",
216
- "type": "error"
217
- },
218
- {
219
- "inputs": [],
220
- "name": "EnforcedPause",
221
- "type": "error"
222
- },
223
- {
224
- "inputs": [],
225
- "name": "ExpectedPause",
226
- "type": "error"
227
- },
228
- {
229
- "inputs": [
230
- {
231
- "internalType": "address",
232
- "name": "account",
233
- "type": "address"
234
- },
235
- {
236
- "internalType": "uint256",
237
- "name": "currentNonce",
238
- "type": "uint256"
239
- }
240
- ],
241
- "name": "InvalidAccountNonce",
242
- "type": "error"
243
- },
244
- {
245
- "inputs": [],
246
- "name": "InvalidInitialization",
247
- "type": "error"
248
- },
249
- {
250
- "inputs": [],
251
- "name": "InvalidSignature",
252
- "type": "error"
253
- },
254
- {
255
- "inputs": [
256
- {
257
- "internalType": "address",
258
- "name": "user",
259
- "type": "address"
260
- }
261
- ],
262
- "name": "NotBlacklisted",
263
- "type": "error"
264
- },
265
- {
266
- "inputs": [],
267
- "name": "NotInitializing",
268
- "type": "error"
269
- },
270
- {
271
- "inputs": [
272
- {
273
- "internalType": "address",
274
- "name": "token",
275
- "type": "address"
276
- }
277
- ],
278
- "name": "SafeERC20FailedOperation",
279
- "type": "error"
280
- },
281
- {
282
- "inputs": [],
283
- "name": "ZeroAddress",
284
- "type": "error"
285
- },
286
- {
287
- "anonymous": false,
288
- "inputs": [
289
- {
290
- "indexed": true,
291
- "internalType": "address",
292
- "name": "user",
293
- "type": "address"
294
- }
295
- ],
296
- "name": "AddedBlacklist",
297
- "type": "event"
298
- },
299
- {
300
- "anonymous": false,
301
- "inputs": [
302
- {
303
- "indexed": true,
304
- "internalType": "address",
305
- "name": "owner",
306
- "type": "address"
307
- },
308
- {
309
- "indexed": true,
310
- "internalType": "address",
311
- "name": "spender",
312
- "type": "address"
313
- },
314
- {
315
- "indexed": false,
316
- "internalType": "uint256",
317
- "name": "value",
318
- "type": "uint256"
319
- }
320
- ],
321
- "name": "Approval",
322
- "type": "event"
323
- },
324
- {
325
- "anonymous": false,
326
- "inputs": [
327
- {
328
- "indexed": true,
329
- "internalType": "address",
330
- "name": "authorizer",
331
- "type": "address"
332
- },
333
- {
334
- "indexed": true,
335
- "internalType": "bytes32",
336
- "name": "nonce",
337
- "type": "bytes32"
338
- }
339
- ],
340
- "name": "AuthorizationCanceled",
341
- "type": "event"
342
- },
343
- {
344
- "anonymous": false,
345
- "inputs": [
346
- {
347
- "indexed": true,
348
- "internalType": "address",
349
- "name": "authorizer",
350
- "type": "address"
351
- },
352
- {
353
- "indexed": true,
354
- "internalType": "bytes32",
355
- "name": "nonce",
356
- "type": "bytes32"
357
- }
358
- ],
359
- "name": "AuthorizationUsed",
360
- "type": "event"
361
- },
362
- {
363
- "anonymous": false,
364
- "inputs": [],
365
- "name": "EIP712DomainChanged",
366
- "type": "event"
367
- },
368
- {
369
- "anonymous": false,
370
- "inputs": [
371
- {
372
- "indexed": false,
373
- "internalType": "uint64",
374
- "name": "version",
375
- "type": "uint64"
376
- }
377
- ],
378
- "name": "Initialized",
379
- "type": "event"
380
- },
381
- {
382
- "anonymous": false,
383
- "inputs": [
384
- {
385
- "indexed": false,
386
- "internalType": "address",
387
- "name": "account",
388
- "type": "address"
389
- }
390
- ],
391
- "name": "Paused",
392
- "type": "event"
393
- },
394
- {
395
- "anonymous": false,
396
- "inputs": [
397
- {
398
- "indexed": true,
399
- "internalType": "address",
400
- "name": "user",
401
- "type": "address"
402
- }
403
- ],
404
- "name": "RemovedBlacklist",
405
- "type": "event"
406
- },
407
- {
408
- "anonymous": false,
409
- "inputs": [
410
- {
411
- "indexed": true,
412
- "internalType": "bytes32",
413
- "name": "role",
414
- "type": "bytes32"
415
- },
416
- {
417
- "indexed": true,
418
- "internalType": "bytes32",
419
- "name": "previousAdminRole",
420
- "type": "bytes32"
421
- },
422
- {
423
- "indexed": true,
424
- "internalType": "bytes32",
425
- "name": "newAdminRole",
426
- "type": "bytes32"
427
- }
428
- ],
429
- "name": "RoleAdminChanged",
430
- "type": "event"
431
- },
432
- {
433
- "anonymous": false,
434
- "inputs": [
435
- {
436
- "indexed": true,
437
- "internalType": "bytes32",
438
- "name": "role",
439
- "type": "bytes32"
440
- },
441
- {
442
- "indexed": true,
443
- "internalType": "address",
444
- "name": "account",
445
- "type": "address"
446
- },
447
- {
448
- "indexed": true,
449
- "internalType": "address",
450
- "name": "sender",
451
- "type": "address"
452
- }
453
- ],
454
- "name": "RoleGranted",
455
- "type": "event"
456
- },
457
- {
458
- "anonymous": false,
459
- "inputs": [
460
- {
461
- "indexed": true,
462
- "internalType": "bytes32",
463
- "name": "role",
464
- "type": "bytes32"
465
- },
466
- {
467
- "indexed": true,
468
- "internalType": "address",
469
- "name": "account",
470
- "type": "address"
471
- },
472
- {
473
- "indexed": true,
474
- "internalType": "address",
475
- "name": "sender",
476
- "type": "address"
477
- }
478
- ],
479
- "name": "RoleRevoked",
480
- "type": "event"
481
- },
482
- {
483
- "anonymous": false,
484
- "inputs": [
485
- {
486
- "indexed": true,
487
- "internalType": "address",
488
- "name": "from",
489
- "type": "address"
490
- },
491
- {
492
- "indexed": true,
493
- "internalType": "address",
494
- "name": "to",
495
- "type": "address"
496
- },
497
- {
498
- "indexed": false,
499
- "internalType": "uint256",
500
- "name": "value",
501
- "type": "uint256"
502
- }
503
- ],
504
- "name": "Transfer",
505
- "type": "event"
506
- },
507
- {
508
- "anonymous": false,
509
- "inputs": [
510
- {
511
- "indexed": false,
512
- "internalType": "address",
513
- "name": "account",
514
- "type": "address"
515
- }
516
- ],
517
- "name": "Unpaused",
518
- "type": "event"
519
- },
520
- {
521
- "inputs": [],
522
- "name": "BLACKLISTER_ROLE",
523
- "outputs": [
524
- {
525
- "internalType": "bytes32",
526
- "name": "",
527
- "type": "bytes32"
528
- }
529
- ],
530
- "stateMutability": "view",
531
- "type": "function"
532
- },
533
- {
534
- "inputs": [],
535
- "name": "BURNER_ROLE",
536
- "outputs": [
537
- {
538
- "internalType": "bytes32",
539
- "name": "",
540
- "type": "bytes32"
541
- }
542
- ],
543
- "stateMutability": "view",
544
- "type": "function"
545
- },
546
- {
547
- "inputs": [],
548
- "name": "CANCEL_AUTHORIZATION_TYPEHASH",
549
- "outputs": [
550
- {
551
- "internalType": "bytes32",
552
- "name": "",
553
- "type": "bytes32"
554
- }
555
- ],
556
- "stateMutability": "view",
557
- "type": "function"
558
- },
559
- {
560
- "inputs": [],
561
- "name": "DEFAULT_ADMIN_ROLE",
562
- "outputs": [
563
- {
564
- "internalType": "bytes32",
565
- "name": "",
566
- "type": "bytes32"
567
- }
568
- ],
569
- "stateMutability": "view",
570
- "type": "function"
571
- },
572
- {
573
- "inputs": [],
574
- "name": "DOMAIN_SEPARATOR",
575
- "outputs": [
576
- {
577
- "internalType": "bytes32",
578
- "name": "",
579
- "type": "bytes32"
580
- }
581
- ],
582
- "stateMutability": "view",
583
- "type": "function"
584
- },
585
- {
586
- "inputs": [],
587
- "name": "MINTER_ROLE",
588
- "outputs": [
589
- {
590
- "internalType": "bytes32",
591
- "name": "",
592
- "type": "bytes32"
593
- }
594
- ],
595
- "stateMutability": "view",
596
- "type": "function"
597
- },
598
- {
599
- "inputs": [],
600
- "name": "PAUSER_ROLE",
601
- "outputs": [
602
- {
603
- "internalType": "bytes32",
604
- "name": "",
605
- "type": "bytes32"
606
- }
607
- ],
608
- "stateMutability": "view",
609
- "type": "function"
610
- },
611
- {
612
- "inputs": [],
613
- "name": "PERMIT_TYPEHASH",
614
- "outputs": [
615
- {
616
- "internalType": "bytes32",
617
- "name": "",
618
- "type": "bytes32"
619
- }
620
- ],
621
- "stateMutability": "view",
622
- "type": "function"
623
- },
624
- {
625
- "inputs": [],
626
- "name": "RECEIVE_WITH_AUTHORIZATION_TYPEHASH",
627
- "outputs": [
628
- {
629
- "internalType": "bytes32",
630
- "name": "",
631
- "type": "bytes32"
632
- }
633
- ],
634
- "stateMutability": "view",
635
- "type": "function"
636
- },
637
- {
638
- "inputs": [],
639
- "name": "SUPPORT_ROLE",
640
- "outputs": [
641
- {
642
- "internalType": "bytes32",
643
- "name": "",
644
- "type": "bytes32"
645
- }
646
- ],
647
- "stateMutability": "view",
648
- "type": "function"
649
- },
650
- {
651
- "inputs": [],
652
- "name": "TRANSFER_WITH_AUTHORIZATION_TYPEHASH",
653
- "outputs": [
654
- {
655
- "internalType": "bytes32",
656
- "name": "",
657
- "type": "bytes32"
658
- }
659
- ],
660
- "stateMutability": "view",
661
- "type": "function"
662
- },
663
- {
664
- "inputs": [],
665
- "name": "UNPAUSER_ROLE",
666
- "outputs": [
667
- {
668
- "internalType": "bytes32",
669
- "name": "",
670
- "type": "bytes32"
671
- }
672
- ],
673
- "stateMutability": "view",
674
- "type": "function"
675
- },
676
- {
677
- "inputs": [],
678
- "name": "WALLET_CODEHASH_A",
679
- "outputs": [
680
- {
681
- "internalType": "bytes32",
682
- "name": "",
683
- "type": "bytes32"
684
- }
685
- ],
686
- "stateMutability": "view",
687
- "type": "function"
688
- },
689
- {
690
- "inputs": [],
691
- "name": "WALLET_CODEHASH_B",
692
- "outputs": [
693
- {
694
- "internalType": "bytes32",
695
- "name": "",
696
- "type": "bytes32"
697
- }
698
- ],
699
- "stateMutability": "view",
700
- "type": "function"
701
- },
702
- {
703
- "inputs": [],
704
- "name": "WALLET_CODEHASH_C",
705
- "outputs": [
706
- {
707
- "internalType": "bytes32",
708
- "name": "",
709
- "type": "bytes32"
710
- }
711
- ],
712
- "stateMutability": "view",
713
- "type": "function"
714
- },
715
- {
716
- "inputs": [],
717
- "name": "WALLET_CODEHASH_D",
718
- "outputs": [
719
- {
720
- "internalType": "bytes32",
721
- "name": "",
722
- "type": "bytes32"
723
- }
724
- ],
725
- "stateMutability": "view",
726
- "type": "function"
727
- },
728
- {
729
- "inputs": [
730
- {
731
- "internalType": "address",
732
- "name": "user",
733
- "type": "address"
734
- }
735
- ],
736
- "name": "addBlackList",
737
- "outputs": [],
738
- "stateMutability": "nonpayable",
739
- "type": "function"
740
- },
741
- {
742
- "inputs": [
743
- {
744
- "internalType": "address",
745
- "name": "owner",
746
- "type": "address"
747
- },
748
- {
749
- "internalType": "address",
750
- "name": "spender",
751
- "type": "address"
752
- }
753
- ],
754
- "name": "allowance",
755
- "outputs": [
756
- {
757
- "internalType": "uint256",
758
- "name": "",
759
- "type": "uint256"
760
- }
761
- ],
762
- "stateMutability": "view",
763
- "type": "function"
764
- },
765
- {
766
- "inputs": [
767
- {
768
- "internalType": "address",
769
- "name": "spender",
770
- "type": "address"
771
- },
772
- {
773
- "internalType": "uint256",
774
- "name": "value",
775
- "type": "uint256"
776
- }
777
- ],
778
- "name": "approve",
779
- "outputs": [
780
- {
781
- "internalType": "bool",
782
- "name": "",
783
- "type": "bool"
784
- }
785
- ],
786
- "stateMutability": "nonpayable",
787
- "type": "function"
788
- },
789
- {
790
- "inputs": [
791
- {
792
- "internalType": "address",
793
- "name": "authorizer",
794
- "type": "address"
795
- },
796
- {
797
- "internalType": "bytes32",
798
- "name": "nonce",
799
- "type": "bytes32"
800
- }
801
- ],
802
- "name": "authorizationState",
803
- "outputs": [
804
- {
805
- "internalType": "bool",
806
- "name": "",
807
- "type": "bool"
808
- }
809
- ],
810
- "stateMutability": "view",
811
- "type": "function"
812
- },
813
- {
814
- "inputs": [
815
- {
816
- "internalType": "address",
817
- "name": "account",
818
- "type": "address"
819
- }
820
- ],
821
- "name": "balanceOf",
822
- "outputs": [
823
- {
824
- "internalType": "uint256",
825
- "name": "",
826
- "type": "uint256"
827
- }
828
- ],
829
- "stateMutability": "view",
830
- "type": "function"
831
- },
832
- {
833
- "inputs": [
834
- {
835
- "internalType": "address",
836
- "name": "user",
837
- "type": "address"
838
- }
839
- ],
840
- "name": "blacklisted",
841
- "outputs": [
842
- {
843
- "internalType": "bool",
844
- "name": "",
845
- "type": "bool"
846
- }
847
- ],
848
- "stateMutability": "view",
849
- "type": "function"
850
- },
851
- {
852
- "inputs": [
853
- {
854
- "internalType": "uint256",
855
- "name": "value",
856
- "type": "uint256"
857
- }
858
- ],
859
- "name": "burn",
860
- "outputs": [],
861
- "stateMutability": "nonpayable",
862
- "type": "function"
863
- },
864
- {
865
- "inputs": [
866
- {
867
- "internalType": "address",
868
- "name": "account",
869
- "type": "address"
870
- },
871
- {
872
- "internalType": "uint256",
873
- "name": "value",
874
- "type": "uint256"
875
- }
876
- ],
877
- "name": "burnFrom",
878
- "outputs": [],
879
- "stateMutability": "nonpayable",
880
- "type": "function"
881
- },
882
- {
883
- "inputs": [
884
- {
885
- "internalType": "address",
886
- "name": "authorizer",
887
- "type": "address"
888
- },
889
- {
890
- "internalType": "bytes32",
891
- "name": "nonce",
892
- "type": "bytes32"
893
- },
894
- {
895
- "internalType": "uint8",
896
- "name": "v",
897
- "type": "uint8"
898
- },
899
- {
900
- "internalType": "bytes32",
901
- "name": "r",
902
- "type": "bytes32"
903
- },
904
- {
905
- "internalType": "bytes32",
906
- "name": "s",
907
- "type": "bytes32"
908
- }
909
- ],
910
- "name": "cancelAuthorization",
911
- "outputs": [],
912
- "stateMutability": "nonpayable",
913
- "type": "function"
914
- },
915
- {
916
- "inputs": [
917
- {
918
- "internalType": "address",
919
- "name": "authorizer",
920
- "type": "address"
921
- },
922
- {
923
- "internalType": "bytes32",
924
- "name": "nonce",
925
- "type": "bytes32"
926
- },
927
- {
928
- "internalType": "bytes",
929
- "name": "signature",
930
- "type": "bytes"
931
- }
932
- ],
933
- "name": "cancelAuthorization",
934
- "outputs": [],
935
- "stateMutability": "nonpayable",
936
- "type": "function"
937
- },
938
- {
939
- "inputs": [],
940
- "name": "decimals",
941
- "outputs": [
942
- {
943
- "internalType": "uint8",
944
- "name": "",
945
- "type": "uint8"
946
- }
947
- ],
948
- "stateMutability": "view",
949
- "type": "function"
950
- },
951
- {
952
- "inputs": [],
953
- "name": "eip712Domain",
954
- "outputs": [
955
- {
956
- "internalType": "bytes1",
957
- "name": "fields",
958
- "type": "bytes1"
959
- },
960
- {
961
- "internalType": "string",
962
- "name": "name",
963
- "type": "string"
964
- },
965
- {
966
- "internalType": "string",
967
- "name": "version",
968
- "type": "string"
969
- },
970
- {
971
- "internalType": "uint256",
972
- "name": "chainId",
973
- "type": "uint256"
974
- },
975
- {
976
- "internalType": "address",
977
- "name": "verifyingContract",
978
- "type": "address"
979
- },
980
- {
981
- "internalType": "bytes32",
982
- "name": "salt",
983
- "type": "bytes32"
984
- },
985
- {
986
- "internalType": "uint256[]",
987
- "name": "extensions",
988
- "type": "uint256[]"
989
- }
990
- ],
991
- "stateMutability": "view",
992
- "type": "function"
993
- },
994
- {
995
- "inputs": [
996
- {
997
- "internalType": "contract IERC20",
998
- "name": "token",
999
- "type": "address"
1000
- },
1001
- {
1002
- "internalType": "address",
1003
- "name": "destination",
1004
- "type": "address"
1005
- },
1006
- {
1007
- "internalType": "uint256",
1008
- "name": "amount",
1009
- "type": "uint256"
1010
- }
1011
- ],
1012
- "name": "erc20Rescue",
1013
- "outputs": [],
1014
- "stateMutability": "nonpayable",
1015
- "type": "function"
1016
- },
1017
- {
1018
- "inputs": [
1019
- {
1020
- "internalType": "bytes32",
1021
- "name": "role",
1022
- "type": "bytes32"
1023
- }
1024
- ],
1025
- "name": "getRoleAdmin",
1026
- "outputs": [
1027
- {
1028
- "internalType": "bytes32",
1029
- "name": "",
1030
- "type": "bytes32"
1031
- }
1032
- ],
1033
- "stateMutability": "view",
1034
- "type": "function"
1035
- },
1036
- {
1037
- "inputs": [
1038
- {
1039
- "internalType": "bytes32",
1040
- "name": "role",
1041
- "type": "bytes32"
1042
- },
1043
- {
1044
- "internalType": "address",
1045
- "name": "account",
1046
- "type": "address"
1047
- }
1048
- ],
1049
- "name": "grantRole",
1050
- "outputs": [],
1051
- "stateMutability": "nonpayable",
1052
- "type": "function"
1053
- },
1054
- {
1055
- "inputs": [
1056
- {
1057
- "internalType": "bytes32",
1058
- "name": "role",
1059
- "type": "bytes32"
1060
- },
1061
- {
1062
- "internalType": "address",
1063
- "name": "account",
1064
- "type": "address"
1065
- }
1066
- ],
1067
- "name": "hasRole",
1068
- "outputs": [
1069
- {
1070
- "internalType": "bool",
1071
- "name": "",
1072
- "type": "bool"
1073
- }
1074
- ],
1075
- "stateMutability": "view",
1076
- "type": "function"
1077
- },
1078
- {
1079
- "inputs": [
1080
- {
1081
- "internalType": "string",
1082
- "name": "name_",
1083
- "type": "string"
1084
- },
1085
- {
1086
- "internalType": "string",
1087
- "name": "symbol_",
1088
- "type": "string"
1089
- },
1090
- {
1091
- "internalType": "uint8",
1092
- "name": "decimals_",
1093
- "type": "uint8"
1094
- }
1095
- ],
1096
- "name": "initialize",
1097
- "outputs": [],
1098
- "stateMutability": "nonpayable",
1099
- "type": "function"
1100
- },
1101
- {
1102
- "inputs": [
1103
- {
1104
- "internalType": "address",
1105
- "name": "candidate",
1106
- "type": "address"
1107
- }
1108
- ],
1109
- "name": "isTelcoinWallet",
1110
- "outputs": [
1111
- {
1112
- "internalType": "bool",
1113
- "name": "",
1114
- "type": "bool"
1115
- }
1116
- ],
1117
- "stateMutability": "view",
1118
- "type": "function"
1119
- },
1120
- {
1121
- "inputs": [
1122
- {
1123
- "internalType": "uint256",
1124
- "name": "value",
1125
- "type": "uint256"
1126
- }
1127
- ],
1128
- "name": "mint",
1129
- "outputs": [],
1130
- "stateMutability": "nonpayable",
1131
- "type": "function"
1132
- },
1133
- {
1134
- "inputs": [
1135
- {
1136
- "internalType": "address",
1137
- "name": "account",
1138
- "type": "address"
1139
- },
1140
- {
1141
- "internalType": "uint256",
1142
- "name": "value",
1143
- "type": "uint256"
1144
- }
1145
- ],
1146
- "name": "mintTo",
1147
- "outputs": [],
1148
- "stateMutability": "nonpayable",
1149
- "type": "function"
1150
- },
1151
- {
1152
- "inputs": [],
1153
- "name": "name",
1154
- "outputs": [
1155
- {
1156
- "internalType": "string",
1157
- "name": "",
1158
- "type": "string"
1159
- }
1160
- ],
1161
- "stateMutability": "view",
1162
- "type": "function"
1163
- },
1164
- {
1165
- "inputs": [
1166
- {
1167
- "internalType": "address",
1168
- "name": "owner",
1169
- "type": "address"
1170
- }
1171
- ],
1172
- "name": "nonces",
1173
- "outputs": [
1174
- {
1175
- "internalType": "uint256",
1176
- "name": "",
1177
- "type": "uint256"
1178
- }
1179
- ],
1180
- "stateMutability": "view",
1181
- "type": "function"
1182
- },
1183
- {
1184
- "inputs": [],
1185
- "name": "pause",
1186
- "outputs": [],
1187
- "stateMutability": "nonpayable",
1188
- "type": "function"
1189
- },
1190
- {
1191
- "inputs": [],
1192
- "name": "paused",
1193
- "outputs": [
1194
- {
1195
- "internalType": "bool",
1196
- "name": "",
1197
- "type": "bool"
1198
- }
1199
- ],
1200
- "stateMutability": "view",
1201
- "type": "function"
1202
- },
1203
- {
1204
- "inputs": [
1205
- {
1206
- "internalType": "address",
1207
- "name": "owner_",
1208
- "type": "address"
1209
- },
1210
- {
1211
- "internalType": "address",
1212
- "name": "spender",
1213
- "type": "address"
1214
- },
1215
- {
1216
- "internalType": "uint256",
1217
- "name": "value",
1218
- "type": "uint256"
1219
- },
1220
- {
1221
- "internalType": "uint256",
1222
- "name": "deadline",
1223
- "type": "uint256"
1224
- },
1225
- {
1226
- "internalType": "bytes",
1227
- "name": "signature",
1228
- "type": "bytes"
1229
- }
1230
- ],
1231
- "name": "permit",
1232
- "outputs": [],
1233
- "stateMutability": "nonpayable",
1234
- "type": "function"
1235
- },
1236
- {
1237
- "inputs": [
1238
- {
1239
- "internalType": "address",
1240
- "name": "owner",
1241
- "type": "address"
1242
- },
1243
- {
1244
- "internalType": "address",
1245
- "name": "spender",
1246
- "type": "address"
1247
- },
1248
- {
1249
- "internalType": "uint256",
1250
- "name": "value",
1251
- "type": "uint256"
1252
- },
1253
- {
1254
- "internalType": "uint256",
1255
- "name": "deadline",
1256
- "type": "uint256"
1257
- },
1258
- {
1259
- "internalType": "uint8",
1260
- "name": "v",
1261
- "type": "uint8"
1262
- },
1263
- {
1264
- "internalType": "bytes32",
1265
- "name": "r",
1266
- "type": "bytes32"
1267
- },
1268
- {
1269
- "internalType": "bytes32",
1270
- "name": "s",
1271
- "type": "bytes32"
1272
- }
1273
- ],
1274
- "name": "permit",
1275
- "outputs": [],
1276
- "stateMutability": "nonpayable",
1277
- "type": "function"
1278
- },
1279
- {
1280
- "inputs": [
1281
- {
1282
- "internalType": "address",
1283
- "name": "from",
1284
- "type": "address"
1285
- },
1286
- {
1287
- "internalType": "address",
1288
- "name": "to",
1289
- "type": "address"
1290
- },
1291
- {
1292
- "internalType": "uint256",
1293
- "name": "value",
1294
- "type": "uint256"
1295
- },
1296
- {
1297
- "internalType": "uint256",
1298
- "name": "validAfter",
1299
- "type": "uint256"
1300
- },
1301
- {
1302
- "internalType": "uint256",
1303
- "name": "validBefore",
1304
- "type": "uint256"
1305
- },
1306
- {
1307
- "internalType": "bytes32",
1308
- "name": "nonce",
1309
- "type": "bytes32"
1310
- },
1311
- {
1312
- "internalType": "bytes",
1313
- "name": "signature",
1314
- "type": "bytes"
1315
- }
1316
- ],
1317
- "name": "receiveWithAuthorization",
1318
- "outputs": [],
1319
- "stateMutability": "nonpayable",
1320
- "type": "function"
1321
- },
1322
- {
1323
- "inputs": [
1324
- {
1325
- "internalType": "address",
1326
- "name": "from",
1327
- "type": "address"
1328
- },
1329
- {
1330
- "internalType": "address",
1331
- "name": "to",
1332
- "type": "address"
1333
- },
1334
- {
1335
- "internalType": "uint256",
1336
- "name": "value",
1337
- "type": "uint256"
1338
- },
1339
- {
1340
- "internalType": "uint256",
1341
- "name": "validAfter",
1342
- "type": "uint256"
1343
- },
1344
- {
1345
- "internalType": "uint256",
1346
- "name": "validBefore",
1347
- "type": "uint256"
1348
- },
1349
- {
1350
- "internalType": "bytes32",
1351
- "name": "nonce",
1352
- "type": "bytes32"
1353
- },
1354
- {
1355
- "internalType": "uint8",
1356
- "name": "v",
1357
- "type": "uint8"
1358
- },
1359
- {
1360
- "internalType": "bytes32",
1361
- "name": "r",
1362
- "type": "bytes32"
1363
- },
1364
- {
1365
- "internalType": "bytes32",
1366
- "name": "s",
1367
- "type": "bytes32"
1368
- }
1369
- ],
1370
- "name": "receiveWithAuthorization",
1371
- "outputs": [],
1372
- "stateMutability": "nonpayable",
1373
- "type": "function"
1374
- },
1375
- {
1376
- "inputs": [
1377
- {
1378
- "internalType": "address",
1379
- "name": "user",
1380
- "type": "address"
1381
- }
1382
- ],
1383
- "name": "removeBlackList",
1384
- "outputs": [],
1385
- "stateMutability": "nonpayable",
1386
- "type": "function"
1387
- },
1388
- {
1389
- "inputs": [
1390
- {
1391
- "internalType": "bytes32",
1392
- "name": "role",
1393
- "type": "bytes32"
1394
- },
1395
- {
1396
- "internalType": "address",
1397
- "name": "callerConfirmation",
1398
- "type": "address"
1399
- }
1400
- ],
1401
- "name": "renounceRole",
1402
- "outputs": [],
1403
- "stateMutability": "nonpayable",
1404
- "type": "function"
1405
- },
1406
- {
1407
- "inputs": [
1408
- {
1409
- "internalType": "bytes32",
1410
- "name": "role",
1411
- "type": "bytes32"
1412
- },
1413
- {
1414
- "internalType": "address",
1415
- "name": "account",
1416
- "type": "address"
1417
- }
1418
- ],
1419
- "name": "revokeRole",
1420
- "outputs": [],
1421
- "stateMutability": "nonpayable",
1422
- "type": "function"
1423
- },
1424
- {
1425
- "inputs": [
1426
- {
1427
- "internalType": "bytes4",
1428
- "name": "interfaceId",
1429
- "type": "bytes4"
1430
- }
1431
- ],
1432
- "name": "supportsInterface",
1433
- "outputs": [
1434
- {
1435
- "internalType": "bool",
1436
- "name": "",
1437
- "type": "bool"
1438
- }
1439
- ],
1440
- "stateMutability": "view",
1441
- "type": "function"
1442
- },
1443
- {
1444
- "inputs": [],
1445
- "name": "symbol",
1446
- "outputs": [
1447
- {
1448
- "internalType": "string",
1449
- "name": "",
1450
- "type": "string"
1451
- }
1452
- ],
1453
- "stateMutability": "view",
1454
- "type": "function"
1455
- },
1456
- {
1457
- "inputs": [],
1458
- "name": "totalSupply",
1459
- "outputs": [
1460
- {
1461
- "internalType": "uint256",
1462
- "name": "",
1463
- "type": "uint256"
1464
- }
1465
- ],
1466
- "stateMutability": "view",
1467
- "type": "function"
1468
- },
1469
- {
1470
- "inputs": [
1471
- {
1472
- "internalType": "address",
1473
- "name": "to",
1474
- "type": "address"
1475
- },
1476
- {
1477
- "internalType": "uint256",
1478
- "name": "value",
1479
- "type": "uint256"
1480
- }
1481
- ],
1482
- "name": "transfer",
1483
- "outputs": [
1484
- {
1485
- "internalType": "bool",
1486
- "name": "",
1487
- "type": "bool"
1488
- }
1489
- ],
1490
- "stateMutability": "nonpayable",
1491
- "type": "function"
1492
- },
1493
- {
1494
- "inputs": [
1495
- {
1496
- "internalType": "address",
1497
- "name": "from",
1498
- "type": "address"
1499
- },
1500
- {
1501
- "internalType": "address",
1502
- "name": "to",
1503
- "type": "address"
1504
- },
1505
- {
1506
- "internalType": "uint256",
1507
- "name": "value",
1508
- "type": "uint256"
1509
- }
1510
- ],
1511
- "name": "transferFrom",
1512
- "outputs": [
1513
- {
1514
- "internalType": "bool",
1515
- "name": "",
1516
- "type": "bool"
1517
- }
1518
- ],
1519
- "stateMutability": "nonpayable",
1520
- "type": "function"
1521
- },
1522
- {
1523
- "inputs": [
1524
- {
1525
- "internalType": "address",
1526
- "name": "from",
1527
- "type": "address"
1528
- },
1529
- {
1530
- "internalType": "address",
1531
- "name": "to",
1532
- "type": "address"
1533
- },
1534
- {
1535
- "internalType": "uint256",
1536
- "name": "value",
1537
- "type": "uint256"
1538
- },
1539
- {
1540
- "internalType": "uint256",
1541
- "name": "validAfter",
1542
- "type": "uint256"
1543
- },
1544
- {
1545
- "internalType": "uint256",
1546
- "name": "validBefore",
1547
- "type": "uint256"
1548
- },
1549
- {
1550
- "internalType": "bytes32",
1551
- "name": "nonce",
1552
- "type": "bytes32"
1553
- },
1554
- {
1555
- "internalType": "bytes",
1556
- "name": "signature",
1557
- "type": "bytes"
1558
- }
1559
- ],
1560
- "name": "transferWithAuthorization",
1561
- "outputs": [],
1562
- "stateMutability": "nonpayable",
1563
- "type": "function"
1564
- },
1565
- {
1566
- "inputs": [
1567
- {
1568
- "internalType": "address",
1569
- "name": "from",
1570
- "type": "address"
1571
- },
1572
- {
1573
- "internalType": "address",
1574
- "name": "to",
1575
- "type": "address"
1576
- },
1577
- {
1578
- "internalType": "uint256",
1579
- "name": "value",
1580
- "type": "uint256"
1581
- },
1582
- {
1583
- "internalType": "uint256",
1584
- "name": "validAfter",
1585
- "type": "uint256"
1586
- },
1587
- {
1588
- "internalType": "uint256",
1589
- "name": "validBefore",
1590
- "type": "uint256"
1591
- },
1592
- {
1593
- "internalType": "bytes32",
1594
- "name": "nonce",
1595
- "type": "bytes32"
1596
- },
1597
- {
1598
- "internalType": "uint8",
1599
- "name": "v",
1600
- "type": "uint8"
1601
- },
1602
- {
1603
- "internalType": "bytes32",
1604
- "name": "r",
1605
- "type": "bytes32"
1606
- },
1607
- {
1608
- "internalType": "bytes32",
1609
- "name": "s",
1610
- "type": "bytes32"
1611
- }
1612
- ],
1613
- "name": "transferWithAuthorization",
1614
- "outputs": [],
1615
- "stateMutability": "nonpayable",
1616
- "type": "function"
1617
- },
1618
- {
1619
- "inputs": [],
1620
- "name": "unpause",
1621
- "outputs": [],
1622
- "stateMutability": "nonpayable",
1623
- "type": "function"
1624
- }
1625
- ] as const satisfies Abi;
1626
-
1627
- /**
1628
- * Type-safe ABI for Stablecoin_json
1629
- */
1630
- export type Stablecoin_jsonAbi = typeof Stablecoin_jsonAbi;
1631
-
1632
- /**
1633
- * Contract instance type for Stablecoin_json
1634
- */
1635
- // Use any for contract type to avoid complex viem type issues
1636
- // The runtime behavior is type-safe through viem's ABI typing
1637
- export type Stablecoin_jsonContract = any;
1638
-
1639
- /**
1640
- * Stablecoin_json Contract Class
1641
- *
1642
- * Provides a class-based API similar to TypeChain for interacting with the contract.
1643
- *
1644
- * @example
1645
- * ```typescript
1646
- * import { createPublicClient, createWalletClient, http } from 'viem';
1647
- * import { mainnet } from 'viem/chains';
1648
- * import { Stablecoin_json } from 'Stablecoin_json';
1649
- *
1650
- * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
1651
- * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
1652
- *
1653
- * const contract = new Stablecoin_json('0x...', { publicClient, walletClient });
1654
- *
1655
- * // Read functions
1656
- * const result = await contract.balanceOf('0x...');
1657
- *
1658
- * // Write functions
1659
- * const hash = await contract.transfer('0x...', 1000n);
1660
- *
1661
- * // Simulate transactions (dry-run)
1662
- * const simulation = await contract.simulate.transfer('0x...', 1000n);
1663
- * console.log('Gas estimate:', simulation.request.gas);
1664
- *
1665
- * // Watch events
1666
- * const unwatch = contract.watch.Transfer((event) => {
1667
- * console.log('Transfer event:', event);
1668
- * });
1669
- * ```
1670
- */
1671
- export class Stablecoin_json {
1672
- private contract: Stablecoin_jsonContract;
1673
- private contractAddress: Address;
1674
- private publicClient: PublicClient;
1675
-
1676
- constructor(
1677
- address: Address,
1678
- clients: {
1679
- publicClient: PublicClient;
1680
- walletClient?: WalletClient;
1681
- }
1682
- ) {
1683
- this.contractAddress = address;
1684
- this.publicClient = clients.publicClient;
1685
- this.contract = getContract({
1686
- address,
1687
- abi: Stablecoin_jsonAbi,
1688
- client: {
1689
- public: clients.publicClient,
1690
- wallet: clients.walletClient,
1691
- },
1692
- });
1693
- }
1694
-
1695
- /**
1696
- * Get the contract address
1697
- */
1698
- get address(): Address {
1699
- return this.contractAddress;
1700
- }
1701
-
1702
- /**
1703
- * Get the underlying viem contract instance
1704
- */
1705
- getContract(): Stablecoin_jsonContract {
1706
- return this.contract;
1707
- }
1708
-
1709
- /**
1710
- * BLACKLISTER_ROLE
1711
- * view
1712
- */
1713
- async BLACKLISTER_ROLE(): Promise<`0x${string}`> {
1714
- return this.contract.read.BLACKLISTER_ROLE() as Promise<`0x${string}`>;
1715
- }
1716
-
1717
- /**
1718
- * BURNER_ROLE
1719
- * view
1720
- */
1721
- async BURNER_ROLE(): Promise<`0x${string}`> {
1722
- return this.contract.read.BURNER_ROLE() as Promise<`0x${string}`>;
1723
- }
1724
-
1725
- /**
1726
- * CANCEL_AUTHORIZATION_TYPEHASH
1727
- * view
1728
- */
1729
- async CANCEL_AUTHORIZATION_TYPEHASH(): Promise<`0x${string}`> {
1730
- return this.contract.read.CANCEL_AUTHORIZATION_TYPEHASH() as Promise<`0x${string}`>;
1731
- }
1732
-
1733
- /**
1734
- * DEFAULT_ADMIN_ROLE
1735
- * view
1736
- */
1737
- async DEFAULT_ADMIN_ROLE(): Promise<`0x${string}`> {
1738
- return this.contract.read.DEFAULT_ADMIN_ROLE() as Promise<`0x${string}`>;
1739
- }
1740
-
1741
- /**
1742
- * DOMAIN_SEPARATOR
1743
- * view
1744
- */
1745
- async DOMAIN_SEPARATOR(): Promise<`0x${string}`> {
1746
- return this.contract.read.DOMAIN_SEPARATOR() as Promise<`0x${string}`>;
1747
- }
1748
-
1749
- /**
1750
- * MINTER_ROLE
1751
- * view
1752
- */
1753
- async MINTER_ROLE(): Promise<`0x${string}`> {
1754
- return this.contract.read.MINTER_ROLE() as Promise<`0x${string}`>;
1755
- }
1756
-
1757
- /**
1758
- * PAUSER_ROLE
1759
- * view
1760
- */
1761
- async PAUSER_ROLE(): Promise<`0x${string}`> {
1762
- return this.contract.read.PAUSER_ROLE() as Promise<`0x${string}`>;
1763
- }
1764
-
1765
- /**
1766
- * PERMIT_TYPEHASH
1767
- * view
1768
- */
1769
- async PERMIT_TYPEHASH(): Promise<`0x${string}`> {
1770
- return this.contract.read.PERMIT_TYPEHASH() as Promise<`0x${string}`>;
1771
- }
1772
-
1773
- /**
1774
- * RECEIVE_WITH_AUTHORIZATION_TYPEHASH
1775
- * view
1776
- */
1777
- async RECEIVE_WITH_AUTHORIZATION_TYPEHASH(): Promise<`0x${string}`> {
1778
- return this.contract.read.RECEIVE_WITH_AUTHORIZATION_TYPEHASH() as Promise<`0x${string}`>;
1779
- }
1780
-
1781
- /**
1782
- * SUPPORT_ROLE
1783
- * view
1784
- */
1785
- async SUPPORT_ROLE(): Promise<`0x${string}`> {
1786
- return this.contract.read.SUPPORT_ROLE() as Promise<`0x${string}`>;
1787
- }
1788
-
1789
- /**
1790
- * TRANSFER_WITH_AUTHORIZATION_TYPEHASH
1791
- * view
1792
- */
1793
- async TRANSFER_WITH_AUTHORIZATION_TYPEHASH(): Promise<`0x${string}`> {
1794
- return this.contract.read.TRANSFER_WITH_AUTHORIZATION_TYPEHASH() as Promise<`0x${string}`>;
1795
- }
1796
-
1797
- /**
1798
- * UNPAUSER_ROLE
1799
- * view
1800
- */
1801
- async UNPAUSER_ROLE(): Promise<`0x${string}`> {
1802
- return this.contract.read.UNPAUSER_ROLE() as Promise<`0x${string}`>;
1803
- }
1804
-
1805
- /**
1806
- * WALLET_CODEHASH_A
1807
- * view
1808
- */
1809
- async WALLET_CODEHASH_A(): Promise<`0x${string}`> {
1810
- return this.contract.read.WALLET_CODEHASH_A() as Promise<`0x${string}`>;
1811
- }
1812
-
1813
- /**
1814
- * WALLET_CODEHASH_B
1815
- * view
1816
- */
1817
- async WALLET_CODEHASH_B(): Promise<`0x${string}`> {
1818
- return this.contract.read.WALLET_CODEHASH_B() as Promise<`0x${string}`>;
1819
- }
1820
-
1821
- /**
1822
- * WALLET_CODEHASH_C
1823
- * view
1824
- */
1825
- async WALLET_CODEHASH_C(): Promise<`0x${string}`> {
1826
- return this.contract.read.WALLET_CODEHASH_C() as Promise<`0x${string}`>;
1827
- }
1828
-
1829
- /**
1830
- * WALLET_CODEHASH_D
1831
- * view
1832
- */
1833
- async WALLET_CODEHASH_D(): Promise<`0x${string}`> {
1834
- return this.contract.read.WALLET_CODEHASH_D() as Promise<`0x${string}`>;
1835
- }
1836
-
1837
- /**
1838
- * allowance
1839
- * view
1840
- */
1841
- async allowance(owner: `0x${string}`, spender: `0x${string}`): Promise<bigint> {
1842
- return this.contract.read.allowance([owner, spender] as const) as Promise<bigint>;
1843
- }
1844
-
1845
- /**
1846
- * authorizationState
1847
- * view
1848
- */
1849
- async authorizationState(authorizer: `0x${string}`, nonce: `0x${string}`): Promise<boolean> {
1850
- return this.contract.read.authorizationState([authorizer, nonce] as const) as Promise<boolean>;
1851
- }
1852
-
1853
- /**
1854
- * balanceOf
1855
- * view
1856
- */
1857
- async balanceOf(account: `0x${string}`): Promise<bigint> {
1858
- return this.contract.read.balanceOf([account] as const) as Promise<bigint>;
1859
- }
1860
-
1861
- /**
1862
- * blacklisted
1863
- * view
1864
- */
1865
- async blacklisted(user: `0x${string}`): Promise<boolean> {
1866
- return this.contract.read.blacklisted([user] as const) as Promise<boolean>;
1867
- }
1868
-
1869
- /**
1870
- * decimals
1871
- * view
1872
- */
1873
- async decimals(): Promise<bigint> {
1874
- return this.contract.read.decimals() as Promise<bigint>;
1875
- }
1876
-
1877
- /**
1878
- * eip712Domain
1879
- * view
1880
- */
1881
- async eip712Domain(): Promise<[`0x${string}`, string, string, bigint, `0x${string}`, `0x${string}`, bigint[]]> {
1882
- return this.contract.read.eip712Domain() as Promise<[`0x${string}`, string, string, bigint, `0x${string}`, `0x${string}`, bigint[]]>;
1883
- }
1884
-
1885
- /**
1886
- * getRoleAdmin
1887
- * view
1888
- */
1889
- async getRoleAdmin(role: `0x${string}`): Promise<`0x${string}`> {
1890
- return this.contract.read.getRoleAdmin([role] as const) as Promise<`0x${string}`>;
1891
- }
1892
-
1893
- /**
1894
- * hasRole
1895
- * view
1896
- */
1897
- async hasRole(role: `0x${string}`, account: `0x${string}`): Promise<boolean> {
1898
- return this.contract.read.hasRole([role, account] as const) as Promise<boolean>;
1899
- }
1900
-
1901
- /**
1902
- * isTelcoinWallet
1903
- * view
1904
- */
1905
- async isTelcoinWallet(candidate: `0x${string}`): Promise<boolean> {
1906
- return this.contract.read.isTelcoinWallet([candidate] as const) as Promise<boolean>;
1907
- }
1908
-
1909
- /**
1910
- * name
1911
- * view
1912
- */
1913
- async name(): Promise<string> {
1914
- return this.contract.read.name() as Promise<string>;
1915
- }
1916
-
1917
- /**
1918
- * nonces
1919
- * view
1920
- */
1921
- async nonces(owner: `0x${string}`): Promise<bigint> {
1922
- return this.contract.read.nonces([owner] as const) as Promise<bigint>;
1923
- }
1924
-
1925
- /**
1926
- * paused
1927
- * view
1928
- */
1929
- async paused(): Promise<boolean> {
1930
- return this.contract.read.paused() as Promise<boolean>;
1931
- }
1932
-
1933
- /**
1934
- * supportsInterface
1935
- * view
1936
- */
1937
- async supportsInterface(interfaceId: `0x${string}`): Promise<boolean> {
1938
- return this.contract.read.supportsInterface([interfaceId] as const) as Promise<boolean>;
1939
- }
1940
-
1941
- /**
1942
- * symbol
1943
- * view
1944
- */
1945
- async symbol(): Promise<string> {
1946
- return this.contract.read.symbol() as Promise<string>;
1947
- }
1948
-
1949
- /**
1950
- * totalSupply
1951
- * view
1952
- */
1953
- async totalSupply(): Promise<bigint> {
1954
- return this.contract.read.totalSupply() as Promise<bigint>;
1955
- }
1956
-
1957
- /**
1958
- * addBlackList
1959
- * nonpayable
1960
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1961
- */
1962
- async addBlackList(user: `0x${string}`, options?: {
1963
- accessList?: import('viem').AccessList;
1964
- authorizationList?: import('viem').AuthorizationList;
1965
- chain?: import('viem').Chain | null;
1966
- dataSuffix?: `0x${string}`;
1967
- gas?: bigint;
1968
- gasPrice?: bigint;
1969
- maxFeePerGas?: bigint;
1970
- maxPriorityFeePerGas?: bigint;
1971
- nonce?: number;
1972
- value?: bigint;
1973
- }): Promise<`0x${string}`> {
1974
- if (!this.contract.write) {
1975
- throw new Error('Wallet client is required for write operations');
1976
- }
1977
- return this.contract.write.addBlackList([user] as const, options) as Promise<`0x${string}`>;
1978
- }
1979
-
1980
- /**
1981
- * approve
1982
- * nonpayable
1983
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1984
- */
1985
- async approve(spender: `0x${string}`, value: bigint, options?: {
1986
- accessList?: import('viem').AccessList;
1987
- authorizationList?: import('viem').AuthorizationList;
1988
- chain?: import('viem').Chain | null;
1989
- dataSuffix?: `0x${string}`;
1990
- gas?: bigint;
1991
- gasPrice?: bigint;
1992
- maxFeePerGas?: bigint;
1993
- maxPriorityFeePerGas?: bigint;
1994
- nonce?: number;
1995
- value?: bigint;
1996
- }): Promise<`0x${string}`> {
1997
- if (!this.contract.write) {
1998
- throw new Error('Wallet client is required for write operations');
1999
- }
2000
- return this.contract.write.approve([spender, value] as const, options) as Promise<`0x${string}`>;
2001
- }
2002
-
2003
- /**
2004
- * burn
2005
- * nonpayable
2006
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2007
- */
2008
- async burn(value: bigint, 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<`0x${string}`> {
2020
- if (!this.contract.write) {
2021
- throw new Error('Wallet client is required for write operations');
2022
- }
2023
- return this.contract.write.burn([value] as const, options) as Promise<`0x${string}`>;
2024
- }
2025
-
2026
- /**
2027
- * burnFrom
2028
- * nonpayable
2029
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2030
- */
2031
- async burnFrom(account: `0x${string}`, value: bigint, options?: {
2032
- accessList?: import('viem').AccessList;
2033
- authorizationList?: import('viem').AuthorizationList;
2034
- chain?: import('viem').Chain | null;
2035
- dataSuffix?: `0x${string}`;
2036
- gas?: bigint;
2037
- gasPrice?: bigint;
2038
- maxFeePerGas?: bigint;
2039
- maxPriorityFeePerGas?: bigint;
2040
- nonce?: number;
2041
- value?: bigint;
2042
- }): Promise<`0x${string}`> {
2043
- if (!this.contract.write) {
2044
- throw new Error('Wallet client is required for write operations');
2045
- }
2046
- return this.contract.write.burnFrom([account, value] as const, options) as Promise<`0x${string}`>;
2047
- }
2048
-
2049
- async cancelAuthorization(authorizer: `0x${string}`, nonce: `0x${string}`, v: bigint, r: `0x${string}`, s: `0x${string}`, options?: {
2050
- accessList?: import('viem').AccessList;
2051
- authorizationList?: import('viem').AuthorizationList;
2052
- chain?: import('viem').Chain | null;
2053
- dataSuffix?: `0x${string}`;
2054
- gas?: bigint;
2055
- gasPrice?: bigint;
2056
- maxFeePerGas?: bigint;
2057
- maxPriorityFeePerGas?: bigint;
2058
- nonce?: number;
2059
- value?: bigint;
2060
- }): Promise<`0x${string}`>;
2061
- async cancelAuthorization(authorizer: `0x${string}`, nonce: `0x${string}`, signature: `0x${string}`, options?: {
2062
- accessList?: import('viem').AccessList;
2063
- authorizationList?: import('viem').AuthorizationList;
2064
- chain?: import('viem').Chain | null;
2065
- dataSuffix?: `0x${string}`;
2066
- gas?: bigint;
2067
- gasPrice?: bigint;
2068
- maxFeePerGas?: bigint;
2069
- maxPriorityFeePerGas?: bigint;
2070
- nonce?: number;
2071
- value?: bigint;
2072
- }): Promise<`0x${string}`>;
2073
- async cancelAuthorization(...args: any[]): Promise<`0x${string}`> {
2074
- if (!this.contract.write) {
2075
- throw new Error('Wallet client is required for write operations');
2076
- }
2077
- return this.contract.write.cancelAuthorization(args as any) as Promise<`0x${string}`>;
2078
- }
2079
-
2080
- /**
2081
- * erc20Rescue
2082
- * nonpayable
2083
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2084
- */
2085
- async erc20Rescue(token: `0x${string}`, destination: `0x${string}`, amount: bigint, options?: {
2086
- accessList?: import('viem').AccessList;
2087
- authorizationList?: import('viem').AuthorizationList;
2088
- chain?: import('viem').Chain | null;
2089
- dataSuffix?: `0x${string}`;
2090
- gas?: bigint;
2091
- gasPrice?: bigint;
2092
- maxFeePerGas?: bigint;
2093
- maxPriorityFeePerGas?: bigint;
2094
- nonce?: number;
2095
- value?: bigint;
2096
- }): Promise<`0x${string}`> {
2097
- if (!this.contract.write) {
2098
- throw new Error('Wallet client is required for write operations');
2099
- }
2100
- return this.contract.write.erc20Rescue([token, destination, amount] as const, options) as Promise<`0x${string}`>;
2101
- }
2102
-
2103
- /**
2104
- * grantRole
2105
- * nonpayable
2106
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2107
- */
2108
- async grantRole(role: `0x${string}`, account: `0x${string}`, options?: {
2109
- accessList?: import('viem').AccessList;
2110
- authorizationList?: import('viem').AuthorizationList;
2111
- chain?: import('viem').Chain | null;
2112
- dataSuffix?: `0x${string}`;
2113
- gas?: bigint;
2114
- gasPrice?: bigint;
2115
- maxFeePerGas?: bigint;
2116
- maxPriorityFeePerGas?: bigint;
2117
- nonce?: number;
2118
- value?: bigint;
2119
- }): Promise<`0x${string}`> {
2120
- if (!this.contract.write) {
2121
- throw new Error('Wallet client is required for write operations');
2122
- }
2123
- return this.contract.write.grantRole([role, account] as const, options) as Promise<`0x${string}`>;
2124
- }
2125
-
2126
- /**
2127
- * initialize
2128
- * nonpayable
2129
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2130
- */
2131
- async initialize(name_: string, symbol_: string, decimals_: bigint, 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<`0x${string}`> {
2143
- if (!this.contract.write) {
2144
- throw new Error('Wallet client is required for write operations');
2145
- }
2146
- return this.contract.write.initialize([name_, symbol_, decimals_] as const, options) as Promise<`0x${string}`>;
2147
- }
2148
-
2149
- /**
2150
- * mint
2151
- * nonpayable
2152
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2153
- */
2154
- async mint(value: bigint, options?: {
2155
- accessList?: import('viem').AccessList;
2156
- authorizationList?: import('viem').AuthorizationList;
2157
- chain?: import('viem').Chain | null;
2158
- dataSuffix?: `0x${string}`;
2159
- gas?: bigint;
2160
- gasPrice?: bigint;
2161
- maxFeePerGas?: bigint;
2162
- maxPriorityFeePerGas?: bigint;
2163
- nonce?: number;
2164
- value?: bigint;
2165
- }): Promise<`0x${string}`> {
2166
- if (!this.contract.write) {
2167
- throw new Error('Wallet client is required for write operations');
2168
- }
2169
- return this.contract.write.mint([value] as const, options) as Promise<`0x${string}`>;
2170
- }
2171
-
2172
- /**
2173
- * mintTo
2174
- * nonpayable
2175
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2176
- */
2177
- async mintTo(account: `0x${string}`, value: bigint, options?: {
2178
- accessList?: import('viem').AccessList;
2179
- authorizationList?: import('viem').AuthorizationList;
2180
- chain?: import('viem').Chain | null;
2181
- dataSuffix?: `0x${string}`;
2182
- gas?: bigint;
2183
- gasPrice?: bigint;
2184
- maxFeePerGas?: bigint;
2185
- maxPriorityFeePerGas?: bigint;
2186
- nonce?: number;
2187
- value?: bigint;
2188
- }): Promise<`0x${string}`> {
2189
- if (!this.contract.write) {
2190
- throw new Error('Wallet client is required for write operations');
2191
- }
2192
- return this.contract.write.mintTo([account, value] as const, options) as Promise<`0x${string}`>;
2193
- }
2194
-
2195
- /**
2196
- * pause
2197
- * nonpayable
2198
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2199
- */
2200
- async pause(options?: {
2201
- accessList?: import('viem').AccessList;
2202
- authorizationList?: import('viem').AuthorizationList;
2203
- chain?: import('viem').Chain | null;
2204
- dataSuffix?: `0x${string}`;
2205
- gas?: bigint;
2206
- gasPrice?: bigint;
2207
- maxFeePerGas?: bigint;
2208
- maxPriorityFeePerGas?: bigint;
2209
- nonce?: number;
2210
- value?: bigint;
2211
- }): Promise<`0x${string}`> {
2212
- if (!this.contract.write) {
2213
- throw new Error('Wallet client is required for write operations');
2214
- }
2215
- return this.contract.write.pause(options) as Promise<`0x${string}`>;
2216
- }
2217
-
2218
- async permit(owner_: `0x${string}`, spender: `0x${string}`, value: bigint, deadline: bigint, signature: `0x${string}`, options?: {
2219
- accessList?: import('viem').AccessList;
2220
- authorizationList?: import('viem').AuthorizationList;
2221
- chain?: import('viem').Chain | null;
2222
- dataSuffix?: `0x${string}`;
2223
- gas?: bigint;
2224
- gasPrice?: bigint;
2225
- maxFeePerGas?: bigint;
2226
- maxPriorityFeePerGas?: bigint;
2227
- nonce?: number;
2228
- value?: bigint;
2229
- }): Promise<`0x${string}`>;
2230
- async permit(owner: `0x${string}`, spender: `0x${string}`, value: bigint, deadline: bigint, v: bigint, r: `0x${string}`, s: `0x${string}`, options?: {
2231
- accessList?: import('viem').AccessList;
2232
- authorizationList?: import('viem').AuthorizationList;
2233
- chain?: import('viem').Chain | null;
2234
- dataSuffix?: `0x${string}`;
2235
- gas?: bigint;
2236
- gasPrice?: bigint;
2237
- maxFeePerGas?: bigint;
2238
- maxPriorityFeePerGas?: bigint;
2239
- nonce?: number;
2240
- value?: bigint;
2241
- }): Promise<`0x${string}`>;
2242
- async permit(...args: any[]): Promise<`0x${string}`> {
2243
- if (!this.contract.write) {
2244
- throw new Error('Wallet client is required for write operations');
2245
- }
2246
- return this.contract.write.permit(args as any) as Promise<`0x${string}`>;
2247
- }
2248
-
2249
- async receiveWithAuthorization(from: `0x${string}`, to: `0x${string}`, value: bigint, validAfter: bigint, validBefore: bigint, nonce: `0x${string}`, signature: `0x${string}`, options?: {
2250
- accessList?: import('viem').AccessList;
2251
- authorizationList?: import('viem').AuthorizationList;
2252
- chain?: import('viem').Chain | null;
2253
- dataSuffix?: `0x${string}`;
2254
- gas?: bigint;
2255
- gasPrice?: bigint;
2256
- maxFeePerGas?: bigint;
2257
- maxPriorityFeePerGas?: bigint;
2258
- nonce?: number;
2259
- value?: bigint;
2260
- }): Promise<`0x${string}`>;
2261
- async 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?: {
2262
- accessList?: import('viem').AccessList;
2263
- authorizationList?: import('viem').AuthorizationList;
2264
- chain?: import('viem').Chain | null;
2265
- dataSuffix?: `0x${string}`;
2266
- gas?: bigint;
2267
- gasPrice?: bigint;
2268
- maxFeePerGas?: bigint;
2269
- maxPriorityFeePerGas?: bigint;
2270
- nonce?: number;
2271
- value?: bigint;
2272
- }): Promise<`0x${string}`>;
2273
- async receiveWithAuthorization(...args: any[]): Promise<`0x${string}`> {
2274
- if (!this.contract.write) {
2275
- throw new Error('Wallet client is required for write operations');
2276
- }
2277
- return this.contract.write.receiveWithAuthorization(args as any) as Promise<`0x${string}`>;
2278
- }
2279
-
2280
- /**
2281
- * removeBlackList
2282
- * nonpayable
2283
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2284
- */
2285
- async removeBlackList(user: `0x${string}`, options?: {
2286
- accessList?: import('viem').AccessList;
2287
- authorizationList?: import('viem').AuthorizationList;
2288
- chain?: import('viem').Chain | null;
2289
- dataSuffix?: `0x${string}`;
2290
- gas?: bigint;
2291
- gasPrice?: bigint;
2292
- maxFeePerGas?: bigint;
2293
- maxPriorityFeePerGas?: bigint;
2294
- nonce?: number;
2295
- value?: bigint;
2296
- }): Promise<`0x${string}`> {
2297
- if (!this.contract.write) {
2298
- throw new Error('Wallet client is required for write operations');
2299
- }
2300
- return this.contract.write.removeBlackList([user] as const, options) as Promise<`0x${string}`>;
2301
- }
2302
-
2303
- /**
2304
- * renounceRole
2305
- * nonpayable
2306
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2307
- */
2308
- async renounceRole(role: `0x${string}`, callerConfirmation: `0x${string}`, options?: {
2309
- accessList?: import('viem').AccessList;
2310
- authorizationList?: import('viem').AuthorizationList;
2311
- chain?: import('viem').Chain | null;
2312
- dataSuffix?: `0x${string}`;
2313
- gas?: bigint;
2314
- gasPrice?: bigint;
2315
- maxFeePerGas?: bigint;
2316
- maxPriorityFeePerGas?: bigint;
2317
- nonce?: number;
2318
- value?: bigint;
2319
- }): Promise<`0x${string}`> {
2320
- if (!this.contract.write) {
2321
- throw new Error('Wallet client is required for write operations');
2322
- }
2323
- return this.contract.write.renounceRole([role, callerConfirmation] as const, options) as Promise<`0x${string}`>;
2324
- }
2325
-
2326
- /**
2327
- * revokeRole
2328
- * nonpayable
2329
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2330
- */
2331
- async revokeRole(role: `0x${string}`, account: `0x${string}`, options?: {
2332
- accessList?: import('viem').AccessList;
2333
- authorizationList?: import('viem').AuthorizationList;
2334
- chain?: import('viem').Chain | null;
2335
- dataSuffix?: `0x${string}`;
2336
- gas?: bigint;
2337
- gasPrice?: bigint;
2338
- maxFeePerGas?: bigint;
2339
- maxPriorityFeePerGas?: bigint;
2340
- nonce?: number;
2341
- value?: bigint;
2342
- }): Promise<`0x${string}`> {
2343
- if (!this.contract.write) {
2344
- throw new Error('Wallet client is required for write operations');
2345
- }
2346
- return this.contract.write.revokeRole([role, account] as const, options) as Promise<`0x${string}`>;
2347
- }
2348
-
2349
- /**
2350
- * transfer
2351
- * nonpayable
2352
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2353
- */
2354
- async transfer(to: `0x${string}`, value: bigint, options?: {
2355
- accessList?: import('viem').AccessList;
2356
- authorizationList?: import('viem').AuthorizationList;
2357
- chain?: import('viem').Chain | null;
2358
- dataSuffix?: `0x${string}`;
2359
- gas?: bigint;
2360
- gasPrice?: bigint;
2361
- maxFeePerGas?: bigint;
2362
- maxPriorityFeePerGas?: bigint;
2363
- nonce?: number;
2364
- value?: bigint;
2365
- }): Promise<`0x${string}`> {
2366
- if (!this.contract.write) {
2367
- throw new Error('Wallet client is required for write operations');
2368
- }
2369
- return this.contract.write.transfer([to, value] as const, options) as Promise<`0x${string}`>;
2370
- }
2371
-
2372
- /**
2373
- * transferFrom
2374
- * nonpayable
2375
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2376
- */
2377
- async transferFrom(from: `0x${string}`, to: `0x${string}`, value: bigint, options?: {
2378
- accessList?: import('viem').AccessList;
2379
- authorizationList?: import('viem').AuthorizationList;
2380
- chain?: import('viem').Chain | null;
2381
- dataSuffix?: `0x${string}`;
2382
- gas?: bigint;
2383
- gasPrice?: bigint;
2384
- maxFeePerGas?: bigint;
2385
- maxPriorityFeePerGas?: bigint;
2386
- nonce?: number;
2387
- value?: bigint;
2388
- }): Promise<`0x${string}`> {
2389
- if (!this.contract.write) {
2390
- throw new Error('Wallet client is required for write operations');
2391
- }
2392
- return this.contract.write.transferFrom([from, to, value] as const, options) as Promise<`0x${string}`>;
2393
- }
2394
-
2395
- async transferWithAuthorization(from: `0x${string}`, to: `0x${string}`, value: bigint, validAfter: bigint, validBefore: bigint, nonce: `0x${string}`, signature: `0x${string}`, options?: {
2396
- accessList?: import('viem').AccessList;
2397
- authorizationList?: import('viem').AuthorizationList;
2398
- chain?: import('viem').Chain | null;
2399
- dataSuffix?: `0x${string}`;
2400
- gas?: bigint;
2401
- gasPrice?: bigint;
2402
- maxFeePerGas?: bigint;
2403
- maxPriorityFeePerGas?: bigint;
2404
- nonce?: number;
2405
- value?: bigint;
2406
- }): Promise<`0x${string}`>;
2407
- async 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?: {
2408
- accessList?: import('viem').AccessList;
2409
- authorizationList?: import('viem').AuthorizationList;
2410
- chain?: import('viem').Chain | null;
2411
- dataSuffix?: `0x${string}`;
2412
- gas?: bigint;
2413
- gasPrice?: bigint;
2414
- maxFeePerGas?: bigint;
2415
- maxPriorityFeePerGas?: bigint;
2416
- nonce?: number;
2417
- value?: bigint;
2418
- }): Promise<`0x${string}`>;
2419
- async transferWithAuthorization(...args: any[]): Promise<`0x${string}`> {
2420
- if (!this.contract.write) {
2421
- throw new Error('Wallet client is required for write operations');
2422
- }
2423
- return this.contract.write.transferWithAuthorization(args as any) as Promise<`0x${string}`>;
2424
- }
2425
-
2426
- /**
2427
- * unpause
2428
- * nonpayable
2429
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2430
- */
2431
- async unpause(options?: {
2432
- accessList?: import('viem').AccessList;
2433
- authorizationList?: import('viem').AuthorizationList;
2434
- chain?: import('viem').Chain | null;
2435
- dataSuffix?: `0x${string}`;
2436
- gas?: bigint;
2437
- gasPrice?: bigint;
2438
- maxFeePerGas?: bigint;
2439
- maxPriorityFeePerGas?: bigint;
2440
- nonce?: number;
2441
- value?: bigint;
2442
- }): Promise<`0x${string}`> {
2443
- if (!this.contract.write) {
2444
- throw new Error('Wallet client is required for write operations');
2445
- }
2446
- return this.contract.write.unpause(options) as Promise<`0x${string}`>;
2447
- }
2448
-
2449
-
2450
-
2451
- /**
2452
- * Simulate contract write operations (dry-run without sending transaction)
2453
- *
2454
- * @example
2455
- * const result = await contract.simulate.transfer('0x...', 1000n);
2456
- * console.log('Gas estimate:', result.request.gas);
2457
- * console.log('Would succeed:', result.result);
2458
- */
2459
- get simulate() {
2460
- const contract = this.contract;
2461
- if (!contract.simulate) {
2462
- throw new Error('Public client is required for simulation');
2463
- }
2464
- return {
2465
- /**
2466
- * Simulate addBlackList
2467
- * Returns gas estimate and result without sending transaction
2468
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2469
- */
2470
- async addBlackList(user: `0x${string}`, options?: {
2471
- accessList?: import('viem').AccessList;
2472
- authorizationList?: import('viem').AuthorizationList;
2473
- chain?: import('viem').Chain | null;
2474
- dataSuffix?: `0x${string}`;
2475
- gas?: bigint;
2476
- gasPrice?: bigint;
2477
- maxFeePerGas?: bigint;
2478
- maxPriorityFeePerGas?: bigint;
2479
- nonce?: number;
2480
- value?: bigint;
2481
- }): Promise<void> {
2482
- return contract.simulate.addBlackList([user] as const, options) as Promise<void>;
2483
- },
2484
- /**
2485
- * Simulate approve
2486
- * Returns gas estimate and result without sending transaction
2487
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2488
- */
2489
- async approve(spender: `0x${string}`, value: bigint, options?: {
2490
- accessList?: import('viem').AccessList;
2491
- authorizationList?: import('viem').AuthorizationList;
2492
- chain?: import('viem').Chain | null;
2493
- dataSuffix?: `0x${string}`;
2494
- gas?: bigint;
2495
- gasPrice?: bigint;
2496
- maxFeePerGas?: bigint;
2497
- maxPriorityFeePerGas?: bigint;
2498
- nonce?: number;
2499
- value?: bigint;
2500
- }): Promise<boolean> {
2501
- return contract.simulate.approve([spender, value] as const, options) as Promise<boolean>;
2502
- },
2503
- /**
2504
- * Simulate burn
2505
- * Returns gas estimate and result without sending transaction
2506
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2507
- */
2508
- async burn(value: bigint, options?: {
2509
- accessList?: import('viem').AccessList;
2510
- authorizationList?: import('viem').AuthorizationList;
2511
- chain?: import('viem').Chain | null;
2512
- dataSuffix?: `0x${string}`;
2513
- gas?: bigint;
2514
- gasPrice?: bigint;
2515
- maxFeePerGas?: bigint;
2516
- maxPriorityFeePerGas?: bigint;
2517
- nonce?: number;
2518
- value?: bigint;
2519
- }): Promise<void> {
2520
- return contract.simulate.burn([value] as const, options) as Promise<void>;
2521
- },
2522
- /**
2523
- * Simulate burnFrom
2524
- * Returns gas estimate and result without sending transaction
2525
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2526
- */
2527
- async burnFrom(account: `0x${string}`, value: bigint, options?: {
2528
- accessList?: import('viem').AccessList;
2529
- authorizationList?: import('viem').AuthorizationList;
2530
- chain?: import('viem').Chain | null;
2531
- dataSuffix?: `0x${string}`;
2532
- gas?: bigint;
2533
- gasPrice?: bigint;
2534
- maxFeePerGas?: bigint;
2535
- maxPriorityFeePerGas?: bigint;
2536
- nonce?: number;
2537
- value?: bigint;
2538
- }): Promise<void> {
2539
- return contract.simulate.burnFrom([account, value] as const, options) as Promise<void>;
2540
- },
2541
- /**
2542
- * Simulate cancelAuthorization
2543
- * Returns gas estimate and result without sending transaction
2544
- * Supports multiple overloads: (address, bytes32, uint8, bytes32, bytes32), (address, bytes32, bytes)
2545
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2546
- */
2547
- async cancelAuthorization(...args: any[]): Promise<any> {
2548
- return contract.simulate.cancelAuthorization(args as any) as Promise<any>;
2549
- },
2550
- /**
2551
- * Simulate erc20Rescue
2552
- * Returns gas estimate and result without sending transaction
2553
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2554
- */
2555
- async erc20Rescue(token: `0x${string}`, destination: `0x${string}`, amount: bigint, options?: {
2556
- accessList?: import('viem').AccessList;
2557
- authorizationList?: import('viem').AuthorizationList;
2558
- chain?: import('viem').Chain | null;
2559
- dataSuffix?: `0x${string}`;
2560
- gas?: bigint;
2561
- gasPrice?: bigint;
2562
- maxFeePerGas?: bigint;
2563
- maxPriorityFeePerGas?: bigint;
2564
- nonce?: number;
2565
- value?: bigint;
2566
- }): Promise<void> {
2567
- return contract.simulate.erc20Rescue([token, destination, amount] as const, options) as Promise<void>;
2568
- },
2569
- /**
2570
- * Simulate grantRole
2571
- * Returns gas estimate and result without sending transaction
2572
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2573
- */
2574
- async grantRole(role: `0x${string}`, account: `0x${string}`, options?: {
2575
- accessList?: import('viem').AccessList;
2576
- authorizationList?: import('viem').AuthorizationList;
2577
- chain?: import('viem').Chain | null;
2578
- dataSuffix?: `0x${string}`;
2579
- gas?: bigint;
2580
- gasPrice?: bigint;
2581
- maxFeePerGas?: bigint;
2582
- maxPriorityFeePerGas?: bigint;
2583
- nonce?: number;
2584
- value?: bigint;
2585
- }): Promise<void> {
2586
- return contract.simulate.grantRole([role, account] as const, options) as Promise<void>;
2587
- },
2588
- /**
2589
- * Simulate initialize
2590
- * Returns gas estimate and result without sending transaction
2591
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2592
- */
2593
- async initialize(name_: string, symbol_: string, decimals_: bigint, options?: {
2594
- accessList?: import('viem').AccessList;
2595
- authorizationList?: import('viem').AuthorizationList;
2596
- chain?: import('viem').Chain | null;
2597
- dataSuffix?: `0x${string}`;
2598
- gas?: bigint;
2599
- gasPrice?: bigint;
2600
- maxFeePerGas?: bigint;
2601
- maxPriorityFeePerGas?: bigint;
2602
- nonce?: number;
2603
- value?: bigint;
2604
- }): Promise<void> {
2605
- return contract.simulate.initialize([name_, symbol_, decimals_] as const, options) as Promise<void>;
2606
- },
2607
- /**
2608
- * Simulate mint
2609
- * Returns gas estimate and result without sending transaction
2610
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2611
- */
2612
- async mint(value: bigint, options?: {
2613
- accessList?: import('viem').AccessList;
2614
- authorizationList?: import('viem').AuthorizationList;
2615
- chain?: import('viem').Chain | null;
2616
- dataSuffix?: `0x${string}`;
2617
- gas?: bigint;
2618
- gasPrice?: bigint;
2619
- maxFeePerGas?: bigint;
2620
- maxPriorityFeePerGas?: bigint;
2621
- nonce?: number;
2622
- value?: bigint;
2623
- }): Promise<void> {
2624
- return contract.simulate.mint([value] as const, options) as Promise<void>;
2625
- },
2626
- /**
2627
- * Simulate mintTo
2628
- * Returns gas estimate and result without sending transaction
2629
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2630
- */
2631
- async mintTo(account: `0x${string}`, value: bigint, options?: {
2632
- accessList?: import('viem').AccessList;
2633
- authorizationList?: import('viem').AuthorizationList;
2634
- chain?: import('viem').Chain | null;
2635
- dataSuffix?: `0x${string}`;
2636
- gas?: bigint;
2637
- gasPrice?: bigint;
2638
- maxFeePerGas?: bigint;
2639
- maxPriorityFeePerGas?: bigint;
2640
- nonce?: number;
2641
- value?: bigint;
2642
- }): Promise<void> {
2643
- return contract.simulate.mintTo([account, value] as const, options) as Promise<void>;
2644
- },
2645
- /**
2646
- * Simulate pause
2647
- * Returns gas estimate and result without sending transaction
2648
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2649
- */
2650
- async pause(options?: {
2651
- accessList?: import('viem').AccessList;
2652
- authorizationList?: import('viem').AuthorizationList;
2653
- chain?: import('viem').Chain | null;
2654
- dataSuffix?: `0x${string}`;
2655
- gas?: bigint;
2656
- gasPrice?: bigint;
2657
- maxFeePerGas?: bigint;
2658
- maxPriorityFeePerGas?: bigint;
2659
- nonce?: number;
2660
- value?: bigint;
2661
- }): Promise<void> {
2662
- return contract.simulate.pause(options) as Promise<void>;
2663
- },
2664
- /**
2665
- * Simulate permit
2666
- * Returns gas estimate and result without sending transaction
2667
- * Supports multiple overloads: (address, address, uint256, uint256, bytes), (address, address, uint256, uint256, uint8, bytes32, bytes32)
2668
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2669
- */
2670
- async permit(...args: any[]): Promise<any> {
2671
- return contract.simulate.permit(args as any) as Promise<any>;
2672
- },
2673
- /**
2674
- * Simulate receiveWithAuthorization
2675
- * Returns gas estimate and result without sending transaction
2676
- * Supports multiple overloads: (address, address, uint256, uint256, uint256, bytes32, bytes), (address, address, uint256, uint256, uint256, bytes32, uint8, bytes32, bytes32)
2677
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2678
- */
2679
- async receiveWithAuthorization(...args: any[]): Promise<any> {
2680
- return contract.simulate.receiveWithAuthorization(args as any) as Promise<any>;
2681
- },
2682
- /**
2683
- * Simulate removeBlackList
2684
- * Returns gas estimate and result without sending transaction
2685
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2686
- */
2687
- async removeBlackList(user: `0x${string}`, options?: {
2688
- accessList?: import('viem').AccessList;
2689
- authorizationList?: import('viem').AuthorizationList;
2690
- chain?: import('viem').Chain | null;
2691
- dataSuffix?: `0x${string}`;
2692
- gas?: bigint;
2693
- gasPrice?: bigint;
2694
- maxFeePerGas?: bigint;
2695
- maxPriorityFeePerGas?: bigint;
2696
- nonce?: number;
2697
- value?: bigint;
2698
- }): Promise<void> {
2699
- return contract.simulate.removeBlackList([user] as const, options) as Promise<void>;
2700
- },
2701
- /**
2702
- * Simulate renounceRole
2703
- * Returns gas estimate and result without sending transaction
2704
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2705
- */
2706
- async renounceRole(role: `0x${string}`, callerConfirmation: `0x${string}`, options?: {
2707
- accessList?: import('viem').AccessList;
2708
- authorizationList?: import('viem').AuthorizationList;
2709
- chain?: import('viem').Chain | null;
2710
- dataSuffix?: `0x${string}`;
2711
- gas?: bigint;
2712
- gasPrice?: bigint;
2713
- maxFeePerGas?: bigint;
2714
- maxPriorityFeePerGas?: bigint;
2715
- nonce?: number;
2716
- value?: bigint;
2717
- }): Promise<void> {
2718
- return contract.simulate.renounceRole([role, callerConfirmation] as const, options) as Promise<void>;
2719
- },
2720
- /**
2721
- * Simulate revokeRole
2722
- * Returns gas estimate and result without sending transaction
2723
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2724
- */
2725
- async revokeRole(role: `0x${string}`, account: `0x${string}`, options?: {
2726
- accessList?: import('viem').AccessList;
2727
- authorizationList?: import('viem').AuthorizationList;
2728
- chain?: import('viem').Chain | null;
2729
- dataSuffix?: `0x${string}`;
2730
- gas?: bigint;
2731
- gasPrice?: bigint;
2732
- maxFeePerGas?: bigint;
2733
- maxPriorityFeePerGas?: bigint;
2734
- nonce?: number;
2735
- value?: bigint;
2736
- }): Promise<void> {
2737
- return contract.simulate.revokeRole([role, account] as const, options) as Promise<void>;
2738
- },
2739
- /**
2740
- * Simulate transfer
2741
- * Returns gas estimate and result without sending transaction
2742
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2743
- */
2744
- async transfer(to: `0x${string}`, value: bigint, options?: {
2745
- accessList?: import('viem').AccessList;
2746
- authorizationList?: import('viem').AuthorizationList;
2747
- chain?: import('viem').Chain | null;
2748
- dataSuffix?: `0x${string}`;
2749
- gas?: bigint;
2750
- gasPrice?: bigint;
2751
- maxFeePerGas?: bigint;
2752
- maxPriorityFeePerGas?: bigint;
2753
- nonce?: number;
2754
- value?: bigint;
2755
- }): Promise<boolean> {
2756
- return contract.simulate.transfer([to, value] as const, options) as Promise<boolean>;
2757
- },
2758
- /**
2759
- * Simulate transferFrom
2760
- * Returns gas estimate and result without sending transaction
2761
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2762
- */
2763
- async transferFrom(from: `0x${string}`, to: `0x${string}`, value: bigint, options?: {
2764
- accessList?: import('viem').AccessList;
2765
- authorizationList?: import('viem').AuthorizationList;
2766
- chain?: import('viem').Chain | null;
2767
- dataSuffix?: `0x${string}`;
2768
- gas?: bigint;
2769
- gasPrice?: bigint;
2770
- maxFeePerGas?: bigint;
2771
- maxPriorityFeePerGas?: bigint;
2772
- nonce?: number;
2773
- value?: bigint;
2774
- }): Promise<boolean> {
2775
- return contract.simulate.transferFrom([from, to, value] as const, options) as Promise<boolean>;
2776
- },
2777
- /**
2778
- * Simulate transferWithAuthorization
2779
- * Returns gas estimate and result without sending transaction
2780
- * Supports multiple overloads: (address, address, uint256, uint256, uint256, bytes32, bytes), (address, address, uint256, uint256, uint256, bytes32, uint8, bytes32, bytes32)
2781
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2782
- */
2783
- async transferWithAuthorization(...args: any[]): Promise<any> {
2784
- return contract.simulate.transferWithAuthorization(args as any) as Promise<any>;
2785
- },
2786
- /**
2787
- * Simulate unpause
2788
- * Returns gas estimate and result without sending transaction
2789
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2790
- */
2791
- async unpause(options?: {
2792
- accessList?: import('viem').AccessList;
2793
- authorizationList?: import('viem').AuthorizationList;
2794
- chain?: import('viem').Chain | null;
2795
- dataSuffix?: `0x${string}`;
2796
- gas?: bigint;
2797
- gasPrice?: bigint;
2798
- maxFeePerGas?: bigint;
2799
- maxPriorityFeePerGas?: bigint;
2800
- nonce?: number;
2801
- value?: bigint;
2802
- }): Promise<void> {
2803
- return contract.simulate.unpause(options) as Promise<void>;
2804
- }
2805
- };
2806
- }
2807
-
2808
- /**
2809
- * Watch contract events
2810
- *
2811
- * @example
2812
- * // Watch all Transfer events
2813
- * const unwatch = contract.watch.Transfer((event) => {
2814
- * console.log('Transfer:', event);
2815
- * });
2816
- *
2817
- * // Stop watching
2818
- * unwatch();
2819
- */
2820
- get watch() {
2821
- return {
2822
- /**
2823
- * Watch AddedBlacklist events
2824
- * @param callback Function to call when event is emitted
2825
- * @param filter Optional filter for indexed parameters
2826
- * @returns Unwatch function to stop listening
2827
- */
2828
- AddedBlacklist: (callback: (event: { user: `0x${string}` }) => void, filter?: { user: `0x${string}` }) => {
2829
- return this.publicClient.watchContractEvent({
2830
- address: this.contractAddress,
2831
- abi: Stablecoin_jsonAbi,
2832
- eventName: 'AddedBlacklist',
2833
- args: filter,
2834
- onLogs: (logs: any[]) => {
2835
- logs.forEach((log: any) => {
2836
- callback(log.args as any);
2837
- });
2838
- },
2839
- }) as () => void;
2840
- },
2841
- /**
2842
- * Watch Approval events
2843
- * @param callback Function to call when event is emitted
2844
- * @param filter Optional filter for indexed parameters
2845
- * @returns Unwatch function to stop listening
2846
- */
2847
- Approval: (callback: (event: { owner: `0x${string}`; spender: `0x${string}`; value: bigint }) => void, filter?: { owner: `0x${string}`; spender: `0x${string}` }) => {
2848
- return this.publicClient.watchContractEvent({
2849
- address: this.contractAddress,
2850
- abi: Stablecoin_jsonAbi,
2851
- eventName: 'Approval',
2852
- args: filter,
2853
- onLogs: (logs: any[]) => {
2854
- logs.forEach((log: any) => {
2855
- callback(log.args as any);
2856
- });
2857
- },
2858
- }) as () => void;
2859
- },
2860
- /**
2861
- * Watch AuthorizationCanceled events
2862
- * @param callback Function to call when event is emitted
2863
- * @param filter Optional filter for indexed parameters
2864
- * @returns Unwatch function to stop listening
2865
- */
2866
- AuthorizationCanceled: (callback: (event: { authorizer: `0x${string}`; nonce: `0x${string}` }) => void, filter?: { authorizer: `0x${string}`; nonce: `0x${string}` }) => {
2867
- return this.publicClient.watchContractEvent({
2868
- address: this.contractAddress,
2869
- abi: Stablecoin_jsonAbi,
2870
- eventName: 'AuthorizationCanceled',
2871
- args: filter,
2872
- onLogs: (logs: any[]) => {
2873
- logs.forEach((log: any) => {
2874
- callback(log.args as any);
2875
- });
2876
- },
2877
- }) as () => void;
2878
- },
2879
- /**
2880
- * Watch AuthorizationUsed events
2881
- * @param callback Function to call when event is emitted
2882
- * @param filter Optional filter for indexed parameters
2883
- * @returns Unwatch function to stop listening
2884
- */
2885
- AuthorizationUsed: (callback: (event: { authorizer: `0x${string}`; nonce: `0x${string}` }) => void, filter?: { authorizer: `0x${string}`; nonce: `0x${string}` }) => {
2886
- return this.publicClient.watchContractEvent({
2887
- address: this.contractAddress,
2888
- abi: Stablecoin_jsonAbi,
2889
- eventName: 'AuthorizationUsed',
2890
- args: filter,
2891
- onLogs: (logs: any[]) => {
2892
- logs.forEach((log: any) => {
2893
- callback(log.args as any);
2894
- });
2895
- },
2896
- }) as () => void;
2897
- },
2898
- /**
2899
- * Watch EIP712DomainChanged events
2900
- * @param callback Function to call when event is emitted
2901
- * @param filter Optional filter for indexed parameters
2902
- * @returns Unwatch function to stop listening
2903
- */
2904
- EIP712DomainChanged: (callback: (event: { }) => void) => {
2905
- return this.publicClient.watchContractEvent({
2906
- address: this.contractAddress,
2907
- abi: Stablecoin_jsonAbi,
2908
- eventName: 'EIP712DomainChanged',
2909
-
2910
- onLogs: (logs: any[]) => {
2911
- logs.forEach((log: any) => {
2912
- callback(log.args as any);
2913
- });
2914
- },
2915
- }) as () => void;
2916
- },
2917
- /**
2918
- * Watch Initialized events
2919
- * @param callback Function to call when event is emitted
2920
- * @param filter Optional filter for indexed parameters
2921
- * @returns Unwatch function to stop listening
2922
- */
2923
- Initialized: (callback: (event: { version: bigint }) => void) => {
2924
- return this.publicClient.watchContractEvent({
2925
- address: this.contractAddress,
2926
- abi: Stablecoin_jsonAbi,
2927
- eventName: 'Initialized',
2928
-
2929
- onLogs: (logs: any[]) => {
2930
- logs.forEach((log: any) => {
2931
- callback(log.args as any);
2932
- });
2933
- },
2934
- }) as () => void;
2935
- },
2936
- /**
2937
- * Watch Paused events
2938
- * @param callback Function to call when event is emitted
2939
- * @param filter Optional filter for indexed parameters
2940
- * @returns Unwatch function to stop listening
2941
- */
2942
- Paused: (callback: (event: { account: `0x${string}` }) => void) => {
2943
- return this.publicClient.watchContractEvent({
2944
- address: this.contractAddress,
2945
- abi: Stablecoin_jsonAbi,
2946
- eventName: 'Paused',
2947
-
2948
- onLogs: (logs: any[]) => {
2949
- logs.forEach((log: any) => {
2950
- callback(log.args as any);
2951
- });
2952
- },
2953
- }) as () => void;
2954
- },
2955
- /**
2956
- * Watch RemovedBlacklist events
2957
- * @param callback Function to call when event is emitted
2958
- * @param filter Optional filter for indexed parameters
2959
- * @returns Unwatch function to stop listening
2960
- */
2961
- RemovedBlacklist: (callback: (event: { user: `0x${string}` }) => void, filter?: { user: `0x${string}` }) => {
2962
- return this.publicClient.watchContractEvent({
2963
- address: this.contractAddress,
2964
- abi: Stablecoin_jsonAbi,
2965
- eventName: 'RemovedBlacklist',
2966
- args: filter,
2967
- onLogs: (logs: any[]) => {
2968
- logs.forEach((log: any) => {
2969
- callback(log.args as any);
2970
- });
2971
- },
2972
- }) as () => void;
2973
- },
2974
- /**
2975
- * Watch RoleAdminChanged events
2976
- * @param callback Function to call when event is emitted
2977
- * @param filter Optional filter for indexed parameters
2978
- * @returns Unwatch function to stop listening
2979
- */
2980
- RoleAdminChanged: (callback: (event: { role: `0x${string}`; previousAdminRole: `0x${string}`; newAdminRole: `0x${string}` }) => void, filter?: { role: `0x${string}`; previousAdminRole: `0x${string}`; newAdminRole: `0x${string}` }) => {
2981
- return this.publicClient.watchContractEvent({
2982
- address: this.contractAddress,
2983
- abi: Stablecoin_jsonAbi,
2984
- eventName: 'RoleAdminChanged',
2985
- args: filter,
2986
- onLogs: (logs: any[]) => {
2987
- logs.forEach((log: any) => {
2988
- callback(log.args as any);
2989
- });
2990
- },
2991
- }) as () => void;
2992
- },
2993
- /**
2994
- * Watch RoleGranted events
2995
- * @param callback Function to call when event is emitted
2996
- * @param filter Optional filter for indexed parameters
2997
- * @returns Unwatch function to stop listening
2998
- */
2999
- RoleGranted: (callback: (event: { role: `0x${string}`; account: `0x${string}`; sender: `0x${string}` }) => void, filter?: { role: `0x${string}`; account: `0x${string}`; sender: `0x${string}` }) => {
3000
- return this.publicClient.watchContractEvent({
3001
- address: this.contractAddress,
3002
- abi: Stablecoin_jsonAbi,
3003
- eventName: 'RoleGranted',
3004
- args: filter,
3005
- onLogs: (logs: any[]) => {
3006
- logs.forEach((log: any) => {
3007
- callback(log.args as any);
3008
- });
3009
- },
3010
- }) as () => void;
3011
- },
3012
- /**
3013
- * Watch RoleRevoked events
3014
- * @param callback Function to call when event is emitted
3015
- * @param filter Optional filter for indexed parameters
3016
- * @returns Unwatch function to stop listening
3017
- */
3018
- RoleRevoked: (callback: (event: { role: `0x${string}`; account: `0x${string}`; sender: `0x${string}` }) => void, filter?: { role: `0x${string}`; account: `0x${string}`; sender: `0x${string}` }) => {
3019
- return this.publicClient.watchContractEvent({
3020
- address: this.contractAddress,
3021
- abi: Stablecoin_jsonAbi,
3022
- eventName: 'RoleRevoked',
3023
- args: filter,
3024
- onLogs: (logs: any[]) => {
3025
- logs.forEach((log: any) => {
3026
- callback(log.args as any);
3027
- });
3028
- },
3029
- }) as () => void;
3030
- },
3031
- /**
3032
- * Watch Transfer events
3033
- * @param callback Function to call when event is emitted
3034
- * @param filter Optional filter for indexed parameters
3035
- * @returns Unwatch function to stop listening
3036
- */
3037
- Transfer: (callback: (event: { from: `0x${string}`; to: `0x${string}`; value: bigint }) => void, filter?: { from: `0x${string}`; to: `0x${string}` }) => {
3038
- return this.publicClient.watchContractEvent({
3039
- address: this.contractAddress,
3040
- abi: Stablecoin_jsonAbi,
3041
- eventName: 'Transfer',
3042
- args: filter,
3043
- onLogs: (logs: any[]) => {
3044
- logs.forEach((log: any) => {
3045
- callback(log.args as any);
3046
- });
3047
- },
3048
- }) as () => void;
3049
- },
3050
- /**
3051
- * Watch Unpaused events
3052
- * @param callback Function to call when event is emitted
3053
- * @param filter Optional filter for indexed parameters
3054
- * @returns Unwatch function to stop listening
3055
- */
3056
- Unpaused: (callback: (event: { account: `0x${string}` }) => void) => {
3057
- return this.publicClient.watchContractEvent({
3058
- address: this.contractAddress,
3059
- abi: Stablecoin_jsonAbi,
3060
- eventName: 'Unpaused',
3061
-
3062
- onLogs: (logs: any[]) => {
3063
- logs.forEach((log: any) => {
3064
- callback(log.args as any);
3065
- });
3066
- },
3067
- }) as () => void;
3068
- }
3069
- };
3070
- }
3071
- }