@@ -28,14 +28,6 @@ pub(super) struct Inputs {
2828 pub ( super ) proposals_path : PathBuf ,
2929}
3030
31- /// A set of files required to calculate proposer rewards. There is one set per proposal, which are
32- /// then later merged with csv_merger.py
33- pub ( super ) struct ProposalFiles {
34-
35- }
36-
37-
38-
3931#[ derive( Debug , Deserialize ) ]
4032pub ( super ) struct Outputs {
4133 pub ( super ) voter_rewards_output : PathBuf ,
@@ -46,8 +38,36 @@ pub(super) struct Outputs {
4638
4739#[ derive( Debug , Deserialize ) ]
4840pub ( super ) struct Params {
49- pub ( super ) registration_threshold : u64 ,
41+ pub ( super ) voter_params : VoterParams ,
42+ pub ( super ) proposer_params : ProposerParams ,
43+ pub ( super ) ca_params : CaParams ,
44+ pub ( super ) vca_params : VcaParams ,
45+ }
46+
47+ #[ derive( Debug , Deserialize ) ]
48+ pub ( super ) struct VoterParams {
49+ pub ( super ) total_rewards : u64 ,
5050 pub ( super ) vote_threshold : u64 ,
51+ pub ( super ) registration_threshold : u64 ,
52+ }
53+
54+ #[ derive( Debug , Deserialize ) ]
55+ pub ( super ) struct ProposerParams {
56+ pub ( super ) total_rewards : u64 ,
57+ pub ( super ) stake_threshold : f64 ,
58+ pub ( super ) approval_threshold : f64 ,
59+ pub ( super ) pattern : String ,
60+ }
61+
62+ #[ derive( Debug , Deserialize ) ]
63+ pub ( super ) struct CaParams {
64+ pub ( super ) rewards_slots : ProposalRewardsSlotsOpt ,
65+ pub ( super ) fund_settings : FundSettingOpt ,
66+ pub ( super ) seed : String ,
67+ }
68+
69+ #[ derive( Debug , Deserialize ) ]
70+ pub ( super ) struct VcaParams {
5171 pub ( super ) total_rewards : u64 ,
5272 pub ( super ) rewards_agreement_rate_cutoffs : Vec < Decimal > ,
5373 pub ( super ) rewards_agreement_rate_modifiers : Vec < Decimal > ,
@@ -56,9 +76,4 @@ pub(super) struct Params {
5676 pub ( super ) min_rankings : usize ,
5777 pub ( super ) max_rankings_reputation : usize ,
5878 pub ( super ) max_rankings_rewards : usize ,
59- pub ( super ) rewards_slots : ProposalRewardsSlotsOpt ,
60- pub ( super ) fund_settings : FundSettingOpt ,
61- pub ( super ) ca_seed : String ,
62- pub ( super ) proposer_stake_threshold : f64 ,
63- pub ( super ) proposer_approval_threshold : f64 ,
6479}
0 commit comments