pub struct Runtime;

Implementations

Trait Implementations

Get current account nonce of given AccountId.

Retrieve authority identifiers of the current and next authority set.

Return the genesis configuration for BABE. The configuration is only read on genesis.

Returns the slot that started the current epoch.

Returns information regarding the current epoch.

Returns information regarding the next epoch (which was already previously announced). Read more

Generates a proof of key ownership for the given authority in the current epoch. 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 slot as parameter the current implementations ignores this parameter and instead relies on this method being called at the correct block height, i.e. any point at which the epoch for the given slot is live on-chain. Future implementations will instead use indexed data through an offchain worker, not requiring older states to be available. 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

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.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Data to be associated with an account (other than nonce/transaction counter, which this pallet does regardless). Read more

The user account identifier type for the runtime.

The basic call filter to use in Origin. All origins are built with this filter as base, except Root. Read more

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

The maximum length of a block (in bytes).

The block number type used by the runtime.

Block & extrinsics weights: base values and limits.

The aggregated Call type.

The weight of runtime database operations the runtime can invoke.

The aggregated event type of the runtime.

The output of the Hashing function.

The hashing system (algorithm) being used in the runtime (e.g. Blake2).

The block header.

Account index (aka nonce) type. This stores the number of previous transactions associated with a sender account. Read more

Converting trait to take a source type and convert to AccountId. Read more

The maximum number of consumers allowed on a single account.

A function that is invoked when an account has been determined to be dead. Read more

Handler for when a new account has just been created.

What to do if the runtime wants to change the code to something new. Read more

The Origin type used by dispatchable calls.

Provides information about the pallet setup in the runtime. Read more

The designated SS85 prefix of this chain. Read more

Get the chain’s current version.

Origin from which approvals must come.

Percentage of spare funds (if any) that are burnt per spend period.

Handler for the unbalanced decrease when treasury funds are burned.

The staking balance.

The overarching event type.

The maximum number of approvals that can wait in the spending queue.

Handler for the unbalanced decrease when slashing for a rejected proposal or bounty.

The treasury’s pallet id, used for deriving its sovereign account ID.

Fraction of a proposal’s value that should be bonded in order to place the proposal. An accepted proposal gets these back. A rejected proposal does not. Read more

Maximum amount of funds that should be placed in a deposit for making a proposal.

Minimum amount of funds that should be placed in a deposit for making a proposal.

Origin from which rejections must come.

Runtime hooks to external pallet using treasury to compute spend funds.

Period between successive spends.

Weight information for extrinsics in this pallet.

The means of storing the balances of an account.

The balance of an account.

A handler to access the balance of an account. Different balances instance might have its own implementation, which you can configure in runtime. Read more

Handler for the unbalanced reduction when removing a dust account.

The overarching event type.

The minimum amount required to keep an account open.

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

The maximum number of named reserves that can exist on an account.

The id type for named reserves.

Weight information for extrinsics in this pallet.

A type which can be turned into an AccountId from a 256-bit hash. Read more

Gets the chain id value from the instance.

The overarching event type.

Message fee type of inbound messages. This fee is paid on the bridged chain.

Payload type of inbound messages. This payload is dispatched on this chain.

Identifier of relayer that deliver messages to this chain. Relayer reward is paid on the bridged chain. Read more

Message payload verifier.

Maximal number of messages that may be pruned during maintenance. Maintenance occurs whenever new message is sent. The reason is that if you want to use lane, you should be ready to pay for its maintenance. Read more

Maximal number of unconfirmed messages at inbound lane. Unconfirmed means that the message has been delivered, but either confirmations haven’t been delivered back to the source chain, or we haven’t received reward confirmations for these messages yet. Read more

Maximal number of unrewarded relayer entries at inbound lane. Unrewarded means that the relayer has delivered messages, but either confirmations haven’t been delivered back to the source chain, or we haven’t received reward confirmations yet. Read more

Message delivery payment.

Message dispatch.

Handler for delivered messages.

Handler for accepted messages.

Message fee type of outbound messages. This fee is paid on this chain.

Payload type of outbound messages. This payload is dispatched on the bridged chain.

Pallet parameter that is opaque to the pallet itself, but may be used by the runtime for integrating the pallet. Read more

Source header chain, as it is represented on target chain.

Target header chain.

Benchmarks results from runtime we’re plugged into.

A type which can be turned into an AccountId from a 256-bit hash. Read more

Id of the message. Whenever message is passed to the dispatch module, it emits event with this id + dispatch result. Could be e.g. (LaneId, MessageNonce) if it comes from the messages module. Read more

