pallet-staking: Reorg migration, pallet and pallet impls (#9410)

* Reorg migration and pallet and pallet impls

* Fix imports in untouched modules

* Add file headers

* Add header for migrations

* Improve comment

* Move OnOffenceHandler impl for Pallet to impl.rs

* fmt
This commit is contained in:
Zeke Mostov
2021-07-27 16:23:01 -07:00
committed by GitHub
parent 4fe55f0bcb
commit c5be63ce6d
9 changed files with 2794 additions and 2679 deletions
@@ -27,6 +27,10 @@ use rand_chacha::{
};
use sp_io::hashing::blake2_256;
use frame_support::{pallet_prelude::*, traits::Currency};
use sp_runtime::{traits::StaticLookup, Perbill};
use sp_std::prelude::*;
const SEED: u32 = 0;
/// This function removes all validators and nominators from storage.