Config

Trait Config 

Source
pub trait Config {
Show 16 associated items type Index: Default + Debug + Copy + DeserializeOwned + AtLeast32Bit + Decode; type BlockNumber: Debug + Copy + Encode + Default + Serialize + DeserializeOwned + Hash + FromStr + Into<u64> + AtLeast32BitUnsigned; type Hash: Debug + Copy + Send + Sync + Decode + Default + AsRef<[u8]> + Serialize + DeserializeOwned + Encode + PartialEq; type AccountId: Debug + Clone + Encode + MaybeSerializeDeserialize + From<<Self::CryptoKey as Pair>::Public>; type Address: Debug + Clone + Encode + From<Self::AccountId>; type Signature: Debug + Encode + From<<Self::CryptoKey as Pair>::Signature>; type Hasher: Debug + HashTrait<Output = Self::Hash>; type Header: Debug + HeaderTrait<Number = Self::BlockNumber, Hashing = Self::Hasher> + Send + DeserializeOwned; type AccountData: Debug + Clone + FullCodec; type ExtrinsicParams: ExtrinsicParams<Self::Index, Self::Hash>; type CryptoKey: Pair; type ExtrinsicSigner: SignExtrinsic<Self::AccountId>; type Block: Block + DeserializeOwned; type Balance: Debug + Decode + Encode + AtLeast32BitUnsigned + Default + Copy + Serialize + DeserializeOwned; type ContractCurrency: Debug + Decode + Encode + AtLeast32BitUnsigned + Default + Copy + Serialize + DeserializeOwned; type StakingBalance: Debug + Decode + Encode + AtLeast32BitUnsigned + Default + Copy + Serialize + DeserializeOwned;
}
Expand description

Runtime types.

Required Associated Types§

Source

type Index: Default + Debug + Copy + DeserializeOwned + AtLeast32Bit + Decode

Account index (aka nonce) type. This stores the number of previous transactions associated with a sender account. This type enforces the (de)serialization implementation also in no-std mode (unlike substrates MaybeSerializeDeserialize).

Source

type BlockNumber: Debug + Copy + Encode + Default + Serialize + DeserializeOwned + Hash + FromStr + Into<u64> + AtLeast32BitUnsigned

The block number type used by the runtime.

Source

type Hash: Debug + Copy + Send + Sync + Decode + Default + AsRef<[u8]> + Serialize + DeserializeOwned + Encode + PartialEq

The output of the Hashing function.

Source

type AccountId: Debug + Clone + Encode + MaybeSerializeDeserialize + From<<Self::CryptoKey as Pair>::Public>

The account ID type.

Source

type Address: Debug + Clone + Encode + From<Self::AccountId>

The address type.

Source

type Signature: Debug + Encode + From<<Self::CryptoKey as Pair>::Signature>

The signature type.

Source

type Hasher: Debug + HashTrait<Output = Self::Hash>

The hashing system (algorithm) being used in the runtime (e.g. Blake2).

Source

type Header: Debug + HeaderTrait<Number = Self::BlockNumber, Hashing = Self::Hasher> + Send + DeserializeOwned

The block header.

Source

type AccountData: Debug + Clone + FullCodec

The account data.

Source

type ExtrinsicParams: ExtrinsicParams<Self::Index, Self::Hash>

This type defines the extrinsic extra and additional parameters.

Source

type CryptoKey: Pair

The cryptographic PKI key pair type used to sign the extrinsic

Source

type ExtrinsicSigner: SignExtrinsic<Self::AccountId>

This extrinsic signer.

Source

type Block: Block + DeserializeOwned

The block type.

Source

type Balance: Debug + Decode + Encode + AtLeast32BitUnsigned + Default + Copy + Serialize + DeserializeOwned

The balance type.

Source

type ContractCurrency: Debug + Decode + Encode + AtLeast32BitUnsigned + Default + Copy + Serialize + DeserializeOwned

The currency type of the contract pallet.

Source

type StakingBalance: Debug + Decode + Encode + AtLeast32BitUnsigned + Default + Copy + Serialize + DeserializeOwned

The balance type of the staking pallet.

Implementors§

Source§

impl Config for DefaultRuntimeConfig

Source§

impl<T, A> Config for WithAddress<T, A>
where T: Config, A: Debug + Clone + Encode + From<T::AccountId>,

Source§

impl<T: Config, E: ExtrinsicParams<T::Index, T::Hash>> Config for WithExtrinsicParams<T, E>