Crate frame_system
source ·Expand description
System Pallet
The System pallet provides low-level access to core types and cross-cutting utilities. It acts as the base layer for other pallets to interact with the Substrate framework components.
Overview
The System pallet defines the core data types used in a Substrate runtime.
It also provides several utility functions (see Pallet
) for other FRAME pallets.
In addition, it manages the storage items for extrinsics data, indexes, event records, and digest items, among other things that support the execution of the current block.
It also handles low-level tasks like depositing logs, basic set up and take down of temporary storage entries, and access to previous block hashes.
Interface
Dispatchable Functions
The System pallet does not implement any dispatchable functions.
Public Functions
See the Pallet
struct for details of publicly available functions.
Signed Extensions
The System pallet defines the following extensions:
CheckWeight
: Checks the weight and length of the block and ensure that it does not exceed the limits.CheckNonce
: Checks the nonce of the transaction. Contains a single payload of typeT::Index
.CheckEra
: Checks the era of the transaction. Contains a single payload of typeEra
.CheckGenesis
: Checks the provided genesis hash of the transaction. Must be a part of the signed payload of the transaction.CheckSpecVersion
: Checks that the runtime version is the same as the one used to sign the transaction.CheckTxVersion
: Checks that the transaction version is the same as the one used to sign the transaction.
Lookup the runtime aggregator file (e.g. node/runtime
) to see the full list of signed
extensions included in a chain.
Re-exports
pub use weights::WeightInfo;
pub use pallet::*;
Modules
Structs
spec_version
and spec_name
of when the last runtime upgrade
happened.Enums
Traits
inc_consumers
.Functions
o
represents an unsigned extrinsic. Returns Ok
or an Err
otherwise.o
represents the root. Returns Ok
or an Err
otherwise.o
represents a signed extrinsic (i.e. transaction).
Returns Ok
with the account that signed the extrinsic or an Err
otherwise.o
represents either a signed extrinsic (i.e. transaction) or the root.
Returns Ok
with the account that signed the extrinsic, None
if it was root, or an Err
otherwise.option
into two constituent options, as defined by a splitter
function.