Crate sp_runtime[−][src]
Expand description
Runtime Modules shared primitive types.
Modules
Re-export big_uint stuff.
Provides some utilities to define a piecewise linear function.
Generic implementations of Extrinsic/Header/Block.
Re-export 128 bit helpers.
Re-export this since it’s part of the API of this crate.
A collection of higher lever helpers for offchain calls.
A logger that can be used to log from the runtime.
Testing utilities.
Primitives for the runtime modules.
Transaction validity interface.
Macros
Checks that $x
is equal to $y
with an error rate of $error
.
Calls a given macro a number of times with a set of fixed params and an incrementing numeral. e.g.
Create a const RuntimeString
.
Convenience macro to use the format! interface to get a RuntimeString::Owned
Implement OpaqueKeys
for a described struct.
Structs
Re-export this since it’s part of the API of this crate.
Signature verify that can work with any known signature types..
Re-export this since it’s part of the API of this crate.
Generic header digest.
Result of a Dispatchable
which contains the DispatchResult
and additional information about
the Dispatchable
that is only known post dispatch.
Re-export top-level arithmetic stuff.
Re-export top-level arithmetic stuff.
Re-export top-level arithmetic stuff.
Collection of justifications for a given block, multiple justifications may be provided by different consensus engines for the same block.
Re-export this since it’s part of the API of this crate.
Simple blob to hold an extrinsic without committing to its format and ensure it is serialized correctly.
Re-export top-level arithmetic stuff.
Re-export top-level arithmetic stuff.
Re-export top-level arithmetic stuff.
Re-export top-level arithmetic stuff.
Re-export top-level arithmetic stuff.
Re-export top-level arithmetic stuff.
Batching session.
Struct containing data needed for a storage.
Child trie storage data.
Enums
Arithmetic errors.
Digest item that is able to encode/decode ‘system’ digest items and provide opaque access to other items.
Reason why a dispatch call failed.
The enum Either
with variants Left
and Right
is a general purpose
sum type with two cases.
A multi-format address wrapper for on-chain accounts.
Signature verify that can work with any known signature types..
Public key for any known crypto algorithm.
A string that wraps a &'static str
in the runtime and String
/Vec<u8>
on decode.
Description of what went wrong when trying to complete an operation on a token.
Describes on what should happen with a storage transaction.
Traits
Something that bound to a fixed RuntimeAppPublic
.
Something that can build the genesis storage of a module.
Complex storage builder stuff.
Re-export this since it’s part of the API of this crate.
A data structure that can be deserialized from any data format supported by Serde.
A data structure that can be deserialized without borrowing any data from the deserializer.
Re-export top-level arithmetic stuff.
Re-export top-level arithmetic stuff.
Re-export top-level arithmetic stuff.
A runtime interface for an application’s public key.
Re-export top-level arithmetic stuff.
A data structure that can be serialized into any data format supported by Serde.
Re-export this since it’s part of the API of this crate.
Functions
Print something that implements Printable
from the runtime.
Verify a signature on an encoded value in a lazy manner. This can be an optimization if the signature scheme has an “unsigned” escape hash.
Type Definitions
The result of applying of an extrinsic.
Same as ApplyExtrinsicResult
but augmented with PostDispatchInfo
on success.
Consensus engine unique ID.
This type specifies the outcome of dispatching a call to a module.
This is the legacy return type of Dispatchable
. It is still exposed for compatibility reasons.
The new return type is DispatchResultWithInfo
. FRAME runtimes should use
frame_support::dispatch::DispatchResult
.
Return type of a Dispatchable
which contains the DispatchResult
and additional information
about the Dispatchable
that is only known post dispatch.
The encoded justification specific to a consensus engine.
Re-export top-level arithmetic stuff.
An abstraction over justification for a block’s validity under a consensus algorithm.
Re-export top-level arithmetic stuff.