Module substrate

Module substrate 

Source
Expand description

Substrate specific configuration

Re-exports§

pub use crate::utils::AccountId32;
pub use crate::utils::MultiAddress;
pub use crate::utils::MultiSignature;

Structs§

BlakeTwo256
A hasher (ie implements Hasher) which hashes values using the blaks2_256 algorithm.
Digest
Generic header digest. From sp_runtime::generic::digest.
DynamicHasher256
A hasher (ie implements Hasher) which inspects the runtime metadata to decide how to hash types, falling back to blake2_256 if the hasher information is not available.
H256
Fixed-size uninterpreted hash type with 32 bytes (256 bits) size.
SubstrateHeader
A generic Substrate header type, adapted from sp_runtime::generic::Header. The block number and hasher can be configured to adapt this for other nodes.
U256
Little-endian large integer type 256-bit unsigned integer.

Enums§

DigestItem
Digest item that is able to encode/decode ‘system’ digest items and provide opaque access to other items. From sp_runtime::generic::digest.
NumberOrHex
A number type that can be serialized both as a number or a string that encodes a number in a string.
SubstrateConfig
Default set of commonly used types by Substrate runtimes.

Type Aliases§

ConsensusEngineId
Consensus engine unique ID. From sp_runtime::ConsensusEngineId.
SubstrateExtrinsicParams
A struct representing the signed extra and additional parameters required to construct a transaction for the default substrate node.
SubstrateExtrinsicParamsBuilder
A builder which leads to SubstrateExtrinsicParams being constructed. This is what you provide to methods like sign_and_submit().