@gitmyabi/usd 1.0.4 → 1.0.5

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