[][src]Trait sunshine_util::traits::VoteOnProposal

pub trait VoteOnProposal<AccountId, Hash, BlockNumber, FineArithmetic: PerThing>: OpenShareGroupVote<AccountId, BlockNumber, FineArithmetic> + CheckVoteStatus {
    fn vote_on_proposal(
        vote_id: u32,
        voter: AccountId,
        direction: Self::Direction,
        magnitude: Option<Self::Signal>,
        justification: Option<Hash>
    ) -> DispatchResult; }

For module to update vote state

Required methods

fn vote_on_proposal(
    vote_id: u32,
    voter: AccountId,
    direction: Self::Direction,
    magnitude: Option<Self::Signal>,
    justification: Option<Hash>
) -> DispatchResult

Loading content...

Implementors

Loading content...