The overarching dispatch call type.

Pre-dispatch validation for incoming calls. Read more

The type that is used to wrap the Self::Call when it is moved over bridge. Read more

The overarching event type.

The type is used to customize the dispatch call origin.

Type of account ID on source chain.

Type of account public key on target chain.

Type of signature that may prove that the message has been signed by owner of TargetChainAccountPublic. Read more

The chain we are bridging to here.

Maximal number of finalized headers to keep in the storage. Read more

The upper bound on the number of requests allowed by the pallet. Read more

Weights gathered through benchmarking.

The slash ratio for assigned relayers.

The collateral relayer need to lock for each order. Read more

Reward parameters

The minimum fee for relaying.

The slot times set

Some reward goes to Treasury.

The means of storing the balances of an account.

The balance of an account.

A handler to access the balance of an account. Different balances instance might have its own implementation, which you can configure in runtime. Read more

Handler for the unbalanced reduction when removing a dust account.

The overarching event type.

The minimum amount required to keep an account open.

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

The maximum number of named reserves that can exist on an account.

The id type for named reserves.

Weight information for extrinsics in this pallet.

A way to check whether a given validator is disabled and should not be authoring blocks. Blocks authored by a disabled validator will lead to a panic as part of this module’s initialization. Read more

BABE requires some logic to be triggered on every block to query for whether an epoch has ended and to perform the transition to the next epoch. Read more

The amount of time, in slots, that each epoch should last. NOTE: Currently it is not possible to change the epoch duration after the chain has started. Attempting to do so will brick block production. Read more

The expected average block time at which BABE should be creating blocks. Since BABE is probabilistic it is not trivial to figure out what the expected average block time should be based on the slot duration and the security parameter c (where 1 - c represents the probability of a slot being empty). Read more

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

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

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

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

Max number of authorities allowed

The overarching event type.

The keys.

Something that can predict the next session rotation. This should typically come from the same logical unit that provides [ShouldEndSession], yet, it gives a best effort estimate. It is helpful to implement [EstimateNextNewSession]. Read more

Handler when a session has changed.

Handler for managing new session.

Indicator for when to end the session.

A stable ID for a validator.

A conversion from account ID to validator ID. Read more

Weight information for extrinsics in this pallet.

The function call.

The event type of this module.

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

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

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

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

Max Authorities in use

Weights for this pallet.

Authority identifier type

Chain’s ID, which is using for constructing the message. (follow EIP-712 SPEC)

The maximum number of authorities.

How long should we wait for the message root to be signed. Read more

The Darwinia message root. Read more

The signing threshold. Read more

The interval of checking the message root.

The identifier type for an authority.

The overarching event type.

The maximum number of keys that can be added.

The maximum size of the encoding of PeerId and MultiAddr that are coming from the hearbeat Read more

The maximum number of peers to be stored in ReceivedHeartbeats

A trait that allows us to estimate the current session progress and also the average session length. Read more

A type that gives us the ability to submit unresponsiveness offence reports.

A configuration for base priority of unsigned transactions. Read more

A type for retrieving the validators supposed to be online in a session.

Weight information for extrinsics in this pallet.

The maximum number of authorities that can be added.

A sudo-able call.

The overarching event type.

The aggregated call type.

The overarching event type.

The maximum number of scheduled calls in the queue for a single block. Not strictly enforced, but used for weight estimation. Read more

The maximum weight that may be scheduled per block for any dispatchables of less priority than schedule::HARD_DEADLINE. Read more

If Some then the number of blocks to postpone execution for when the item is delayed.

The aggregated origin which the dispatch will take.

Compare the privileges of origins. Read more

The caller origin, overarching type of all pallets origins.

The preimage provider with which we look up call hashes to get the call.

Required origin to schedule or cancel calls.

Weight information for extrinsics in this pallet.

The base deposit for placing a preimage on chain.

The per-byte deposit for placing a preimage on chain.

Currency type for this pallet.

The overarching event type.

An origin that can request a preimage be placed on-chain without a deposit or fee, or manage existing preimages. Read more

Max size allowed for a preimage.

The Weight information for this pallet.

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

Type used for expressing timestamp.

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

Weight information for extrinsics in this pallet.

The origin which may set filter.

Weight information for the extrinsics in this module.

The block gas limit. Can be a simple constant, or an adjustment algorithm in another pallet. Read more

Block number to block hash.

Allow the origin to call on behalf of given address.

Chain ID of EVM.

