referrerpolicy=no-referrer-when-downgrade
pallet_referenda

Type Alias TrackInfoOf

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

Aliased Type§

struct TrackInfoOf<T, I = ()> {
    pub name: [u8; 25],
    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<I>>::BlockNumberProvider as BlockNumberProvider>::BlockNumber,
    pub decision_period: <<T as Config<I>>::BlockNumberProvider as BlockNumberProvider>::BlockNumber,
    pub confirm_period: <<T as Config<I>>::BlockNumberProvider as BlockNumberProvider>::BlockNumber,
    pub min_enactment_period: <<T as Config<I>>::BlockNumberProvider as BlockNumberProvider>::BlockNumber,
    pub min_approval: Curve,
    pub min_support: Curve,
}

Fields§

§name: [u8; 25]

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<I>>::BlockNumberProvider as BlockNumberProvider>::BlockNumber

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

§decision_period: <<T as Config<I>>::BlockNumberProvider as BlockNumberProvider>::BlockNumber

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

§confirm_period: <<T as Config<I>>::BlockNumberProvider as BlockNumberProvider>::BlockNumber

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

§min_enactment_period: <<T as Config<I>>::BlockNumberProvider as BlockNumberProvider>::BlockNumber

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.