[−][src]Trait sunshine_util::traits::VoteScheduleBuilder
Helper methods to define a default VoteSchedule using the default threshold setter and default share approval order setter
Associated Types
type ScheduledVote
Required methods
fn scheduled_vote_from_share_id_proposal_type(
organization: u32,
share_id: u32,
proposal_type: Self::ProposalType,
custom_threshold: Option<Self::ThresholdConfig>
) -> Result<Self::ScheduledVote, DispatchError>
organization: u32,
share_id: u32,
proposal_type: Self::ProposalType,
custom_threshold: Option<Self::ThresholdConfig>
) -> Result<Self::ScheduledVote, DispatchError>
Uses the default threshold set above to automatically set threshold for share_id
fn set_default_vote_schedule_for_proposal_type(
organization: u32,
proposal_type: Self::ProposalType,
raw_vote_schedule: Option<Vec<Self::ScheduledVote>>
) -> DispatchResult
organization: u32,
proposal_type: Self::ProposalType,
raw_vote_schedule: Option<Vec<Self::ScheduledVote>>
) -> DispatchResult
Default uses the default share approval order and default threshold setter to set a default vote schedule
- if
raw_vote_schedule.is_some()
then it uses this custom sequence of scheduled votes instead of the defaults