The overarching event type.

Calculator for current gas price.

Find author for the current block.

Maps Ethereum gas to Substrate weight.

Convert from H160 to account id.

KTON balance adapter for decimal convert

To handle fee deduction for EVM transactions. An example is this pallet being used by pallet_ethereum where the chain implementing pallet_ethereum should be able to configure what happens to the fees Similar to OnChargeTransaction of pallet_transaction_payment Read more

Precompiles associated with this EVM engine.

RING balance adapter for decimal convert

EVM execution runner.

EVM config used in the Pallet.

The overarching event type.

How Ethereum state root is calculated.

Lower and upper bounds for increasing / decreasing BaseFeePerGas.

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

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

A fee mulitplier for Operational extrinsics to compute “virtual tip” to boost their priority 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.

An event handler for authored blocks.

A filter for uncles within a block. This is for implementing further constraints on what uncles can be included, other than their ancestry. Read more

Find the author of a block.

The number of blocks back we should accept uncles. This means that we will deal with uncle-parents that are UncleGenerations + 1 before now. Read more

The configuration of benchmarking.

Currency type.

Something that will provide the election data.

Something that can predict the fee of a call. Used to sensibly distribute rewards.

Configuration for the fallback

Origin that can control this pallet. Note that any action taken by this origin (such) as providing an emergency solution is not checked. Thus, it must be a trusted origin. Read more

Maximum length (bytes) that the mined solution should consume. Read more

Maximum weight that the miner should consume. Read more

The priority of the unsigned transaction submitted in the unsigned-phase

The repeat threshold of the offchain worker. Read more

Handler for the rewards.

Base deposit for a signed solution.

Per-byte deposit for a signed solution.

Per-weight deposit for a signed solution.

Maximum number of signed submissions that can be queued. Read more

Maximum weight of a signed solution. Read more

Duration of the signed phase.

Base reward for a signed solution

Handler for the slashed deposits.

The solution type.

The minimum amount of improvement to the solution score that defines a solution as “better” (in any phase). Read more

OCW election solution miner algorithm implementation.

Duration of the unsigned phase.

The maximum number of voters to put in the snapshot. At the moment, snapshots are only over a single block, but once multi-block elections are introduced they will take place over multiple blocks. Read more

The weight of the pallet.

The accuracy used to compute the election:

Something that provides the data for election.

Number of eras that staked funds must remain bonded for.

Number of eras that staked funds must remain bonded for.

Darwinia’s hard cap default 10_000_000_000 * 10^9

Something that provides the election functionality.

The overarching event type.

Something that provides the election functionality at genesis.

The KTON currency.

Handler for the unbalanced KTON increment when rewarding a staker.

Handler for the unbalanced KTON reduction when slashing a staker.

The maximum number of nominators rewarded for each validator. Read more

Something that can estimate the next session change, accurately or as a best effort guess. Read more

The fraction of the validator set that is safe to be offending. After the threshold is reached a new era will be forced. Read more

The RING currency.

Handler for the unbalanced RING increment when rewarding a staker.

Tokens have been minted and are unused for validator-reward. See Era payout. Read more

Handler for the unbalanced RING reduction when slashing a staker.

Interface for interacting with a session pallet.

Number of sessions per era.

The origin which can cancel a deferred slash. Root can always do this.

Number of eras that slashes are deferred by, after computation. Read more

Something that can provide a sorted list of voters in a somewhat sorted way. The original use case for this was designed with [pallet_bags_list::Pallet] in mind. If the bags-list is not desired, [impls::UseNominatorsMap] is likely the desired option. Read more

Darwinia’s staking vote default 1_000_000_000

Time used for computing era duration. Read more

Weight information for extrinsics in this pallet.

Maximum number of nominations per nominator.

The overarching event type.

Full identification of the validator.

A handler called for every offence report.

Full identification of the validator.

A conversion from validator ID to full identification. Read more

Returns the version of the runtime.

Execute the given block.

Initialize a block with the given header.

Attempt to create signed extrinsic data that encodes call from given account. Read more

Formats the value using the given formatter. Read more

Ensure the position of inherent is correct, i.e. they are before non-inherents. Read more

Returns runtime defined pallet_evm::ChainId.

Returns FixedGasPrice::min_gas_price

Returns pallet_evm::Accounts by address.

For a given account address, returns pallet_evm::AccountCodes.

Returns the converted FindAuthor::find_author authority id.

For a given account address and index, returns pallet_evm::AccountStorages.

Return the current transaction status.

Return the current block.

