Trait pallet_referenda::TracksInfo
source · pub trait TracksInfo<Balance, Moment> {
type Id: Copy + Parameter + Ord + PartialOrd + Send + Sync + 'static + MaxEncodedLen;
type RuntimeOrigin;
// Required methods
fn tracks() -> &'static [(Self::Id, TrackInfo<Balance, Moment>)];
fn track_for(origin: &Self::RuntimeOrigin) -> Result<Self::Id, ()>;
// Provided method
fn info(id: Self::Id) -> Option<&'static TrackInfo<Balance, Moment>> { ... }
}
Expand description
Information on the voting tracks.
Required Associated Types§
sourcetype Id: Copy + Parameter + Ord + PartialOrd + Send + Sync + 'static + MaxEncodedLen
type Id: Copy + Parameter + Ord + PartialOrd + Send + Sync + 'static + MaxEncodedLen
The identifier for a track.
sourcetype RuntimeOrigin
type RuntimeOrigin
The origin type from which a track is implied.