@streamflow/staking 11.0.4 → 11.1.0-alpha.p335.b571df3
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/README.md +44 -3
- package/dist/cjs/index.cjs +732 -109
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/index.d.cts +683 -73
- package/dist/esm/index.d.ts +683 -73
- package/dist/esm/index.js +732 -110
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/solana/descriptor/idl/reward_pool_dynamic.json +664 -73
- package/package.json +4 -4
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"address": "RWRDyfZa6Rk9UYi85yjYYfGmoUqffLqjo6vZdFawEez",
|
|
3
3
|
"metadata": {
|
|
4
4
|
"name": "reward_pool_dynamic",
|
|
5
|
-
"version": "2.
|
|
5
|
+
"version": "2.6.0",
|
|
6
6
|
"spec": "0.1.0",
|
|
7
7
|
"description": "Reward pools with dynamic rewards distribution"
|
|
8
8
|
},
|
|
@@ -459,6 +459,173 @@
|
|
|
459
459
|
],
|
|
460
460
|
"args": []
|
|
461
461
|
},
|
|
462
|
+
{
|
|
463
|
+
"name": "create_fund_delegate",
|
|
464
|
+
"discriminator": [
|
|
465
|
+
131,
|
|
466
|
+
15,
|
|
467
|
+
250,
|
|
468
|
+
148,
|
|
469
|
+
39,
|
|
470
|
+
103,
|
|
471
|
+
14,
|
|
472
|
+
232
|
|
473
|
+
],
|
|
474
|
+
"accounts": [
|
|
475
|
+
{
|
|
476
|
+
"name": "reward_pool",
|
|
477
|
+
"docs": [
|
|
478
|
+
"Reward Pool"
|
|
479
|
+
]
|
|
480
|
+
},
|
|
481
|
+
{
|
|
482
|
+
"name": "mint",
|
|
483
|
+
"docs": [
|
|
484
|
+
"Mint of reward tokens"
|
|
485
|
+
],
|
|
486
|
+
"relations": [
|
|
487
|
+
"reward_pool"
|
|
488
|
+
]
|
|
489
|
+
},
|
|
490
|
+
{
|
|
491
|
+
"name": "fund_delegate",
|
|
492
|
+
"docs": [
|
|
493
|
+
"Fund Delegate account that stores fund configuration"
|
|
494
|
+
],
|
|
495
|
+
"writable": true,
|
|
496
|
+
"pda": {
|
|
497
|
+
"seeds": [
|
|
498
|
+
{
|
|
499
|
+
"kind": "const",
|
|
500
|
+
"value": [
|
|
501
|
+
102,
|
|
502
|
+
117,
|
|
503
|
+
110,
|
|
504
|
+
100,
|
|
505
|
+
45,
|
|
506
|
+
100,
|
|
507
|
+
101,
|
|
508
|
+
108,
|
|
509
|
+
101,
|
|
510
|
+
103,
|
|
511
|
+
97,
|
|
512
|
+
116,
|
|
513
|
+
101
|
|
514
|
+
]
|
|
515
|
+
},
|
|
516
|
+
{
|
|
517
|
+
"kind": "account",
|
|
518
|
+
"path": "reward_pool"
|
|
519
|
+
}
|
|
520
|
+
]
|
|
521
|
+
}
|
|
522
|
+
},
|
|
523
|
+
{
|
|
524
|
+
"name": "token_account",
|
|
525
|
+
"docs": [
|
|
526
|
+
"Token account that stores tokens for funding, should be topped up prior to funding"
|
|
527
|
+
],
|
|
528
|
+
"writable": true,
|
|
529
|
+
"pda": {
|
|
530
|
+
"seeds": [
|
|
531
|
+
{
|
|
532
|
+
"kind": "account",
|
|
533
|
+
"path": "fund_delegate"
|
|
534
|
+
},
|
|
535
|
+
{
|
|
536
|
+
"kind": "account",
|
|
537
|
+
"path": "token_program"
|
|
538
|
+
},
|
|
539
|
+
{
|
|
540
|
+
"kind": "account",
|
|
541
|
+
"path": "mint"
|
|
542
|
+
}
|
|
543
|
+
],
|
|
544
|
+
"program": {
|
|
545
|
+
"kind": "const",
|
|
546
|
+
"value": [
|
|
547
|
+
140,
|
|
548
|
+
151,
|
|
549
|
+
37,
|
|
550
|
+
143,
|
|
551
|
+
78,
|
|
552
|
+
36,
|
|
553
|
+
137,
|
|
554
|
+
241,
|
|
555
|
+
187,
|
|
556
|
+
61,
|
|
557
|
+
16,
|
|
558
|
+
41,
|
|
559
|
+
20,
|
|
560
|
+
142,
|
|
561
|
+
13,
|
|
562
|
+
131,
|
|
563
|
+
11,
|
|
564
|
+
90,
|
|
565
|
+
19,
|
|
566
|
+
153,
|
|
567
|
+
218,
|
|
568
|
+
255,
|
|
569
|
+
16,
|
|
570
|
+
132,
|
|
571
|
+
4,
|
|
572
|
+
142,
|
|
573
|
+
123,
|
|
574
|
+
216,
|
|
575
|
+
219,
|
|
576
|
+
233,
|
|
577
|
+
248,
|
|
578
|
+
89
|
|
579
|
+
]
|
|
580
|
+
}
|
|
581
|
+
}
|
|
582
|
+
},
|
|
583
|
+
{
|
|
584
|
+
"name": "authority",
|
|
585
|
+
"docs": [
|
|
586
|
+
"Reward Pool authority"
|
|
587
|
+
],
|
|
588
|
+
"writable": true,
|
|
589
|
+
"signer": true,
|
|
590
|
+
"relations": [
|
|
591
|
+
"reward_pool"
|
|
592
|
+
]
|
|
593
|
+
},
|
|
594
|
+
{
|
|
595
|
+
"name": "worker",
|
|
596
|
+
"writable": true,
|
|
597
|
+
"address": "wdrwhnCv4pzW8beKsbPa4S2UDZrXenjg16KJdKSpb5u"
|
|
598
|
+
},
|
|
599
|
+
{
|
|
600
|
+
"name": "associated_token_program",
|
|
601
|
+
"docs": [
|
|
602
|
+
"The [Associated Token] program."
|
|
603
|
+
],
|
|
604
|
+
"address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
|
|
605
|
+
},
|
|
606
|
+
{
|
|
607
|
+
"name": "token_program"
|
|
608
|
+
},
|
|
609
|
+
{
|
|
610
|
+
"name": "system_program",
|
|
611
|
+
"address": "11111111111111111111111111111111"
|
|
612
|
+
}
|
|
613
|
+
],
|
|
614
|
+
"args": [
|
|
615
|
+
{
|
|
616
|
+
"name": "start_ts",
|
|
617
|
+
"type": "u64"
|
|
618
|
+
},
|
|
619
|
+
{
|
|
620
|
+
"name": "period",
|
|
621
|
+
"type": "u64"
|
|
622
|
+
},
|
|
623
|
+
{
|
|
624
|
+
"name": "expiry_ts",
|
|
625
|
+
"type": "u64"
|
|
626
|
+
}
|
|
627
|
+
]
|
|
628
|
+
},
|
|
462
629
|
{
|
|
463
630
|
"name": "create_pool",
|
|
464
631
|
"discriminator": [
|
|
@@ -487,115 +654,398 @@
|
|
|
487
654
|
"pda": {
|
|
488
655
|
"seeds": [
|
|
489
656
|
{
|
|
490
|
-
"kind": "const",
|
|
491
|
-
"value": [
|
|
492
|
-
114,
|
|
493
|
-
101,
|
|
494
|
-
119,
|
|
495
|
-
97,
|
|
496
|
-
114,
|
|
497
|
-
100,
|
|
498
|
-
45,
|
|
499
|
-
112,
|
|
500
|
-
111,
|
|
501
|
-
111,
|
|
502
|
-
108
|
|
503
|
-
]
|
|
657
|
+
"kind": "const",
|
|
658
|
+
"value": [
|
|
659
|
+
114,
|
|
660
|
+
101,
|
|
661
|
+
119,
|
|
662
|
+
97,
|
|
663
|
+
114,
|
|
664
|
+
100,
|
|
665
|
+
45,
|
|
666
|
+
112,
|
|
667
|
+
111,
|
|
668
|
+
111,
|
|
669
|
+
108
|
|
670
|
+
]
|
|
671
|
+
},
|
|
672
|
+
{
|
|
673
|
+
"kind": "account",
|
|
674
|
+
"path": "stake_pool"
|
|
675
|
+
},
|
|
676
|
+
{
|
|
677
|
+
"kind": "account",
|
|
678
|
+
"path": "mint"
|
|
679
|
+
},
|
|
680
|
+
{
|
|
681
|
+
"kind": "arg",
|
|
682
|
+
"path": "nonce"
|
|
683
|
+
}
|
|
684
|
+
]
|
|
685
|
+
}
|
|
686
|
+
},
|
|
687
|
+
{
|
|
688
|
+
"name": "mint",
|
|
689
|
+
"docs": [
|
|
690
|
+
"Mint used for rewards"
|
|
691
|
+
]
|
|
692
|
+
},
|
|
693
|
+
{
|
|
694
|
+
"name": "vault",
|
|
695
|
+
"docs": [
|
|
696
|
+
"Escrow Account that will store the tokens"
|
|
697
|
+
],
|
|
698
|
+
"writable": true,
|
|
699
|
+
"pda": {
|
|
700
|
+
"seeds": [
|
|
701
|
+
{
|
|
702
|
+
"kind": "const",
|
|
703
|
+
"value": [
|
|
704
|
+
114,
|
|
705
|
+
101,
|
|
706
|
+
119,
|
|
707
|
+
97,
|
|
708
|
+
114,
|
|
709
|
+
100,
|
|
710
|
+
45,
|
|
711
|
+
118,
|
|
712
|
+
97,
|
|
713
|
+
117,
|
|
714
|
+
108,
|
|
715
|
+
116
|
|
716
|
+
]
|
|
717
|
+
},
|
|
718
|
+
{
|
|
719
|
+
"kind": "account",
|
|
720
|
+
"path": "reward_pool"
|
|
721
|
+
}
|
|
722
|
+
]
|
|
723
|
+
}
|
|
724
|
+
},
|
|
725
|
+
{
|
|
726
|
+
"name": "governor",
|
|
727
|
+
"docs": [
|
|
728
|
+
"Governor to be set for the RewardPool"
|
|
729
|
+
],
|
|
730
|
+
"optional": true
|
|
731
|
+
},
|
|
732
|
+
{
|
|
733
|
+
"name": "creator",
|
|
734
|
+
"docs": [
|
|
735
|
+
"Reward Pool creator"
|
|
736
|
+
],
|
|
737
|
+
"writable": true,
|
|
738
|
+
"signer": true
|
|
739
|
+
},
|
|
740
|
+
{
|
|
741
|
+
"name": "token_program"
|
|
742
|
+
},
|
|
743
|
+
{
|
|
744
|
+
"name": "system_program",
|
|
745
|
+
"address": "11111111111111111111111111111111"
|
|
746
|
+
}
|
|
747
|
+
],
|
|
748
|
+
"args": [
|
|
749
|
+
{
|
|
750
|
+
"name": "nonce",
|
|
751
|
+
"type": "u8"
|
|
752
|
+
},
|
|
753
|
+
{
|
|
754
|
+
"name": "permissionless",
|
|
755
|
+
"type": "bool"
|
|
756
|
+
},
|
|
757
|
+
{
|
|
758
|
+
"name": "claim_period",
|
|
759
|
+
"type": "u64"
|
|
760
|
+
},
|
|
761
|
+
{
|
|
762
|
+
"name": "claim_start_ts",
|
|
763
|
+
"type": "u64"
|
|
764
|
+
}
|
|
765
|
+
]
|
|
766
|
+
},
|
|
767
|
+
{
|
|
768
|
+
"name": "fund_as_delegate",
|
|
769
|
+
"discriminator": [
|
|
770
|
+
165,
|
|
771
|
+
90,
|
|
772
|
+
78,
|
|
773
|
+
137,
|
|
774
|
+
23,
|
|
775
|
+
155,
|
|
776
|
+
220,
|
|
777
|
+
116
|
|
778
|
+
],
|
|
779
|
+
"accounts": [
|
|
780
|
+
{
|
|
781
|
+
"name": "caller",
|
|
782
|
+
"docs": [
|
|
783
|
+
"Worker initiated the transaction"
|
|
784
|
+
],
|
|
785
|
+
"writable": true,
|
|
786
|
+
"signer": true
|
|
787
|
+
},
|
|
788
|
+
{
|
|
789
|
+
"name": "authority",
|
|
790
|
+
"writable": true,
|
|
791
|
+
"relations": [
|
|
792
|
+
"reward_pool"
|
|
793
|
+
]
|
|
794
|
+
},
|
|
795
|
+
{
|
|
796
|
+
"name": "from",
|
|
797
|
+
"docs": [
|
|
798
|
+
"Token Account from which tokens will be transferred"
|
|
799
|
+
],
|
|
800
|
+
"writable": true,
|
|
801
|
+
"pda": {
|
|
802
|
+
"seeds": [
|
|
803
|
+
{
|
|
804
|
+
"kind": "account",
|
|
805
|
+
"path": "fund_delegate"
|
|
806
|
+
},
|
|
807
|
+
{
|
|
808
|
+
"kind": "account",
|
|
809
|
+
"path": "token_program"
|
|
810
|
+
},
|
|
811
|
+
{
|
|
812
|
+
"kind": "account",
|
|
813
|
+
"path": "mint"
|
|
814
|
+
}
|
|
815
|
+
],
|
|
816
|
+
"program": {
|
|
817
|
+
"kind": "const",
|
|
818
|
+
"value": [
|
|
819
|
+
140,
|
|
820
|
+
151,
|
|
821
|
+
37,
|
|
822
|
+
143,
|
|
823
|
+
78,
|
|
824
|
+
36,
|
|
825
|
+
137,
|
|
826
|
+
241,
|
|
827
|
+
187,
|
|
828
|
+
61,
|
|
829
|
+
16,
|
|
830
|
+
41,
|
|
831
|
+
20,
|
|
832
|
+
142,
|
|
833
|
+
13,
|
|
834
|
+
131,
|
|
835
|
+
11,
|
|
836
|
+
90,
|
|
837
|
+
19,
|
|
838
|
+
153,
|
|
839
|
+
218,
|
|
840
|
+
255,
|
|
841
|
+
16,
|
|
842
|
+
132,
|
|
843
|
+
4,
|
|
844
|
+
142,
|
|
845
|
+
123,
|
|
846
|
+
216,
|
|
847
|
+
219,
|
|
848
|
+
233,
|
|
849
|
+
248,
|
|
850
|
+
89
|
|
851
|
+
]
|
|
852
|
+
}
|
|
853
|
+
}
|
|
854
|
+
},
|
|
855
|
+
{
|
|
856
|
+
"name": "vault",
|
|
857
|
+
"docs": [
|
|
858
|
+
"Reward Pool Vault that stores tokens"
|
|
859
|
+
],
|
|
860
|
+
"writable": true,
|
|
861
|
+
"relations": [
|
|
862
|
+
"reward_pool"
|
|
863
|
+
]
|
|
864
|
+
},
|
|
865
|
+
{
|
|
866
|
+
"name": "mint",
|
|
867
|
+
"docs": [
|
|
868
|
+
"Mint of reward tokens"
|
|
869
|
+
],
|
|
870
|
+
"relations": [
|
|
871
|
+
"reward_pool"
|
|
872
|
+
]
|
|
873
|
+
},
|
|
874
|
+
{
|
|
875
|
+
"name": "stake_pool",
|
|
876
|
+
"docs": [
|
|
877
|
+
"Original Stake Pool"
|
|
878
|
+
],
|
|
879
|
+
"relations": [
|
|
880
|
+
"reward_pool"
|
|
881
|
+
]
|
|
882
|
+
},
|
|
883
|
+
{
|
|
884
|
+
"name": "reward_pool",
|
|
885
|
+
"docs": [
|
|
886
|
+
"Reward Pool"
|
|
887
|
+
],
|
|
888
|
+
"writable": true
|
|
889
|
+
},
|
|
890
|
+
{
|
|
891
|
+
"name": "fund_delegate",
|
|
892
|
+
"docs": [
|
|
893
|
+
"Fund Delegate account that stores fund configuration"
|
|
894
|
+
],
|
|
895
|
+
"writable": true,
|
|
896
|
+
"pda": {
|
|
897
|
+
"seeds": [
|
|
898
|
+
{
|
|
899
|
+
"kind": "const",
|
|
900
|
+
"value": [
|
|
901
|
+
102,
|
|
902
|
+
117,
|
|
903
|
+
110,
|
|
904
|
+
100,
|
|
905
|
+
45,
|
|
906
|
+
100,
|
|
907
|
+
101,
|
|
908
|
+
108,
|
|
909
|
+
101,
|
|
910
|
+
103,
|
|
911
|
+
97,
|
|
912
|
+
116,
|
|
913
|
+
101
|
|
914
|
+
]
|
|
915
|
+
},
|
|
916
|
+
{
|
|
917
|
+
"kind": "account",
|
|
918
|
+
"path": "reward_pool"
|
|
919
|
+
}
|
|
920
|
+
]
|
|
921
|
+
}
|
|
922
|
+
},
|
|
923
|
+
{
|
|
924
|
+
"name": "streamflow_treasury",
|
|
925
|
+
"writable": true,
|
|
926
|
+
"address": "5SEpbdjFK5FxwTvfsGMXVQTD2v4M2c5tyRTxhdsPkgDw"
|
|
927
|
+
},
|
|
928
|
+
{
|
|
929
|
+
"name": "streamflow_treasury_tokens",
|
|
930
|
+
"writable": true,
|
|
931
|
+
"pda": {
|
|
932
|
+
"seeds": [
|
|
933
|
+
{
|
|
934
|
+
"kind": "account",
|
|
935
|
+
"path": "streamflow_treasury"
|
|
504
936
|
},
|
|
505
937
|
{
|
|
506
938
|
"kind": "account",
|
|
507
|
-
"path": "
|
|
939
|
+
"path": "token_program"
|
|
508
940
|
},
|
|
509
941
|
{
|
|
510
942
|
"kind": "account",
|
|
511
943
|
"path": "mint"
|
|
512
|
-
},
|
|
513
|
-
{
|
|
514
|
-
"kind": "arg",
|
|
515
|
-
"path": "nonce"
|
|
516
944
|
}
|
|
517
|
-
]
|
|
945
|
+
],
|
|
946
|
+
"program": {
|
|
947
|
+
"kind": "const",
|
|
948
|
+
"value": [
|
|
949
|
+
140,
|
|
950
|
+
151,
|
|
951
|
+
37,
|
|
952
|
+
143,
|
|
953
|
+
78,
|
|
954
|
+
36,
|
|
955
|
+
137,
|
|
956
|
+
241,
|
|
957
|
+
187,
|
|
958
|
+
61,
|
|
959
|
+
16,
|
|
960
|
+
41,
|
|
961
|
+
20,
|
|
962
|
+
142,
|
|
963
|
+
13,
|
|
964
|
+
131,
|
|
965
|
+
11,
|
|
966
|
+
90,
|
|
967
|
+
19,
|
|
968
|
+
153,
|
|
969
|
+
218,
|
|
970
|
+
255,
|
|
971
|
+
16,
|
|
972
|
+
132,
|
|
973
|
+
4,
|
|
974
|
+
142,
|
|
975
|
+
123,
|
|
976
|
+
216,
|
|
977
|
+
219,
|
|
978
|
+
233,
|
|
979
|
+
248,
|
|
980
|
+
89
|
|
981
|
+
]
|
|
982
|
+
}
|
|
518
983
|
}
|
|
519
984
|
},
|
|
520
985
|
{
|
|
521
|
-
"name": "
|
|
986
|
+
"name": "config",
|
|
522
987
|
"docs": [
|
|
523
|
-
"
|
|
524
|
-
]
|
|
988
|
+
"Fee Configuration"
|
|
989
|
+
],
|
|
990
|
+
"pda": {
|
|
991
|
+
"seeds": [
|
|
992
|
+
{
|
|
993
|
+
"kind": "const",
|
|
994
|
+
"value": [
|
|
995
|
+
99,
|
|
996
|
+
111,
|
|
997
|
+
110,
|
|
998
|
+
102,
|
|
999
|
+
105,
|
|
1000
|
+
103
|
|
1001
|
+
]
|
|
1002
|
+
}
|
|
1003
|
+
],
|
|
1004
|
+
"program": {
|
|
1005
|
+
"kind": "account",
|
|
1006
|
+
"path": "fee_program"
|
|
1007
|
+
}
|
|
1008
|
+
}
|
|
525
1009
|
},
|
|
526
1010
|
{
|
|
527
|
-
"name": "
|
|
528
|
-
"
|
|
529
|
-
"Escrow Account that will store the tokens"
|
|
530
|
-
],
|
|
531
|
-
"writable": true,
|
|
1011
|
+
"name": "fee_value",
|
|
1012
|
+
"optional": true,
|
|
532
1013
|
"pda": {
|
|
533
1014
|
"seeds": [
|
|
534
1015
|
{
|
|
535
1016
|
"kind": "const",
|
|
536
1017
|
"value": [
|
|
537
|
-
|
|
1018
|
+
102,
|
|
1019
|
+
101,
|
|
538
1020
|
101,
|
|
539
|
-
119,
|
|
540
|
-
97,
|
|
541
|
-
114,
|
|
542
|
-
100,
|
|
543
1021
|
45,
|
|
544
1022
|
118,
|
|
545
1023
|
97,
|
|
546
|
-
117,
|
|
547
1024
|
108,
|
|
548
|
-
|
|
1025
|
+
117,
|
|
1026
|
+
101
|
|
549
1027
|
]
|
|
550
1028
|
},
|
|
551
1029
|
{
|
|
552
1030
|
"kind": "account",
|
|
553
|
-
"path": "
|
|
1031
|
+
"path": "authority"
|
|
554
1032
|
}
|
|
555
|
-
]
|
|
1033
|
+
],
|
|
1034
|
+
"program": {
|
|
1035
|
+
"kind": "account",
|
|
1036
|
+
"path": "fee_program"
|
|
1037
|
+
}
|
|
556
1038
|
}
|
|
557
1039
|
},
|
|
558
1040
|
{
|
|
559
|
-
"name": "
|
|
560
|
-
"
|
|
561
|
-
"Governor to be set for the RewardPool"
|
|
562
|
-
],
|
|
563
|
-
"optional": true
|
|
564
|
-
},
|
|
565
|
-
{
|
|
566
|
-
"name": "creator",
|
|
567
|
-
"docs": [
|
|
568
|
-
"Reward Pool creator"
|
|
569
|
-
],
|
|
570
|
-
"writable": true,
|
|
571
|
-
"signer": true
|
|
1041
|
+
"name": "fee_program",
|
|
1042
|
+
"address": "FEELzfBhsWXTNJX53zZcDVfRNoFYZQ6cZA3jLiGVL16V"
|
|
572
1043
|
},
|
|
573
1044
|
{
|
|
574
1045
|
"name": "token_program"
|
|
575
|
-
},
|
|
576
|
-
{
|
|
577
|
-
"name": "system_program",
|
|
578
|
-
"address": "11111111111111111111111111111111"
|
|
579
1046
|
}
|
|
580
1047
|
],
|
|
581
|
-
"args": [
|
|
582
|
-
{
|
|
583
|
-
"name": "nonce",
|
|
584
|
-
"type": "u8"
|
|
585
|
-
},
|
|
586
|
-
{
|
|
587
|
-
"name": "permissionless",
|
|
588
|
-
"type": "bool"
|
|
589
|
-
},
|
|
590
|
-
{
|
|
591
|
-
"name": "claim_period",
|
|
592
|
-
"type": "u64"
|
|
593
|
-
},
|
|
594
|
-
{
|
|
595
|
-
"name": "claim_start_ts",
|
|
596
|
-
"type": "u64"
|
|
597
|
-
}
|
|
598
|
-
]
|
|
1048
|
+
"args": []
|
|
599
1049
|
},
|
|
600
1050
|
{
|
|
601
1051
|
"name": "fund_pool",
|
|
@@ -914,6 +1364,19 @@
|
|
|
914
1364
|
0
|
|
915
1365
|
]
|
|
916
1366
|
},
|
|
1367
|
+
{
|
|
1368
|
+
"name": "FundDelegate",
|
|
1369
|
+
"discriminator": [
|
|
1370
|
+
49,
|
|
1371
|
+
154,
|
|
1372
|
+
133,
|
|
1373
|
+
22,
|
|
1374
|
+
46,
|
|
1375
|
+
68,
|
|
1376
|
+
68,
|
|
1377
|
+
44
|
|
1378
|
+
]
|
|
1379
|
+
},
|
|
917
1380
|
{
|
|
918
1381
|
"name": "Governor",
|
|
919
1382
|
"discriminator": [
|
|
@@ -1078,6 +1541,26 @@
|
|
|
1078
1541
|
"code": 6016,
|
|
1079
1542
|
"name": "VoteRequired",
|
|
1080
1543
|
"msg": "Vote is required for claiming"
|
|
1544
|
+
},
|
|
1545
|
+
{
|
|
1546
|
+
"code": 6017,
|
|
1547
|
+
"name": "InvalidFundStart",
|
|
1548
|
+
"msg": "Fund start can not be in the past"
|
|
1549
|
+
},
|
|
1550
|
+
{
|
|
1551
|
+
"code": 6018,
|
|
1552
|
+
"name": "InvalidFundPeriod",
|
|
1553
|
+
"msg": "Fund period should be >= 1 day and less or equal than expiration"
|
|
1554
|
+
},
|
|
1555
|
+
{
|
|
1556
|
+
"code": 6019,
|
|
1557
|
+
"name": "InvalidFundExpiry",
|
|
1558
|
+
"msg": "Fund expiration should be later than start time"
|
|
1559
|
+
},
|
|
1560
|
+
{
|
|
1561
|
+
"code": 6020,
|
|
1562
|
+
"name": "AlreadyFunded",
|
|
1563
|
+
"msg": "Fund already happened for the current period"
|
|
1081
1564
|
}
|
|
1082
1565
|
],
|
|
1083
1566
|
"types": [
|
|
@@ -1163,6 +1646,114 @@
|
|
|
1163
1646
|
]
|
|
1164
1647
|
}
|
|
1165
1648
|
},
|
|
1649
|
+
{
|
|
1650
|
+
"name": "FundDelegate",
|
|
1651
|
+
"type": {
|
|
1652
|
+
"kind": "struct",
|
|
1653
|
+
"fields": [
|
|
1654
|
+
{
|
|
1655
|
+
"name": "bump",
|
|
1656
|
+
"docs": [
|
|
1657
|
+
"Bump seed"
|
|
1658
|
+
],
|
|
1659
|
+
"type": "u8"
|
|
1660
|
+
},
|
|
1661
|
+
{
|
|
1662
|
+
"name": "buffer",
|
|
1663
|
+
"docs": [
|
|
1664
|
+
"Buffer to account for space"
|
|
1665
|
+
],
|
|
1666
|
+
"type": {
|
|
1667
|
+
"array": [
|
|
1668
|
+
"u8",
|
|
1669
|
+
7
|
|
1670
|
+
]
|
|
1671
|
+
}
|
|
1672
|
+
},
|
|
1673
|
+
{
|
|
1674
|
+
"name": "reward_pool",
|
|
1675
|
+
"docs": [
|
|
1676
|
+
"Reward Pool"
|
|
1677
|
+
],
|
|
1678
|
+
"type": "pubkey"
|
|
1679
|
+
},
|
|
1680
|
+
{
|
|
1681
|
+
"name": "start_ts",
|
|
1682
|
+
"docs": [
|
|
1683
|
+
"Time when the first fund happens"
|
|
1684
|
+
],
|
|
1685
|
+
"type": "u64"
|
|
1686
|
+
},
|
|
1687
|
+
{
|
|
1688
|
+
"name": "period",
|
|
1689
|
+
"docs": [
|
|
1690
|
+
"Period of funds in seconds"
|
|
1691
|
+
],
|
|
1692
|
+
"type": "u64"
|
|
1693
|
+
},
|
|
1694
|
+
{
|
|
1695
|
+
"name": "expiry_ts",
|
|
1696
|
+
"docs": [
|
|
1697
|
+
"Time when vault expires and funds stop"
|
|
1698
|
+
],
|
|
1699
|
+
"type": "u64"
|
|
1700
|
+
},
|
|
1701
|
+
{
|
|
1702
|
+
"name": "last_fund_ts",
|
|
1703
|
+
"docs": [
|
|
1704
|
+
"Time when last fund happened"
|
|
1705
|
+
],
|
|
1706
|
+
"type": "u64"
|
|
1707
|
+
},
|
|
1708
|
+
{
|
|
1709
|
+
"name": "mode",
|
|
1710
|
+
"docs": [
|
|
1711
|
+
"Funding mode, may have its own configuration"
|
|
1712
|
+
],
|
|
1713
|
+
"type": {
|
|
1714
|
+
"defined": {
|
|
1715
|
+
"name": "FundMode"
|
|
1716
|
+
}
|
|
1717
|
+
}
|
|
1718
|
+
},
|
|
1719
|
+
{
|
|
1720
|
+
"name": "buffer_1",
|
|
1721
|
+
"docs": [
|
|
1722
|
+
"Buffer for additional fields"
|
|
1723
|
+
],
|
|
1724
|
+
"type": {
|
|
1725
|
+
"array": [
|
|
1726
|
+
"u8",
|
|
1727
|
+
64
|
|
1728
|
+
]
|
|
1729
|
+
}
|
|
1730
|
+
},
|
|
1731
|
+
{
|
|
1732
|
+
"name": "buffer_2",
|
|
1733
|
+
"docs": [
|
|
1734
|
+
"Buffer for additional fields"
|
|
1735
|
+
],
|
|
1736
|
+
"type": {
|
|
1737
|
+
"array": [
|
|
1738
|
+
"u8",
|
|
1739
|
+
64
|
|
1740
|
+
]
|
|
1741
|
+
}
|
|
1742
|
+
}
|
|
1743
|
+
]
|
|
1744
|
+
}
|
|
1745
|
+
},
|
|
1746
|
+
{
|
|
1747
|
+
"name": "FundMode",
|
|
1748
|
+
"type": {
|
|
1749
|
+
"kind": "enum",
|
|
1750
|
+
"variants": [
|
|
1751
|
+
{
|
|
1752
|
+
"name": "RevShare"
|
|
1753
|
+
}
|
|
1754
|
+
]
|
|
1755
|
+
}
|
|
1756
|
+
},
|
|
1166
1757
|
{
|
|
1167
1758
|
"name": "Governor",
|
|
1168
1759
|
"type": {
|