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
2022-01-16 18:15:18 -08:00
committed by GitHub
parent 0bca06a483
commit 16212851c6
8 changed files with 16 additions and 18 deletions
+1 -2
View File
@@ -25,7 +25,6 @@ use frame_support::{
traits::{ConstU128, ConstU32, ConstU64, GenesisBuild, KeyOwnerProofSystem, OnInitialize},
};
use pallet_session::historical as pallet_session_historical;
use pallet_staking::EraIndex;
use sp_consensus_babe::{AuthorityId, AuthorityPair, Slot};
use sp_consensus_vrf::schnorrkel::{VRFOutput, VRFProof};
use sp_core::{
@@ -40,7 +39,7 @@ use sp_runtime::{
traits::{Header as _, IdentityLookup, OpaqueKeys},
Perbill,
};
use sp_staking::SessionIndex;
use sp_staking::{EraIndex, SessionIndex};
type DummyValidatorId = u64;