Skip to content

Commit

Permalink
Merge pull request #2401 from rinor/jcli_vote_plan
Browse files Browse the repository at this point in the history
jcli: voteplan config update
  • Loading branch information
NicolasDP authored Jun 22, 2020
2 parents cc652b0 + 046f0b2 commit d28c422
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion jormungandr-lib/src/interfaces/vote/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use crate::{
use chain_impl_mockchain::{
certificate::{ExternalProposalId, Proposal, Proposals, VoteAction, VotePlan},
header::BlockDate,
ledger::governance::TreasuryGovernanceAction,
ledger::governance::{ParametersGovernanceAction, TreasuryGovernanceAction},
value::Value,
vote::{self, Options, PayloadType},
};
Expand Down Expand Up @@ -58,6 +58,19 @@ enum VoteActionDef {
Treasury {
action: TreasuryGovernanceAction,
},
#[serde(with = "ParametersGovernanceActionDef")]
Parameters {
action: ParametersGovernanceAction,
},
}

#[derive(Deserialize)]
#[serde(remote = "ParametersGovernanceAction", rename_all = "snake_case")]
enum ParametersGovernanceActionDef {
RewardAdd {
#[serde(with = "ValueDef")]
value: Value,
},
}

#[derive(Deserialize)]
Expand Down

0 comments on commit d28c422

Please sign in to comment.