mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 23:21:06 +00:00
Remove pallet crates to improve compilation time (#55)
This commit is contained in:
@@ -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
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user