@gitmyabi/unit 1.0.0

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