Crate frame_support[−][src]
Support code for the runtime.
Re-exports
pub use serde; |
pub use self::storage::StorageValue; |
pub use self::storage::StorageMap; |
pub use self::storage::StorageDoubleMap; |
pub use self::storage::StoragePrefixedMap; |
pub use self::storage::IterableStorageMap; |
pub use self::storage::IterableStorageDoubleMap; |
pub use self::storage::migration; |
pub use self::dispatch::Parameter; |
pub use self::dispatch::Callable; |
pub use self::dispatch::IsSubType; |
pub use sp_runtime; |
Modules
debug | Runtime debugging and logging utilities. |
dispatch | Dispatch system. Contains a macro for defining runtime modules and generating values representing lazy module function calls. |
error | Macro for declaring a module error. |
event | Macros that define an Event types. Events can be used to easily report changes or conditions in your runtime to external entities like users, chain explorers, or dApps. |
inherent | |
metadata | |
storage | Stuff to do with the runtime’s storage. |
traits | Traits for FRAME. |
unsigned | |
weights | Primitives for transaction weighting. |
Macros
assert_err | Assert an expression returns an error specified. |
assert_err_ignore_postinfo | Assert an expression returns an error specified. |
assert_err_with_weight | Assert an expression returns error with the given weight. |
assert_noop | Evaluate an expression, assert it returns an expected |
assert_ok | Panic if an expression doesn’t evaluate to |
construct_runtime | Construct a runtime, with the given name and the given modules. |
decl_error | Declare an error type for a runtime module. |
decl_event | Implement the |
decl_module | Declares a |
decl_storage | Declares strongly-typed wrappers around codec-compatible types in storage. |
ensure | Evaluate |
fail | Return Err of the expression: |
impl_filter_stack | |
impl_outer_dispatch | Implement a meta-dispatch module to dispatch to other dispatchers. |
impl_outer_event | Constructs an Event type for a runtime. This is usually called automatically by the construct_runtime macro. |
impl_outer_inherent | Implement the outer inherent.
All given modules need to implement |
impl_outer_origin | Constructs an Origin type for a runtime. This is usually called automatically by the construct_runtime macro. See also __create_decl_macro. |
impl_outer_validate_unsigned | Implement |
impl_runtime_metadata | Implements the metadata support for the given runtime and all its modules. |
ord_parameter_types | Macro for easily creating a new implementation of both the |
parameter_types | Create new implementations of the |
runtime_print | Print out a formatted message. |
Structs
Blake2_128 | Hash storage keys with blake2 128 |
Blake2_128Concat | Hash storage keys with |
Blake2_256 | Hash storage keys with blake2 256 |
Identity | Store the key directly. |
Twox64Concat | Hash storage keys with |
Twox128 | Hash storage keys with twox 128 |
Twox256 | Hash storage keys with twox 256 |
Enums
Never | A type that cannot be instantiated. |
Void | The void type - it cannot exist. |
Traits
Hashable | |
Printable | Trait for things which can be printed from the runtime. |
ReversibleStorageHasher | Hasher to use to hash keys to insert to storage. |
StorageHasher | Hasher to use to hash keys to insert to storage. |
Functions
Print something that implements |
Type Definitions
ConsensusEngineId | Consensus engine unique ID. |
Attribute Macros
transactional | Execute the annotated function in a new storage transaction. |