referrerpolicy=no-referrer-when-downgrade

Type Alias pallet_referenda::TrackInfoOf

source ·
pub type TrackInfoOf<T, I = ()> = TrackInfo<BalanceOf<T, I>, BlockNumberFor<T>>;

Aliased Type§

struct TrackInfoOf<T, I = ()> {
    pub name: &'static str,
    pub max_deciding: u32,
    pub decision_deposit: <<T as Config<I>>::Currency as Currency<<T as Config>::AccountId>>::Balance,
    pub prepare_period: <<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number,
    pub decision_period: <<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number,
    pub confirm_period: <<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number,
    pub min_enactment_period: <<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number,
    pub min_approval: Curve,
    pub min_support: Curve,
}

Fields§

§name: &'static str

Name of this track.

§max_deciding: u32

A limit for the number of referenda on this track that can be being decided at once. For Root origin this should generally be just one.

§decision_deposit: <<T as Config<I>>::Currency as Currency<<T as Config>::AccountId>>::Balance

Amount that must be placed on deposit before a decision can be made.

§prepare_period: <<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number

Amount of time this must be submitted for before a decision can be made.

§decision_period: <<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number

Amount of time that a decision may take to be approved prior to cancellation.

§confirm_period: <<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number

Amount of time that the approval criteria must hold before it can be approved.

§min_enactment_period: <<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number

Minimum amount of time that an approved proposal must be in the dispatch queue.

§min_approval: Curve

Minimum aye votes as percentage of overall conviction-weighted votes needed for approval as a function of time into decision period.

§min_support: Curve

Minimum pre-conviction aye-votes (“support”) as percentage of overall population that is needed for approval as a function of time into decision period.