@iotexproject/kit 0.0.16 → 0.0.18
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.
- package/dist/index.d.ts +705 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -374,6 +374,700 @@ declare class ERC20Entity {
|
|
|
374
374
|
priceUSD(): Promise<any>;
|
|
375
375
|
tokenUrl(): Promise<any>;
|
|
376
376
|
}
|
|
377
|
+
declare class IncentivesEntity {
|
|
378
|
+
address: `0x${string}`;
|
|
379
|
+
chainId: string;
|
|
380
|
+
static abi: readonly [
|
|
381
|
+
{
|
|
382
|
+
readonly inputs: readonly [
|
|
383
|
+
{
|
|
384
|
+
readonly internalType: "address";
|
|
385
|
+
readonly name: "_forwarder";
|
|
386
|
+
readonly type: "address";
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
readonly internalType: "address";
|
|
390
|
+
readonly name: "_voter";
|
|
391
|
+
readonly type: "address";
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
readonly internalType: "address[]";
|
|
395
|
+
readonly name: "_rewards";
|
|
396
|
+
readonly type: "address[]";
|
|
397
|
+
}
|
|
398
|
+
];
|
|
399
|
+
readonly stateMutability: "nonpayable";
|
|
400
|
+
readonly type: "constructor";
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
readonly inputs: readonly [
|
|
404
|
+
];
|
|
405
|
+
readonly name: "NotGauge";
|
|
406
|
+
readonly type: "error";
|
|
407
|
+
},
|
|
408
|
+
{
|
|
409
|
+
readonly inputs: readonly [
|
|
410
|
+
];
|
|
411
|
+
readonly name: "NotRewardToken";
|
|
412
|
+
readonly type: "error";
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
readonly inputs: readonly [
|
|
416
|
+
];
|
|
417
|
+
readonly name: "NotVoter";
|
|
418
|
+
readonly type: "error";
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
readonly inputs: readonly [
|
|
422
|
+
];
|
|
423
|
+
readonly name: "NotWhitelisted";
|
|
424
|
+
readonly type: "error";
|
|
425
|
+
},
|
|
426
|
+
{
|
|
427
|
+
readonly inputs: readonly [
|
|
428
|
+
];
|
|
429
|
+
readonly name: "RewardRateTooHigh";
|
|
430
|
+
readonly type: "error";
|
|
431
|
+
},
|
|
432
|
+
{
|
|
433
|
+
readonly inputs: readonly [
|
|
434
|
+
];
|
|
435
|
+
readonly name: "RewardTokenExist";
|
|
436
|
+
readonly type: "error";
|
|
437
|
+
},
|
|
438
|
+
{
|
|
439
|
+
readonly inputs: readonly [
|
|
440
|
+
];
|
|
441
|
+
readonly name: "ZeroAmount";
|
|
442
|
+
readonly type: "error";
|
|
443
|
+
},
|
|
444
|
+
{
|
|
445
|
+
readonly inputs: readonly [
|
|
446
|
+
];
|
|
447
|
+
readonly name: "ZeroRewardRate";
|
|
448
|
+
readonly type: "error";
|
|
449
|
+
},
|
|
450
|
+
{
|
|
451
|
+
readonly anonymous: false;
|
|
452
|
+
readonly inputs: readonly [
|
|
453
|
+
{
|
|
454
|
+
readonly indexed: true;
|
|
455
|
+
readonly internalType: "address";
|
|
456
|
+
readonly name: "receipt";
|
|
457
|
+
readonly type: "address";
|
|
458
|
+
},
|
|
459
|
+
{
|
|
460
|
+
readonly indexed: true;
|
|
461
|
+
readonly internalType: "address";
|
|
462
|
+
readonly name: "token";
|
|
463
|
+
readonly type: "address";
|
|
464
|
+
},
|
|
465
|
+
{
|
|
466
|
+
readonly indexed: false;
|
|
467
|
+
readonly internalType: "uint256";
|
|
468
|
+
readonly name: "amount";
|
|
469
|
+
readonly type: "uint256";
|
|
470
|
+
}
|
|
471
|
+
];
|
|
472
|
+
readonly name: "ClaimRewards";
|
|
473
|
+
readonly type: "event";
|
|
474
|
+
},
|
|
475
|
+
{
|
|
476
|
+
readonly anonymous: false;
|
|
477
|
+
readonly inputs: readonly [
|
|
478
|
+
{
|
|
479
|
+
readonly indexed: true;
|
|
480
|
+
readonly internalType: "address";
|
|
481
|
+
readonly name: "from";
|
|
482
|
+
readonly type: "address";
|
|
483
|
+
},
|
|
484
|
+
{
|
|
485
|
+
readonly indexed: true;
|
|
486
|
+
readonly internalType: "address";
|
|
487
|
+
readonly name: "receiver";
|
|
488
|
+
readonly type: "address";
|
|
489
|
+
},
|
|
490
|
+
{
|
|
491
|
+
readonly indexed: false;
|
|
492
|
+
readonly internalType: "uint256";
|
|
493
|
+
readonly name: "amount";
|
|
494
|
+
readonly type: "uint256";
|
|
495
|
+
}
|
|
496
|
+
];
|
|
497
|
+
readonly name: "DepositLP";
|
|
498
|
+
readonly type: "event";
|
|
499
|
+
},
|
|
500
|
+
{
|
|
501
|
+
readonly anonymous: false;
|
|
502
|
+
readonly inputs: readonly [
|
|
503
|
+
{
|
|
504
|
+
readonly indexed: true;
|
|
505
|
+
readonly internalType: "address";
|
|
506
|
+
readonly name: "from";
|
|
507
|
+
readonly type: "address";
|
|
508
|
+
},
|
|
509
|
+
{
|
|
510
|
+
readonly indexed: true;
|
|
511
|
+
readonly internalType: "address";
|
|
512
|
+
readonly name: "reward";
|
|
513
|
+
readonly type: "address";
|
|
514
|
+
},
|
|
515
|
+
{
|
|
516
|
+
readonly indexed: true;
|
|
517
|
+
readonly internalType: "uint256";
|
|
518
|
+
readonly name: "epoch";
|
|
519
|
+
readonly type: "uint256";
|
|
520
|
+
},
|
|
521
|
+
{
|
|
522
|
+
readonly indexed: false;
|
|
523
|
+
readonly internalType: "uint256";
|
|
524
|
+
readonly name: "amount";
|
|
525
|
+
readonly type: "uint256";
|
|
526
|
+
}
|
|
527
|
+
];
|
|
528
|
+
readonly name: "NotifyReward";
|
|
529
|
+
readonly type: "event";
|
|
530
|
+
},
|
|
531
|
+
{
|
|
532
|
+
readonly anonymous: false;
|
|
533
|
+
readonly inputs: readonly [
|
|
534
|
+
{
|
|
535
|
+
readonly indexed: true;
|
|
536
|
+
readonly internalType: "address";
|
|
537
|
+
readonly name: "from";
|
|
538
|
+
readonly type: "address";
|
|
539
|
+
},
|
|
540
|
+
{
|
|
541
|
+
readonly indexed: true;
|
|
542
|
+
readonly internalType: "address";
|
|
543
|
+
readonly name: "receiver";
|
|
544
|
+
readonly type: "address";
|
|
545
|
+
},
|
|
546
|
+
{
|
|
547
|
+
readonly indexed: false;
|
|
548
|
+
readonly internalType: "uint256";
|
|
549
|
+
readonly name: "amount";
|
|
550
|
+
readonly type: "uint256";
|
|
551
|
+
}
|
|
552
|
+
];
|
|
553
|
+
readonly name: "WithdrawLP";
|
|
554
|
+
readonly type: "event";
|
|
555
|
+
},
|
|
556
|
+
{
|
|
557
|
+
readonly inputs: readonly [
|
|
558
|
+
{
|
|
559
|
+
readonly internalType: "address";
|
|
560
|
+
readonly name: "token";
|
|
561
|
+
readonly type: "address";
|
|
562
|
+
}
|
|
563
|
+
];
|
|
564
|
+
readonly name: "addRewardToken";
|
|
565
|
+
readonly outputs: readonly [
|
|
566
|
+
];
|
|
567
|
+
readonly stateMutability: "nonpayable";
|
|
568
|
+
readonly type: "function";
|
|
569
|
+
},
|
|
570
|
+
{
|
|
571
|
+
readonly inputs: readonly [
|
|
572
|
+
{
|
|
573
|
+
readonly internalType: "address";
|
|
574
|
+
readonly name: "";
|
|
575
|
+
readonly type: "address";
|
|
576
|
+
}
|
|
577
|
+
];
|
|
578
|
+
readonly name: "balanceOf";
|
|
579
|
+
readonly outputs: readonly [
|
|
580
|
+
{
|
|
581
|
+
readonly internalType: "uint256";
|
|
582
|
+
readonly name: "";
|
|
583
|
+
readonly type: "uint256";
|
|
584
|
+
}
|
|
585
|
+
];
|
|
586
|
+
readonly stateMutability: "view";
|
|
587
|
+
readonly type: "function";
|
|
588
|
+
},
|
|
589
|
+
{
|
|
590
|
+
readonly inputs: readonly [
|
|
591
|
+
{
|
|
592
|
+
readonly internalType: "address[]";
|
|
593
|
+
readonly name: "tokens";
|
|
594
|
+
readonly type: "address[]";
|
|
595
|
+
}
|
|
596
|
+
];
|
|
597
|
+
readonly name: "claimReward";
|
|
598
|
+
readonly outputs: readonly [
|
|
599
|
+
];
|
|
600
|
+
readonly stateMutability: "nonpayable";
|
|
601
|
+
readonly type: "function";
|
|
602
|
+
},
|
|
603
|
+
{
|
|
604
|
+
readonly inputs: readonly [
|
|
605
|
+
{
|
|
606
|
+
readonly internalType: "uint256";
|
|
607
|
+
readonly name: "_amount";
|
|
608
|
+
readonly type: "uint256";
|
|
609
|
+
},
|
|
610
|
+
{
|
|
611
|
+
readonly internalType: "address";
|
|
612
|
+
readonly name: "_recipient";
|
|
613
|
+
readonly type: "address";
|
|
614
|
+
}
|
|
615
|
+
];
|
|
616
|
+
readonly name: "deposit";
|
|
617
|
+
readonly outputs: readonly [
|
|
618
|
+
];
|
|
619
|
+
readonly stateMutability: "nonpayable";
|
|
620
|
+
readonly type: "function";
|
|
621
|
+
},
|
|
622
|
+
{
|
|
623
|
+
readonly inputs: readonly [
|
|
624
|
+
{
|
|
625
|
+
readonly internalType: "address";
|
|
626
|
+
readonly name: "_account";
|
|
627
|
+
readonly type: "address";
|
|
628
|
+
},
|
|
629
|
+
{
|
|
630
|
+
readonly internalType: "address";
|
|
631
|
+
readonly name: "_token";
|
|
632
|
+
readonly type: "address";
|
|
633
|
+
}
|
|
634
|
+
];
|
|
635
|
+
readonly name: "earned";
|
|
636
|
+
readonly outputs: readonly [
|
|
637
|
+
{
|
|
638
|
+
readonly internalType: "uint256";
|
|
639
|
+
readonly name: "";
|
|
640
|
+
readonly type: "uint256";
|
|
641
|
+
}
|
|
642
|
+
];
|
|
643
|
+
readonly stateMutability: "view";
|
|
644
|
+
readonly type: "function";
|
|
645
|
+
},
|
|
646
|
+
{
|
|
647
|
+
readonly inputs: readonly [
|
|
648
|
+
];
|
|
649
|
+
readonly name: "gauge";
|
|
650
|
+
readonly outputs: readonly [
|
|
651
|
+
{
|
|
652
|
+
readonly internalType: "address";
|
|
653
|
+
readonly name: "";
|
|
654
|
+
readonly type: "address";
|
|
655
|
+
}
|
|
656
|
+
];
|
|
657
|
+
readonly stateMutability: "view";
|
|
658
|
+
readonly type: "function";
|
|
659
|
+
},
|
|
660
|
+
{
|
|
661
|
+
readonly inputs: readonly [
|
|
662
|
+
{
|
|
663
|
+
readonly internalType: "address";
|
|
664
|
+
readonly name: "";
|
|
665
|
+
readonly type: "address";
|
|
666
|
+
}
|
|
667
|
+
];
|
|
668
|
+
readonly name: "isReward";
|
|
669
|
+
readonly outputs: readonly [
|
|
670
|
+
{
|
|
671
|
+
readonly internalType: "bool";
|
|
672
|
+
readonly name: "";
|
|
673
|
+
readonly type: "bool";
|
|
674
|
+
}
|
|
675
|
+
];
|
|
676
|
+
readonly stateMutability: "view";
|
|
677
|
+
readonly type: "function";
|
|
678
|
+
},
|
|
679
|
+
{
|
|
680
|
+
readonly inputs: readonly [
|
|
681
|
+
{
|
|
682
|
+
readonly internalType: "address";
|
|
683
|
+
readonly name: "forwarder";
|
|
684
|
+
readonly type: "address";
|
|
685
|
+
}
|
|
686
|
+
];
|
|
687
|
+
readonly name: "isTrustedForwarder";
|
|
688
|
+
readonly outputs: readonly [
|
|
689
|
+
{
|
|
690
|
+
readonly internalType: "bool";
|
|
691
|
+
readonly name: "";
|
|
692
|
+
readonly type: "bool";
|
|
693
|
+
}
|
|
694
|
+
];
|
|
695
|
+
readonly stateMutability: "view";
|
|
696
|
+
readonly type: "function";
|
|
697
|
+
},
|
|
698
|
+
{
|
|
699
|
+
readonly inputs: readonly [
|
|
700
|
+
{
|
|
701
|
+
readonly internalType: "address";
|
|
702
|
+
readonly name: "token";
|
|
703
|
+
readonly type: "address";
|
|
704
|
+
}
|
|
705
|
+
];
|
|
706
|
+
readonly name: "lastTimeRewardApplicable";
|
|
707
|
+
readonly outputs: readonly [
|
|
708
|
+
{
|
|
709
|
+
readonly internalType: "uint256";
|
|
710
|
+
readonly name: "";
|
|
711
|
+
readonly type: "uint256";
|
|
712
|
+
}
|
|
713
|
+
];
|
|
714
|
+
readonly stateMutability: "view";
|
|
715
|
+
readonly type: "function";
|
|
716
|
+
},
|
|
717
|
+
{
|
|
718
|
+
readonly inputs: readonly [
|
|
719
|
+
{
|
|
720
|
+
readonly internalType: "address";
|
|
721
|
+
readonly name: "";
|
|
722
|
+
readonly type: "address";
|
|
723
|
+
}
|
|
724
|
+
];
|
|
725
|
+
readonly name: "lastUpdateTime";
|
|
726
|
+
readonly outputs: readonly [
|
|
727
|
+
{
|
|
728
|
+
readonly internalType: "uint256";
|
|
729
|
+
readonly name: "";
|
|
730
|
+
readonly type: "uint256";
|
|
731
|
+
}
|
|
732
|
+
];
|
|
733
|
+
readonly stateMutability: "view";
|
|
734
|
+
readonly type: "function";
|
|
735
|
+
},
|
|
736
|
+
{
|
|
737
|
+
readonly inputs: readonly [
|
|
738
|
+
{
|
|
739
|
+
readonly internalType: "address";
|
|
740
|
+
readonly name: "token";
|
|
741
|
+
readonly type: "address";
|
|
742
|
+
}
|
|
743
|
+
];
|
|
744
|
+
readonly name: "left";
|
|
745
|
+
readonly outputs: readonly [
|
|
746
|
+
{
|
|
747
|
+
readonly internalType: "uint256";
|
|
748
|
+
readonly name: "";
|
|
749
|
+
readonly type: "uint256";
|
|
750
|
+
}
|
|
751
|
+
];
|
|
752
|
+
readonly stateMutability: "view";
|
|
753
|
+
readonly type: "function";
|
|
754
|
+
},
|
|
755
|
+
{
|
|
756
|
+
readonly inputs: readonly [
|
|
757
|
+
];
|
|
758
|
+
readonly name: "limitTokenNum";
|
|
759
|
+
readonly outputs: readonly [
|
|
760
|
+
{
|
|
761
|
+
readonly internalType: "uint256";
|
|
762
|
+
readonly name: "";
|
|
763
|
+
readonly type: "uint256";
|
|
764
|
+
}
|
|
765
|
+
];
|
|
766
|
+
readonly stateMutability: "view";
|
|
767
|
+
readonly type: "function";
|
|
768
|
+
},
|
|
769
|
+
{
|
|
770
|
+
readonly inputs: readonly [
|
|
771
|
+
{
|
|
772
|
+
readonly internalType: "address";
|
|
773
|
+
readonly name: "_token";
|
|
774
|
+
readonly type: "address";
|
|
775
|
+
},
|
|
776
|
+
{
|
|
777
|
+
readonly internalType: "uint256";
|
|
778
|
+
readonly name: "_amount";
|
|
779
|
+
readonly type: "uint256";
|
|
780
|
+
}
|
|
781
|
+
];
|
|
782
|
+
readonly name: "notifyRewardAmount";
|
|
783
|
+
readonly outputs: readonly [
|
|
784
|
+
];
|
|
785
|
+
readonly stateMutability: "nonpayable";
|
|
786
|
+
readonly type: "function";
|
|
787
|
+
},
|
|
788
|
+
{
|
|
789
|
+
readonly inputs: readonly [
|
|
790
|
+
{
|
|
791
|
+
readonly internalType: "address";
|
|
792
|
+
readonly name: "";
|
|
793
|
+
readonly type: "address";
|
|
794
|
+
}
|
|
795
|
+
];
|
|
796
|
+
readonly name: "periodFinish";
|
|
797
|
+
readonly outputs: readonly [
|
|
798
|
+
{
|
|
799
|
+
readonly internalType: "uint256";
|
|
800
|
+
readonly name: "";
|
|
801
|
+
readonly type: "uint256";
|
|
802
|
+
}
|
|
803
|
+
];
|
|
804
|
+
readonly stateMutability: "view";
|
|
805
|
+
readonly type: "function";
|
|
806
|
+
},
|
|
807
|
+
{
|
|
808
|
+
readonly inputs: readonly [
|
|
809
|
+
];
|
|
810
|
+
readonly name: "rewardAllTokens";
|
|
811
|
+
readonly outputs: readonly [
|
|
812
|
+
{
|
|
813
|
+
readonly internalType: "address[]";
|
|
814
|
+
readonly name: "";
|
|
815
|
+
readonly type: "address[]";
|
|
816
|
+
}
|
|
817
|
+
];
|
|
818
|
+
readonly stateMutability: "view";
|
|
819
|
+
readonly type: "function";
|
|
820
|
+
},
|
|
821
|
+
{
|
|
822
|
+
readonly inputs: readonly [
|
|
823
|
+
{
|
|
824
|
+
readonly internalType: "address";
|
|
825
|
+
readonly name: "token";
|
|
826
|
+
readonly type: "address";
|
|
827
|
+
}
|
|
828
|
+
];
|
|
829
|
+
readonly name: "rewardPerToken";
|
|
830
|
+
readonly outputs: readonly [
|
|
831
|
+
{
|
|
832
|
+
readonly internalType: "uint256";
|
|
833
|
+
readonly name: "";
|
|
834
|
+
readonly type: "uint256";
|
|
835
|
+
}
|
|
836
|
+
];
|
|
837
|
+
readonly stateMutability: "view";
|
|
838
|
+
readonly type: "function";
|
|
839
|
+
},
|
|
840
|
+
{
|
|
841
|
+
readonly inputs: readonly [
|
|
842
|
+
{
|
|
843
|
+
readonly internalType: "address";
|
|
844
|
+
readonly name: "";
|
|
845
|
+
readonly type: "address";
|
|
846
|
+
}
|
|
847
|
+
];
|
|
848
|
+
readonly name: "rewardPerTokenStored";
|
|
849
|
+
readonly outputs: readonly [
|
|
850
|
+
{
|
|
851
|
+
readonly internalType: "uint256";
|
|
852
|
+
readonly name: "";
|
|
853
|
+
readonly type: "uint256";
|
|
854
|
+
}
|
|
855
|
+
];
|
|
856
|
+
readonly stateMutability: "view";
|
|
857
|
+
readonly type: "function";
|
|
858
|
+
},
|
|
859
|
+
{
|
|
860
|
+
readonly inputs: readonly [
|
|
861
|
+
{
|
|
862
|
+
readonly internalType: "address";
|
|
863
|
+
readonly name: "";
|
|
864
|
+
readonly type: "address";
|
|
865
|
+
}
|
|
866
|
+
];
|
|
867
|
+
readonly name: "rewardRate";
|
|
868
|
+
readonly outputs: readonly [
|
|
869
|
+
{
|
|
870
|
+
readonly internalType: "uint256";
|
|
871
|
+
readonly name: "";
|
|
872
|
+
readonly type: "uint256";
|
|
873
|
+
}
|
|
874
|
+
];
|
|
875
|
+
readonly stateMutability: "view";
|
|
876
|
+
readonly type: "function";
|
|
877
|
+
},
|
|
878
|
+
{
|
|
879
|
+
readonly inputs: readonly [
|
|
880
|
+
{
|
|
881
|
+
readonly internalType: "uint256";
|
|
882
|
+
readonly name: "";
|
|
883
|
+
readonly type: "uint256";
|
|
884
|
+
},
|
|
885
|
+
{
|
|
886
|
+
readonly internalType: "address";
|
|
887
|
+
readonly name: "";
|
|
888
|
+
readonly type: "address";
|
|
889
|
+
}
|
|
890
|
+
];
|
|
891
|
+
readonly name: "rewardRateByEpoch";
|
|
892
|
+
readonly outputs: readonly [
|
|
893
|
+
{
|
|
894
|
+
readonly internalType: "uint256";
|
|
895
|
+
readonly name: "";
|
|
896
|
+
readonly type: "uint256";
|
|
897
|
+
}
|
|
898
|
+
];
|
|
899
|
+
readonly stateMutability: "view";
|
|
900
|
+
readonly type: "function";
|
|
901
|
+
},
|
|
902
|
+
{
|
|
903
|
+
readonly inputs: readonly [
|
|
904
|
+
{
|
|
905
|
+
readonly internalType: "uint256";
|
|
906
|
+
readonly name: "";
|
|
907
|
+
readonly type: "uint256";
|
|
908
|
+
}
|
|
909
|
+
];
|
|
910
|
+
readonly name: "rewardTokens";
|
|
911
|
+
readonly outputs: readonly [
|
|
912
|
+
{
|
|
913
|
+
readonly internalType: "address";
|
|
914
|
+
readonly name: "";
|
|
915
|
+
readonly type: "address";
|
|
916
|
+
}
|
|
917
|
+
];
|
|
918
|
+
readonly stateMutability: "view";
|
|
919
|
+
readonly type: "function";
|
|
920
|
+
},
|
|
921
|
+
{
|
|
922
|
+
readonly inputs: readonly [
|
|
923
|
+
{
|
|
924
|
+
readonly internalType: "address";
|
|
925
|
+
readonly name: "";
|
|
926
|
+
readonly type: "address";
|
|
927
|
+
},
|
|
928
|
+
{
|
|
929
|
+
readonly internalType: "address";
|
|
930
|
+
readonly name: "";
|
|
931
|
+
readonly type: "address";
|
|
932
|
+
}
|
|
933
|
+
];
|
|
934
|
+
readonly name: "rewards";
|
|
935
|
+
readonly outputs: readonly [
|
|
936
|
+
{
|
|
937
|
+
readonly internalType: "uint256";
|
|
938
|
+
readonly name: "";
|
|
939
|
+
readonly type: "uint256";
|
|
940
|
+
}
|
|
941
|
+
];
|
|
942
|
+
readonly stateMutability: "view";
|
|
943
|
+
readonly type: "function";
|
|
944
|
+
},
|
|
945
|
+
{
|
|
946
|
+
readonly inputs: readonly [
|
|
947
|
+
];
|
|
948
|
+
readonly name: "rewardsListLength";
|
|
949
|
+
readonly outputs: readonly [
|
|
950
|
+
{
|
|
951
|
+
readonly internalType: "uint256";
|
|
952
|
+
readonly name: "";
|
|
953
|
+
readonly type: "uint256";
|
|
954
|
+
}
|
|
955
|
+
];
|
|
956
|
+
readonly stateMutability: "view";
|
|
957
|
+
readonly type: "function";
|
|
958
|
+
},
|
|
959
|
+
{
|
|
960
|
+
readonly inputs: readonly [
|
|
961
|
+
{
|
|
962
|
+
readonly internalType: "address";
|
|
963
|
+
readonly name: "_gauge";
|
|
964
|
+
readonly type: "address";
|
|
965
|
+
}
|
|
966
|
+
];
|
|
967
|
+
readonly name: "setGauge";
|
|
968
|
+
readonly outputs: readonly [
|
|
969
|
+
];
|
|
970
|
+
readonly stateMutability: "nonpayable";
|
|
971
|
+
readonly type: "function";
|
|
972
|
+
},
|
|
973
|
+
{
|
|
974
|
+
readonly inputs: readonly [
|
|
975
|
+
];
|
|
976
|
+
readonly name: "totalSupply";
|
|
977
|
+
readonly outputs: readonly [
|
|
978
|
+
{
|
|
979
|
+
readonly internalType: "uint256";
|
|
980
|
+
readonly name: "";
|
|
981
|
+
readonly type: "uint256";
|
|
982
|
+
}
|
|
983
|
+
];
|
|
984
|
+
readonly stateMutability: "view";
|
|
985
|
+
readonly type: "function";
|
|
986
|
+
},
|
|
987
|
+
{
|
|
988
|
+
readonly inputs: readonly [
|
|
989
|
+
{
|
|
990
|
+
readonly internalType: "address";
|
|
991
|
+
readonly name: "";
|
|
992
|
+
readonly type: "address";
|
|
993
|
+
},
|
|
994
|
+
{
|
|
995
|
+
readonly internalType: "address";
|
|
996
|
+
readonly name: "";
|
|
997
|
+
readonly type: "address";
|
|
998
|
+
}
|
|
999
|
+
];
|
|
1000
|
+
readonly name: "userRewardPerTokenPaid";
|
|
1001
|
+
readonly outputs: readonly [
|
|
1002
|
+
{
|
|
1003
|
+
readonly internalType: "uint256";
|
|
1004
|
+
readonly name: "";
|
|
1005
|
+
readonly type: "uint256";
|
|
1006
|
+
}
|
|
1007
|
+
];
|
|
1008
|
+
readonly stateMutability: "view";
|
|
1009
|
+
readonly type: "function";
|
|
1010
|
+
},
|
|
1011
|
+
{
|
|
1012
|
+
readonly inputs: readonly [
|
|
1013
|
+
];
|
|
1014
|
+
readonly name: "voter";
|
|
1015
|
+
readonly outputs: readonly [
|
|
1016
|
+
{
|
|
1017
|
+
readonly internalType: "address";
|
|
1018
|
+
readonly name: "";
|
|
1019
|
+
readonly type: "address";
|
|
1020
|
+
}
|
|
1021
|
+
];
|
|
1022
|
+
readonly stateMutability: "view";
|
|
1023
|
+
readonly type: "function";
|
|
1024
|
+
},
|
|
1025
|
+
{
|
|
1026
|
+
readonly inputs: readonly [
|
|
1027
|
+
{
|
|
1028
|
+
readonly internalType: "uint256";
|
|
1029
|
+
readonly name: "_amount";
|
|
1030
|
+
readonly type: "uint256";
|
|
1031
|
+
},
|
|
1032
|
+
{
|
|
1033
|
+
readonly internalType: "address";
|
|
1034
|
+
readonly name: "_recipient";
|
|
1035
|
+
readonly type: "address";
|
|
1036
|
+
}
|
|
1037
|
+
];
|
|
1038
|
+
readonly name: "withdraw";
|
|
1039
|
+
readonly outputs: readonly [
|
|
1040
|
+
];
|
|
1041
|
+
readonly stateMutability: "nonpayable";
|
|
1042
|
+
readonly type: "function";
|
|
1043
|
+
}
|
|
1044
|
+
];
|
|
1045
|
+
left: (token: `0x${string}`) => Promise<any>;
|
|
1046
|
+
gauge: () => Promise<any>;
|
|
1047
|
+
voter: () => Promise<any>;
|
|
1048
|
+
earned: (_account: `0x${string}`, _token: `0x${string}`) => Promise<any>;
|
|
1049
|
+
allRewards(account: `0x${string}`): Promise<any[]>;
|
|
1050
|
+
rewards: (_: `0x${string}`, __: `0x${string}`) => Promise<any>;
|
|
1051
|
+
isReward: (_: `0x${string}`) => Promise<any>;
|
|
1052
|
+
balanceOf: (_: `0x${string}`) => Promise<any>;
|
|
1053
|
+
rewardRate: (_: `0x${string}`) => Promise<any>;
|
|
1054
|
+
totalSupply: () => Promise<any>;
|
|
1055
|
+
periodFinish: (_: `0x${string}`) => Promise<any>;
|
|
1056
|
+
rewardTokens: (_: string) => Promise<any>;
|
|
1057
|
+
limitTokenNum: () => Promise<any>;
|
|
1058
|
+
lastUpdateTime: (_: `0x${string}`) => Promise<any>;
|
|
1059
|
+
rewardPerToken: (token: `0x${string}`) => Promise<any>;
|
|
1060
|
+
rewardAllTokens: () => Promise<any>;
|
|
1061
|
+
rewardRateByEpoch: (_: string, __: `0x${string}`) => Promise<any>;
|
|
1062
|
+
rewardsListLength: () => Promise<any>;
|
|
1063
|
+
isTrustedForwarder: (forwarder: `0x${string}`) => Promise<any>;
|
|
1064
|
+
deposit: (_amount: string, _recipient: `0x${string}`) => Promise<any>;
|
|
1065
|
+
setGauge: (_gauge: `0x${string}`) => Promise<any>;
|
|
1066
|
+
withdraw: (_amount: string, _recipient: `0x${string}`) => Promise<any>;
|
|
1067
|
+
claimReward: (tokens: any[]) => Promise<any>;
|
|
1068
|
+
addRewardToken: (token: `0x${string}`) => Promise<any>;
|
|
1069
|
+
notifyRewardAmount: (_token: `0x${string}`, _amount: string) => Promise<any>;
|
|
1070
|
+
}
|
|
377
1071
|
declare class ERC721Entity {
|
|
378
1072
|
address: `0x${string}`;
|
|
379
1073
|
chainId: string;
|
|
@@ -2482,7 +3176,7 @@ declare class GaugeEntity {
|
|
|
2482
3176
|
balanceOfUSD: string;
|
|
2483
3177
|
}>;
|
|
2484
3178
|
StakingToken: ERC20Entity;
|
|
2485
|
-
Incentive:
|
|
3179
|
+
Incentive: IncentivesEntity;
|
|
2486
3180
|
totalSupply(): Promise<{
|
|
2487
3181
|
totalSupply: {
|
|
2488
3182
|
value: string;
|
|
@@ -3752,6 +4446,12 @@ declare class MarshallDao {
|
|
|
3752
4446
|
totalVote: true;
|
|
3753
4447
|
votingApr: true;
|
|
3754
4448
|
stakingTokenInfo: true;
|
|
4449
|
+
Incentive: {
|
|
4450
|
+
allRewards: [
|
|
4451
|
+
`0x${string}`
|
|
4452
|
+
];
|
|
4453
|
+
rewardAllTokens: true;
|
|
4454
|
+
};
|
|
3755
4455
|
}>[] | undefined>;
|
|
3756
4456
|
voterInfo(args: {
|
|
3757
4457
|
account: `0x${string}`;
|
|
@@ -3765,6 +4465,10 @@ declare class MarshallDao {
|
|
|
3765
4465
|
];
|
|
3766
4466
|
weeklyVoteEmissions: true;
|
|
3767
4467
|
}> | undefined>;
|
|
4468
|
+
voteToGauge(args: {
|
|
4469
|
+
stakingTokens: `0x${string}`[];
|
|
4470
|
+
weights: number[];
|
|
4471
|
+
}): Promise<any>;
|
|
3768
4472
|
depositToGauge(args: {
|
|
3769
4473
|
gagueAddress: `0x${string}`;
|
|
3770
4474
|
amountOrTokenId: string;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@iotexproject/kit",
|
|
3
3
|
"module": "index.ts",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "v0.0.
|
|
5
|
+
"version": "v0.0.18",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
8
|
"scripts": {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"viem": "^2.17.5"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@dappworks/kit": "0.4.
|
|
31
|
+
"@dappworks/kit": "0.4.137",
|
|
32
32
|
"@types/bun": "latest",
|
|
33
33
|
"bun-plugin-dts": "^0.2.3",
|
|
34
34
|
"hono": "^4.4.11",
|