Struct shot_runtime::Runtime[][src]

pub struct Runtime;

Implementations

Trait Implementations

Get current account nonce of given AccountId.

Returns the slot duration for Aura. Read more

Get the benchmark metadata available for this runtime. 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.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Collect information about a collation.

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 pallet to the index of the pallet 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 set code logic of the parachain.

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.

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.

The staking balance.

Origin from which approvals must come.

Origin from which rejections must come.

The overarching event type.

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

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

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

Period between successive spends.

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

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

Handler for the unbalanced decrease when treasury funds are burned.

Weight information for extrinsics in this pallet.

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

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

Weight information for extrinsics in this module.

The balance type for cross chain transfers

Asset Id that is used to identify different kinds of assets.

Convert a T::AssetId to its relative MultiLocation identifier.

The encoder to use for encoding when transacting a pallet_staking Call Read more

The encoder to use for encoding when transacting a pallet_proxy Call Read more

Minimum amount that can be transferred via XCM to the statemint parachain Read more

The native asset id

The location of the chain itself

Returns the parachain ID we are running with.

Identifier for the relay chain’s specific asset

Unbonding slashing spans for unbonding on the relaychain.

Determines the threshold amounts when operating with staked assets.

Currency type for deposit/withdraw xcm assets Read more

Executor for cross chain messages.

The type that handles all the cross chain asset transfers

Origin that is allowed to send cross chain messages on behalf of the PINT chain Read more

How to send an onward XCM message.

The weight for this pallet’s extrinsics.

The overarching event type.

A stable ID for a validator.

A conversion from account ID to validator ID. Read more

Indicator for when to end the session.

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 for managing new session.

Handler when a session has changed.

The keys.

Weight information for extrinsics in this pallet.

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

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

An event handler for authored blocks.

The weight for this pallet’s extrinsics.

The overarching event type.

A sudo-able call.

The overarching event type.

The overarching call type.

The caller origin, overarching type of all pallets origins.

Weight information for extrinsics in this pallet.

The overarching event type.

The aggregated origin which the dispatch will take.

The caller origin, overarching type of all pallets origins.

The aggregated call type.

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

Required origin to schedule or cancel calls.

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

Compare the privileges of origins. Read more

Weight information for extrinsics in this pallet.

The overarching event type.

Something which can be notified when the validation data is set.

Returns the parachain ID we are running with.

The message handler that will be invoked when messages are received via DMP.

The weight we reserve at the beginning of the block for processing DMP messages.

The place where outbound XCMP messages come from. This is queried in finalize_block.

The message handler that will be invoked when messages are received via XCMP. Read more

The weight we reserve at the beginning of the block for processing XCMP messages.

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.

A fee mulitplier for Operational extrinsics to compute “virtual tip” to boost their priority Read more

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 outer origin type.

The outer call dispatch type.

A unique number assigned to each new instance of a proposal

Duration (in blocks) of the proposal submission period

Duration (in blocks) of the voting period

Range of the voting period

Minimum number of council members that must vote for a action to be passed Read more

Origin that is permitted to execute approved proposals

Origin that is permitted to create proposals

Origin that is permitted to execute priviliged extrinsics

The weight for this pallet’s extrinsics.

Overarching event type.

The currency mechanism.

Origin that can dictate updating parameters of this pallet.

Account Identifier from which the internal Pot is generated.

Maximum number of candidates that we should have. This is used for benchmarking and is not enforced. Read more

Minimum number of candidates that we should have. This is used for disaster recovery. Read more

Maximum number of invulnerables. Read more

A stable ID for a validator.

A conversion from account ID to validator ID. Read more

Validate a user is registered

The weight information of this pallet.

The balance type

The amount type, should be signed version of Balance

The currency ID type

Weight information for extrinsics in this module.

The minimum amount required to keep an account. It’s deprecated to config 0 as ED for any currency_id, zero ED will retain account even if its total is zero. Since accounts of orml_tokens are also used as providers of System::AccountInfo, zero ED may cause some problems. Read more

Handler to burn or transfer account’s dust

The balance type.

Currency Id.

