This commit is contained in:
Kian Paimani
2023-07-09 15:44:24 +02:00
committed by GitHub
parent e2964385b1
commit c67723012b
9 changed files with 207 additions and 217 deletions
+1 -1
View File
@@ -29,4 +29,4 @@ rustflags = [
"-Aclippy::needless_option_as_deref", # false positives "-Aclippy::needless_option_as_deref", # false positives
"-Aclippy::derivable_impls", # false positives "-Aclippy::derivable_impls", # false positives
"-Aclippy::stable_sort_primitive", # prefer stable sort "-Aclippy::stable_sort_primitive", # prefer stable sort
] ]
+198 -208
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -161,7 +161,7 @@ macro_rules! impl_runtime_weights {
/// The type used for currency conversion. /// The type used for currency conversion.
/// ///
/// This must only be used as long as the balance type is `u128`. /// This must only be used as long as the balance type is `u128`.
pub type CurrencyToVote = frame_support::traits::U128CurrencyToVote; pub type CurrencyToVote = sp_staking::currency_to_vote::U128CurrencyToVote;
static_assertions::assert_eq_size!(primitives::Balance, u128); static_assertions::assert_eq_size!(primitives::Balance, u128);
/// A placeholder since there is currently no provided session key handler for parachain validator /// A placeholder since there is currently no provided session key handler for parachain validator
+1 -1
View File
@@ -589,7 +589,7 @@ impl pallet_staking::Config for Runtime {
type MaxUnlockingChunks = frame_support::traits::ConstU32<32>; type MaxUnlockingChunks = frame_support::traits::ConstU32<32>;
type HistoryDepth = frame_support::traits::ConstU32<84>; type HistoryDepth = frame_support::traits::ConstU32<84>;
type BenchmarkingConfig = runtime_common::StakingBenchmarkingConfig; type BenchmarkingConfig = runtime_common::StakingBenchmarkingConfig;
type OnStakerSlash = NominationPools; type EventListeners = NominationPools;
type WeightInfo = weights::pallet_staking::WeightInfo<Runtime>; type WeightInfo = weights::pallet_staking::WeightInfo<Runtime>;
} }
@@ -141,7 +141,7 @@ impl pallet_elections_phragmen::Config for Runtime {
type Currency = Balances; type Currency = Balances;
type ChangeMembers = Council; type ChangeMembers = Council;
type InitializeMembers = Council; type InitializeMembers = Council;
type CurrencyToVote = frame_support::traits::U128CurrencyToVote; type CurrencyToVote = runtime_common::CurrencyToVote;
type CandidacyBond = CandidacyBond; type CandidacyBond = CandidacyBond;
type VotingBondBase = VotingBondBase; type VotingBondBase = VotingBondBase;
type VotingBondFactor = VotingBondFactor; type VotingBondFactor = VotingBondFactor;
+1 -1
View File
@@ -597,7 +597,7 @@ impl pallet_staking::Config for Runtime {
type MaxUnlockingChunks = frame_support::traits::ConstU32<32>; type MaxUnlockingChunks = frame_support::traits::ConstU32<32>;
type HistoryDepth = frame_support::traits::ConstU32<84>; type HistoryDepth = frame_support::traits::ConstU32<84>;
type BenchmarkingConfig = runtime_common::StakingBenchmarkingConfig; type BenchmarkingConfig = runtime_common::StakingBenchmarkingConfig;
type OnStakerSlash = NominationPools; type EventListeners = NominationPools;
type WeightInfo = weights::pallet_staking::WeightInfo<Runtime>; type WeightInfo = weights::pallet_staking::WeightInfo<Runtime>;
} }
+1 -1
View File
@@ -481,7 +481,7 @@ impl pallet_elections_phragmen::Config for Runtime {
type Currency = Balances; type Currency = Balances;
type ChangeMembers = Council; type ChangeMembers = Council;
type InitializeMembers = Council; type InitializeMembers = Council;
type CurrencyToVote = frame_support::traits::U128CurrencyToVote; type CurrencyToVote = runtime_common::CurrencyToVote;
type CandidacyBond = CandidacyBond; type CandidacyBond = CandidacyBond;
type VotingBondBase = VotingBondBase; type VotingBondBase = VotingBondBase;
type VotingBondFactor = VotingBondFactor; type VotingBondFactor = VotingBondFactor;
+2 -2
View File
@@ -335,7 +335,7 @@ impl pallet_staking::Config for Runtime {
type Currency = Balances; type Currency = Balances;
type CurrencyBalance = Balance; type CurrencyBalance = Balance;
type UnixTime = Timestamp; type UnixTime = Timestamp;
type CurrencyToVote = frame_support::traits::U128CurrencyToVote; type CurrencyToVote = runtime_common::CurrencyToVote;
type RewardRemainder = (); type RewardRemainder = ();
type RuntimeEvent = RuntimeEvent; type RuntimeEvent = RuntimeEvent;
type Slash = (); type Slash = ();
@@ -358,7 +358,7 @@ impl pallet_staking::Config for Runtime {
type MaxUnlockingChunks = frame_support::traits::ConstU32<32>; type MaxUnlockingChunks = frame_support::traits::ConstU32<32>;
type HistoryDepth = frame_support::traits::ConstU32<84>; type HistoryDepth = frame_support::traits::ConstU32<84>;
type BenchmarkingConfig = runtime_common::StakingBenchmarkingConfig; type BenchmarkingConfig = runtime_common::StakingBenchmarkingConfig;
type OnStakerSlash = (); type EventListeners = ();
type WeightInfo = (); type WeightInfo = ();
} }
+1 -1
View File
@@ -533,7 +533,7 @@ impl pallet_staking::Config for Runtime {
type MaxUnlockingChunks = frame_support::traits::ConstU32<32>; type MaxUnlockingChunks = frame_support::traits::ConstU32<32>;
type HistoryDepth = frame_support::traits::ConstU32<84>; type HistoryDepth = frame_support::traits::ConstU32<84>;
type BenchmarkingConfig = runtime_common::StakingBenchmarkingConfig; type BenchmarkingConfig = runtime_common::StakingBenchmarkingConfig;
type OnStakerSlash = NominationPools; type EventListeners = NominationPools;
type WeightInfo = weights::pallet_staking::WeightInfo<Runtime>; type WeightInfo = weights::pallet_staking::WeightInfo<Runtime>;
} }