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 -4
View File
@@ -312,7 +312,7 @@ use sp_runtime::{
};
use sp_staking::{
offence::{Offence, OffenceError, ReportOffence},
SessionIndex,
EraIndex, SessionIndex,
};
use sp_std::{collections::btree_map::BTreeMap, convert::From, prelude::*};
pub use weights::WeightInfo;
@@ -332,9 +332,6 @@ macro_rules! log {
};
}
/// Counter for the number of eras that have passed.
pub type EraIndex = u32;
/// Counter for the number of "reward" points earned by a given validator.
pub type RewardPoint = u32;