@gitmyabi/clgauge 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,1912 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CLGauge = exports.CLGaugeAbi = void 0;
4
+ const viem_1 = require("viem");
5
+ /**
6
+ * CLGauge ABI
7
+ *
8
+ * This ABI is typed using viem's type system for full type safety.
9
+ */
10
+ exports.CLGaugeAbi = [
11
+ {
12
+ "inputs": [
13
+ {
14
+ "internalType": "address",
15
+ "name": "_voter",
16
+ "type": "address"
17
+ },
18
+ {
19
+ "internalType": "address",
20
+ "name": "_nft",
21
+ "type": "address"
22
+ },
23
+ {
24
+ "internalType": "address",
25
+ "name": "_gaugeFactory",
26
+ "type": "address"
27
+ }
28
+ ],
29
+ "stateMutability": "nonpayable",
30
+ "type": "constructor"
31
+ },
32
+ {
33
+ "anonymous": false,
34
+ "inputs": [
35
+ {
36
+ "indexed": true,
37
+ "internalType": "address",
38
+ "name": "_owner",
39
+ "type": "address"
40
+ },
41
+ {
42
+ "indexed": true,
43
+ "internalType": "address",
44
+ "name": "_operator",
45
+ "type": "address"
46
+ },
47
+ {
48
+ "indexed": true,
49
+ "internalType": "uint256",
50
+ "name": "_tokenId",
51
+ "type": "uint256"
52
+ }
53
+ ],
54
+ "name": "Approval",
55
+ "type": "event"
56
+ },
57
+ {
58
+ "anonymous": false,
59
+ "inputs": [
60
+ {
61
+ "indexed": true,
62
+ "internalType": "address",
63
+ "name": "_owner",
64
+ "type": "address"
65
+ },
66
+ {
67
+ "indexed": true,
68
+ "internalType": "address",
69
+ "name": "_operator",
70
+ "type": "address"
71
+ },
72
+ {
73
+ "indexed": false,
74
+ "internalType": "bool",
75
+ "name": "_approved",
76
+ "type": "bool"
77
+ }
78
+ ],
79
+ "name": "ApprovalForAll",
80
+ "type": "event"
81
+ },
82
+ {
83
+ "anonymous": false,
84
+ "inputs": [
85
+ {
86
+ "indexed": true,
87
+ "internalType": "address",
88
+ "name": "_account",
89
+ "type": "address"
90
+ },
91
+ {
92
+ "indexed": true,
93
+ "internalType": "address",
94
+ "name": "_operator",
95
+ "type": "address"
96
+ },
97
+ {
98
+ "indexed": false,
99
+ "internalType": "bool",
100
+ "name": "_approved",
101
+ "type": "bool"
102
+ }
103
+ ],
104
+ "name": "ClaimApproval",
105
+ "type": "event"
106
+ },
107
+ {
108
+ "anonymous": false,
109
+ "inputs": [
110
+ {
111
+ "indexed": true,
112
+ "internalType": "address",
113
+ "name": "_caller",
114
+ "type": "address"
115
+ },
116
+ {
117
+ "indexed": false,
118
+ "internalType": "uint256",
119
+ "name": "_claimed0",
120
+ "type": "uint256"
121
+ },
122
+ {
123
+ "indexed": false,
124
+ "internalType": "uint256",
125
+ "name": "_claimed1",
126
+ "type": "uint256"
127
+ }
128
+ ],
129
+ "name": "ClaimFees",
130
+ "type": "event"
131
+ },
132
+ {
133
+ "anonymous": false,
134
+ "inputs": [
135
+ {
136
+ "indexed": true,
137
+ "internalType": "address",
138
+ "name": "_account",
139
+ "type": "address"
140
+ },
141
+ {
142
+ "indexed": true,
143
+ "internalType": "address",
144
+ "name": "_recipient",
145
+ "type": "address"
146
+ },
147
+ {
148
+ "indexed": false,
149
+ "internalType": "uint256",
150
+ "name": "_amount",
151
+ "type": "uint256"
152
+ }
153
+ ],
154
+ "name": "DeferredEmissionsClaimed",
155
+ "type": "event"
156
+ },
157
+ {
158
+ "anonymous": false,
159
+ "inputs": [
160
+ {
161
+ "indexed": true,
162
+ "internalType": "address",
163
+ "name": "_caller",
164
+ "type": "address"
165
+ },
166
+ {
167
+ "indexed": true,
168
+ "internalType": "address",
169
+ "name": "_user",
170
+ "type": "address"
171
+ },
172
+ {
173
+ "indexed": true,
174
+ "internalType": "uint256",
175
+ "name": "_tokenId",
176
+ "type": "uint256"
177
+ },
178
+ {
179
+ "indexed": false,
180
+ "internalType": "uint128",
181
+ "name": "_liquidityToStake",
182
+ "type": "uint128"
183
+ }
184
+ ],
185
+ "name": "Deposit",
186
+ "type": "event"
187
+ },
188
+ {
189
+ "anonymous": false,
190
+ "inputs": [
191
+ {
192
+ "indexed": true,
193
+ "internalType": "address",
194
+ "name": "_from",
195
+ "type": "address"
196
+ },
197
+ {
198
+ "indexed": true,
199
+ "internalType": "uint256",
200
+ "name": "_tokenId",
201
+ "type": "uint256"
202
+ },
203
+ {
204
+ "indexed": false,
205
+ "internalType": "uint256",
206
+ "name": "_penalty",
207
+ "type": "uint256"
208
+ }
209
+ ],
210
+ "name": "EarlyWithdrawPenalty",
211
+ "type": "event"
212
+ },
213
+ {
214
+ "anonymous": false,
215
+ "inputs": [
216
+ {
217
+ "indexed": true,
218
+ "internalType": "address",
219
+ "name": "_user",
220
+ "type": "address"
221
+ },
222
+ {
223
+ "indexed": true,
224
+ "internalType": "uint256",
225
+ "name": "_tokenId",
226
+ "type": "uint256"
227
+ },
228
+ {
229
+ "indexed": false,
230
+ "internalType": "uint128",
231
+ "name": "_liquidityToStake",
232
+ "type": "uint128"
233
+ }
234
+ ],
235
+ "name": "EmergencyWithdraw",
236
+ "type": "event"
237
+ },
238
+ {
239
+ "anonymous": false,
240
+ "inputs": [
241
+ {
242
+ "indexed": true,
243
+ "internalType": "address",
244
+ "name": "_account",
245
+ "type": "address"
246
+ },
247
+ {
248
+ "indexed": true,
249
+ "internalType": "uint256",
250
+ "name": "_tokenId",
251
+ "type": "uint256"
252
+ },
253
+ {
254
+ "indexed": true,
255
+ "internalType": "address",
256
+ "name": "_recipient",
257
+ "type": "address"
258
+ },
259
+ {
260
+ "indexed": false,
261
+ "internalType": "uint256",
262
+ "name": "_rewardAmount",
263
+ "type": "uint256"
264
+ }
265
+ ],
266
+ "name": "EmissionsClaimed",
267
+ "type": "event"
268
+ },
269
+ {
270
+ "anonymous": false,
271
+ "inputs": [
272
+ {
273
+ "indexed": true,
274
+ "internalType": "address",
275
+ "name": "_account",
276
+ "type": "address"
277
+ },
278
+ {
279
+ "indexed": true,
280
+ "internalType": "uint256",
281
+ "name": "_tokenId",
282
+ "type": "uint256"
283
+ },
284
+ {
285
+ "indexed": false,
286
+ "internalType": "uint256",
287
+ "name": "_rewardAmount",
288
+ "type": "uint256"
289
+ }
290
+ ],
291
+ "name": "EmissionsDeferred",
292
+ "type": "event"
293
+ },
294
+ {
295
+ "anonymous": false,
296
+ "inputs": [
297
+ {
298
+ "indexed": false,
299
+ "internalType": "uint256",
300
+ "name": "_cumulativeRewardShare",
301
+ "type": "uint256"
302
+ },
303
+ {
304
+ "indexed": false,
305
+ "internalType": "uint256",
306
+ "name": "_delta",
307
+ "type": "uint256"
308
+ }
309
+ ],
310
+ "name": "GaugeSettled",
311
+ "type": "event"
312
+ },
313
+ {
314
+ "anonymous": false,
315
+ "inputs": [
316
+ {
317
+ "indexed": true,
318
+ "internalType": "address",
319
+ "name": "_referral",
320
+ "type": "address"
321
+ },
322
+ {
323
+ "indexed": true,
324
+ "internalType": "address",
325
+ "name": "_recipient",
326
+ "type": "address"
327
+ },
328
+ {
329
+ "indexed": false,
330
+ "internalType": "uint256",
331
+ "name": "_amount",
332
+ "type": "uint256"
333
+ }
334
+ ],
335
+ "name": "ReferralEmissionsClaimed",
336
+ "type": "event"
337
+ },
338
+ {
339
+ "anonymous": false,
340
+ "inputs": [
341
+ {
342
+ "indexed": true,
343
+ "internalType": "address",
344
+ "name": "_account",
345
+ "type": "address"
346
+ },
347
+ {
348
+ "indexed": true,
349
+ "internalType": "uint256",
350
+ "name": "_tokenId",
351
+ "type": "uint256"
352
+ },
353
+ {
354
+ "indexed": true,
355
+ "internalType": "address",
356
+ "name": "_referral",
357
+ "type": "address"
358
+ },
359
+ {
360
+ "indexed": false,
361
+ "internalType": "uint256",
362
+ "name": "_amount",
363
+ "type": "uint256"
364
+ }
365
+ ],
366
+ "name": "ReferralEmissionsDeferred",
367
+ "type": "event"
368
+ },
369
+ {
370
+ "anonymous": false,
371
+ "inputs": [
372
+ {
373
+ "indexed": true,
374
+ "internalType": "address",
375
+ "name": "_caller",
376
+ "type": "address"
377
+ },
378
+ {
379
+ "indexed": true,
380
+ "internalType": "address",
381
+ "name": "_user",
382
+ "type": "address"
383
+ },
384
+ {
385
+ "indexed": true,
386
+ "internalType": "uint256",
387
+ "name": "_tokenId",
388
+ "type": "uint256"
389
+ },
390
+ {
391
+ "indexed": false,
392
+ "internalType": "uint128",
393
+ "name": "_liquidityToStake",
394
+ "type": "uint128"
395
+ }
396
+ ],
397
+ "name": "Withdraw",
398
+ "type": "event"
399
+ },
400
+ {
401
+ "inputs": [
402
+ {
403
+ "internalType": "address",
404
+ "name": "operator",
405
+ "type": "address"
406
+ },
407
+ {
408
+ "internalType": "uint256",
409
+ "name": "tokenId",
410
+ "type": "uint256"
411
+ }
412
+ ],
413
+ "name": "approve",
414
+ "outputs": [],
415
+ "stateMutability": "nonpayable",
416
+ "type": "function"
417
+ },
418
+ {
419
+ "inputs": [
420
+ {
421
+ "internalType": "address",
422
+ "name": "_operator",
423
+ "type": "address"
424
+ },
425
+ {
426
+ "internalType": "bool",
427
+ "name": "_approved",
428
+ "type": "bool"
429
+ }
430
+ ],
431
+ "name": "approveForClaim",
432
+ "outputs": [],
433
+ "stateMutability": "nonpayable",
434
+ "type": "function"
435
+ },
436
+ {
437
+ "inputs": [
438
+ {
439
+ "internalType": "address",
440
+ "name": "",
441
+ "type": "address"
442
+ },
443
+ {
444
+ "internalType": "address",
445
+ "name": "",
446
+ "type": "address"
447
+ }
448
+ ],
449
+ "name": "approvedForClaim",
450
+ "outputs": [
451
+ {
452
+ "internalType": "bool",
453
+ "name": "",
454
+ "type": "bool"
455
+ }
456
+ ],
457
+ "stateMutability": "view",
458
+ "type": "function"
459
+ },
460
+ {
461
+ "inputs": [
462
+ {
463
+ "internalType": "address",
464
+ "name": "_account",
465
+ "type": "address"
466
+ },
467
+ {
468
+ "internalType": "address",
469
+ "name": "_recipient",
470
+ "type": "address"
471
+ },
472
+ {
473
+ "internalType": "uint256[]",
474
+ "name": "_tokenIds",
475
+ "type": "uint256[]"
476
+ }
477
+ ],
478
+ "name": "claimEmissions",
479
+ "outputs": [],
480
+ "stateMutability": "nonpayable",
481
+ "type": "function"
482
+ },
483
+ {
484
+ "inputs": [
485
+ {
486
+ "internalType": "address",
487
+ "name": "_account",
488
+ "type": "address"
489
+ },
490
+ {
491
+ "internalType": "address",
492
+ "name": "_recipient",
493
+ "type": "address"
494
+ }
495
+ ],
496
+ "name": "claimEmissions",
497
+ "outputs": [],
498
+ "stateMutability": "nonpayable",
499
+ "type": "function"
500
+ },
501
+ {
502
+ "inputs": [
503
+ {
504
+ "internalType": "address",
505
+ "name": "_referral",
506
+ "type": "address"
507
+ },
508
+ {
509
+ "internalType": "address",
510
+ "name": "_recipient",
511
+ "type": "address"
512
+ }
513
+ ],
514
+ "name": "claimReferralEmissions",
515
+ "outputs": [],
516
+ "stateMutability": "nonpayable",
517
+ "type": "function"
518
+ },
519
+ {
520
+ "inputs": [],
521
+ "name": "collectFees",
522
+ "outputs": [
523
+ {
524
+ "internalType": "uint256",
525
+ "name": "",
526
+ "type": "uint256"
527
+ },
528
+ {
529
+ "internalType": "uint256",
530
+ "name": "",
531
+ "type": "uint256"
532
+ }
533
+ ],
534
+ "stateMutability": "nonpayable",
535
+ "type": "function"
536
+ },
537
+ {
538
+ "inputs": [
539
+ {
540
+ "internalType": "address",
541
+ "name": "",
542
+ "type": "address"
543
+ }
544
+ ],
545
+ "name": "deferredEmissions",
546
+ "outputs": [
547
+ {
548
+ "internalType": "uint256",
549
+ "name": "",
550
+ "type": "uint256"
551
+ }
552
+ ],
553
+ "stateMutability": "view",
554
+ "type": "function"
555
+ },
556
+ {
557
+ "inputs": [
558
+ {
559
+ "internalType": "address",
560
+ "name": "",
561
+ "type": "address"
562
+ }
563
+ ],
564
+ "name": "deferredReferralEmissions",
565
+ "outputs": [
566
+ {
567
+ "internalType": "uint256",
568
+ "name": "",
569
+ "type": "uint256"
570
+ }
571
+ ],
572
+ "stateMutability": "view",
573
+ "type": "function"
574
+ },
575
+ {
576
+ "inputs": [
577
+ {
578
+ "internalType": "uint256",
579
+ "name": "_lp",
580
+ "type": "uint256"
581
+ }
582
+ ],
583
+ "name": "deposit",
584
+ "outputs": [],
585
+ "stateMutability": "nonpayable",
586
+ "type": "function"
587
+ },
588
+ {
589
+ "inputs": [
590
+ {
591
+ "internalType": "uint256",
592
+ "name": "",
593
+ "type": "uint256"
594
+ }
595
+ ],
596
+ "name": "depositBlock",
597
+ "outputs": [
598
+ {
599
+ "internalType": "uint256",
600
+ "name": "",
601
+ "type": "uint256"
602
+ }
603
+ ],
604
+ "stateMutability": "view",
605
+ "type": "function"
606
+ },
607
+ {
608
+ "inputs": [
609
+ {
610
+ "internalType": "uint256",
611
+ "name": "_lp",
612
+ "type": "uint256"
613
+ },
614
+ {
615
+ "internalType": "address",
616
+ "name": "_owner",
617
+ "type": "address"
618
+ }
619
+ ],
620
+ "name": "depositFor",
621
+ "outputs": [],
622
+ "stateMutability": "nonpayable",
623
+ "type": "function"
624
+ },
625
+ {
626
+ "inputs": [
627
+ {
628
+ "internalType": "address",
629
+ "name": "_account",
630
+ "type": "address"
631
+ }
632
+ ],
633
+ "name": "earned",
634
+ "outputs": [
635
+ {
636
+ "internalType": "uint256",
637
+ "name": "",
638
+ "type": "uint256"
639
+ }
640
+ ],
641
+ "stateMutability": "view",
642
+ "type": "function"
643
+ },
644
+ {
645
+ "inputs": [
646
+ {
647
+ "internalType": "address",
648
+ "name": "_account",
649
+ "type": "address"
650
+ },
651
+ {
652
+ "internalType": "uint256[]",
653
+ "name": "_tokenIds",
654
+ "type": "uint256[]"
655
+ }
656
+ ],
657
+ "name": "earned",
658
+ "outputs": [
659
+ {
660
+ "internalType": "uint256",
661
+ "name": "",
662
+ "type": "uint256"
663
+ }
664
+ ],
665
+ "stateMutability": "view",
666
+ "type": "function"
667
+ },
668
+ {
669
+ "inputs": [
670
+ {
671
+ "internalType": "uint256",
672
+ "name": "tokenId",
673
+ "type": "uint256"
674
+ }
675
+ ],
676
+ "name": "emergencyWithdraw",
677
+ "outputs": [],
678
+ "stateMutability": "nonpayable",
679
+ "type": "function"
680
+ },
681
+ {
682
+ "inputs": [],
683
+ "name": "forfeitRollover",
684
+ "outputs": [],
685
+ "stateMutability": "nonpayable",
686
+ "type": "function"
687
+ },
688
+ {
689
+ "inputs": [],
690
+ "name": "gaugeFactory",
691
+ "outputs": [
692
+ {
693
+ "internalType": "address",
694
+ "name": "",
695
+ "type": "address"
696
+ }
697
+ ],
698
+ "stateMutability": "view",
699
+ "type": "function"
700
+ },
701
+ {
702
+ "inputs": [
703
+ {
704
+ "internalType": "uint256",
705
+ "name": "tokenId",
706
+ "type": "uint256"
707
+ }
708
+ ],
709
+ "name": "getApproved",
710
+ "outputs": [
711
+ {
712
+ "internalType": "address",
713
+ "name": "",
714
+ "type": "address"
715
+ }
716
+ ],
717
+ "stateMutability": "view",
718
+ "type": "function"
719
+ },
720
+ {
721
+ "inputs": [
722
+ {
723
+ "internalType": "address",
724
+ "name": "_pool",
725
+ "type": "address"
726
+ },
727
+ {
728
+ "internalType": "address",
729
+ "name": "_votingRewardsManager",
730
+ "type": "address"
731
+ },
732
+ {
733
+ "internalType": "address",
734
+ "name": "_token0",
735
+ "type": "address"
736
+ },
737
+ {
738
+ "internalType": "address",
739
+ "name": "_token1",
740
+ "type": "address"
741
+ },
742
+ {
743
+ "internalType": "int24",
744
+ "name": "_tickSpacing",
745
+ "type": "int24"
746
+ },
747
+ {
748
+ "internalType": "bool",
749
+ "name": "_isPool",
750
+ "type": "bool"
751
+ }
752
+ ],
753
+ "name": "initialize",
754
+ "outputs": [],
755
+ "stateMutability": "nonpayable",
756
+ "type": "function"
757
+ },
758
+ {
759
+ "inputs": [
760
+ {
761
+ "internalType": "address",
762
+ "name": "owner",
763
+ "type": "address"
764
+ },
765
+ {
766
+ "internalType": "address",
767
+ "name": "operator",
768
+ "type": "address"
769
+ }
770
+ ],
771
+ "name": "isApprovedForAll",
772
+ "outputs": [
773
+ {
774
+ "internalType": "bool",
775
+ "name": "",
776
+ "type": "bool"
777
+ }
778
+ ],
779
+ "stateMutability": "view",
780
+ "type": "function"
781
+ },
782
+ {
783
+ "inputs": [],
784
+ "name": "isPool",
785
+ "outputs": [
786
+ {
787
+ "internalType": "bool",
788
+ "name": "",
789
+ "type": "bool"
790
+ }
791
+ ],
792
+ "stateMutability": "view",
793
+ "type": "function"
794
+ },
795
+ {
796
+ "inputs": [],
797
+ "name": "lastCumulativeRewardShare",
798
+ "outputs": [
799
+ {
800
+ "internalType": "uint256",
801
+ "name": "",
802
+ "type": "uint256"
803
+ }
804
+ ],
805
+ "stateMutability": "view",
806
+ "type": "function"
807
+ },
808
+ {
809
+ "inputs": [],
810
+ "name": "nft",
811
+ "outputs": [
812
+ {
813
+ "internalType": "contract INonfungiblePositionManager",
814
+ "name": "",
815
+ "type": "address"
816
+ }
817
+ ],
818
+ "stateMutability": "view",
819
+ "type": "function"
820
+ },
821
+ {
822
+ "inputs": [
823
+ {
824
+ "internalType": "address",
825
+ "name": "",
826
+ "type": "address"
827
+ },
828
+ {
829
+ "internalType": "address",
830
+ "name": "",
831
+ "type": "address"
832
+ },
833
+ {
834
+ "internalType": "uint256",
835
+ "name": "",
836
+ "type": "uint256"
837
+ },
838
+ {
839
+ "internalType": "bytes",
840
+ "name": "",
841
+ "type": "bytes"
842
+ }
843
+ ],
844
+ "name": "onERC721Received",
845
+ "outputs": [
846
+ {
847
+ "internalType": "bytes4",
848
+ "name": "",
849
+ "type": "bytes4"
850
+ }
851
+ ],
852
+ "stateMutability": "nonpayable",
853
+ "type": "function"
854
+ },
855
+ {
856
+ "inputs": [],
857
+ "name": "pendingFees",
858
+ "outputs": [
859
+ {
860
+ "internalType": "uint256",
861
+ "name": "",
862
+ "type": "uint256"
863
+ },
864
+ {
865
+ "internalType": "uint256",
866
+ "name": "",
867
+ "type": "uint256"
868
+ }
869
+ ],
870
+ "stateMutability": "view",
871
+ "type": "function"
872
+ },
873
+ {
874
+ "inputs": [],
875
+ "name": "pool",
876
+ "outputs": [
877
+ {
878
+ "internalType": "contract ICLPool",
879
+ "name": "",
880
+ "type": "address"
881
+ }
882
+ ],
883
+ "stateMutability": "view",
884
+ "type": "function"
885
+ },
886
+ {
887
+ "inputs": [
888
+ {
889
+ "internalType": "uint256",
890
+ "name": "",
891
+ "type": "uint256"
892
+ }
893
+ ],
894
+ "name": "rewardGrowthInside",
895
+ "outputs": [
896
+ {
897
+ "internalType": "uint256",
898
+ "name": "",
899
+ "type": "uint256"
900
+ }
901
+ ],
902
+ "stateMutability": "view",
903
+ "type": "function"
904
+ },
905
+ {
906
+ "inputs": [
907
+ {
908
+ "internalType": "address",
909
+ "name": "_operator",
910
+ "type": "address"
911
+ },
912
+ {
913
+ "internalType": "bool",
914
+ "name": "_approved",
915
+ "type": "bool"
916
+ }
917
+ ],
918
+ "name": "setApprovalForAll",
919
+ "outputs": [],
920
+ "stateMutability": "nonpayable",
921
+ "type": "function"
922
+ },
923
+ {
924
+ "inputs": [],
925
+ "name": "settleGauge",
926
+ "outputs": [
927
+ {
928
+ "internalType": "uint256",
929
+ "name": "_delta",
930
+ "type": "uint256"
931
+ }
932
+ ],
933
+ "stateMutability": "nonpayable",
934
+ "type": "function"
935
+ },
936
+ {
937
+ "inputs": [
938
+ {
939
+ "internalType": "address",
940
+ "name": "depositor",
941
+ "type": "address"
942
+ },
943
+ {
944
+ "internalType": "uint256",
945
+ "name": "index",
946
+ "type": "uint256"
947
+ }
948
+ ],
949
+ "name": "stakedByIndex",
950
+ "outputs": [
951
+ {
952
+ "internalType": "uint256",
953
+ "name": "",
954
+ "type": "uint256"
955
+ }
956
+ ],
957
+ "stateMutability": "view",
958
+ "type": "function"
959
+ },
960
+ {
961
+ "inputs": [
962
+ {
963
+ "internalType": "address",
964
+ "name": "depositor",
965
+ "type": "address"
966
+ },
967
+ {
968
+ "internalType": "uint256",
969
+ "name": "tokenId",
970
+ "type": "uint256"
971
+ }
972
+ ],
973
+ "name": "stakedContains",
974
+ "outputs": [
975
+ {
976
+ "internalType": "bool",
977
+ "name": "",
978
+ "type": "bool"
979
+ }
980
+ ],
981
+ "stateMutability": "view",
982
+ "type": "function"
983
+ },
984
+ {
985
+ "inputs": [
986
+ {
987
+ "internalType": "address",
988
+ "name": "depositor",
989
+ "type": "address"
990
+ }
991
+ ],
992
+ "name": "stakedLength",
993
+ "outputs": [
994
+ {
995
+ "internalType": "uint256",
996
+ "name": "",
997
+ "type": "uint256"
998
+ }
999
+ ],
1000
+ "stateMutability": "view",
1001
+ "type": "function"
1002
+ },
1003
+ {
1004
+ "inputs": [
1005
+ {
1006
+ "internalType": "address",
1007
+ "name": "depositor",
1008
+ "type": "address"
1009
+ }
1010
+ ],
1011
+ "name": "stakedValues",
1012
+ "outputs": [
1013
+ {
1014
+ "internalType": "uint256[]",
1015
+ "name": "staked",
1016
+ "type": "uint256[]"
1017
+ }
1018
+ ],
1019
+ "stateMutability": "view",
1020
+ "type": "function"
1021
+ },
1022
+ {
1023
+ "inputs": [],
1024
+ "name": "tickSpacing",
1025
+ "outputs": [
1026
+ {
1027
+ "internalType": "int24",
1028
+ "name": "",
1029
+ "type": "int24"
1030
+ }
1031
+ ],
1032
+ "stateMutability": "view",
1033
+ "type": "function"
1034
+ },
1035
+ {
1036
+ "inputs": [],
1037
+ "name": "token0",
1038
+ "outputs": [
1039
+ {
1040
+ "internalType": "address",
1041
+ "name": "",
1042
+ "type": "address"
1043
+ }
1044
+ ],
1045
+ "stateMutability": "view",
1046
+ "type": "function"
1047
+ },
1048
+ {
1049
+ "inputs": [],
1050
+ "name": "token1",
1051
+ "outputs": [
1052
+ {
1053
+ "internalType": "address",
1054
+ "name": "",
1055
+ "type": "address"
1056
+ }
1057
+ ],
1058
+ "stateMutability": "view",
1059
+ "type": "function"
1060
+ },
1061
+ {
1062
+ "inputs": [],
1063
+ "name": "voter",
1064
+ "outputs": [
1065
+ {
1066
+ "internalType": "address",
1067
+ "name": "",
1068
+ "type": "address"
1069
+ }
1070
+ ],
1071
+ "stateMutability": "view",
1072
+ "type": "function"
1073
+ },
1074
+ {
1075
+ "inputs": [],
1076
+ "name": "votingRewardsManager",
1077
+ "outputs": [
1078
+ {
1079
+ "internalType": "address",
1080
+ "name": "",
1081
+ "type": "address"
1082
+ }
1083
+ ],
1084
+ "stateMutability": "view",
1085
+ "type": "function"
1086
+ },
1087
+ {
1088
+ "inputs": [
1089
+ {
1090
+ "internalType": "uint256",
1091
+ "name": "_lp",
1092
+ "type": "uint256"
1093
+ }
1094
+ ],
1095
+ "name": "withdraw",
1096
+ "outputs": [],
1097
+ "stateMutability": "nonpayable",
1098
+ "type": "function"
1099
+ },
1100
+ {
1101
+ "inputs": [
1102
+ {
1103
+ "internalType": "uint256",
1104
+ "name": "_lp",
1105
+ "type": "uint256"
1106
+ },
1107
+ {
1108
+ "internalType": "address",
1109
+ "name": "_account",
1110
+ "type": "address"
1111
+ }
1112
+ ],
1113
+ "name": "withdrawFrom",
1114
+ "outputs": [],
1115
+ "stateMutability": "nonpayable",
1116
+ "type": "function"
1117
+ }
1118
+ ];
1119
+ /**
1120
+ * CLGauge Contract Class
1121
+ *
1122
+ * Provides a class-based API similar to TypeChain for interacting with the contract.
1123
+ *
1124
+ * @example
1125
+ * ```typescript
1126
+ * import { createPublicClient, createWalletClient, http } from 'viem';
1127
+ * import { mainnet } from 'viem/chains';
1128
+ * import { CLGauge } from 'CLGauge';
1129
+ *
1130
+ * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
1131
+ * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
1132
+ *
1133
+ * const contract = new CLGauge('0x...', { publicClient, walletClient });
1134
+ *
1135
+ * // Read functions
1136
+ * const result = await contract.balanceOf('0x...');
1137
+ *
1138
+ * // Write functions
1139
+ * const hash = await contract.transfer('0x...', 1000n);
1140
+ *
1141
+ * // Simulate transactions (dry-run)
1142
+ * const simulation = await contract.simulate.transfer('0x...', 1000n);
1143
+ * console.log('Gas estimate:', simulation.request.gas);
1144
+ *
1145
+ * // Watch events
1146
+ * const unwatch = contract.watch.Transfer((event) => {
1147
+ * console.log('Transfer event:', event);
1148
+ * });
1149
+ * ```
1150
+ */
1151
+ class CLGauge {
1152
+ constructor(address, clients) {
1153
+ this.contractAddress = address;
1154
+ this.publicClient = clients.publicClient;
1155
+ this.contract = (0, viem_1.getContract)({
1156
+ address,
1157
+ abi: exports.CLGaugeAbi,
1158
+ client: {
1159
+ public: clients.publicClient,
1160
+ wallet: clients.walletClient,
1161
+ },
1162
+ });
1163
+ }
1164
+ /**
1165
+ * Get the contract address
1166
+ */
1167
+ get address() {
1168
+ return this.contractAddress;
1169
+ }
1170
+ /**
1171
+ * Get the underlying viem contract instance.
1172
+ */
1173
+ getContract() {
1174
+ return this.contract;
1175
+ }
1176
+ /**
1177
+ * approvedForClaim
1178
+ * view
1179
+ */
1180
+ async approvedForClaim(arg0, arg1) {
1181
+ return this.contract.read.approvedForClaim([arg0, arg1]);
1182
+ }
1183
+ /**
1184
+ * deferredEmissions
1185
+ * view
1186
+ */
1187
+ async deferredEmissions(arg0) {
1188
+ return this.contract.read.deferredEmissions([arg0]);
1189
+ }
1190
+ /**
1191
+ * deferredReferralEmissions
1192
+ * view
1193
+ */
1194
+ async deferredReferralEmissions(arg0) {
1195
+ return this.contract.read.deferredReferralEmissions([arg0]);
1196
+ }
1197
+ /**
1198
+ * depositBlock
1199
+ * view
1200
+ */
1201
+ async depositBlock(arg0) {
1202
+ return this.contract.read.depositBlock([arg0]);
1203
+ }
1204
+ async earned(...args) {
1205
+ return this.contract.read.earned(args);
1206
+ }
1207
+ /**
1208
+ * gaugeFactory
1209
+ * view
1210
+ */
1211
+ async gaugeFactory() {
1212
+ return this.contract.read.gaugeFactory();
1213
+ }
1214
+ /**
1215
+ * getApproved
1216
+ * view
1217
+ */
1218
+ async getApproved(tokenId) {
1219
+ return this.contract.read.getApproved([tokenId]);
1220
+ }
1221
+ /**
1222
+ * isApprovedForAll
1223
+ * view
1224
+ */
1225
+ async isApprovedForAll(owner, operator) {
1226
+ return this.contract.read.isApprovedForAll([owner, operator]);
1227
+ }
1228
+ /**
1229
+ * isPool
1230
+ * view
1231
+ */
1232
+ async isPool() {
1233
+ return this.contract.read.isPool();
1234
+ }
1235
+ /**
1236
+ * lastCumulativeRewardShare
1237
+ * view
1238
+ */
1239
+ async lastCumulativeRewardShare() {
1240
+ return this.contract.read.lastCumulativeRewardShare();
1241
+ }
1242
+ /**
1243
+ * nft
1244
+ * view
1245
+ */
1246
+ async nft() {
1247
+ return this.contract.read.nft();
1248
+ }
1249
+ /**
1250
+ * pendingFees
1251
+ * view
1252
+ */
1253
+ async pendingFees() {
1254
+ return this.contract.read.pendingFees();
1255
+ }
1256
+ /**
1257
+ * pool
1258
+ * view
1259
+ */
1260
+ async pool() {
1261
+ return this.contract.read.pool();
1262
+ }
1263
+ /**
1264
+ * rewardGrowthInside
1265
+ * view
1266
+ */
1267
+ async rewardGrowthInside(arg0) {
1268
+ return this.contract.read.rewardGrowthInside([arg0]);
1269
+ }
1270
+ /**
1271
+ * stakedByIndex
1272
+ * view
1273
+ */
1274
+ async stakedByIndex(depositor, index) {
1275
+ return this.contract.read.stakedByIndex([depositor, index]);
1276
+ }
1277
+ /**
1278
+ * stakedContains
1279
+ * view
1280
+ */
1281
+ async stakedContains(depositor, tokenId) {
1282
+ return this.contract.read.stakedContains([depositor, tokenId]);
1283
+ }
1284
+ /**
1285
+ * stakedLength
1286
+ * view
1287
+ */
1288
+ async stakedLength(depositor) {
1289
+ return this.contract.read.stakedLength([depositor]);
1290
+ }
1291
+ /**
1292
+ * stakedValues
1293
+ * view
1294
+ */
1295
+ async stakedValues(depositor) {
1296
+ return this.contract.read.stakedValues([depositor]);
1297
+ }
1298
+ /**
1299
+ * tickSpacing
1300
+ * view
1301
+ */
1302
+ async tickSpacing() {
1303
+ return this.contract.read.tickSpacing();
1304
+ }
1305
+ /**
1306
+ * token0
1307
+ * view
1308
+ */
1309
+ async token0() {
1310
+ return this.contract.read.token0();
1311
+ }
1312
+ /**
1313
+ * token1
1314
+ * view
1315
+ */
1316
+ async token1() {
1317
+ return this.contract.read.token1();
1318
+ }
1319
+ /**
1320
+ * voter
1321
+ * view
1322
+ */
1323
+ async voter() {
1324
+ return this.contract.read.voter();
1325
+ }
1326
+ /**
1327
+ * votingRewardsManager
1328
+ * view
1329
+ */
1330
+ async votingRewardsManager() {
1331
+ return this.contract.read.votingRewardsManager();
1332
+ }
1333
+ /**
1334
+ * approve
1335
+ * nonpayable
1336
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1337
+ */
1338
+ async approve(operator, tokenId, options) {
1339
+ if (!this.contract.write) {
1340
+ throw new Error('Wallet client is required for write operations');
1341
+ }
1342
+ return this.contract.write.approve([operator, tokenId], options);
1343
+ }
1344
+ /**
1345
+ * approveForClaim
1346
+ * nonpayable
1347
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1348
+ */
1349
+ async approveForClaim(_operator, _approved, options) {
1350
+ if (!this.contract.write) {
1351
+ throw new Error('Wallet client is required for write operations');
1352
+ }
1353
+ return this.contract.write.approveForClaim([_operator, _approved], options);
1354
+ }
1355
+ async claimEmissions(...args) {
1356
+ if (!this.contract.write) {
1357
+ throw new Error('Wallet client is required for write operations');
1358
+ }
1359
+ return this.contract.write.claimEmissions(args);
1360
+ }
1361
+ /**
1362
+ * claimReferralEmissions
1363
+ * nonpayable
1364
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1365
+ */
1366
+ async claimReferralEmissions(_referral, _recipient, options) {
1367
+ if (!this.contract.write) {
1368
+ throw new Error('Wallet client is required for write operations');
1369
+ }
1370
+ return this.contract.write.claimReferralEmissions([_referral, _recipient], options);
1371
+ }
1372
+ /**
1373
+ * collectFees
1374
+ * nonpayable
1375
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1376
+ */
1377
+ async collectFees(options) {
1378
+ if (!this.contract.write) {
1379
+ throw new Error('Wallet client is required for write operations');
1380
+ }
1381
+ return this.contract.write.collectFees(options);
1382
+ }
1383
+ /**
1384
+ * deposit
1385
+ * nonpayable
1386
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1387
+ */
1388
+ async deposit(_lp, options) {
1389
+ if (!this.contract.write) {
1390
+ throw new Error('Wallet client is required for write operations');
1391
+ }
1392
+ return this.contract.write.deposit([_lp], options);
1393
+ }
1394
+ /**
1395
+ * depositFor
1396
+ * nonpayable
1397
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1398
+ */
1399
+ async depositFor(_lp, _owner, options) {
1400
+ if (!this.contract.write) {
1401
+ throw new Error('Wallet client is required for write operations');
1402
+ }
1403
+ return this.contract.write.depositFor([_lp, _owner], options);
1404
+ }
1405
+ /**
1406
+ * emergencyWithdraw
1407
+ * nonpayable
1408
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1409
+ */
1410
+ async emergencyWithdraw(tokenId, options) {
1411
+ if (!this.contract.write) {
1412
+ throw new Error('Wallet client is required for write operations');
1413
+ }
1414
+ return this.contract.write.emergencyWithdraw([tokenId], options);
1415
+ }
1416
+ /**
1417
+ * forfeitRollover
1418
+ * nonpayable
1419
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1420
+ */
1421
+ async forfeitRollover(options) {
1422
+ if (!this.contract.write) {
1423
+ throw new Error('Wallet client is required for write operations');
1424
+ }
1425
+ return this.contract.write.forfeitRollover(options);
1426
+ }
1427
+ /**
1428
+ * initialize
1429
+ * nonpayable
1430
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1431
+ */
1432
+ async initialize(_pool, _votingRewardsManager, _token0, _token1, _tickSpacing, _isPool, options) {
1433
+ if (!this.contract.write) {
1434
+ throw new Error('Wallet client is required for write operations');
1435
+ }
1436
+ return this.contract.write.initialize([_pool, _votingRewardsManager, _token0, _token1, _tickSpacing, _isPool], options);
1437
+ }
1438
+ /**
1439
+ * onERC721Received
1440
+ * nonpayable
1441
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1442
+ */
1443
+ async onERC721Received(arg0, arg1, arg2, arg3, options) {
1444
+ if (!this.contract.write) {
1445
+ throw new Error('Wallet client is required for write operations');
1446
+ }
1447
+ return this.contract.write.onERC721Received([arg0, arg1, arg2, arg3], options);
1448
+ }
1449
+ /**
1450
+ * setApprovalForAll
1451
+ * nonpayable
1452
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1453
+ */
1454
+ async setApprovalForAll(_operator, _approved, options) {
1455
+ if (!this.contract.write) {
1456
+ throw new Error('Wallet client is required for write operations');
1457
+ }
1458
+ return this.contract.write.setApprovalForAll([_operator, _approved], options);
1459
+ }
1460
+ /**
1461
+ * settleGauge
1462
+ * nonpayable
1463
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1464
+ */
1465
+ async settleGauge(options) {
1466
+ if (!this.contract.write) {
1467
+ throw new Error('Wallet client is required for write operations');
1468
+ }
1469
+ return this.contract.write.settleGauge(options);
1470
+ }
1471
+ /**
1472
+ * withdraw
1473
+ * nonpayable
1474
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1475
+ */
1476
+ async withdraw(_lp, options) {
1477
+ if (!this.contract.write) {
1478
+ throw new Error('Wallet client is required for write operations');
1479
+ }
1480
+ return this.contract.write.withdraw([_lp], options);
1481
+ }
1482
+ /**
1483
+ * withdrawFrom
1484
+ * nonpayable
1485
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1486
+ */
1487
+ async withdrawFrom(_lp, _account, options) {
1488
+ if (!this.contract.write) {
1489
+ throw new Error('Wallet client is required for write operations');
1490
+ }
1491
+ return this.contract.write.withdrawFrom([_lp, _account], options);
1492
+ }
1493
+ /**
1494
+ * Simulate contract write operations (dry-run without sending transaction)
1495
+ *
1496
+ * @example
1497
+ * const result = await contract.simulate.transfer('0x...', 1000n);
1498
+ * console.log('Gas estimate:', result.request.gas);
1499
+ * console.log('Would succeed:', result.result);
1500
+ */
1501
+ get simulate() {
1502
+ const contract = this.contract;
1503
+ if (!contract.simulate) {
1504
+ throw new Error('Public client is required for simulation');
1505
+ }
1506
+ return {
1507
+ /**
1508
+ * Simulate approve
1509
+ * Returns gas estimate and result without sending transaction
1510
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1511
+ */
1512
+ async approve(operator, tokenId, options) {
1513
+ return contract.simulate.approve([operator, tokenId], options);
1514
+ },
1515
+ /**
1516
+ * Simulate approveForClaim
1517
+ * Returns gas estimate and result without sending transaction
1518
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1519
+ */
1520
+ async approveForClaim(_operator, _approved, options) {
1521
+ return contract.simulate.approveForClaim([_operator, _approved], options);
1522
+ },
1523
+ /**
1524
+ * Simulate claimEmissions
1525
+ * Returns gas estimate and result without sending transaction
1526
+ * Supports multiple overloads: (address, address, uint256[]), (address, address)
1527
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1528
+ */
1529
+ async claimEmissions(...args) {
1530
+ return contract.simulate.claimEmissions(args);
1531
+ },
1532
+ /**
1533
+ * Simulate claimReferralEmissions
1534
+ * Returns gas estimate and result without sending transaction
1535
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1536
+ */
1537
+ async claimReferralEmissions(_referral, _recipient, options) {
1538
+ return contract.simulate.claimReferralEmissions([_referral, _recipient], options);
1539
+ },
1540
+ /**
1541
+ * Simulate collectFees
1542
+ * Returns gas estimate and result without sending transaction
1543
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1544
+ */
1545
+ async collectFees(options) {
1546
+ return contract.simulate.collectFees(options);
1547
+ },
1548
+ /**
1549
+ * Simulate deposit
1550
+ * Returns gas estimate and result without sending transaction
1551
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1552
+ */
1553
+ async deposit(_lp, options) {
1554
+ return contract.simulate.deposit([_lp], options);
1555
+ },
1556
+ /**
1557
+ * Simulate depositFor
1558
+ * Returns gas estimate and result without sending transaction
1559
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1560
+ */
1561
+ async depositFor(_lp, _owner, options) {
1562
+ return contract.simulate.depositFor([_lp, _owner], options);
1563
+ },
1564
+ /**
1565
+ * Simulate emergencyWithdraw
1566
+ * Returns gas estimate and result without sending transaction
1567
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1568
+ */
1569
+ async emergencyWithdraw(tokenId, options) {
1570
+ return contract.simulate.emergencyWithdraw([tokenId], options);
1571
+ },
1572
+ /**
1573
+ * Simulate forfeitRollover
1574
+ * Returns gas estimate and result without sending transaction
1575
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1576
+ */
1577
+ async forfeitRollover(options) {
1578
+ return contract.simulate.forfeitRollover(options);
1579
+ },
1580
+ /**
1581
+ * Simulate initialize
1582
+ * Returns gas estimate and result without sending transaction
1583
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1584
+ */
1585
+ async initialize(_pool, _votingRewardsManager, _token0, _token1, _tickSpacing, _isPool, options) {
1586
+ return contract.simulate.initialize([_pool, _votingRewardsManager, _token0, _token1, _tickSpacing, _isPool], options);
1587
+ },
1588
+ /**
1589
+ * Simulate onERC721Received
1590
+ * Returns gas estimate and result without sending transaction
1591
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1592
+ */
1593
+ async onERC721Received(arg0, arg1, arg2, arg3, options) {
1594
+ return contract.simulate.onERC721Received([arg0, arg1, arg2, arg3], options);
1595
+ },
1596
+ /**
1597
+ * Simulate setApprovalForAll
1598
+ * Returns gas estimate and result without sending transaction
1599
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1600
+ */
1601
+ async setApprovalForAll(_operator, _approved, options) {
1602
+ return contract.simulate.setApprovalForAll([_operator, _approved], options);
1603
+ },
1604
+ /**
1605
+ * Simulate settleGauge
1606
+ * Returns gas estimate and result without sending transaction
1607
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1608
+ */
1609
+ async settleGauge(options) {
1610
+ return contract.simulate.settleGauge(options);
1611
+ },
1612
+ /**
1613
+ * Simulate withdraw
1614
+ * Returns gas estimate and result without sending transaction
1615
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1616
+ */
1617
+ async withdraw(_lp, options) {
1618
+ return contract.simulate.withdraw([_lp], options);
1619
+ },
1620
+ /**
1621
+ * Simulate withdrawFrom
1622
+ * Returns gas estimate and result without sending transaction
1623
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1624
+ */
1625
+ async withdrawFrom(_lp, _account, options) {
1626
+ return contract.simulate.withdrawFrom([_lp, _account], options);
1627
+ }
1628
+ };
1629
+ }
1630
+ /**
1631
+ * Watch contract events
1632
+ *
1633
+ * @example
1634
+ * // Watch all Transfer events
1635
+ * const unwatch = contract.watch.Transfer((event) => {
1636
+ * console.log('Transfer:', event);
1637
+ * });
1638
+ *
1639
+ * // Stop watching
1640
+ * unwatch();
1641
+ */
1642
+ get watch() {
1643
+ return {
1644
+ /**
1645
+ * Watch Approval events
1646
+ * @param callback Function to call when event is emitted
1647
+ * @param filter Optional filter for indexed parameters
1648
+ * @returns Unwatch function to stop listening
1649
+ */
1650
+ Approval: (callback, filter) => {
1651
+ return this.publicClient.watchContractEvent({
1652
+ address: this.contractAddress,
1653
+ abi: exports.CLGaugeAbi,
1654
+ eventName: 'Approval',
1655
+ args: filter,
1656
+ onLogs: (logs) => {
1657
+ logs.forEach((log) => {
1658
+ callback(log.args);
1659
+ });
1660
+ },
1661
+ });
1662
+ },
1663
+ /**
1664
+ * Watch ApprovalForAll events
1665
+ * @param callback Function to call when event is emitted
1666
+ * @param filter Optional filter for indexed parameters
1667
+ * @returns Unwatch function to stop listening
1668
+ */
1669
+ ApprovalForAll: (callback, filter) => {
1670
+ return this.publicClient.watchContractEvent({
1671
+ address: this.contractAddress,
1672
+ abi: exports.CLGaugeAbi,
1673
+ eventName: 'ApprovalForAll',
1674
+ args: filter,
1675
+ onLogs: (logs) => {
1676
+ logs.forEach((log) => {
1677
+ callback(log.args);
1678
+ });
1679
+ },
1680
+ });
1681
+ },
1682
+ /**
1683
+ * Watch ClaimApproval events
1684
+ * @param callback Function to call when event is emitted
1685
+ * @param filter Optional filter for indexed parameters
1686
+ * @returns Unwatch function to stop listening
1687
+ */
1688
+ ClaimApproval: (callback, filter) => {
1689
+ return this.publicClient.watchContractEvent({
1690
+ address: this.contractAddress,
1691
+ abi: exports.CLGaugeAbi,
1692
+ eventName: 'ClaimApproval',
1693
+ args: filter,
1694
+ onLogs: (logs) => {
1695
+ logs.forEach((log) => {
1696
+ callback(log.args);
1697
+ });
1698
+ },
1699
+ });
1700
+ },
1701
+ /**
1702
+ * Watch ClaimFees events
1703
+ * @param callback Function to call when event is emitted
1704
+ * @param filter Optional filter for indexed parameters
1705
+ * @returns Unwatch function to stop listening
1706
+ */
1707
+ ClaimFees: (callback, filter) => {
1708
+ return this.publicClient.watchContractEvent({
1709
+ address: this.contractAddress,
1710
+ abi: exports.CLGaugeAbi,
1711
+ eventName: 'ClaimFees',
1712
+ args: filter,
1713
+ onLogs: (logs) => {
1714
+ logs.forEach((log) => {
1715
+ callback(log.args);
1716
+ });
1717
+ },
1718
+ });
1719
+ },
1720
+ /**
1721
+ * Watch DeferredEmissionsClaimed events
1722
+ * @param callback Function to call when event is emitted
1723
+ * @param filter Optional filter for indexed parameters
1724
+ * @returns Unwatch function to stop listening
1725
+ */
1726
+ DeferredEmissionsClaimed: (callback, filter) => {
1727
+ return this.publicClient.watchContractEvent({
1728
+ address: this.contractAddress,
1729
+ abi: exports.CLGaugeAbi,
1730
+ eventName: 'DeferredEmissionsClaimed',
1731
+ args: filter,
1732
+ onLogs: (logs) => {
1733
+ logs.forEach((log) => {
1734
+ callback(log.args);
1735
+ });
1736
+ },
1737
+ });
1738
+ },
1739
+ /**
1740
+ * Watch Deposit events
1741
+ * @param callback Function to call when event is emitted
1742
+ * @param filter Optional filter for indexed parameters
1743
+ * @returns Unwatch function to stop listening
1744
+ */
1745
+ Deposit: (callback, filter) => {
1746
+ return this.publicClient.watchContractEvent({
1747
+ address: this.contractAddress,
1748
+ abi: exports.CLGaugeAbi,
1749
+ eventName: 'Deposit',
1750
+ args: filter,
1751
+ onLogs: (logs) => {
1752
+ logs.forEach((log) => {
1753
+ callback(log.args);
1754
+ });
1755
+ },
1756
+ });
1757
+ },
1758
+ /**
1759
+ * Watch EarlyWithdrawPenalty events
1760
+ * @param callback Function to call when event is emitted
1761
+ * @param filter Optional filter for indexed parameters
1762
+ * @returns Unwatch function to stop listening
1763
+ */
1764
+ EarlyWithdrawPenalty: (callback, filter) => {
1765
+ return this.publicClient.watchContractEvent({
1766
+ address: this.contractAddress,
1767
+ abi: exports.CLGaugeAbi,
1768
+ eventName: 'EarlyWithdrawPenalty',
1769
+ args: filter,
1770
+ onLogs: (logs) => {
1771
+ logs.forEach((log) => {
1772
+ callback(log.args);
1773
+ });
1774
+ },
1775
+ });
1776
+ },
1777
+ /**
1778
+ * Watch EmergencyWithdraw events
1779
+ * @param callback Function to call when event is emitted
1780
+ * @param filter Optional filter for indexed parameters
1781
+ * @returns Unwatch function to stop listening
1782
+ */
1783
+ EmergencyWithdraw: (callback, filter) => {
1784
+ return this.publicClient.watchContractEvent({
1785
+ address: this.contractAddress,
1786
+ abi: exports.CLGaugeAbi,
1787
+ eventName: 'EmergencyWithdraw',
1788
+ args: filter,
1789
+ onLogs: (logs) => {
1790
+ logs.forEach((log) => {
1791
+ callback(log.args);
1792
+ });
1793
+ },
1794
+ });
1795
+ },
1796
+ /**
1797
+ * Watch EmissionsClaimed events
1798
+ * @param callback Function to call when event is emitted
1799
+ * @param filter Optional filter for indexed parameters
1800
+ * @returns Unwatch function to stop listening
1801
+ */
1802
+ EmissionsClaimed: (callback, filter) => {
1803
+ return this.publicClient.watchContractEvent({
1804
+ address: this.contractAddress,
1805
+ abi: exports.CLGaugeAbi,
1806
+ eventName: 'EmissionsClaimed',
1807
+ args: filter,
1808
+ onLogs: (logs) => {
1809
+ logs.forEach((log) => {
1810
+ callback(log.args);
1811
+ });
1812
+ },
1813
+ });
1814
+ },
1815
+ /**
1816
+ * Watch EmissionsDeferred events
1817
+ * @param callback Function to call when event is emitted
1818
+ * @param filter Optional filter for indexed parameters
1819
+ * @returns Unwatch function to stop listening
1820
+ */
1821
+ EmissionsDeferred: (callback, filter) => {
1822
+ return this.publicClient.watchContractEvent({
1823
+ address: this.contractAddress,
1824
+ abi: exports.CLGaugeAbi,
1825
+ eventName: 'EmissionsDeferred',
1826
+ args: filter,
1827
+ onLogs: (logs) => {
1828
+ logs.forEach((log) => {
1829
+ callback(log.args);
1830
+ });
1831
+ },
1832
+ });
1833
+ },
1834
+ /**
1835
+ * Watch GaugeSettled events
1836
+ * @param callback Function to call when event is emitted
1837
+ * @param filter Optional filter for indexed parameters
1838
+ * @returns Unwatch function to stop listening
1839
+ */
1840
+ GaugeSettled: (callback) => {
1841
+ return this.publicClient.watchContractEvent({
1842
+ address: this.contractAddress,
1843
+ abi: exports.CLGaugeAbi,
1844
+ eventName: 'GaugeSettled',
1845
+ onLogs: (logs) => {
1846
+ logs.forEach((log) => {
1847
+ callback(log.args);
1848
+ });
1849
+ },
1850
+ });
1851
+ },
1852
+ /**
1853
+ * Watch ReferralEmissionsClaimed events
1854
+ * @param callback Function to call when event is emitted
1855
+ * @param filter Optional filter for indexed parameters
1856
+ * @returns Unwatch function to stop listening
1857
+ */
1858
+ ReferralEmissionsClaimed: (callback, filter) => {
1859
+ return this.publicClient.watchContractEvent({
1860
+ address: this.contractAddress,
1861
+ abi: exports.CLGaugeAbi,
1862
+ eventName: 'ReferralEmissionsClaimed',
1863
+ args: filter,
1864
+ onLogs: (logs) => {
1865
+ logs.forEach((log) => {
1866
+ callback(log.args);
1867
+ });
1868
+ },
1869
+ });
1870
+ },
1871
+ /**
1872
+ * Watch ReferralEmissionsDeferred events
1873
+ * @param callback Function to call when event is emitted
1874
+ * @param filter Optional filter for indexed parameters
1875
+ * @returns Unwatch function to stop listening
1876
+ */
1877
+ ReferralEmissionsDeferred: (callback, filter) => {
1878
+ return this.publicClient.watchContractEvent({
1879
+ address: this.contractAddress,
1880
+ abi: exports.CLGaugeAbi,
1881
+ eventName: 'ReferralEmissionsDeferred',
1882
+ args: filter,
1883
+ onLogs: (logs) => {
1884
+ logs.forEach((log) => {
1885
+ callback(log.args);
1886
+ });
1887
+ },
1888
+ });
1889
+ },
1890
+ /**
1891
+ * Watch Withdraw events
1892
+ * @param callback Function to call when event is emitted
1893
+ * @param filter Optional filter for indexed parameters
1894
+ * @returns Unwatch function to stop listening
1895
+ */
1896
+ Withdraw: (callback, filter) => {
1897
+ return this.publicClient.watchContractEvent({
1898
+ address: this.contractAddress,
1899
+ abi: exports.CLGaugeAbi,
1900
+ eventName: 'Withdraw',
1901
+ args: filter,
1902
+ onLogs: (logs) => {
1903
+ logs.forEach((log) => {
1904
+ callback(log.args);
1905
+ });
1906
+ },
1907
+ });
1908
+ }
1909
+ };
1910
+ }
1911
+ }
1912
+ exports.CLGauge = CLGauge;