timechain_runtime::configs::staking

Type Alias __IndexAssignment

Source
type __IndexAssignment = IndexAssignment<<NposSolution32 as NposSolution>::VoterIndex, <NposSolution32 as NposSolution>::TargetIndex, <NposSolution32 as NposSolution>::Accuracy>;

Aliased Type§

struct __IndexAssignment {
    pub who: u32,
    pub distribution: Vec<(u16, PerU16)>,
}

Fields§

§who: u32

Index of the voter among the voters list.

§distribution: Vec<(u16, PerU16)>

The distribution of the voter’s stake among winning targets.

Targets are identified by their index in the canonical list.