@stake-dao/reader 0.2.4 → 0.2.6

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.
@@ -1,1575 +0,0 @@
1
- [
2
- {
3
- "inputs": [
4
- {
5
- "internalType": "contract IERC20",
6
- "name": "_CAKE",
7
- "type": "address"
8
- },
9
- {
10
- "internalType": "contract INonfungiblePositionManager",
11
- "name": "_nonfungiblePositionManager",
12
- "type": "address"
13
- },
14
- {
15
- "internalType": "address",
16
- "name": "_WETH",
17
- "type": "address"
18
- }
19
- ],
20
- "stateMutability": "nonpayable",
21
- "type": "constructor"
22
- },
23
- {
24
- "inputs": [
25
- {
26
- "internalType": "uint256",
27
- "name": "pid",
28
- "type": "uint256"
29
- }
30
- ],
31
- "name": "DuplicatedPool",
32
- "type": "error"
33
- },
34
- {
35
- "inputs": [],
36
- "name": "InconsistentAmount",
37
- "type": "error"
38
- },
39
- {
40
- "inputs": [],
41
- "name": "InsufficientAmount",
42
- "type": "error"
43
- },
44
- {
45
- "inputs": [],
46
- "name": "InvalidNFT",
47
- "type": "error"
48
- },
49
- {
50
- "inputs": [],
51
- "name": "InvalidPeriodDuration",
52
- "type": "error"
53
- },
54
- {
55
- "inputs": [],
56
- "name": "InvalidPid",
57
- "type": "error"
58
- },
59
- {
60
- "inputs": [],
61
- "name": "NoBalance",
62
- "type": "error"
63
- },
64
- {
65
- "inputs": [],
66
- "name": "NoLMPool",
67
- "type": "error"
68
- },
69
- {
70
- "inputs": [],
71
- "name": "NoLiquidity",
72
- "type": "error"
73
- },
74
- {
75
- "inputs": [],
76
- "name": "NotEmpty",
77
- "type": "error"
78
- },
79
- {
80
- "inputs": [],
81
- "name": "NotOwner",
82
- "type": "error"
83
- },
84
- {
85
- "inputs": [],
86
- "name": "NotOwnerOrOperator",
87
- "type": "error"
88
- },
89
- {
90
- "inputs": [],
91
- "name": "NotPancakeNFT",
92
- "type": "error"
93
- },
94
- {
95
- "inputs": [],
96
- "name": "WrongReceiver",
97
- "type": "error"
98
- },
99
- {
100
- "inputs": [],
101
- "name": "ZeroAddress",
102
- "type": "error"
103
- },
104
- {
105
- "anonymous": false,
106
- "inputs": [
107
- {
108
- "indexed": true,
109
- "internalType": "uint256",
110
- "name": "pid",
111
- "type": "uint256"
112
- },
113
- {
114
- "indexed": false,
115
- "internalType": "uint256",
116
- "name": "allocPoint",
117
- "type": "uint256"
118
- },
119
- {
120
- "indexed": true,
121
- "internalType": "contract IPancakeV3Pool",
122
- "name": "v3Pool",
123
- "type": "address"
124
- },
125
- {
126
- "indexed": true,
127
- "internalType": "contract ILMPool",
128
- "name": "lmPool",
129
- "type": "address"
130
- }
131
- ],
132
- "name": "AddPool",
133
- "type": "event"
134
- },
135
- {
136
- "anonymous": false,
137
- "inputs": [
138
- {
139
- "indexed": true,
140
- "internalType": "address",
141
- "name": "from",
142
- "type": "address"
143
- },
144
- {
145
- "indexed": true,
146
- "internalType": "uint256",
147
- "name": "pid",
148
- "type": "uint256"
149
- },
150
- {
151
- "indexed": true,
152
- "internalType": "uint256",
153
- "name": "tokenId",
154
- "type": "uint256"
155
- },
156
- {
157
- "indexed": false,
158
- "internalType": "uint256",
159
- "name": "liquidity",
160
- "type": "uint256"
161
- },
162
- {
163
- "indexed": false,
164
- "internalType": "int24",
165
- "name": "tickLower",
166
- "type": "int24"
167
- },
168
- {
169
- "indexed": false,
170
- "internalType": "int24",
171
- "name": "tickUpper",
172
- "type": "int24"
173
- }
174
- ],
175
- "name": "Deposit",
176
- "type": "event"
177
- },
178
- {
179
- "anonymous": false,
180
- "inputs": [
181
- {
182
- "indexed": true,
183
- "internalType": "address",
184
- "name": "sender",
185
- "type": "address"
186
- },
187
- {
188
- "indexed": false,
189
- "internalType": "address",
190
- "name": "to",
191
- "type": "address"
192
- },
193
- {
194
- "indexed": true,
195
- "internalType": "uint256",
196
- "name": "pid",
197
- "type": "uint256"
198
- },
199
- {
200
- "indexed": true,
201
- "internalType": "uint256",
202
- "name": "tokenId",
203
- "type": "uint256"
204
- },
205
- {
206
- "indexed": false,
207
- "internalType": "uint256",
208
- "name": "reward",
209
- "type": "uint256"
210
- }
211
- ],
212
- "name": "Harvest",
213
- "type": "event"
214
- },
215
- {
216
- "anonymous": false,
217
- "inputs": [
218
- {
219
- "indexed": false,
220
- "internalType": "address",
221
- "name": "deployer",
222
- "type": "address"
223
- }
224
- ],
225
- "name": "NewLMPoolDeployerAddress",
226
- "type": "event"
227
- },
228
- {
229
- "anonymous": false,
230
- "inputs": [
231
- {
232
- "indexed": false,
233
- "internalType": "address",
234
- "name": "operator",
235
- "type": "address"
236
- }
237
- ],
238
- "name": "NewOperatorAddress",
239
- "type": "event"
240
- },
241
- {
242
- "anonymous": false,
243
- "inputs": [
244
- {
245
- "indexed": false,
246
- "internalType": "uint256",
247
- "name": "periodDuration",
248
- "type": "uint256"
249
- }
250
- ],
251
- "name": "NewPeriodDuration",
252
- "type": "event"
253
- },
254
- {
255
- "anonymous": false,
256
- "inputs": [
257
- {
258
- "indexed": false,
259
- "internalType": "address",
260
- "name": "receiver",
261
- "type": "address"
262
- }
263
- ],
264
- "name": "NewReceiver",
265
- "type": "event"
266
- },
267
- {
268
- "anonymous": false,
269
- "inputs": [
270
- {
271
- "indexed": true,
272
- "internalType": "uint256",
273
- "name": "periodNumber",
274
- "type": "uint256"
275
- },
276
- {
277
- "indexed": false,
278
- "internalType": "uint256",
279
- "name": "startTime",
280
- "type": "uint256"
281
- },
282
- {
283
- "indexed": false,
284
- "internalType": "uint256",
285
- "name": "endTime",
286
- "type": "uint256"
287
- },
288
- {
289
- "indexed": false,
290
- "internalType": "uint256",
291
- "name": "cakePerSecond",
292
- "type": "uint256"
293
- },
294
- {
295
- "indexed": false,
296
- "internalType": "uint256",
297
- "name": "cakeAmount",
298
- "type": "uint256"
299
- }
300
- ],
301
- "name": "NewUpkeepPeriod",
302
- "type": "event"
303
- },
304
- {
305
- "anonymous": false,
306
- "inputs": [
307
- {
308
- "indexed": true,
309
- "internalType": "address",
310
- "name": "previousOwner",
311
- "type": "address"
312
- },
313
- {
314
- "indexed": true,
315
- "internalType": "address",
316
- "name": "newOwner",
317
- "type": "address"
318
- }
319
- ],
320
- "name": "OwnershipTransferred",
321
- "type": "event"
322
- },
323
- {
324
- "anonymous": false,
325
- "inputs": [
326
- {
327
- "indexed": false,
328
- "internalType": "bool",
329
- "name": "emergency",
330
- "type": "bool"
331
- }
332
- ],
333
- "name": "SetEmergency",
334
- "type": "event"
335
- },
336
- {
337
- "anonymous": false,
338
- "inputs": [
339
- {
340
- "indexed": true,
341
- "internalType": "uint256",
342
- "name": "pid",
343
- "type": "uint256"
344
- },
345
- {
346
- "indexed": false,
347
- "internalType": "uint256",
348
- "name": "allocPoint",
349
- "type": "uint256"
350
- }
351
- ],
352
- "name": "SetPool",
353
- "type": "event"
354
- },
355
- {
356
- "anonymous": false,
357
- "inputs": [
358
- {
359
- "indexed": true,
360
- "internalType": "address",
361
- "name": "farmBoostContract",
362
- "type": "address"
363
- }
364
- ],
365
- "name": "UpdateFarmBoostContract",
366
- "type": "event"
367
- },
368
- {
369
- "anonymous": false,
370
- "inputs": [
371
- {
372
- "indexed": true,
373
- "internalType": "address",
374
- "name": "from",
375
- "type": "address"
376
- },
377
- {
378
- "indexed": true,
379
- "internalType": "uint256",
380
- "name": "pid",
381
- "type": "uint256"
382
- },
383
- {
384
- "indexed": true,
385
- "internalType": "uint256",
386
- "name": "tokenId",
387
- "type": "uint256"
388
- },
389
- {
390
- "indexed": false,
391
- "internalType": "int128",
392
- "name": "liquidity",
393
- "type": "int128"
394
- },
395
- {
396
- "indexed": false,
397
- "internalType": "int24",
398
- "name": "tickLower",
399
- "type": "int24"
400
- },
401
- {
402
- "indexed": false,
403
- "internalType": "int24",
404
- "name": "tickUpper",
405
- "type": "int24"
406
- }
407
- ],
408
- "name": "UpdateLiquidity",
409
- "type": "event"
410
- },
411
- {
412
- "anonymous": false,
413
- "inputs": [
414
- {
415
- "indexed": true,
416
- "internalType": "uint256",
417
- "name": "periodNumber",
418
- "type": "uint256"
419
- },
420
- {
421
- "indexed": false,
422
- "internalType": "uint256",
423
- "name": "oldEndTime",
424
- "type": "uint256"
425
- },
426
- {
427
- "indexed": false,
428
- "internalType": "uint256",
429
- "name": "newEndTime",
430
- "type": "uint256"
431
- },
432
- {
433
- "indexed": false,
434
- "internalType": "uint256",
435
- "name": "remainingCake",
436
- "type": "uint256"
437
- }
438
- ],
439
- "name": "UpdateUpkeepPeriod",
440
- "type": "event"
441
- },
442
- {
443
- "anonymous": false,
444
- "inputs": [
445
- {
446
- "indexed": true,
447
- "internalType": "address",
448
- "name": "from",
449
- "type": "address"
450
- },
451
- {
452
- "indexed": false,
453
- "internalType": "address",
454
- "name": "to",
455
- "type": "address"
456
- },
457
- {
458
- "indexed": true,
459
- "internalType": "uint256",
460
- "name": "pid",
461
- "type": "uint256"
462
- },
463
- {
464
- "indexed": true,
465
- "internalType": "uint256",
466
- "name": "tokenId",
467
- "type": "uint256"
468
- }
469
- ],
470
- "name": "Withdraw",
471
- "type": "event"
472
- },
473
- {
474
- "inputs": [],
475
- "name": "BOOST_PRECISION",
476
- "outputs": [
477
- {
478
- "internalType": "uint256",
479
- "name": "",
480
- "type": "uint256"
481
- }
482
- ],
483
- "stateMutability": "view",
484
- "type": "function"
485
- },
486
- {
487
- "inputs": [],
488
- "name": "CAKE",
489
- "outputs": [
490
- {
491
- "internalType": "contract IERC20",
492
- "name": "",
493
- "type": "address"
494
- }
495
- ],
496
- "stateMutability": "view",
497
- "type": "function"
498
- },
499
- {
500
- "inputs": [],
501
- "name": "FARM_BOOSTER",
502
- "outputs": [
503
- {
504
- "internalType": "contract IFarmBooster",
505
- "name": "",
506
- "type": "address"
507
- }
508
- ],
509
- "stateMutability": "view",
510
- "type": "function"
511
- },
512
- {
513
- "inputs": [],
514
- "name": "LMPoolDeployer",
515
- "outputs": [
516
- {
517
- "internalType": "contract ILMPoolDeployer",
518
- "name": "",
519
- "type": "address"
520
- }
521
- ],
522
- "stateMutability": "view",
523
- "type": "function"
524
- },
525
- {
526
- "inputs": [],
527
- "name": "MAX_BOOST_PRECISION",
528
- "outputs": [
529
- {
530
- "internalType": "uint256",
531
- "name": "",
532
- "type": "uint256"
533
- }
534
- ],
535
- "stateMutability": "view",
536
- "type": "function"
537
- },
538
- {
539
- "inputs": [],
540
- "name": "MAX_DURATION",
541
- "outputs": [
542
- {
543
- "internalType": "uint256",
544
- "name": "",
545
- "type": "uint256"
546
- }
547
- ],
548
- "stateMutability": "view",
549
- "type": "function"
550
- },
551
- {
552
- "inputs": [],
553
- "name": "MIN_DURATION",
554
- "outputs": [
555
- {
556
- "internalType": "uint256",
557
- "name": "",
558
- "type": "uint256"
559
- }
560
- ],
561
- "stateMutability": "view",
562
- "type": "function"
563
- },
564
- {
565
- "inputs": [],
566
- "name": "PERIOD_DURATION",
567
- "outputs": [
568
- {
569
- "internalType": "uint256",
570
- "name": "",
571
- "type": "uint256"
572
- }
573
- ],
574
- "stateMutability": "view",
575
- "type": "function"
576
- },
577
- {
578
- "inputs": [],
579
- "name": "PRECISION",
580
- "outputs": [
581
- {
582
- "internalType": "uint256",
583
- "name": "",
584
- "type": "uint256"
585
- }
586
- ],
587
- "stateMutability": "view",
588
- "type": "function"
589
- },
590
- {
591
- "inputs": [],
592
- "name": "WETH",
593
- "outputs": [
594
- {
595
- "internalType": "address",
596
- "name": "",
597
- "type": "address"
598
- }
599
- ],
600
- "stateMutability": "view",
601
- "type": "function"
602
- },
603
- {
604
- "inputs": [
605
- {
606
- "internalType": "uint256",
607
- "name": "_allocPoint",
608
- "type": "uint256"
609
- },
610
- {
611
- "internalType": "contract IPancakeV3Pool",
612
- "name": "_v3Pool",
613
- "type": "address"
614
- },
615
- {
616
- "internalType": "bool",
617
- "name": "_withUpdate",
618
- "type": "bool"
619
- }
620
- ],
621
- "name": "add",
622
- "outputs": [],
623
- "stateMutability": "nonpayable",
624
- "type": "function"
625
- },
626
- {
627
- "inputs": [
628
- {
629
- "internalType": "address",
630
- "name": "owner",
631
- "type": "address"
632
- }
633
- ],
634
- "name": "balanceOf",
635
- "outputs": [
636
- {
637
- "internalType": "uint256",
638
- "name": "",
639
- "type": "uint256"
640
- }
641
- ],
642
- "stateMutability": "view",
643
- "type": "function"
644
- },
645
- {
646
- "inputs": [
647
- {
648
- "internalType": "uint256",
649
- "name": "_tokenId",
650
- "type": "uint256"
651
- }
652
- ],
653
- "name": "burn",
654
- "outputs": [],
655
- "stateMutability": "nonpayable",
656
- "type": "function"
657
- },
658
- {
659
- "inputs": [],
660
- "name": "cakeAmountBelongToMC",
661
- "outputs": [
662
- {
663
- "internalType": "uint256",
664
- "name": "",
665
- "type": "uint256"
666
- }
667
- ],
668
- "stateMutability": "view",
669
- "type": "function"
670
- },
671
- {
672
- "inputs": [
673
- {
674
- "components": [
675
- {
676
- "internalType": "uint256",
677
- "name": "tokenId",
678
- "type": "uint256"
679
- },
680
- {
681
- "internalType": "address",
682
- "name": "recipient",
683
- "type": "address"
684
- },
685
- {
686
- "internalType": "uint128",
687
- "name": "amount0Max",
688
- "type": "uint128"
689
- },
690
- {
691
- "internalType": "uint128",
692
- "name": "amount1Max",
693
- "type": "uint128"
694
- }
695
- ],
696
- "internalType": "struct INonfungiblePositionManagerStruct.CollectParams",
697
- "name": "params",
698
- "type": "tuple"
699
- }
700
- ],
701
- "name": "collect",
702
- "outputs": [
703
- {
704
- "internalType": "uint256",
705
- "name": "amount0",
706
- "type": "uint256"
707
- },
708
- {
709
- "internalType": "uint256",
710
- "name": "amount1",
711
- "type": "uint256"
712
- }
713
- ],
714
- "stateMutability": "nonpayable",
715
- "type": "function"
716
- },
717
- {
718
- "inputs": [
719
- {
720
- "components": [
721
- {
722
- "internalType": "uint256",
723
- "name": "tokenId",
724
- "type": "uint256"
725
- },
726
- {
727
- "internalType": "address",
728
- "name": "recipient",
729
- "type": "address"
730
- },
731
- {
732
- "internalType": "uint128",
733
- "name": "amount0Max",
734
- "type": "uint128"
735
- },
736
- {
737
- "internalType": "uint128",
738
- "name": "amount1Max",
739
- "type": "uint128"
740
- }
741
- ],
742
- "internalType": "struct INonfungiblePositionManagerStruct.CollectParams",
743
- "name": "params",
744
- "type": "tuple"
745
- },
746
- {
747
- "internalType": "address",
748
- "name": "to",
749
- "type": "address"
750
- }
751
- ],
752
- "name": "collectTo",
753
- "outputs": [
754
- {
755
- "internalType": "uint256",
756
- "name": "amount0",
757
- "type": "uint256"
758
- },
759
- {
760
- "internalType": "uint256",
761
- "name": "amount1",
762
- "type": "uint256"
763
- }
764
- ],
765
- "stateMutability": "nonpayable",
766
- "type": "function"
767
- },
768
- {
769
- "inputs": [
770
- {
771
- "components": [
772
- {
773
- "internalType": "uint256",
774
- "name": "tokenId",
775
- "type": "uint256"
776
- },
777
- {
778
- "internalType": "uint128",
779
- "name": "liquidity",
780
- "type": "uint128"
781
- },
782
- {
783
- "internalType": "uint256",
784
- "name": "amount0Min",
785
- "type": "uint256"
786
- },
787
- {
788
- "internalType": "uint256",
789
- "name": "amount1Min",
790
- "type": "uint256"
791
- },
792
- {
793
- "internalType": "uint256",
794
- "name": "deadline",
795
- "type": "uint256"
796
- }
797
- ],
798
- "internalType": "struct INonfungiblePositionManagerStruct.DecreaseLiquidityParams",
799
- "name": "params",
800
- "type": "tuple"
801
- }
802
- ],
803
- "name": "decreaseLiquidity",
804
- "outputs": [
805
- {
806
- "internalType": "uint256",
807
- "name": "amount0",
808
- "type": "uint256"
809
- },
810
- {
811
- "internalType": "uint256",
812
- "name": "amount1",
813
- "type": "uint256"
814
- }
815
- ],
816
- "stateMutability": "nonpayable",
817
- "type": "function"
818
- },
819
- {
820
- "inputs": [],
821
- "name": "emergency",
822
- "outputs": [
823
- {
824
- "internalType": "bool",
825
- "name": "",
826
- "type": "bool"
827
- }
828
- ],
829
- "stateMutability": "view",
830
- "type": "function"
831
- },
832
- {
833
- "inputs": [
834
- {
835
- "internalType": "address",
836
- "name": "_v3Pool",
837
- "type": "address"
838
- }
839
- ],
840
- "name": "getLatestPeriodInfo",
841
- "outputs": [
842
- {
843
- "internalType": "uint256",
844
- "name": "cakePerSecond",
845
- "type": "uint256"
846
- },
847
- {
848
- "internalType": "uint256",
849
- "name": "endTime",
850
- "type": "uint256"
851
- }
852
- ],
853
- "stateMutability": "view",
854
- "type": "function"
855
- },
856
- {
857
- "inputs": [
858
- {
859
- "internalType": "uint256",
860
- "name": "_pid",
861
- "type": "uint256"
862
- }
863
- ],
864
- "name": "getLatestPeriodInfoByPid",
865
- "outputs": [
866
- {
867
- "internalType": "uint256",
868
- "name": "cakePerSecond",
869
- "type": "uint256"
870
- },
871
- {
872
- "internalType": "uint256",
873
- "name": "endTime",
874
- "type": "uint256"
875
- }
876
- ],
877
- "stateMutability": "view",
878
- "type": "function"
879
- },
880
- {
881
- "inputs": [
882
- {
883
- "internalType": "uint256",
884
- "name": "_tokenId",
885
- "type": "uint256"
886
- },
887
- {
888
- "internalType": "address",
889
- "name": "_to",
890
- "type": "address"
891
- }
892
- ],
893
- "name": "harvest",
894
- "outputs": [
895
- {
896
- "internalType": "uint256",
897
- "name": "reward",
898
- "type": "uint256"
899
- }
900
- ],
901
- "stateMutability": "nonpayable",
902
- "type": "function"
903
- },
904
- {
905
- "inputs": [
906
- {
907
- "components": [
908
- {
909
- "internalType": "uint256",
910
- "name": "tokenId",
911
- "type": "uint256"
912
- },
913
- {
914
- "internalType": "uint256",
915
- "name": "amount0Desired",
916
- "type": "uint256"
917
- },
918
- {
919
- "internalType": "uint256",
920
- "name": "amount1Desired",
921
- "type": "uint256"
922
- },
923
- {
924
- "internalType": "uint256",
925
- "name": "amount0Min",
926
- "type": "uint256"
927
- },
928
- {
929
- "internalType": "uint256",
930
- "name": "amount1Min",
931
- "type": "uint256"
932
- },
933
- {
934
- "internalType": "uint256",
935
- "name": "deadline",
936
- "type": "uint256"
937
- }
938
- ],
939
- "internalType": "struct INonfungiblePositionManagerStruct.IncreaseLiquidityParams",
940
- "name": "params",
941
- "type": "tuple"
942
- }
943
- ],
944
- "name": "increaseLiquidity",
945
- "outputs": [
946
- {
947
- "internalType": "uint128",
948
- "name": "liquidity",
949
- "type": "uint128"
950
- },
951
- {
952
- "internalType": "uint256",
953
- "name": "amount0",
954
- "type": "uint256"
955
- },
956
- {
957
- "internalType": "uint256",
958
- "name": "amount1",
959
- "type": "uint256"
960
- }
961
- ],
962
- "stateMutability": "payable",
963
- "type": "function"
964
- },
965
- {
966
- "inputs": [],
967
- "name": "latestPeriodCakePerSecond",
968
- "outputs": [
969
- {
970
- "internalType": "uint256",
971
- "name": "",
972
- "type": "uint256"
973
- }
974
- ],
975
- "stateMutability": "view",
976
- "type": "function"
977
- },
978
- {
979
- "inputs": [],
980
- "name": "latestPeriodEndTime",
981
- "outputs": [
982
- {
983
- "internalType": "uint256",
984
- "name": "",
985
- "type": "uint256"
986
- }
987
- ],
988
- "stateMutability": "view",
989
- "type": "function"
990
- },
991
- {
992
- "inputs": [],
993
- "name": "latestPeriodNumber",
994
- "outputs": [
995
- {
996
- "internalType": "uint256",
997
- "name": "",
998
- "type": "uint256"
999
- }
1000
- ],
1001
- "stateMutability": "view",
1002
- "type": "function"
1003
- },
1004
- {
1005
- "inputs": [],
1006
- "name": "latestPeriodStartTime",
1007
- "outputs": [
1008
- {
1009
- "internalType": "uint256",
1010
- "name": "",
1011
- "type": "uint256"
1012
- }
1013
- ],
1014
- "stateMutability": "view",
1015
- "type": "function"
1016
- },
1017
- {
1018
- "inputs": [
1019
- {
1020
- "internalType": "bytes[]",
1021
- "name": "data",
1022
- "type": "bytes[]"
1023
- }
1024
- ],
1025
- "name": "multicall",
1026
- "outputs": [
1027
- {
1028
- "internalType": "bytes[]",
1029
- "name": "results",
1030
- "type": "bytes[]"
1031
- }
1032
- ],
1033
- "stateMutability": "payable",
1034
- "type": "function"
1035
- },
1036
- {
1037
- "inputs": [],
1038
- "name": "nonfungiblePositionManager",
1039
- "outputs": [
1040
- {
1041
- "internalType": "contract INonfungiblePositionManager",
1042
- "name": "",
1043
- "type": "address"
1044
- }
1045
- ],
1046
- "stateMutability": "view",
1047
- "type": "function"
1048
- },
1049
- {
1050
- "inputs": [
1051
- {
1052
- "internalType": "address",
1053
- "name": "",
1054
- "type": "address"
1055
- },
1056
- {
1057
- "internalType": "address",
1058
- "name": "_from",
1059
- "type": "address"
1060
- },
1061
- {
1062
- "internalType": "uint256",
1063
- "name": "_tokenId",
1064
- "type": "uint256"
1065
- },
1066
- {
1067
- "internalType": "bytes",
1068
- "name": "",
1069
- "type": "bytes"
1070
- }
1071
- ],
1072
- "name": "onERC721Received",
1073
- "outputs": [
1074
- {
1075
- "internalType": "bytes4",
1076
- "name": "",
1077
- "type": "bytes4"
1078
- }
1079
- ],
1080
- "stateMutability": "nonpayable",
1081
- "type": "function"
1082
- },
1083
- {
1084
- "inputs": [],
1085
- "name": "operatorAddress",
1086
- "outputs": [
1087
- {
1088
- "internalType": "address",
1089
- "name": "",
1090
- "type": "address"
1091
- }
1092
- ],
1093
- "stateMutability": "view",
1094
- "type": "function"
1095
- },
1096
- {
1097
- "inputs": [],
1098
- "name": "owner",
1099
- "outputs": [
1100
- {
1101
- "internalType": "address",
1102
- "name": "",
1103
- "type": "address"
1104
- }
1105
- ],
1106
- "stateMutability": "view",
1107
- "type": "function"
1108
- },
1109
- {
1110
- "inputs": [
1111
- {
1112
- "internalType": "uint256",
1113
- "name": "_tokenId",
1114
- "type": "uint256"
1115
- }
1116
- ],
1117
- "name": "pendingCake",
1118
- "outputs": [
1119
- {
1120
- "internalType": "uint256",
1121
- "name": "reward",
1122
- "type": "uint256"
1123
- }
1124
- ],
1125
- "stateMutability": "view",
1126
- "type": "function"
1127
- },
1128
- {
1129
- "inputs": [
1130
- {
1131
- "internalType": "uint256",
1132
- "name": "",
1133
- "type": "uint256"
1134
- }
1135
- ],
1136
- "name": "poolInfo",
1137
- "outputs": [
1138
- {
1139
- "internalType": "uint256",
1140
- "name": "allocPoint",
1141
- "type": "uint256"
1142
- },
1143
- {
1144
- "internalType": "contract IPancakeV3Pool",
1145
- "name": "v3Pool",
1146
- "type": "address"
1147
- },
1148
- {
1149
- "internalType": "address",
1150
- "name": "token0",
1151
- "type": "address"
1152
- },
1153
- {
1154
- "internalType": "address",
1155
- "name": "token1",
1156
- "type": "address"
1157
- },
1158
- {
1159
- "internalType": "uint24",
1160
- "name": "fee",
1161
- "type": "uint24"
1162
- },
1163
- {
1164
- "internalType": "uint256",
1165
- "name": "totalLiquidity",
1166
- "type": "uint256"
1167
- },
1168
- {
1169
- "internalType": "uint256",
1170
- "name": "totalBoostLiquidity",
1171
- "type": "uint256"
1172
- }
1173
- ],
1174
- "stateMutability": "view",
1175
- "type": "function"
1176
- },
1177
- {
1178
- "inputs": [],
1179
- "name": "poolLength",
1180
- "outputs": [
1181
- {
1182
- "internalType": "uint256",
1183
- "name": "",
1184
- "type": "uint256"
1185
- }
1186
- ],
1187
- "stateMutability": "view",
1188
- "type": "function"
1189
- },
1190
- {
1191
- "inputs": [],
1192
- "name": "receiver",
1193
- "outputs": [
1194
- {
1195
- "internalType": "address",
1196
- "name": "",
1197
- "type": "address"
1198
- }
1199
- ],
1200
- "stateMutability": "view",
1201
- "type": "function"
1202
- },
1203
- {
1204
- "inputs": [],
1205
- "name": "renounceOwnership",
1206
- "outputs": [],
1207
- "stateMutability": "nonpayable",
1208
- "type": "function"
1209
- },
1210
- {
1211
- "inputs": [
1212
- {
1213
- "internalType": "uint256",
1214
- "name": "_pid",
1215
- "type": "uint256"
1216
- },
1217
- {
1218
- "internalType": "uint256",
1219
- "name": "_allocPoint",
1220
- "type": "uint256"
1221
- },
1222
- {
1223
- "internalType": "bool",
1224
- "name": "_withUpdate",
1225
- "type": "bool"
1226
- }
1227
- ],
1228
- "name": "set",
1229
- "outputs": [],
1230
- "stateMutability": "nonpayable",
1231
- "type": "function"
1232
- },
1233
- {
1234
- "inputs": [
1235
- {
1236
- "internalType": "bool",
1237
- "name": "_emergency",
1238
- "type": "bool"
1239
- }
1240
- ],
1241
- "name": "setEmergency",
1242
- "outputs": [],
1243
- "stateMutability": "nonpayable",
1244
- "type": "function"
1245
- },
1246
- {
1247
- "inputs": [
1248
- {
1249
- "internalType": "contract ILMPoolDeployer",
1250
- "name": "_LMPoolDeployer",
1251
- "type": "address"
1252
- }
1253
- ],
1254
- "name": "setLMPoolDeployer",
1255
- "outputs": [],
1256
- "stateMutability": "nonpayable",
1257
- "type": "function"
1258
- },
1259
- {
1260
- "inputs": [
1261
- {
1262
- "internalType": "address",
1263
- "name": "_operatorAddress",
1264
- "type": "address"
1265
- }
1266
- ],
1267
- "name": "setOperator",
1268
- "outputs": [],
1269
- "stateMutability": "nonpayable",
1270
- "type": "function"
1271
- },
1272
- {
1273
- "inputs": [
1274
- {
1275
- "internalType": "uint256",
1276
- "name": "_periodDuration",
1277
- "type": "uint256"
1278
- }
1279
- ],
1280
- "name": "setPeriodDuration",
1281
- "outputs": [],
1282
- "stateMutability": "nonpayable",
1283
- "type": "function"
1284
- },
1285
- {
1286
- "inputs": [
1287
- {
1288
- "internalType": "address",
1289
- "name": "_receiver",
1290
- "type": "address"
1291
- }
1292
- ],
1293
- "name": "setReceiver",
1294
- "outputs": [],
1295
- "stateMutability": "nonpayable",
1296
- "type": "function"
1297
- },
1298
- {
1299
- "inputs": [
1300
- {
1301
- "internalType": "address",
1302
- "name": "token",
1303
- "type": "address"
1304
- },
1305
- {
1306
- "internalType": "uint256",
1307
- "name": "amountMinimum",
1308
- "type": "uint256"
1309
- },
1310
- {
1311
- "internalType": "address",
1312
- "name": "recipient",
1313
- "type": "address"
1314
- }
1315
- ],
1316
- "name": "sweepToken",
1317
- "outputs": [],
1318
- "stateMutability": "nonpayable",
1319
- "type": "function"
1320
- },
1321
- {
1322
- "inputs": [
1323
- {
1324
- "internalType": "address",
1325
- "name": "owner",
1326
- "type": "address"
1327
- },
1328
- {
1329
- "internalType": "uint256",
1330
- "name": "index",
1331
- "type": "uint256"
1332
- }
1333
- ],
1334
- "name": "tokenOfOwnerByIndex",
1335
- "outputs": [
1336
- {
1337
- "internalType": "uint256",
1338
- "name": "",
1339
- "type": "uint256"
1340
- }
1341
- ],
1342
- "stateMutability": "view",
1343
- "type": "function"
1344
- },
1345
- {
1346
- "inputs": [],
1347
- "name": "totalAllocPoint",
1348
- "outputs": [
1349
- {
1350
- "internalType": "uint256",
1351
- "name": "",
1352
- "type": "uint256"
1353
- }
1354
- ],
1355
- "stateMutability": "view",
1356
- "type": "function"
1357
- },
1358
- {
1359
- "inputs": [
1360
- {
1361
- "internalType": "address",
1362
- "name": "newOwner",
1363
- "type": "address"
1364
- }
1365
- ],
1366
- "name": "transferOwnership",
1367
- "outputs": [],
1368
- "stateMutability": "nonpayable",
1369
- "type": "function"
1370
- },
1371
- {
1372
- "inputs": [
1373
- {
1374
- "internalType": "uint256",
1375
- "name": "amountMinimum",
1376
- "type": "uint256"
1377
- },
1378
- {
1379
- "internalType": "address",
1380
- "name": "recipient",
1381
- "type": "address"
1382
- }
1383
- ],
1384
- "name": "unwrapWETH9",
1385
- "outputs": [],
1386
- "stateMutability": "nonpayable",
1387
- "type": "function"
1388
- },
1389
- {
1390
- "inputs": [
1391
- {
1392
- "internalType": "uint256",
1393
- "name": "_tokenId",
1394
- "type": "uint256"
1395
- },
1396
- {
1397
- "internalType": "uint256",
1398
- "name": "_newMultiplier",
1399
- "type": "uint256"
1400
- }
1401
- ],
1402
- "name": "updateBoostMultiplier",
1403
- "outputs": [],
1404
- "stateMutability": "nonpayable",
1405
- "type": "function"
1406
- },
1407
- {
1408
- "inputs": [
1409
- {
1410
- "internalType": "address",
1411
- "name": "_newFarmBoostContract",
1412
- "type": "address"
1413
- }
1414
- ],
1415
- "name": "updateFarmBoostContract",
1416
- "outputs": [],
1417
- "stateMutability": "nonpayable",
1418
- "type": "function"
1419
- },
1420
- {
1421
- "inputs": [
1422
- {
1423
- "internalType": "uint256",
1424
- "name": "_tokenId",
1425
- "type": "uint256"
1426
- }
1427
- ],
1428
- "name": "updateLiquidity",
1429
- "outputs": [],
1430
- "stateMutability": "nonpayable",
1431
- "type": "function"
1432
- },
1433
- {
1434
- "inputs": [
1435
- {
1436
- "internalType": "uint256[]",
1437
- "name": "pids",
1438
- "type": "uint256[]"
1439
- }
1440
- ],
1441
- "name": "updatePools",
1442
- "outputs": [],
1443
- "stateMutability": "nonpayable",
1444
- "type": "function"
1445
- },
1446
- {
1447
- "inputs": [
1448
- {
1449
- "internalType": "uint256",
1450
- "name": "_amount",
1451
- "type": "uint256"
1452
- },
1453
- {
1454
- "internalType": "uint256",
1455
- "name": "_duration",
1456
- "type": "uint256"
1457
- },
1458
- {
1459
- "internalType": "bool",
1460
- "name": "_withUpdate",
1461
- "type": "bool"
1462
- }
1463
- ],
1464
- "name": "upkeep",
1465
- "outputs": [],
1466
- "stateMutability": "nonpayable",
1467
- "type": "function"
1468
- },
1469
- {
1470
- "inputs": [
1471
- {
1472
- "internalType": "uint256",
1473
- "name": "",
1474
- "type": "uint256"
1475
- }
1476
- ],
1477
- "name": "userPositionInfos",
1478
- "outputs": [
1479
- {
1480
- "internalType": "uint128",
1481
- "name": "liquidity",
1482
- "type": "uint128"
1483
- },
1484
- {
1485
- "internalType": "uint128",
1486
- "name": "boostLiquidity",
1487
- "type": "uint128"
1488
- },
1489
- {
1490
- "internalType": "int24",
1491
- "name": "tickLower",
1492
- "type": "int24"
1493
- },
1494
- {
1495
- "internalType": "int24",
1496
- "name": "tickUpper",
1497
- "type": "int24"
1498
- },
1499
- {
1500
- "internalType": "uint256",
1501
- "name": "rewardGrowthInside",
1502
- "type": "uint256"
1503
- },
1504
- {
1505
- "internalType": "uint256",
1506
- "name": "reward",
1507
- "type": "uint256"
1508
- },
1509
- {
1510
- "internalType": "address",
1511
- "name": "user",
1512
- "type": "address"
1513
- },
1514
- {
1515
- "internalType": "uint256",
1516
- "name": "pid",
1517
- "type": "uint256"
1518
- },
1519
- {
1520
- "internalType": "uint256",
1521
- "name": "boostMultiplier",
1522
- "type": "uint256"
1523
- }
1524
- ],
1525
- "stateMutability": "view",
1526
- "type": "function"
1527
- },
1528
- {
1529
- "inputs": [
1530
- {
1531
- "internalType": "address",
1532
- "name": "",
1533
- "type": "address"
1534
- }
1535
- ],
1536
- "name": "v3PoolAddressPid",
1537
- "outputs": [
1538
- {
1539
- "internalType": "uint256",
1540
- "name": "",
1541
- "type": "uint256"
1542
- }
1543
- ],
1544
- "stateMutability": "view",
1545
- "type": "function"
1546
- },
1547
- {
1548
- "inputs": [
1549
- {
1550
- "internalType": "uint256",
1551
- "name": "_tokenId",
1552
- "type": "uint256"
1553
- },
1554
- {
1555
- "internalType": "address",
1556
- "name": "_to",
1557
- "type": "address"
1558
- }
1559
- ],
1560
- "name": "withdraw",
1561
- "outputs": [
1562
- {
1563
- "internalType": "uint256",
1564
- "name": "reward",
1565
- "type": "uint256"
1566
- }
1567
- ],
1568
- "stateMutability": "nonpayable",
1569
- "type": "function"
1570
- },
1571
- {
1572
- "stateMutability": "payable",
1573
- "type": "receive"
1574
- }
1575
- ]