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§
Sourcetype Index: Default + Debug + Copy + DeserializeOwned + AtLeast32Bit + Decode
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).
Sourcetype BlockNumber: Debug + Copy + Encode + Default + Serialize + DeserializeOwned + Hash + FromStr + Into<u64> + AtLeast32BitUnsigned
type BlockNumber: Debug + Copy + Encode + Default + Serialize + DeserializeOwned + Hash + FromStr + Into<u64> + AtLeast32BitUnsigned
The block number type used by the runtime.
Sourcetype Hash: Debug + Copy + Send + Sync + Decode + Default + AsRef<[u8]> + Serialize + DeserializeOwned + Encode + PartialEq
type Hash: Debug + Copy + Send + Sync + Decode + Default + AsRef<[u8]> + Serialize + DeserializeOwned + Encode + PartialEq
The output of the Hashing function.
Sourcetype AccountId: Debug + Clone + Encode + MaybeSerializeDeserialize + From<<Self::CryptoKey as Pair>::Public>
type AccountId: Debug + Clone + Encode + MaybeSerializeDeserialize + From<<Self::CryptoKey as Pair>::Public>
The account ID type.
Sourcetype Signature: Debug + Encode + From<<Self::CryptoKey as Pair>::Signature>
type Signature: Debug + Encode + From<<Self::CryptoKey as Pair>::Signature>
The signature type.
Sourcetype Hasher: Debug + HashTrait<Output = Self::Hash>
type Hasher: Debug + HashTrait<Output = Self::Hash>
The hashing system (algorithm) being used in the runtime (e.g. Blake2).
Sourcetype Header: Debug + HeaderTrait<Number = Self::BlockNumber, Hashing = Self::Hasher> + Send + DeserializeOwned
type Header: Debug + HeaderTrait<Number = Self::BlockNumber, Hashing = Self::Hasher> + Send + DeserializeOwned
The block header.
Sourcetype AccountData: Debug + Clone + FullCodec
type AccountData: Debug + Clone + FullCodec
The account data.
Sourcetype ExtrinsicParams: ExtrinsicParams<Self::Index, Self::Hash>
type ExtrinsicParams: ExtrinsicParams<Self::Index, Self::Hash>
This type defines the extrinsic extra and additional parameters.
Sourcetype ExtrinsicSigner: SignExtrinsic<Self::AccountId>
type ExtrinsicSigner: SignExtrinsic<Self::AccountId>
This extrinsic signer.
Sourcetype Block: Block + DeserializeOwned
type Block: Block + DeserializeOwned
The block type.
Sourcetype Balance: Debug + Decode + Encode + AtLeast32BitUnsigned + Default + Copy + Serialize + DeserializeOwned
type Balance: Debug + Decode + Encode + AtLeast32BitUnsigned + Default + Copy + Serialize + DeserializeOwned
The balance type.
Sourcetype ContractCurrency: Debug + Decode + Encode + AtLeast32BitUnsigned + Default + Copy + Serialize + DeserializeOwned
type ContractCurrency: Debug + Decode + Encode + AtLeast32BitUnsigned + Default + Copy + Serialize + DeserializeOwned
The currency type of the contract pallet.
Sourcetype StakingBalance: Debug + Decode + Encode + AtLeast32BitUnsigned + Default + Copy + Serialize + DeserializeOwned
type StakingBalance: Debug + Decode + Encode + AtLeast32BitUnsigned + Default + Copy + Serialize + DeserializeOwned
The balance type of the staking pallet.