diff --git a/auction/src/mock.rs b/auction/src/mock.rs index ca866d66db00e75d2815ee75e5916ed98e5c246a..ab409e6f0e02b4baffe4174070fb0663a6dfd226 100644 --- a/auction/src/mock.rs +++ b/auction/src/mock.rs @@ -77,8 +77,8 @@ impl Config for Runtime { type WeightInfo = (); } -pub type Block = sp_runtime::generic::Block<Header, UncheckedExtrinsic>; -pub type UncheckedExtrinsic = sp_runtime::generic::UncheckedExtrinsic<u32, Call, u32, ()>; +type UncheckedExtrinsic = frame_system::mocking::MockUncheckedExtrinsic<Runtime>; +type Block = frame_system::mocking::MockBlock<Runtime>; construct_runtime!( pub enum Runtime where diff --git a/authority/src/mock.rs b/authority/src/mock.rs index 2549a66b2115572cd13f30a258e2d910c1ff7900..a3f6fa02dca7035a187546cc15715022a2ed23f8 100644 --- a/authority/src/mock.rs +++ b/authority/src/mock.rs @@ -153,8 +153,8 @@ impl Config for Runtime { type WeightInfo = (); } -pub type Block = sp_runtime::generic::Block<Header, UncheckedExtrinsic>; -pub type UncheckedExtrinsic = sp_runtime::generic::UncheckedExtrinsic<u32, u64, u64, ()>; +type UncheckedExtrinsic = frame_system::mocking::MockUncheckedExtrinsic<Runtime>; +type Block = frame_system::mocking::MockBlock<Runtime>; frame_support::construct_runtime!( pub enum Runtime where @@ -162,7 +162,7 @@ frame_support::construct_runtime!( NodeBlock = Block, UncheckedExtrinsic = UncheckedExtrinsic { - System: frame_system::{Module, Call, Event<T>}, + System: frame_system::{Module, Call, Config, Event<T>}, Authority: authority::{Module, Call, Origin<T>, Event<T>}, Scheduler: pallet_scheduler::{Module, Call, Storage, Event<T>}, } diff --git a/currencies/src/mock.rs b/currencies/src/mock.rs index 364060d1fbf02f4e4e17034c95972d5f13ff6935..97f3b40c1927550355a3043a0897c8950903ce6b 100644 --- a/currencies/src/mock.rs +++ b/currencies/src/mock.rs @@ -3,7 +3,7 @@ #![cfg(test)] use super::*; -use frame_support::{construct_runtime, parameter_types, traits::GenesisBuild}; +use frame_support::{construct_runtime, parameter_types}; use orml_traits::parameter_type_with_key; use sp_core::H256; use sp_runtime::{ @@ -98,8 +98,8 @@ impl Config for Runtime { pub type NativeCurrency = NativeCurrencyOf<Runtime>; pub type AdaptedBasicCurrency = BasicCurrencyAdapter<Runtime, PalletBalances, i64, u64>; -pub type Block = sp_runtime::generic::Block<Header, UncheckedExtrinsic>; -pub type UncheckedExtrinsic = sp_runtime::generic::UncheckedExtrinsic<u32, Call, u32, ()>; +type UncheckedExtrinsic = frame_system::mocking::MockUncheckedExtrinsic<Runtime>; +type Block = frame_system::mocking::MockBlock<Runtime>; construct_runtime!( pub enum Runtime where @@ -111,7 +111,6 @@ construct_runtime!( Currencies: currencies::{Module, Call, Event<T>}, Tokens: orml_tokens::{Module, Storage, Event<T>, Config<T>}, PalletBalances: pallet_balances::{Module, Call, Storage, Config<T>, Event<T>}, - } ); diff --git a/gradually-update/src/mock.rs b/gradually-update/src/mock.rs index a3440ebb56f91588d3fc61431b19d6aa1b61de1d..9814925644eb65f1781ff27ab31d605e107061aa 100644 --- a/gradually-update/src/mock.rs +++ b/gradually-update/src/mock.rs @@ -52,8 +52,8 @@ impl Config for Runtime { type WeightInfo = (); } -pub type Block = sp_runtime::generic::Block<Header, UncheckedExtrinsic>; -pub type UncheckedExtrinsic = sp_runtime::generic::UncheckedExtrinsic<u32, Call, u32, ()>; +type UncheckedExtrinsic = frame_system::mocking::MockUncheckedExtrinsic<Runtime>; +type Block = frame_system::mocking::MockBlock<Runtime>; construct_runtime!( pub enum Runtime where diff --git a/nft/src/mock.rs b/nft/src/mock.rs index 31180ff337dc4b5ff6e434d4d29eb828cafaf670..a8d1dae2ac44dd9ef2ff7efbba5c9723b0002a11 100644 --- a/nft/src/mock.rs +++ b/nft/src/mock.rs @@ -49,8 +49,8 @@ impl Config for Runtime { type TokenData = (); } -pub type Block = sp_runtime::generic::Block<Header, UncheckedExtrinsic>; -pub type UncheckedExtrinsic = sp_runtime::generic::UncheckedExtrinsic<u32, Call, u32, ()>; +type UncheckedExtrinsic = frame_system::mocking::MockUncheckedExtrinsic<Runtime>; +type Block = frame_system::mocking::MockBlock<Runtime>; construct_runtime!( pub enum Runtime where @@ -60,7 +60,6 @@ construct_runtime!( { System: frame_system::{Module, Call, Storage, Config, Event<T>}, NonFungibleTokenModule: nft::{Module, Storage, Config<T>}, - } ); diff --git a/oracle/src/mock.rs b/oracle/src/mock.rs index d1564d0f0f7fb896e8c8f6c15f5a9b7631fa695b..b0173ac2b590da9a18bcb953c401381b04464adf 100644 --- a/oracle/src/mock.rs +++ b/oracle/src/mock.rs @@ -2,7 +2,7 @@ use super::*; -use frame_support::{construct_runtime, parameter_types, traits::GenesisBuild}; +use frame_support::{construct_runtime, parameter_types}; use sp_core::H256; use sp_runtime::{ testing::Header, @@ -83,8 +83,8 @@ impl Config for Test { type WeightInfo = (); } -pub type Block = sp_runtime::generic::Block<Header, UncheckedExtrinsic>; -pub type UncheckedExtrinsic = sp_runtime::generic::UncheckedExtrinsic<u32, Call, u32, ()>; +type UncheckedExtrinsic = frame_system::mocking::MockUncheckedExtrinsic<Test>; +type Block = frame_system::mocking::MockBlock<Test>; construct_runtime!( pub enum Test where @@ -94,7 +94,6 @@ construct_runtime!( { System: frame_system::{Module, Call, Storage, Config, Event<T>}, ModuleOracle: oracle::{Module, Storage, Call, Config<T>, Event<T>}, - } ); diff --git a/rewards/src/mock.rs b/rewards/src/mock.rs index f4bc36bd2b5037dd3dc59b2d39d15ba14822f002..5838f30bc32afb331954a57de01b3ea5515178a4 100644 --- a/rewards/src/mock.rs +++ b/rewards/src/mock.rs @@ -109,8 +109,8 @@ impl Config for Runtime { type WeightInfo = (); } -pub type Block = sp_runtime::generic::Block<Header, UncheckedExtrinsic>; -pub type UncheckedExtrinsic = sp_runtime::generic::UncheckedExtrinsic<u32, Call, u32, ()>; +type UncheckedExtrinsic = frame_system::mocking::MockUncheckedExtrinsic<Runtime>; +type Block = frame_system::mocking::MockBlock<Runtime>; construct_runtime!( pub enum Runtime where @@ -120,7 +120,6 @@ construct_runtime!( { System: frame_system::{Module, Call, Storage, Config, Event<T>}, RewardsModule: rewards::{Module, Storage, Call}, - } ); diff --git a/tokens/src/mock.rs b/tokens/src/mock.rs index d1bc52d9c110a66d11fe983caa192f973b14762a..a46a04667568459a94b416133483fd085955ac99 100644 --- a/tokens/src/mock.rs +++ b/tokens/src/mock.rs @@ -5,7 +5,7 @@ use super::*; use frame_support::{ construct_runtime, parameter_types, - traits::{ChangeMembers, Contains, ContainsLengthBound, GenesisBuild, SaturatingCurrencyToVote}, + traits::{ChangeMembers, Contains, ContainsLengthBound, SaturatingCurrencyToVote}, }; use orml_traits::parameter_type_with_key; use sp_core::H256; @@ -217,8 +217,8 @@ impl Config for Runtime { } pub type TreasuryCurrencyAdapter = <Runtime as pallet_treasury::Config>::Currency; -pub type Block = sp_runtime::generic::Block<Header, UncheckedExtrinsic>; -pub type UncheckedExtrinsic = sp_runtime::generic::UncheckedExtrinsic<u32, Call, u32, ()>; +type UncheckedExtrinsic = frame_system::mocking::MockUncheckedExtrinsic<Runtime>; +type Block = frame_system::mocking::MockBlock<Runtime>; construct_runtime!( pub enum Runtime where diff --git a/vesting/src/mock.rs b/vesting/src/mock.rs index 22910aa4b5782e62b8f30cc3caa64b2e63505150..7274ef9c7ebbf331e09aa93a55e6db02e388f125 100644 --- a/vesting/src/mock.rs +++ b/vesting/src/mock.rs @@ -3,10 +3,7 @@ #![cfg(test)] use super::*; -use frame_support::{ - construct_runtime, parameter_types, - traits::{EnsureOrigin, GenesisBuild}, -}; +use frame_support::{construct_runtime, parameter_types, traits::EnsureOrigin}; use frame_system::RawOrigin; use sp_core::H256; use sp_runtime::{testing::Header, traits::IdentityLookup}; @@ -86,8 +83,8 @@ impl Config for Runtime { type WeightInfo = (); } -pub type Block = sp_runtime::generic::Block<Header, UncheckedExtrinsic>; -pub type UncheckedExtrinsic = sp_runtime::generic::UncheckedExtrinsic<u32, Call, u32, ()>; +type UncheckedExtrinsic = frame_system::mocking::MockUncheckedExtrinsic<Runtime>; +type Block = frame_system::mocking::MockBlock<Runtime>; construct_runtime!( pub enum Runtime where