|
@@ -6,37 +6,41 @@ use rstd::vec::Vec;
|
|
|
use serde::{Deserialize, Serialize};
|
|
|
|
|
|
use crate::ElectionParameters;
|
|
|
+use roles::actors::RoleParameters;
|
|
|
|
|
|
/// Proposal details provide voters the information required for the perceived voting.
|
|
|
#[cfg_attr(feature = "std", derive(Serialize, Deserialize))]
|
|
|
#[derive(Encode, Decode, Clone, PartialEq, Debug)]
|
|
|
pub enum ProposalDetails<MintedBalance, CurrencyBalance, BlockNumber, AccountId, MemberId> {
|
|
|
- /// The text of the `text proposal`
|
|
|
+ /// The text of the `text` proposal
|
|
|
Text(Vec<u8>),
|
|
|
|
|
|
- /// The hash of wasm code for the `runtime upgrade proposal`
|
|
|
+ /// The hash of wasm code for the `runtime upgrade` proposal
|
|
|
RuntimeUpgrade(Vec<u8>),
|
|
|
|
|
|
- /// Election parameters for the `set election parameters proposal`
|
|
|
+ /// Election parameters for the `set election parameters` proposal
|
|
|
SetElectionParameters(ElectionParameters<CurrencyBalance, BlockNumber>),
|
|
|
|
|
|
- /// Balance and destination account for the `spending proposal`
|
|
|
+ /// Balance and destination account for the `spending` proposal
|
|
|
Spending(MintedBalance, AccountId),
|
|
|
|
|
|
- /// New leader memberId and account_id for the `set lead proposal`
|
|
|
+ /// New leader memberId and account_id for the `set lead` proposal
|
|
|
SetLead(Option<(MemberId, AccountId)>),
|
|
|
|
|
|
- /// Balance for the `set council mint capacity proposal`
|
|
|
+ /// Balance for the `set council mint capacity` proposal
|
|
|
SetCouncilMintCapacity(MintedBalance),
|
|
|
|
|
|
- /// Balance for the `set content working group mint capacity proposal`
|
|
|
+ /// Balance for the `set content working group mint capacity` proposal
|
|
|
SetContentWorkingGroupMintCapacity(MintedBalance),
|
|
|
|
|
|
- /// AccountId for the `evict storage provider proposal`
|
|
|
+ /// AccountId for the `evict storage provider` proposal
|
|
|
EvictStorageProvider(AccountId),
|
|
|
|
|
|
- /// Validator count for the `set validator count proposal`
|
|
|
+ /// Validator count for the `set validator count` proposal
|
|
|
SetValidatorCount(u32),
|
|
|
+
|
|
|
+ /// Role parameters for the `set storage role parameters` proposal
|
|
|
+ SetStorageRoleParameters(RoleParameters<CurrencyBalance, BlockNumber>),
|
|
|
}
|
|
|
|
|
|
impl<MintedBalance, CurrencyBalance, BlockNumber, AccountId, MemberId> Default
|