Expand description
The main prelude of FRAME for building runtimes.
A runtime typically starts with:
use frame::{prelude::*, runtime::prelude::*};Macros
- Macro to amalgamate the runtime into
struct Runtime. Construct a runtime, with the given name and the given pallets. - Types to define your runtime version. Create a const
RuntimeString. - Macro to implement runtime APIs.
- Macros to easily impl traits such as
Getfor types. Macro for easily creating a new implementation of both theGetandContainstraits. Use exactly as withparameter_types, only the type must beOrd. - Macros to easily impl traits such as
Getfor types. Create new implementations of theGettrait.
Structs
- Const types that can easily be used in conjuncture with
Get. Const getter for a basic type. - Const types that can easily be used in conjuncture with
Get. Const getter for a basic type. - Const types that can easily be used in conjuncture with
Get. Const getter for a basic type. - Const types that can easily be used in conjuncture with
Get. Const getter for a basic type. - Const types that can easily be used in conjuncture with
Get. Const getter for a basic type. - Const types that can easily be used in conjuncture with
Get. Const getter for a basic type. - Const types that can easily be used in conjuncture with
Get. Const getter for a basic type. - Const types that can easily be used in conjuncture with
Get. Const getter for a basic type. - Const types that can easily be used in conjuncture with
Get. Const getter for a basic type. - Const types that can easily be used in conjuncture with
Get. Const getter for a basic type. - Const types that can easily be used in conjuncture with
Get. Const getter for a basic type. - All of the types related to the FRAME runtime executive. Main entry point for certain runtime actions as e.g.
execute_block. - The version of the native runtime.
- Types to define your runtime version. Runtime version. This should not be thought of as classic Semver (major/minor/tiny). This triplet have different semantics and mis-interpretation could cause problems. In particular: bug fixes should result in an increment of
spec_versionand possiblyauthoring_version, absolutely notimpl_versionsince they change the semantics of the runtime.
Type Definitions
- All of the types related to the FRAME runtime executive.
- All of the types related to the FRAME runtime executive.
- All of the types related to the FRAME runtime executive.
Attribute Macros
- Macro to easily derive the
Configtrait of various pallet forRuntime. This attribute can be used to derive a full implementation of a trait based on a local partial impl and an external impl containing defaults that can be overriden in the local impl. - Types to define your runtime version.