mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 05:51:02 +00:00
use named generic types in generate_solution_type (#2707)
* use named generic types in generate_solution_type * "Update Substrate" Co-authored-by: parity-processbot <>
This commit is contained in:
committed by
GitHub
parent
ef816b089d
commit
27b6d83974
Generated
+146
-148
File diff suppressed because it is too large
Load Diff
@@ -321,8 +321,11 @@ parameter_types! {
|
|||||||
|
|
||||||
sp_npos_elections::generate_solution_type!(
|
sp_npos_elections::generate_solution_type!(
|
||||||
#[compact]
|
#[compact]
|
||||||
pub struct NposCompactSolution16::<u32, u16, sp_runtime::PerU16>(16)
|
pub struct NposCompactSolution16::<
|
||||||
// -------------------- ^^ <NominatorIndex, ValidatorIndex, Accuracy>
|
VoterIndex = u32,
|
||||||
|
TargetIndex = u16,
|
||||||
|
Accuracy = sp_runtime::PerU16,
|
||||||
|
>(16)
|
||||||
);
|
);
|
||||||
|
|
||||||
impl pallet_election_provider_multi_phase::Config for Runtime {
|
impl pallet_election_provider_multi_phase::Config for Runtime {
|
||||||
|
|||||||
@@ -331,8 +331,11 @@ parameter_types! {
|
|||||||
|
|
||||||
sp_npos_elections::generate_solution_type!(
|
sp_npos_elections::generate_solution_type!(
|
||||||
#[compact]
|
#[compact]
|
||||||
pub struct NposCompactSolution16::<u32, u16, sp_runtime::PerU16>(16)
|
pub struct NposCompactSolution16::<
|
||||||
// -------------------- ^^ <NominatorIndex, ValidatorIndex, Accuracy>
|
VoterIndex = u32,
|
||||||
|
TargetIndex = u16,
|
||||||
|
Accuracy = sp_runtime::PerU16,
|
||||||
|
>(16)
|
||||||
);
|
);
|
||||||
|
|
||||||
impl pallet_election_provider_multi_phase::Config for Runtime {
|
impl pallet_election_provider_multi_phase::Config for Runtime {
|
||||||
|
|||||||
@@ -313,8 +313,11 @@ parameter_types! {
|
|||||||
|
|
||||||
sp_npos_elections::generate_solution_type!(
|
sp_npos_elections::generate_solution_type!(
|
||||||
#[compact]
|
#[compact]
|
||||||
pub struct NposCompactSolution16::<u32, u16, sp_runtime::PerU16>(16)
|
pub struct NposCompactSolution16::<
|
||||||
// -------------------- ^^ <NominatorIndex, ValidatorIndex, Accuracy>
|
VoterIndex = u32,
|
||||||
|
TargetIndex = u16,
|
||||||
|
Accuracy = sp_runtime::PerU16,
|
||||||
|
>(16)
|
||||||
);
|
);
|
||||||
|
|
||||||
impl pallet_election_provider_multi_phase::Config for Runtime {
|
impl pallet_election_provider_multi_phase::Config for Runtime {
|
||||||
|
|||||||
Reference in New Issue
Block a user