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