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