Struct pallet_referenda::TrackInfo
source · pub struct TrackInfo<Balance, Moment> {
pub name: &'static str,
pub max_deciding: u32,
pub decision_deposit: Balance,
pub prepare_period: Moment,
pub decision_period: Moment,
pub confirm_period: Moment,
pub min_enactment_period: Moment,
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: Balance
Amount that must be placed on deposit before a decision can be made.
prepare_period: Moment
Amount of time this must be submitted for before a decision can be made.
decision_period: Moment
Amount of time that a decision may take to be approved prior to cancellation.
confirm_period: Moment
Amount of time that the approval criteria must hold before it can be approved.
min_enactment_period: Moment
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.
Trait Implementations§
source§impl<Balance, Moment> Encode for TrackInfo<Balance, Moment>where
Balance: Encode,
Moment: Encode,
impl<Balance, Moment> Encode for TrackInfo<Balance, Moment>where Balance: Encode, Moment: Encode,
source§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
)
fn encode_to<__CodecOutputEdqy: Output + ?Sized>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )
§fn using_encoded<R, F>(&self, f: F) -> Rwhere
F: FnOnce(&[u8]) -> R,
fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,
§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
source§impl<Balance, Moment> TypeInfo for TrackInfo<Balance, Moment>where
Balance: TypeInfo + 'static,
Moment: TypeInfo + 'static,
impl<Balance, Moment> TypeInfo for TrackInfo<Balance, Moment>where Balance: TypeInfo + 'static, Moment: TypeInfo + 'static,
impl<Balance, Moment> EncodeLike<TrackInfo<Balance, Moment>> for TrackInfo<Balance, Moment>where Balance: Encode, Moment: Encode,
Auto Trait Implementations§
impl<Balance, Moment> RefUnwindSafe for TrackInfo<Balance, Moment>where Balance: RefUnwindSafe, Moment: RefUnwindSafe,
impl<Balance, Moment> Send for TrackInfo<Balance, Moment>where Balance: Send, Moment: Send,
impl<Balance, Moment> Sync for TrackInfo<Balance, Moment>where Balance: Sync, Moment: Sync,
impl<Balance, Moment> Unpin for TrackInfo<Balance, Moment>where Balance: Unpin, Moment: Unpin,
impl<Balance, Moment> UnwindSafe for TrackInfo<Balance, Moment>where Balance: UnwindSafe, Moment: UnwindSafe,
Blanket Implementations§
source§impl<T> CheckedConversion for T
impl<T> CheckedConversion for T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T, Outer> IsWrappedBy<Outer> for Twhere
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
impl<T, Outer> IsWrappedBy<Outer> for Twhere Outer: AsRef<T> + AsMut<T> + From<T>, T: From<Outer>,
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> SaturatedConversion for T
impl<T> SaturatedConversion for T
source§fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
fn saturated_from<T>(t: T) -> Selfwhere Self: UniqueSaturatedFrom<T>,
source§fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
fn saturated_into<T>(self) -> Twhere Self: UniqueSaturatedInto<T>,
T
. Read more§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self
to the equivalent element of its superset.source§impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for Swhere T: UncheckedFrom<S>,
source§fn unchecked_into(self) -> T
fn unchecked_into(self) -> T
unchecked_from
.source§impl<T, S> UniqueSaturatedInto<T> for Swhere
T: Bounded,
S: TryInto<T>,
impl<T, S> UniqueSaturatedInto<T> for Swhere T: Bounded, S: TryInto<T>,
source§fn unique_saturated_into(self) -> T
fn unique_saturated_into(self) -> T
T
.