mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 09:21:05 +00:00
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:
@@ -21,11 +21,22 @@ use super::*;
|
||||
use crate::Pallet as Staking;
|
||||
use testing_utils::*;
|
||||
|
||||
use frame_support::{
|
||||
pallet_prelude::*,
|
||||
traits::{Currency, Get, Imbalance},
|
||||
};
|
||||
use sp_runtime::{
|
||||
traits::{StaticLookup, Zero},
|
||||
Perbill, Percent,
|
||||
};
|
||||
use sp_staking::SessionIndex;
|
||||
use sp_std::prelude::*;
|
||||
|
||||
pub use frame_benchmarking::{
|
||||
account, benchmarks, impl_benchmark_test_suite, whitelist_account, whitelisted_caller,
|
||||
};
|
||||
use frame_system::RawOrigin;
|
||||
use sp_runtime::traits::One;
|
||||
use sp_runtime::traits::{Bounded, One};
|
||||
|
||||
const SEED: u32 = 0;
|
||||
const MAX_SPANS: u32 = 100;
|
||||
|
||||
Reference in New Issue
Block a user