Convert T::CurrencyId to MultiLocation.

Convert T::AccountId to MultiLocation.

Self chain location.

XCM executor.

Means of measuring the weight consumed by an XCM message locally.

Base XCM weight. Read more

Means of inverting a location.

Origin that is allowed to manage the treasury balance and initiate XCM withdrawals Read more

The balance type for cross chain transfers

Asset Id that is used to identify different kinds of assets.

PalletId used to generate the AccountId which holds the balance of the treasury. Read more

The native asset id

Identifier for the relay chain’s specific asset

The interface to Cross-chain transfer.

Convert a T::AssetId to its relative MultiLocation identifier.

Convert Self::Account to AccountId32

The weight for this pallet’s extrinsics.

Something to execute an XCM message. We need this to service the XCMoXCMP queue.

Information on the avaialble XCMP channels.

Means of converting an Xcm into a VersionedXcm.

The overarching event type.

Origin which is allowed to execute overweight messages.

The identifier type for an authority.

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

The maximum number of authorities that the pallet can hold.

A timestamp: milliseconds since the unix epoch.

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

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.

The fungibles instance used to pay for transactions in assets.

The actual transaction charging logic that charges the fees.

The overarching event type.

Required origin for sending XCM messages. If successful, it resolves to MultiLocation which exists as an interior location within this chain’s XCM context. Read more

The type used to actually dispatch an XCM to its destination.

Required origin for executing XCM messages, including the teleport functionality. If successful, then it resolves to MultiLocation which exists as an interior location within this chain’s XCM context. Read more

Our XCM filter which messages to be executed using XcmExecutor must pass.

Something to execute an XCM message.

Our XCM filter which messages to be teleported using the dedicated extrinsic must pass.

Our XCM filter which messages to be reserve-transferred using the dedicated extrinsic must pass.

Means of measuring the weight consumed by an XCM message locally.

Means of inverting a location.

The outer Origin type.

The outer Call type.

The latest supported version that we advertise. Generally just set it to pallet_xcm::CurrentXcmVersion. Read more

The overarching event type.

Origin that is allowed to administer the index

Currency implementation to use as the index token

The balance type used within this pallet

Restricts how many deposits can be active

Restricts the max limit of decimals in metadata

Determines the redemption fee in complete_withdraw

Period after the minting of the index token for which 100% is locked up. Only applies to users contributing assets directly to index Read more

Range of the lockup period

The identifier for the index token lock. Used to lock up deposits for T::LockupPeriod. Read more

The minimum amount of the index token that can be redeemed for the underlying asset in the index Read more

Minimum amount of time between redeeming index tokens and being able to withdraw the awarded assets Read more

Type that handles cross chain transfers

Type used to identify assets

The native asset id

Currency type for deposit/withdraw assets to/from the user’s sovereign account Read more

The types that provides the necessary asset price pairs

The type that provides benchmark features of pallet_price_feed

The type registry that stores all NAV for non liquid assets

The basic fees that apply when a withdrawal is executed

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

The maximum length of a name or symbol stored on-chain.

The weight for this pallet’s extrinsics.

The origin that is allowed to insert asset -> feed mappings

The asset identifier for the native asset (PINT).

Type used to identify the assets.

Type to keep track of timestamped values

The weight for this pallet’s extrinsics.

Type for feed indexing.

Oracle feed values.

Interface used for balance transfers.

The module id used to determine the account for storing the funds used to pay the oracles. Read more

The minimum amount of funds that need to be present in the fund account. Read more

Maximum allowed string length.

Maximum number of oracles per feed.

Maximum number of feeds.

This callback will trigger when the round answer updates

The weight for this pallet’s extrinsics.

Origin that is allowed to manage the treasury balance and initiate withdrawals Read more

PalletId used to generate the AccountId which holds the balance of the treasury. Read more

The pallet to use as the base currency for this treasury

The weight for this pallet’s extrinsics.

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

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

The NodeBlock type.

The RuntimeBlock type.

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 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

Performs the conversion.

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

Performs the conversion.

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.

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

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.

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)

recently added

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

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