Return the current receipt.

Receives a Vec<OpaqueExtrinsic> and filters all the ethereum transactions.

Return the elasticity multiplier.

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

Get current GRANDPA authority set id.

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 !=.

The extrinsic type expected by the runtime.

The runtime’s call type. Read more

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

A public key that is capable of identifying AccountIds. Read more

A matching Signature type.

Validate the transaction. Read more

The type identifying for which type info is provided. Read more

Returns the static type identifier for Self.

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

Converts self into T using Into<T>. Read more

Converts self into a target type. Read more

Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait. Read more

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait. Read more

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s. Read more

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s. Read more

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait. Read more

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

Causes self to use its Binary implementation when Debug-formatted.

Causes self to use its Display implementation when Debug-formatted. Read more

Causes self to use its LowerExp implementation when Debug-formatted. Read more

Causes self to use its LowerHex implementation when Debug-formatted. Read more

Causes self to use its Octal implementation when Debug-formatted.

Causes self to use its Pointer implementation when Debug-formatted. Read more

Causes self to use its UpperExp implementation when Debug-formatted. Read more

Causes self to use its UpperHex implementation when Debug-formatted. Read more

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

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.

Performs the conversion.

Pipes by value. This is generally the method you want to use. Read more

Borrows self and passes that borrow into the pipe function. Read more

Mutably borrows self and passes that borrow into the pipe function. Read more

Borrows self, then passes self.borrow() into the pipe function. Read more

Mutably borrows self, then passes self.borrow_mut() into the pipe function. Read more

Borrows self, then passes self.as_ref() into the pipe function.

Mutably borrows self, then passes self.as_mut() into the pipe function. Read more

Borrows self, then passes self.deref() into the pipe function.

Mutably borrows self, then passes self.deref_mut() into the pipe function. Read more

Pipes a value into a function that cannot ordinarily be called in suffix position. Read more

Pipes a trait borrow into a function that cannot normally be called in suffix position. Read more

Pipes a trait mutable borrow into a function that cannot normally be called in suffix position. Read more

Pipes a trait borrow into a function that cannot normally be called in suffix position. Read more

Pipes a trait mutable borrow into a function that cannot normally be called in suffix position. Read more

Pipes a dereference into a function that cannot normally be called in suffix position. Read more

Pipes a mutable dereference into a function that cannot normally be called in suffix position. Read more

Pipes a reference into a function that cannot ordinarily be called in suffix position. Read more

Pipes a mutable reference into a function that cannot ordinarily be called in suffix position. Read more

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

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

Immutable access to a value. Read more

Mutable access to a value. Read more

Immutable access to the Borrow<B> of a value. Read more

Mutable access to the BorrowMut<B> of a value. Read more

Immutable access to the AsRef<R> view of a value. Read more

Mutable access to the AsMut<R> view of a value. Read more

Immutable access to the Deref::Target of a value. Read more

Mutable access to the Deref::Target of a value. Read more

Calls .tap() only in debug builds, and is erased in release builds.

Calls .tap_mut() only in debug builds, and is erased in release builds. Read more

Calls .tap_borrow() only in debug builds, and is erased in release builds. Read more

Calls .tap_borrow_mut() only in debug builds, and is erased in release builds. Read more

Calls .tap_ref() only in debug builds, and is erased in release builds. Read more

Calls .tap_ref_mut() only in debug builds, and is erased in release builds. Read more

Calls .tap_deref() only in debug builds, and is erased in release builds. Read more

Calls .tap_deref_mut() only in debug builds, and is erased in release builds. Read more

Provides immutable access for inspection. Read more

Calls tap in debug builds, and does nothing in release builds.

Provides mutable access for modification. Read more

Calls tap_mut in debug builds, and does nothing in release builds.

Provides immutable access to the reference for inspection.

Calls tap_ref in debug builds, and does nothing in release builds.

Provides mutable access to the reference for modification.

Calls tap_ref_mut in debug builds, and does nothing in release builds.

Provides immutable access to the borrow for inspection. Read more

Calls tap_borrow in debug builds, and does nothing in release builds.

Provides mutable access to the borrow for modification.

Calls tap_borrow_mut in debug builds, and does nothing in release builds. Read more

Immutably dereferences self for inspection.

Calls tap_deref in debug builds, and does nothing in release builds.

Mutably dereferences self for modification.

Calls tap_deref_mut in debug builds, and does nothing in release builds. Read more

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

Attempts to convert self into T using TryInto<T>. Read more

Attempts to convert self into a target type. 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