Remove pallet crates to improve compilation time (#55)

This commit is contained in:
Andrew Jones
2019-12-17 11:41:40 +00:00
committed by GitHub
parent daa1415297
commit 6561535467
6 changed files with 14 additions and 29 deletions
-8
View File
@@ -53,14 +53,6 @@ pub trait Balances: System {
+ From<<Self as System>::BlockNumber>;
}
/// Blanket impl for using existing runtime types
impl<T: frame_system::Trait + pallet_balances::Trait + Debug> Balances for T
where
<T as frame_system::Trait>::Header: serde::de::DeserializeOwned,
{
type Balance = T::Balance;
}
/// The Balances extension trait for the Client.
pub trait BalancesStore {
/// Balances type.
+9 -15
View File
@@ -37,7 +37,6 @@ use sp_runtime::traits::{
Member,
SimpleArithmetic,
SimpleBitOps,
StaticLookup,
};
use crate::{
@@ -109,20 +108,6 @@ pub trait System: 'static + Eq + Clone + Debug {
+ DeserializeOwned;
}
/// Blanket impl for using existing runtime types
impl<T: frame_system::Trait + Debug> System for T
where
<T as frame_system::Trait>::Header: serde::de::DeserializeOwned,
{
type Index = T::Index;
type BlockNumber = T::BlockNumber;
type Hash = T::Hash;
type Hashing = T::Hashing;
type AccountId = T::AccountId;
type Address = <T::Lookup as StaticLookup>::Source;
type Header = T::Header;
}
/// The System extension trait for the Client.
pub trait SystemStore {
/// System type.
@@ -179,3 +164,12 @@ pub enum SystemEvent {
/// An extrinsic failed.
ExtrinsicFailed(sp_runtime::DispatchError, DispatchInfo),
}
/// A phase of a block's execution.
#[derive(codec::Decode)]
pub enum Phase {
/// Applying an extrinsic.
ApplyExtrinsic(u32),
/// The end.
Finalization,
}