@gitmyabi/usdt 1.0.20 → 1.0.22

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