@gitmyabi/nvdax 1.0.0

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