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
@@ -37,13 +37,13 @@ use sp_runtime::{
};
use sp_staking::{
offence::{DisableStrategy, OffenceDetails, OnOffenceHandler},
SessionIndex,
EraIndex, SessionIndex,
};
use sp_std::{collections::btree_map::BTreeMap, prelude::*};
use crate::{
log, slashing, weights::WeightInfo, ActiveEraInfo, BalanceOf, EraIndex, EraPayout, Exposure,
ExposureOf, Forcing, IndividualExposure, Nominations, PositiveImbalanceOf, RewardDestination,
log, slashing, weights::WeightInfo, ActiveEraInfo, BalanceOf, EraPayout, Exposure, ExposureOf,
Forcing, IndividualExposure, Nominations, PositiveImbalanceOf, RewardDestination,
SessionInterface, StakingLedger, ValidatorPrefs,
};
+2 -2
View File
@@ -31,7 +31,7 @@ use sp_runtime::{
traits::{CheckedSub, SaturatedConversion, StaticLookup, Zero},
DispatchError, Perbill, Percent,
};
use sp_staking::SessionIndex;
use sp_staking::{EraIndex, SessionIndex};
use sp_std::{convert::From, prelude::*, result};
mod impls;
@@ -39,7 +39,7 @@ mod impls;
pub use impls::*;
use crate::{
log, migrations, slashing, weights::WeightInfo, ActiveEraInfo, BalanceOf, EraIndex, EraPayout,
log, migrations, slashing, weights::WeightInfo, ActiveEraInfo, BalanceOf, EraPayout,
EraRewardPoints, Exposure, Forcing, NegativeImbalanceOf, Nominations, PositiveImbalanceOf,
Releases, RewardDestination, SessionInterface, StakingLedger, UnappliedSlash, UnlockChunk,
ValidatorPrefs,