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