@gitmyabi-stg/stusdt 0.0.1

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