Move EraIndex to sp-staking (#10671)

* Move `EraIndex` to sp-staking

* Fix imports in mocks

* Run cargo +nightly-2021-10-29 fmt
This commit is contained in:
Zeke Mostov authored and GitHub committed 2022-01-17 02:15:18 +00:00
1 parent 0bca06a483
commit 16212851c6
8 files changed
+16 -18

No files matched your search

+3 -3
View File
@@ -50,8 +50,8 @@
//! Based on research at <https://research.web3.foundation/en/latest/polkadot/slashing/npos.html>
use crate::{
BalanceOf, Config, EraIndex, Error, Exposure, NegativeImbalanceOf, Pallet, Perbill,
SessionInterface, Store, UnappliedSlash,
BalanceOf, Config, Error, Exposure, NegativeImbalanceOf, Pallet, Perbill, SessionInterface,
Store, UnappliedSlash,
};
use codec::{Decode, Encode};
use frame_support::{
@@ -63,7 +63,7 @@ use sp_runtime::{
traits::{Saturating, Zero},
DispatchResult, RuntimeDebug,
};
use sp_staking::offence::DisableStrategy;
use sp_staking::{offence::DisableStrategy, EraIndex};
use sp_std::vec::Vec;
/// The proportion of the slashing reward to be paid out on the first slashing detection.