Migrate pallet-session to the new pallet macro (#9796)

* Migrate pallet-session to the new pallet macro

Signed-off-by: koushiro <koushiro.cqx@gmail.com>

* Remove old macros

Signed-off-by: koushiro <koushiro.cqx@gmail.com>

* Fix

Signed-off-by: koushiro <koushiro.cqx@gmail.com>
This commit is contained in:
Qinxuan Chen
2021-09-28 11:12:57 +08:00
committed by GitHub
parent 6ec82c7a83
commit 7f550d6dd2
15 changed files with 314 additions and 266 deletions
+5 -2
View File
@@ -21,7 +21,9 @@ use super::*;
use crate as pallet_session;
#[cfg(feature = "historical")]
use crate::historical as pallet_session_historical;
use frame_support::{parameter_types, BasicExternalities};
use std::cell::RefCell;
use sp_core::{crypto::key_types::DUMMY, H256};
use sp_runtime::{
impl_opaque_keys,
@@ -30,7 +32,8 @@ use sp_runtime::{
Perbill,
};
use sp_staking::SessionIndex;
use std::cell::RefCell;
use frame_support::{parameter_types, traits::GenesisBuild, BasicExternalities};
impl_opaque_keys! {
pub struct MockSessionKeys {