pub type IndexAssignmentOf<T> = IndexAssignmentOf<SolutionOf<T>>;
Expand description

The [IndexAssignment][frame_election_provider_support::IndexAssignment] type specialized for a particular runtime T.

Aliased Type§

struct IndexAssignmentOf<T> {
    pub who: <<T as MinerConfig>::Solution as NposSolution>::VoterIndex,
    pub distribution: Vec<(<<T as MinerConfig>::Solution as NposSolution>::TargetIndex, <<T as MinerConfig>::Solution as NposSolution>::Accuracy)>,
}

Fields§

§who: <<T as MinerConfig>::Solution as NposSolution>::VoterIndex

Index of the voter among the voters list.

§distribution: Vec<(<<T as MinerConfig>::Solution as NposSolution>::TargetIndex, <<T as MinerConfig>::Solution as NposSolution>::Accuracy)>

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

Targets are identified by their index in the canonical list.