pub struct Runtime;

Implementations

Trait Implementations

Get current account nonce of given AccountId.

Return the slot duration in seconds for Aura. Currently, only the value provided by this type at genesis will be used. Read more

Dispatch the given benchmark.

Apply the given extrinsic. Read more

Finish the current block.

Generate inherent extrinsics. The inherent data will vary from chain to chain.

Check that the inherents are valid. The inherent data will vary from chain to chain.

Generate a random seed.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

The basic call filter to use in dispatchable.

Block & extrinsics weights: base values and limits.

The maximum length of a block (in bytes).

The identifier used to distinguish between accounts.

The aggregated dispatch type that is available for extrinsics.

The lookup mechanism to get account ID from whatever is passed in dispatchers.

The index type for storing how many extrinsics an account has signed.

The index type for blocks.

The type for hashing blocks and tries.

The hashing algorithm used.

The header type.

The ubiquitous event type.

The ubiquitous origin type.

Maximum number of block number to block hash mappings to keep (oldest pruned first).

The weight of database operations that the runtime can invoke.

Version of the runtime.

Converts a module to the index of the module in construct_runtime!.

This type is being generated by construct_runtime!.

What to do if a new account is created.

What to do if an account is fully reaped from the system.

The data to be stored in an account.

Weight information for the extrinsics of this pallet.

This is used as an identifier of the chain. 42 is the generic substrate prefix.

The type for recording an account’s balance.

The ubiquitous event type.

The maximum number of locks that should exist on an account. Not strictly enforced, but used for weight estimation. Read more

Handler for the unbalanced reduction when removing a dust account.

The minimum amount required to keep an account open.

The means of storing the balances of an account.

Weight information for extrinsics in this pallet.

The identifier type for an authority.

The event type of this module.

The function call.

A system for proving ownership of keys, i.e. that a given key was part of a validator set, needed for validating equivocation reports. Read more

The proof of key ownership, used for validating equivocation reports. The proof must include the session index and validator count of the session at which the equivocation occurred. Read more

The identification of a key owner, used when reporting equivocations.

The equivocation handling subsystem, defines methods to report an offence (after the equivocation has been validated) and for submitting a transaction to report an equivocation (from an offchain context). NOTE: when enabling equivocation handling (i.e. this type isn’t set to ()) you must use this pallet’s ValidateUnsigned in the runtime definition. Read more

Weights for this pallet.

A timestamp: milliseconds since the unix epoch.

Something which can be notified when the timestamp is set. Set this to () if not needed.

The minimum period between blocks. Beware that this is different to the expected period that the block production apparatus provides. Your chosen consensus system will generally work with this to determine a sensible block time. e.g. For Aura, it will be double this period on default settings. Read more

Weight information for extrinsics in this pallet.

Handler for withdrawing, refunding and depositing the transaction fee. Transaction fees are withdrawn before the transaction is executed. After the transaction was executed the transaction weight can be adjusted, depending on the used resources by the transaction. If the transaction weight is lower than expected, parts of the transaction fee might be refunded. In the end the fees can be deposited. Read more

The fee to be paid for making a transaction; the per-byte portion.

Convert a weight value into a deductible fee based on the currency type.

Update the multiplier of the next block, based on the previous block’s weight.

The overarching event type.

The overarching call type.

Weight information for extrinsics in this pallet.

The overarching event type.

A sudo-able call.

The overarching event type.

Weight information for extrinsics for this pallet.

Timestamps provider

The overarching event type.

Weight information for extrinsics for this pallet.

Timestamps provider

Returns the version of the runtime.

Execute the given block.

Initialize a block with the given header.

Formats the value using the given formatter. Read more

The NodeBlock type.

The RuntimeBlock type.

Get the current GRANDPA authorities and weights. This should not change except for when changes are scheduled and the corresponding delay has passed. Read more

Submits an unsigned extrinsic to report an equivocation. The caller must provide the equivocation proof and a key ownership proof (should be obtained using generate_key_ownership_proof). The extrinsic will be unsigned and should only be accepted for local authorship (not to be broadcast to the network). This method returns None when creation of the extrinsic fails, e.g. if equivocation reporting is disabled for the given runtime (i.e. this method is hardcoded to return None). Only useful in an offchain context. Read more

Generates a proof of key ownership for the given authority in the given set. An example usage of this module is coupled with the session historical module to prove that a given authority key is tied to a given staking identity during a specific session. Proofs of key ownership are necessary for submitting equivocation reports. NOTE: even though the API takes a set_id as parameter the current implementations ignore this parameter and instead rely on this method being called at the correct block height, i.e. any point at which the given set id is live on-chain. Future implementations will instead use indexed data through an offchain worker, not requiring older states to be available. Read more

Returns the metadata of a runtime.

Starts the off-chain task for given block header.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Generate a set of session keys with optionally using the given seed. The keys should be stored within the keystore exposed via runtime externalities. Read more

Decode the given public session keys. Read more

Validate the transaction. Read more

The call to validate

Validate the call right before dispatch. Read more

Return the validity of the call Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Convert from a value of T into an equivalent instance of Option<Self>. Read more

Consume self to return Some equivalent value of Option<T>. Read more

Compare self to key and return true if they are equal.

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Cast reference.

Cast reference.

Cast mutable reference.

Cast mutable reference.

Get a reference to the inner from the outer.

Get a mutable reference to the inner from the outer.

Should always be Self

Convert from a value of T into an equivalent instance of Self. Read more

Consume self to return an equivalent value of T. Read more

Performance hack: Clone doesn’t get inlined for Copy types in debug mode, so make it inline anyway.

Tests if Self the same as the type T Read more

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more

Checks if self is actually part of its subset T (and can be converted to it).

Use with care! Same as self.to_subset but without any property checks. Always succeeds.

The inclusion map: converts self to the equivalent element of its superset.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The counterpart to unchecked_from.

Consume self to return an equivalent value of T.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more