[][src]Trait sunshine_util::traits::OpenShareGroupVote

pub trait OpenShareGroupVote<AccountId, BlockNumber, FineArithmetic: PerThing>: GetVoteOutcome + ThresholdVote {
    type ThresholdConfig: DeriveThresholdRequirement<Self::Signal> + ConsistentThresholdStructure + From<ThresholdConfig<Self::Signal, FineArithmetic>> + From<ThresholdConfigBuilder<FineArithmetic>>;
    type VoteType: Default + From<SupportedVoteTypes>;
    fn open_share_group_vote(
        organization: u32,
        share_id: u32,
        vote_type: Self::VoteType,
        threshold_config: Self::ThresholdConfig,
        duration: Option<BlockNumber>
    ) -> Result<Self::VoteId, DispatchError>; }

Open a new vote for the organization, share_id and a custom threshold requirement

Associated Types

Loading content...

Required methods

fn open_share_group_vote(
    organization: u32,
    share_id: u32,
    vote_type: Self::VoteType,
    threshold_config: Self::ThresholdConfig,
    duration: Option<BlockNumber>
) -> Result<Self::VoteId, DispatchError>

Loading content...

Implementors

Loading content...