pub trait Config: 'static {
type Index: Debug + Copy + DeserializeOwned + Into<u64>;
type Hash: Debug + Copy + Send + Sync + Decode + AsRef<[u8]> + Serialize + DeserializeOwned + Encode + PartialEq;
type AccountId: Debug + Clone + Serialize;
type Address: Debug + Encode + From<Self::AccountId>;
type Signature: Debug + Encode;
type Hasher: Debug + Hasher<Output = Self::Hash>;
type Header: Debug + Header<Hasher = Self::Hasher> + Send + DeserializeOwned;
type ExtrinsicParams: ExtrinsicParams<Self::Index, Self::Hash>;
}
Expand description
Runtime types.
Required Associated Types§
sourcetype Index: Debug + Copy + DeserializeOwned + Into<u64>
type Index: Debug + Copy + DeserializeOwned + Into<u64>
Account index (aka nonce) type. This stores the number of previous transactions associated with a sender account.
sourcetype Hash: Debug + Copy + Send + Sync + Decode + AsRef<[u8]> + Serialize + DeserializeOwned + Encode + PartialEq
type Hash: Debug + Copy + Send + Sync + Decode + AsRef<[u8]> + Serialize + DeserializeOwned + Encode + PartialEq
The output of the Hashing
function.
sourcetype Hasher: Debug + Hasher<Output = Self::Hash>
type Hasher: Debug + Hasher<Output = Self::Hash>
The hashing system (algorithm) being used in the runtime (e.g. Blake2).
sourcetype ExtrinsicParams: ExtrinsicParams<Self::Index, Self::Hash>
type ExtrinsicParams: ExtrinsicParams<Self::Index, Self::Hash>
This type defines the extrinsic extra and additional parameters.