mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-20 18:35:41 +00:00
remove OnStakerSlash replace with OnStakingEvents (#14527)
* remove 'OnStakerSlash', replace with 'OnStakingEvents' * fix other features in pallets * small fixes * fix docs * fix docs * fix docs * Update primitives/staking/src/lib.rs Co-authored-by: Gonçalo Pestana <g6pestana@gmail.com> --------- Co-authored-by: Gonçalo Pestana <g6pestana@gmail.com>
This commit is contained in:
@@ -101,9 +101,9 @@
|
||||
use codec::{Decode, Encode};
|
||||
use frame_support::{
|
||||
traits::{
|
||||
defensive_prelude::*, ChangeMembers, Contains, ContainsLengthBound, Currency,
|
||||
CurrencyToVote, Get, InitializeMembers, LockIdentifier, LockableCurrency, OnUnbalanced,
|
||||
ReservableCurrency, SortedMembers, WithdrawReasons,
|
||||
defensive_prelude::*, ChangeMembers, Contains, ContainsLengthBound, Currency, Get,
|
||||
InitializeMembers, LockIdentifier, LockableCurrency, OnUnbalanced, ReservableCurrency,
|
||||
SortedMembers, WithdrawReasons,
|
||||
},
|
||||
weights::Weight,
|
||||
};
|
||||
@@ -113,6 +113,7 @@ use sp_runtime::{
|
||||
traits::{Saturating, StaticLookup, Zero},
|
||||
DispatchError, Perbill, RuntimeDebug,
|
||||
};
|
||||
use sp_staking::currency_to_vote::CurrencyToVote;
|
||||
use sp_std::{cmp::Ordering, prelude::*};
|
||||
|
||||
#[cfg(any(feature = "try-runtime", test))]
|
||||
@@ -1424,7 +1425,7 @@ mod tests {
|
||||
type PalletId = ElectionsPhragmenPalletId;
|
||||
type RuntimeEvent = RuntimeEvent;
|
||||
type Currency = Balances;
|
||||
type CurrencyToVote = frame_support::traits::SaturatingCurrencyToVote;
|
||||
type CurrencyToVote = ();
|
||||
type ChangeMembers = TestChangeMembers;
|
||||
type InitializeMembers = ();
|
||||
type CandidacyBond = CandidacyBond;
|
||||
|
||||
Reference in New Issue
Block a user