Skip to content

Commit

Permalink
move config into own folder
Browse files Browse the repository at this point in the history
  • Loading branch information
echevrier committed Apr 13, 2023
1 parent 6c3cbf1 commit 497ea5a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
12 changes: 10 additions & 2 deletions primitives/src/config.rs → primitives/src/config/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,23 @@
//! This file is mostly subxt:
//! https://github.com/paritytech/subxt/blob/ce0a82e3227efb0eae131f025da5f839d9623e15/subxt/src/config/mod.rs

use crate::{extrinsic_params, SignExtrinsic};
use codec::{Decode, Encode, FullCodec};
use core::{fmt::Debug, marker::PhantomData};

use codec::{Decode, Encode, FullCodec};
use serde::{de::DeserializeOwned, Serialize};
use sp_core::Pair;
use sp_runtime::traits::{
AtLeast32Bit, AtLeast32BitUnsigned, Block as BlockTrait, MaybeSerializeDeserialize,
};

use crate::{extrinsic_params, SignExtrinsic};

pub use polkadot_config::*;
pub use substrate_config::*;

pub mod polkadot_config;
pub mod substrate_config;

/// Runtime types.
pub trait Config {
/// Account index (aka nonce) type. This stores the number of previous
Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 0 additions & 4 deletions primitives/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,15 @@ extern crate alloc;
pub use config::*;
pub use extrinsics::*;
pub use pallet_traits::*;
pub use polkadot_config::*;
pub use rpc_numbers::*;
pub use rpc_params::*;
pub use serde_impls::*;
pub use substrate_config::*;
pub use types::*;

pub mod config;
pub mod extrinsics;
pub mod pallet_traits;
pub mod polkadot_config;
pub mod rpc_numbers;
pub mod rpc_params;
pub mod serde_impls;
pub mod substrate_config;
pub mod types;

0 comments on commit 497ea5a

Please sign in to comment.