Struct local_runtime::Runtime

source ·
pub struct Runtime;

Implementations§

source§

impl Runtime

source

pub fn metadata() -> RuntimeMetadataPrefixed

source

pub fn metadata_at_version(version: u32) -> Option<OpaqueMetadata>

source

pub fn metadata_versions() -> Vec<u32>

Trait Implementations§

source§

impl AccountNonceApiV1<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, RuntimeCall, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>, CheckMetadataHash<Runtime>)>>, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, u32> for Runtime

source§

fn account_nonce(account: AccountId) -> Nonce

Get current account nonce of given AccountId.
source§

impl AddressToAssetId<u128> for Runtime

source§

impl AuraApiV1<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, RuntimeCall, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>, CheckMetadataHash<Runtime>)>>, Public> for Runtime

source§

fn slot_duration() -> SlotDuration

Returns the slot duration for Aura. Read more
source§

fn authorities() -> Vec<AuraId>

Return the current set of authorities.
source§

impl BlockBuilderV6<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, RuntimeCall, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>, CheckMetadataHash<Runtime>)>>> for Runtime

source§

fn apply_extrinsic( extrinsic: <Block as BlockT>::Extrinsic ) -> ApplyExtrinsicResult

Apply the given extrinsic. Read more
source§

fn finalize_block() -> <Block as BlockT>::Header

Finish the current block.
source§

fn inherent_extrinsics(data: InherentData) -> Vec<<Block as BlockT>::Extrinsic>

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

fn check_inherents(block: Block, data: InherentData) -> CheckInherentsResult

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

impl CallerTrait<<Runtime as Config>::AccountId> for OriginCaller

source§

fn into_system(self) -> Option<RawOrigin<<Runtime as Config>::AccountId>>

Extract the signer from the message if it is a Signed origin.
source§

fn as_system_ref(&self) -> Option<&RawOrigin<<Runtime as Config>::AccountId>>

Extract a reference to the system-level RawOrigin if it is that.
§

fn as_signed(&self) -> Option<&AccountId>

Extract the signer from it if a system Signed origin, None otherwise.
§

fn is_root(&self) -> bool

Returns true if self is a system Root origin, None otherwise.
§

fn is_none(&self) -> bool

Returns true if self is a system None origin, None otherwise.
source§

impl Clone for Runtime

source§

fn clone(&self) -> Runtime

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Config<Instance1> for Runtime

§

type PalletId = TreasuryPalletId

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

type Currency = Pallet<Runtime>

The staking balance.
§

type RuntimeEvent = RuntimeEvent

The overarching event type.
§

type ApproveOrigin = EitherOfDiverse<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureProportionAtLeast<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance2, 2, 3>>

Origin from which approvals must come.
§

type RejectOrigin = EitherOfDiverse<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureProportionAtLeast<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance2, 2, 3>>

Origin from which rejections must come.
§

type OnSlash = Pallet<Runtime, Instance1>

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

type ProposalBond = ProposalBond

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

type ProposalBondMinimum = ConstU128<{ 10 * AST }>

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

type ProposalBondMaximum = ConstU128<{ 100 * AST }>

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

type SpendPeriod = ConstU32<{ 1 * MINUTES }>

Period between successive spends.
§

type Burn = ()

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

type BurnDestination = ()

Handler for the unbalanced decrease when treasury funds are burned.
§

type SpendFunds = ()

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

type MaxApprovals = ConstU32<64>

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

type AssetKind = ()

Type parameter representing the asset kinds to be spent from the treasury.
§

type Beneficiary = <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId

Type parameter used to identify the beneficiaries eligible to receive treasury spends.
§

type BeneficiaryLookup = IdentityLookup<<Runtime as Config<Instance1>>::Beneficiary>

Converting trait to take a source type and convert to Self::Beneficiary.
§

type Paymaster = PayFromAccount<Pallet<Runtime>, MainTreasuryAccount>

Type for processing spends of Self::AssetKind in favor of Self::Beneficiary.
§

type BalanceConverter = UnityAssetBalanceConversion

Type for converting the balance of an Self::AssetKind to the balance of the native asset, solely for the purpose of asserting the result against the maximum allowed spend amount of the Self::SpendOrigin.
§

type SpendOrigin = NeverEnsureOrigin<u128>

The origin required for approving spends from the treasury outside of the proposal process. The Success value is the maximum amount in a native asset that this origin is allowed to spend at a time.
§

type PayoutPeriod = ConstU32<0>

The period during which an approved treasury spend has to be claimed.
§

type WeightInfo = SubstrateWeight<Runtime>

Weight information for extrinsics in this pallet.
source§

impl Config for Runtime

§

type RuntimeEvent = RuntimeEvent

The overarching event type.
§

type Currency = Pallet<Runtime>

The currency trait.
§

type BlockNumberToBalance = ConvertInto

Convert the block number into a balance.
§

type MinVestedTransfer = MinVestedTransfer

The minimum amount transferred to call vested_transfer.
§

type WeightInfo = SubstrateWeight<Runtime>

Weight information for extrinsics in this pallet.
§

type UnvestedFundsAllowedWithdrawReasons = UnvestedFundsAllowedWithdrawReasons

Reasons that determine under which conditions the balance may drop below the unvested amount.
§

type BlockNumberProvider = Pallet<Runtime>

Provider for the block number.
source§

const MAX_VESTING_SCHEDULES: u32 = 28u32

Maximum number of vesting schedules an account may have at a given moment.
source§

impl Config for Runtime

§

type WeightInfo = SubstrateWeight<Runtime>

The Weight information for this pallet.
§

type RuntimeEvent = RuntimeEvent

The overarching event type.
§

type Currency = Pallet<Runtime>

Currency type for this pallet.
§

type ManagerOrigin = EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>

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

type Consideration = HoldConsideration<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Pallet<Runtime>, PreimageHoldReason, LinearStoragePrice<PreimageBaseDeposit, PreimageByteDeposit, u128>>

A means of providing some cost while data is stored on-chain. Read more
source§

impl Config for Runtime

§

type FeeCalculator = Pallet<Runtime>

Calculator for current gas price.
§

type GasWeightMapping = FixedGasWeightMapping<Runtime>

Maps Ethereum gas to Substrate weight.
§

type WeightPerGas = WeightPerGas

Weight corresponding to a gas unit.
§

type BlockHashMapping = EthereumBlockHashMapping<Runtime>

Block number to block hash.
§

type CallOrigin = EnsureAddressRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>

Allow the origin to call on behalf of given address.
§

type WithdrawOrigin = EnsureAddressTruncated

Allow the origin to withdraw on behalf of given address.
§

type AddressMapping = Pallet<Runtime>

Mapping from address to account id.
§

type Currency = Pallet<Runtime>

Currency type for withdraw and balance storage.
§

type RuntimeEvent = RuntimeEvent

The overarching event type.
§

type Runner = Runner<Runtime>

EVM execution runner.
§

type PrecompilesType = PrecompileSetBuilder<Runtime, (PrecompilesInRangeInclusive<(AddressU64<1>, AddressU64<20487>), (PrecompileAt<AddressU64<1>, ECRecover, (AcceptDelegateCall, CallableByContract, CallableByPrecompile)>, PrecompileAt<AddressU64<2>, Sha256, (AcceptDelegateCall, CallableByContract, CallableByPrecompile)>, PrecompileAt<AddressU64<3>, Ripemd160, (AcceptDelegateCall, CallableByContract, CallableByPrecompile)>, PrecompileAt<AddressU64<4>, Identity, (AcceptDelegateCall, CallableByContract, CallableByPrecompile)>, PrecompileAt<AddressU64<5>, Modexp, (AcceptDelegateCall, CallableByContract, CallableByPrecompile)>, PrecompileAt<AddressU64<6>, Bn128Add, (AcceptDelegateCall, CallableByContract, CallableByPrecompile)>, PrecompileAt<AddressU64<7>, Bn128Mul, (AcceptDelegateCall, CallableByContract, CallableByPrecompile)>, PrecompileAt<AddressU64<8>, Bn128Pairing, (AcceptDelegateCall, CallableByContract, CallableByPrecompile)>, PrecompileAt<AddressU64<9>, Blake2F, (AcceptDelegateCall, CallableByContract, CallableByPrecompile)>, PrecompileAt<AddressU64<1024>, Sha3FIPS256, (CallableByContract, CallableByPrecompile)>, PrecompileAt<AddressU64<1025>, Dispatch<Runtime, DispatchFilterValidate<RuntimeCall, WhitelistedCalls>>>, PrecompileAt<AddressU64<1026>, ECRecoverPublicKey, (CallableByContract, CallableByPrecompile)>, PrecompileAt<AddressU64<1027>, Ed25519Verify, (CallableByContract, CallableByPrecompile)>, PrecompileAt<AddressU64<20481>, DappStakingV3Precompile<Runtime>, (CallableByContract, CallableByPrecompile)>, PrecompileAt<AddressU64<20482>, Sr25519Precompile<Runtime>, (CallableByContract, CallableByPrecompile)>, PrecompileAt<AddressU64<20483>, SubstrateEcdsaPrecompile<Runtime>, (CallableByContract, CallableByPrecompile)>, PrecompileAt<AddressU64<20486>, UnifiedAccountsPrecompile<Runtime, Pallet<Runtime>>, (CallableByContract, CallableByPrecompile)>, PrecompileAt<AddressU64<20487>, DispatchLockdrop<Runtime, DispatchFilterValidate<RuntimeCall, WhitelistedLockdropCalls>>>)>, PrecompileSetStartingWith<AssetPrefix, Erc20AssetsPrecompileSet<Runtime>, CallableByContract>)>

Precompiles associated with this EVM engine.
§

type PrecompilesValue = PrecompilesValue

§

type ChainId = ChainId

Chain ID of EVM.
§

type OnChargeTransaction = EVMFungibleAdapter<Pallet<Runtime>, ()>

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
§

type BlockGasLimit = BlockGasLimit

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

type Timestamp = Pallet<Runtime>

Get the timestamp for the current block.
§

type OnCreate = ()

Called on create calls, used to record owner
§

type FindAuthor = FindAuthorTruncated<Pallet<Runtime>>

Find author for the current block.
§

type GasLimitPovSizeRatio = GasLimitPovSizeRatio

Gas limit Pov size ratio.
§

type SuicideQuickClearLimit = ConstU32<0>

Define the quick clear limit of storage clearing when a contract suicides. Set to 0 to disable it.
§

type WeightInfo = SubstrateWeight<Runtime>

Weight information for extrinsics in this pallet.
§

fn config() -> &'static Config

EVM config used in the module.
source§

impl Config for Runtime

§

type RuntimeEvent = RuntimeEvent

Overarching event type
§

type DefaultBaseFeePerGas = DefaultBaseFeePerGas

Default base fee per gas value. Used in genesis if no other value specified explicitly.
§

type MinBaseFeePerGas = MinBaseFeePerGas

Minimum value ‘base fee per gas’ can be adjusted to. This is a defensive measure to prevent the fee from being too low.
§

type MaxBaseFeePerGas = MaxBaseFeePerGas

Maximum value ‘base fee per gas’ can be adjusted to. This is a defensive measure to prevent the fee from being too high.
§

type AdjustmentFactor = AdjustmentFactorGetter

Getter for the fee adjustment factor used in ‘base fee per gas’ formula. This is expected to change in-between the blocks (doesn’t have to though).
§

type WeightFactor = WeightFeeFactor

The so-called weight_factor in the ‘base fee per gas’ formula.
§

type StepLimitRatio = StepLimitRatio

Ratio limit on how much the ‘base fee per gas’ can change in-between two blocks. It’s expressed as percentage, and used to calculate the delta between the old and new value. E.g. if the current ‘base fee per gas’ is 100, and the limit is 10%, then the new base fee per gas can be between 90 and 110.
§

type WeightInfo = SubstrateWeight<Runtime>

Weight information for extrinsics & functions of this pallet.
source§

impl Config for Runtime

§

type RuntimeEvent = RuntimeEvent

The event type of this module.
§

type KeyOwnerProof = Void

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

type EquivocationReportSystem = ()

The equivocation handling subsystem, defines methods to check/report an offence and for submitting a transaction to report an equivocation (from an offchain context).
§

type WeightInfo = ()

Weights for this pallet.
§

type MaxAuthorities = ConstU32<50>

Max Authorities in use
§

type MaxSetIdSessionEntries = ConstU64<0>

The maximum number of entries to keep in the set id to session index mapping. Read more
§

type MaxNominators = ConstU32<0>

The maximum number of nominators for each validator.
source§

impl Config for Runtime

§

type RuntimeEvent = RuntimeEvent

The overarching event type.
§

type StateRoot = IntermediateStateRoot<Runtime>

How Ethereum state root is calculated.
§

type PostLogContent = PostBlockAndTxnHashes

What’s included in the PostLog.
§

type ExtraDataLength = ConstU32<30>

The maximum length of the extra data in the Executed event.
source§

impl Config for Runtime

§

type RuntimeEvent = RuntimeEvent

The overarching event type.
source§

impl Config for Runtime

§

type AuthorityId = Public

The identifier type for an authority.
§

type DisabledValidators = ()

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

type MaxAuthorities = ConstU32<50>

The maximum number of authorities that the pallet can hold.
§

type SlotDuration = MinimumPeriodTimesTwo<Runtime>

The slot duration Aura should run with, expressed in milliseconds. The effective value of this type should not change while the chain is running. Read more
§

type AllowMultipleBlocksPerSlot = ConstBool<false>

Whether to allow block authors to create multiple blocks per slot. Read more
source§

impl Config for Runtime

§

type RuntimeEvent = RuntimeEvent

The overarching event type.
§

type RuntimeOrigin = RuntimeOrigin

The aggregated origin which the dispatch will take.
§

type PalletsOrigin = OriginCaller

The caller origin, overarching type of all pallets origins.
§

type RuntimeCall = RuntimeCall

The aggregated call type.
§

type MaximumWeight = MaximumSchedulerWeight

The maximum weight that may be scheduled per block for any dispatchables.
§

type ScheduleOrigin = EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>

Required origin to schedule or cancel calls.
§

type MaxScheduledPerBlock = ConstU32<50>

The maximum number of scheduled calls in the queue for a single block. Read more
§

type WeightInfo = SubstrateWeight<Runtime>

Weight information for extrinsics in this pallet.
§

type OriginPrivilegeCmp = EqualPrivilegeOnly

Compare the privileges of origins. Read more
§

type Preimages = Pallet<Runtime>

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

impl Config for Runtime

§

type RuntimeEvent = RuntimeEvent

The overarching event type.
§

type RuntimeCall = RuntimeCall

A sudo-able call.
§

type WeightInfo = SubstrateWeight<Runtime>

Type representing the weight of this pallet
source§

impl Config for Runtime

§

type ExternalOrigin = EitherOfDiverse<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureProportionAtLeast<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance2, 2, 3>>

A two third majority of the Council can choose the next external “super majority approve” proposal.

§

type ExternalMajorityOrigin = EitherOfDiverse<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureProportionAtLeast<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance2, 2, 3>>

A two third majority of the Council can choose the next external “majority approve” proposal. Also bypasses blacklist filter.

§

type ExternalDefaultOrigin = EitherOfDiverse<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureProportionAtLeast<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance2, 1, 1>>

Unanimous approval of the Council can choose the next external “super majority against” proposal.

§

type FastTrackOrigin = EitherOfDiverse<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureProportionAtLeast<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance3, 2, 3>>

A two third majority of the Technical Committee can have an external proposal tabled immediately for a fast track vote, and a custom enactment period.

§

type InstantOrigin = EitherOfDiverse<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureProportionAtLeast<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance3, 1, 1>>

Unanimous approval of the Technical Committee can have an external proposal tabled immediately for a completely custom voting period length vote, and a custom enactment period.

§

type CancellationOrigin = EitherOfDiverse<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureProportionAtLeast<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance2, 2, 3>>

A two third majority of the Council can cancel a passed proposal. Can happen only once per unique proposal.

§

type BlacklistOrigin = EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>

Only a passed public referendum can permanently blacklist a proposal.

§

type CancelProposalOrigin = EitherOfDiverse<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureProportionAtLeast<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance3, 1, 1>>

An unanimous Technical Committee can cancel a public proposal, slashing the deposit(s).

§

type VetoOrigin = EnsureMember<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance3>

Any member of the Technical Committee can veto Council’s proposal. This can be only done once per proposal, and veto lasts for a cooloff period.

§

type RuntimeEvent = RuntimeEvent

§

type Currency = Pallet<Runtime>

Currency type for this pallet.
§

type EnactmentPeriod = ConstU32<{ 5 * MINUTES }>

The period between a proposal being approved and enacted. Read more
§

type LaunchPeriod = ConstU32<{ 5 * MINUTES }>

How often (in blocks) new public referenda are launched.
§

type VotingPeriod = ConstU32<{ 5 * MINUTES }>

How often (in blocks) to check for new votes.
§

type VoteLockingPeriod = ConstU32<{ 2 * MINUTES }>

The minimum period of vote locking. Read more
§

type MinimumDeposit = ConstU128<{ 10 * AST }>

The minimum amount to be used as a deposit for a public referendum proposal.
§

type FastTrackVotingPeriod = ConstU32<{ MINUTES / 2 }>

Minimum voting period allowed for a fast-track referendum.
§

type CooloffPeriod = ConstU32<{ 2 * MINUTES }>

Period in blocks where an external proposal may not be re-submitted after being vetoed.
§

type MaxVotes = ConstU32<128>

The maximum number of votes for an account. Read more
§

type MaxProposals = ConstU32<128>

The maximum number of public proposals that can exist at any time.
§

type MaxDeposits = ConstU32<128>

The maximum number of deposits a public proposal may have at any time.
§

type MaxBlacklisted = ConstU32<128>

The maximum number of items which can be blacklisted.
§

type InstantAllowed = ConstBool<true>

Indicator for whether an emergency origin is even allowed to happen. Some chains may want to set this permanently to false, others may want to condition it on things such as an upgrade having happened recently.
§

type SubmitOrigin = EnsureSigned<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>

Origin from which the new proposal can be made. Read more
§

type PalletsOrigin = OriginCaller

Overarching type of all pallets origins.
§

type Preimages = Pallet<Runtime>

The Preimage provider.
§

type Scheduler = Pallet<Runtime>

The Scheduler.
§

type Slash = ()

Handler for the unbalanced reduction when slashing a preimage deposit.
§

type WeightInfo = SubstrateWeight<Runtime>

source§

impl Config for Runtime

§

type RuntimeEvent = RuntimeEvent

The overarching event type
§

type Currency = Pallet<Runtime>

The Currency for managing evm address assets
§

type DefaultMappings = HashedDefaultMappings<BlakeTwo256>

Default address conversion
§

type ChainId = ChainId

EVM chain id
§

type AccountMappingStorageFee = AccountMappingStorageFee

The amount of currency needed for mappings to be added. Two storage items with values sizes, sizeof(AccountId) and sizeof(H160) respectively
§

type WeightInfo = SubstrateWeight<Runtime>

Weight information for the extrinsics in this module
source§

impl Config for Runtime

§

type RuntimeEvent = RuntimeEvent

The overarching event type.
§

type RuntimeFreezeReason = RuntimeFreezeReason

The overarching freeze reason.
§

type Currency = Pallet<Runtime>

Currency used for staking. Reference: https://github.com/paritytech/substrate/pull/12951/
§

type SmartContract = SmartContract<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>

Describes smart contract in the context required by dApp staking.
§

type ContractRegisterOrigin = EitherOfDiverse<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureProportionAtLeast<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance4, 2, 3>>

Privileged origin that is allowed to register smart contracts to the protocol.
§

type ContractUnregisterOrigin = EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>

Privileged origin that is allowed to unregister smart contracts from the protocol.
§

type ManagerOrigin = EitherOfDiverse<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureProportionAtLeast<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance3, 2, 3>>

Privileged origin for managing dApp staking pallet.
§

type NativePriceProvider = Pallet<Runtime>

Used to provide price information about the native token.
§

type StakingRewardHandler = Pallet<Runtime>

Used to handle reward payouts & reward pool amount fetching.
§

type CycleConfiguration = InflationCycleConfig

Describes era length, subperiods & period length, as well as cycle length.
§

type Observers = Pallet<Runtime>

dApp staking event observers, notified when certain events occur.
§

type AccountCheck = ()

Used to check whether an account is allowed to participate in dApp staking.
§

type TierSlots = StandardTierSlots

Used to calculate total number of tier slots for some price.
§

type BaseNativeCurrencyPrice = BaseNativeCurrencyPrice

Base native currency price used to calculate base number of slots. This is used to adjust tier configuration, tier thresholds specifically, based on the native token price changes. Read more
§

type EraRewardSpanLength = ConstU32<8>

Maximum length of a single era reward span length entry.
§

type RewardRetentionInPeriods = ConstU32<2>

Number of periods for which we keep rewards available for claiming. After that period, they are no longer claimable.
§

type MaxNumberOfContracts = ConstU32<100>

Maximum number of contracts that can be integrated into dApp staking at once.
§

type MaxUnlockingChunks = ConstU32<5>

Maximum number of unlocking chunks that can exist per account at a time.
§

type MinimumLockedAmount = ConstU128<AST>

Minimum amount an account has to lock in dApp staking in order to participate.
§

type UnlockingPeriod = ConstU32<2>

Number of standard eras that need to pass before unlocking chunk can be claimed. Even though it’s expressed in ‘eras’, it’s actually measured in number of blocks.
§

type MaxNumberOfStakedContracts = ConstU32<3>

Maximum amount of stake contract entries an account is allowed to have at once.
§

type MinimumStakeAmount = ConstU128<AST>

Minimum amount staker can stake on a contract.
§

type NumberOfTiers = ConstU32<4>

Number of different tiers.
§

type RankingEnabled = ConstBool<true>

Tier ranking enabled.
§

type WeightInfo = SubstrateWeight<Runtime>

Weight info for various calls & operations in the pallet.
source§

impl Config for Runtime

§

type BaseCallFilter = Everything

The basic call filter to use in dispatchable.

§

type BlockWeights = RuntimeBlockWeights

Block & extrinsics weights: base values and limits.

§

type BlockLength = RuntimeBlockLength

The maximum length of a block (in bytes).

§

type AccountId = <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId

The identifier used to distinguish between accounts.

§

type RuntimeCall = RuntimeCall

The aggregated dispatch type that is available for extrinsics.

§

type Lookup = (AccountIdLookup<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Pallet<Runtime>)

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

§

type Nonce = u32

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

§

type Block = Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, RuntimeCall, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>, CheckMetadataHash<Runtime>)>>

The type for blocks.

§

type Hash = H256

The type for hashing blocks and tries.

§

type Hashing = BlakeTwo256

The hashing algorithm used.

§

type RuntimeEvent = RuntimeEvent

The ubiquitous event type.

§

type RuntimeOrigin = RuntimeOrigin

The ubiquitous origin type.

§

type RuntimeTask = RuntimeTask

The aggregated RuntimeTask type.

§

type BlockHashCount = BlockHashCount

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

§

type DbWeight = RocksDbWeight

The weight of database operations that the runtime can invoke.

§

type Version = Version

Version of the runtime.

§

type PalletInfo = PalletInfo

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

This type is being generated by construct_runtime!.

§

type OnNewAccount = ()

What to do if a new account is created.

§

type OnKilledAccount = KillAccountMapping<Runtime>

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

§

type AccountData = AccountData<u128>

The data to be stored in an account.

§

type SystemWeightInfo = SubstrateWeight<Runtime>

Weight information for the extrinsics of this pallet.

§

type SS58Prefix = SS58Prefix

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

§

type OnSetCode = ()

The set code logic, just the default since we’re not a parachain.

§

type MaxConsumers = ConstU32<16>

The maximum number of consumers allowed on a single account.
§

type SingleBlockMigrations = ()

All migrations that should run in the next runtime upgrade. Read more
§

type MultiBlockMigrator = ()

The migrator that is used to run Multi-Block-Migrations. Read more
§

type PreInherents = ()

A callback that executes in every block directly before all inherents were applied. Read more
§

type PostInherents = ()

A callback that executes in every block directly after all inherents were applied. Read more
§

type PostTransactions = ()

A callback that executes in every block directly after all transactions were applied. Read more
source§

impl Config for Runtime

§

type Balance = u128

The type for recording an account’s balance.

§

type RuntimeEvent = RuntimeEvent

The ubiquitous event type.

§

type MaxLocks = MaxLocks

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

type MaxReserves = ()

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

type ReserveIdentifier = [u8; 8]

The ID type for reserves. Read more
§

type DustRemoval = ()

Handler for the unbalanced reduction when removing a dust account.
§

type ExistentialDeposit = ExistentialDeposit

The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO! Read more
§

type AccountStore = Pallet<Runtime>

The means of storing the balances of an account.
§

type WeightInfo = SubstrateWeight<Runtime>

Weight information for extrinsics in this pallet.
§

type RuntimeHoldReason = RuntimeHoldReason

The overarching hold reason.
§

type RuntimeFreezeReason = RuntimeFreezeReason

The overarching freeze reason.
§

type FreezeIdentifier = RuntimeFreezeReason

The ID type for freezes.
§

type MaxFreezes = ConstU32<1>

The maximum number of individual freeze locks that can exist on an account at any time.
source§

impl Config for Runtime

§

type RuntimeEvent = RuntimeEvent

The overarching event type.
§

type RuntimeCall = RuntimeCall

The overarching call type.
§

type Currency = Pallet<Runtime>

The currency mechanism.
§

type ProxyType = ProxyType

A kind of proxy; specified with the proxy and passed in to the IsProxyable filter. The instance filter determines whether a given call may be proxied under this type. Read more
§

type ProxyDepositBase = ConstU128<{ AST * 10 }>

The base amount of currency needed to reserve for creating a proxy. Read more
§

type ProxyDepositFactor = ConstU128<{ MILLIAST * 330 }>

The amount of currency needed per proxy added. Read more
§

type MaxProxies = ConstU32<32>

The maximum amount of proxies allowed for a single account.
§

type WeightInfo = SubstrateWeight<Runtime>

Weight information for extrinsics in this pallet.
§

type MaxPending = ConstU32<32>

The maximum amount of time-delayed announcements that are allowed to be pending.
§

type CallHasher = BlakeTwo256

The type of hash used for hashing the call.
§

type AnnouncementDepositBase = ConstU128<{ AST * 10 }>

The base amount of currency needed to reserve for creating an announcement. Read more
§

type AnnouncementDepositFactor = ConstU128<{ MILLIAST * 660 }>

The amount of currency needed per announcement made. Read more
source§

impl Config for Runtime

§

type Currency = Pallet<Runtime>

§

type PayoutPerBlock = InflationPayoutPerBlock

Handler for ‘per-block’ payouts.
§

type CycleConfiguration = InflationCycleConfig

Cycle (‘year’) configuration - covers periods, subperiods, eras & blocks.
§

type RuntimeEvent = RuntimeEvent

The overarching event type.
§

type WeightInfo = SubstrateWeight<Runtime>

Weight information for extrinsics in this pallet.
source§

impl Config for Runtime

§

type CallFilter = Nothing

The safest default is to allow no calls at all.

Runtimes should whitelist dispatchables that are allowed to be called from contracts and make sure they are stable. Dispatchables exposed to contracts are not allowed to change because that would break already deployed contracts. The Call structure itself is not allowed to change the indices of existing pallets, too.

§

type Time = Pallet<Runtime>

The time implementation used to supply timestamps to contracts through seal_now.
§

type Randomness = Pallet<Runtime>

The generator used to supply randomness to contracts through seal_random. Read more
§

type Currency = Pallet<Runtime>

The fungible in which fees are paid and contract balances are held.
§

type RuntimeEvent = RuntimeEvent

The overarching event type.
§

type RuntimeCall = RuntimeCall

The overarching call type.
§

type DepositPerItem = DepositPerItem

The amount of balance a caller has to pay for each storage item. Read more
§

type DepositPerByte = DepositPerByte

The amount of balance a caller has to pay for each byte of storage. Read more
§

type DefaultDepositLimit = DefaultDepositLimit

Fallback value to limit the storage deposit if it’s not being set by the caller.
§

type CallStack = [Frame<Runtime>; 5]

The type of the call stack determines the maximum nesting depth of contract calls. Read more
§

type WeightPrice = Pallet<Runtime>

Used to answer contracts’ queries regarding the current weight price. This is not used to calculate the actual fee and is only for informational purposes.
§

type WeightInfo = SubstrateWeight<Runtime>

Describes the weights of the dispatchables of this module and is also used to construct a default cost schedule.
§

type ChainExtension = (AssetsExtension<Runtime>, UnifiedAccountsExtension<Runtime, Pallet<Runtime>>)

Type that allows the runtime authors to add new host functions for a contract to call.
§

type Schedule = Schedule

Cost schedule and limits.
§

type AddressGenerator = DefaultAddressGenerator

The address generator used to generate the addresses of contracts.
§

type MaxCodeLen = ConstU32<{ 123 * 1024 }>

The maximum length of a contract code in bytes. Read more
§

type MaxStorageKeyLen = ConstU32<128>

The maximum allowable length in bytes for storage keys.
§

type UnsafeUnstableInterface = ConstBool<true>

Make contract callable functions marked as #[unstable] available. Read more
§

type MaxDebugBufferLen = ConstU32<{ 2 * 1024 * 1024 }>

The maximum length of the debug buffer in bytes.
§

type MaxDelegateDependencies = MaxDelegateDependencies

The maximum number of delegate_dependencies that a contract can lock with [chain_extension::Ext::lock_delegate_dependency].
§

type CodeHashLockupDepositPercent = CodeHashLockupDepositPercent

The percentage of the storage deposit that should be held for using a code hash. Instantiating a contract, or calling [chain_extension::Ext::lock_delegate_dependency] protects the code from being removed. In order to prevent abuse these actions are protected with a percentage of the code deposit.
§

type RuntimeHoldReason = RuntimeHoldReason

Overarching hold reason.
§

type Debug = ()

§

type Environment = ()

Type that bundles together all the runtime configurable interface types. Read more
§

type Migrations = ()

The sequence of migration steps that will be applied during a migration. Read more
§

type Xcm = ()

A type that exposes XCM APIs, allowing contracts to interact with other parachains, and execute XCM programs.
§

type UploadOrigin = EnsureSigned<<Runtime as Config>::AccountId>

Origin allowed to upload code. Read more
§

type InstantiateOrigin = EnsureSigned<<Runtime as Config>::AccountId>

Origin allowed to instantiate code. Read more
§

type ApiVersion = ()

The version of the HostFn APIs that are available in the runtime. Read more
§

type MaxTransientStorageSize = ConstU32<{ 1 * 1024 * 1024 }>

The maximum size of the transient storage in bytes. This includes keys, values, and previous entries used for storage rollback.
source§

impl Config for Runtime

§

type RuntimeEvent = RuntimeEvent

The overarching event type.
§

type Balance = u128

The units in which we record balances.
§

type AssetId = u128

Identifier for the class of asset.
§

type Currency = Pallet<Runtime>

The currency mechanism.
§

type CreateOrigin = AsEnsureOriginWithArg<EnsureSigned<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>>

Standard asset class creation is only allowed if the origin attempting it and the asset class are in this set.
§

type ForceOrigin = EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>

The origin which may forcibly create or destroy an asset or otherwise alter privileged attributes.
§

type AssetDeposit = AssetDeposit

The basic amount of funds that must be reserved for an asset.
§

type MetadataDepositBase = MetadataDepositBase

The basic amount of funds that must be reserved when adding metadata to your asset.
§

type MetadataDepositPerByte = MetadataDepositPerByte

The additional funds that must be reserved for the number of bytes you store in your metadata.
§

type AssetAccountDeposit = AssetAccountDeposit

The amount of funds that must be reserved for a non-provider asset account to be maintained.
§

type ApprovalDeposit = ExistentialDeposit

The amount of funds that must be reserved when creating a new approval.
§

type StringLimit = AssetsStringLimit

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

type Freezer = ()

A hook to allow a per-asset, per-account minimum balance to be enforced. This must be respected in all permissionless operations.
§

type Extra = ()

Additional data to be stored with an account’s asset balance.
§

type WeightInfo = SubstrateWeight<Runtime>

Weight information for extrinsics in this pallet.
§

type RemoveItemsLimit = ConstU32<1000>

Max number of items to destroy per destroy_accounts and destroy_approvals call. Read more
§

type AssetIdParameter = Compact<u128>

Wrapper around Self::AssetId to use in dispatchable call signatures. Allows the use of compact encoding in instances of the pallet, which will prevent breaking changes resulting from the removal of HasCompact from Self::AssetId. Read more
§

type CallbackHandle = EvmRevertCodeHandler<Runtime, Runtime>

Callback methods for asset state change (e.g. asset created or destroyed) Read more
source§

impl Config for Runtime

§

type Moment = u64

A timestamp: milliseconds since the unix epoch.

§

type OnTimestampSet = Pallet<Runtime>

Something which can be notified (e.g. another pallet) when the timestamp is set. Read more
§

type MinimumPeriod = MinimumPeriod

The minimum period between blocks. Read more
§

type WeightInfo = SubstrateWeight<Runtime>

Weight information for extrinsics in this pallet.
source§

impl Config for Runtime

§

type RuntimeEvent = RuntimeEvent

The overarching event type.
§

type RuntimeCall = RuntimeCall

The overarching call type.
§

type CollectiveProxy = EitherOfDiverse<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureProportionAtLeast<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance4, 2, 3>>

Origin that can act on behalf of the collective.
§

type ProxyAccountId = CommunityTreasuryAccountId

Account representing the collective treasury.
§

type CallFilter = CommunityCouncilCallFilter

Filter to determine whether a call can be executed or not.
§

type WeightInfo = SubstrateWeight<Runtime>

Weight info
source§

impl Config for Runtime

§

type RuntimeEvent = RuntimeEvent

The overarching event type.
§

type OnChargeTransaction = FungibleAdapter<Pallet<Runtime>, ()>

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

type WeightToFee = WeightToFee

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

type OperationalFeeMultiplier = OperationalFeeMultiplier

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

type FeeMultiplierUpdate = TargetedFeeAdjustment<Runtime, TargetBlockFullness, AdjustmentVariable, MinimumMultiplier, MaximumMultiplier>

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

type LengthToFee = ConstantMultiplier<u128, TransactionLengthFeeFactor>

Convert a length value into a deductible fee based on the currency type.
source§

impl Config for Runtime

§

type RuntimeEvent = RuntimeEvent

The overarching event type.
§

type RuntimeCall = RuntimeCall

The overarching call type.
§

type PalletsOrigin = OriginCaller

The caller origin, overarching type of all pallets origins.
§

type WeightInfo = SubstrateWeight<Runtime>

Weight information for extrinsics in this pallet.
source§

impl Config for Runtime

§

type ReservedXcmpWeight = ReservedXcmpWeight

Reserved Xcmp weight for block gas limit calculation.
§

type InvalidEvmTransactionError = InvalidTransactionWrapper

Invalid tx error.
§

type ValidatedTransaction = ValidatedTransaction<Runtime>

Validated tx execution.
§

type AddressMapper = Pallet<Runtime>

Account mapping.
§

type XcmTransactOrigin = EnsureXcmEthereumTx<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>

Origin for transact call.
§

type WeightInfo = SubstrateWeight<Runtime>

Weight information for extrinsics in this pallet.
source§

impl ContractsApiV2<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, RuntimeCall, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>, CheckMetadataHash<Runtime>)>>, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, u128, u32, H256, EventRecord<<Runtime as Config>::RuntimeEvent, <Runtime as Config>::Hash>> for Runtime

source§

fn call( origin: AccountId, dest: AccountId, value: Balance, gas_limit: Option<Weight>, storage_deposit_limit: Option<Balance>, input_data: Vec<u8> ) -> ContractExecResult<Balance, EventRecord<<Runtime as Config>::RuntimeEvent, <Runtime as Config>::Hash>>

Perform a call from a specified account to a given contract. Read more
source§

fn instantiate( origin: AccountId, value: Balance, gas_limit: Option<Weight>, storage_deposit_limit: Option<Balance>, code: Code<Hash>, data: Vec<u8>, salt: Vec<u8> ) -> ContractInstantiateResult<AccountId, Balance, EventRecord<<Runtime as Config>::RuntimeEvent, <Runtime as Config>::Hash>>

Instantiate a new contract. Read more
source§

fn upload_code( origin: AccountId, code: Vec<u8>, storage_deposit_limit: Option<Balance>, determinism: Determinism ) -> CodeUploadResult<Hash, Balance>

Upload new code without instantiating a contract from it. Read more
source§

fn get_storage(address: AccountId, key: Vec<u8>) -> GetStorageResult

Query a given storage key in a given contract. Read more
source§

impl ConvertTransactionRuntimeApiV2<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, RuntimeCall, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>, CheckMetadataHash<Runtime>)>>> for Runtime

source§

fn convert_transaction(transaction: Transaction) -> <Block as BlockT>::Extrinsic

source§

impl CoreV5<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, RuntimeCall, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>, CheckMetadataHash<Runtime>)>>> for Runtime

source§

fn version() -> RuntimeVersion

Returns the version of the runtime.
source§

fn execute_block(block: Block)

Execute the given block.
source§

fn initialize_block( header: &<Block as BlockT>::Header ) -> ExtrinsicInclusionMode

Initialize a block with the given header and return the runtime executive mode.
source§

impl DappStakingApiV2<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, RuntimeCall, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>, CheckMetadataHash<Runtime>)>>> for Runtime

source§

fn periods_per_cycle() -> PeriodNumber

How many periods are there in one cycle.
source§

fn eras_per_voting_subperiod() -> EraNumber

For how many standard era lengths does the voting subperiod last.
source§

fn eras_per_build_and_earn_subperiod() -> EraNumber

How many standard eras are there in the build&earn subperiod.
source§

fn blocks_per_era() -> BlockNumber

How many blocks are there per standard era.
source§

fn get_dapp_tier_assignment() -> BTreeMap<DAppId, RankedTier>

Get dApp ranked tier assignment for the given dApp.
source§

impl Debug for Runtime

source§

fn fmt(&self, fmt: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl DebugRuntimeApiV6<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, RuntimeCall, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>, CheckMetadataHash<Runtime>)>>> for Runtime

source§

fn trace_transaction( extrinsics: Vec<<Block as BlockT>::Extrinsic>, traced_transaction: &Transaction, header: &<Block as BlockT>::Header ) -> Result<(), DispatchError>

source§

fn trace_block( extrinsics: Vec<<Block as BlockT>::Extrinsic>, known_transactions: Vec<H256>, header: &<Block as BlockT>::Header ) -> Result<(), DispatchError>

source§

fn trace_call( header: &<Block as BlockT>::Header, from: H160, to: H160, data: Vec<u8>, value: U256, gas_limit: U256, max_fee_per_gas: Option<U256>, max_priority_fee_per_gas: Option<U256>, nonce: Option<U256>, access_list: Option<Vec<(H160, Vec<H256>)>> ) -> Result<(), DispatchError>

source§

impl EnsureInherentsAreFirst<<Runtime as Config>::Block> for Runtime

source§

fn ensure_inherents_are_first( block: &<Runtime as Config>::Block ) -> Result<u32, u32>

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

impl EthereumRuntimeRPCApiV5<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, RuntimeCall, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>, CheckMetadataHash<Runtime>)>>> for Runtime

source§

fn chain_id() -> u64

Returns runtime defined pallet_evm::ChainId.
source§

fn account_basic(address: H160) -> Account

Returns pallet_evm::Accounts by address.
source§

fn gas_price() -> U256

Returns FixedGasPrice::min_gas_price
source§

fn account_code_at(address: H160) -> Vec<u8>

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

fn author() -> H160

Returns the converted FindAuthor::find_author authority id.
source§

fn storage_at(address: H160, index: U256) -> H256

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

fn call( from: H160, to: H160, data: Vec<u8>, value: U256, gas_limit: U256, max_fee_per_gas: Option<U256>, max_priority_fee_per_gas: Option<U256>, nonce: Option<U256>, estimate: bool, access_list: Option<Vec<(H160, Vec<H256>)>> ) -> Result<CallInfo, DispatchError>

source§

fn create( from: H160, data: Vec<u8>, value: U256, gas_limit: U256, max_fee_per_gas: Option<U256>, max_priority_fee_per_gas: Option<U256>, nonce: Option<U256>, estimate: bool, access_list: Option<Vec<(H160, Vec<H256>)>> ) -> Result<CreateInfo, DispatchError>

source§

fn current_transaction_statuses() -> Option<Vec<TransactionStatus>>

Return the current transaction status.
source§

fn current_block() -> Option<Block>

Return the current block.
source§

fn current_receipts() -> Option<Vec<Receipt>>

Return the current receipt.
source§

fn current_all( ) -> (Option<Block>, Option<Vec<Receipt>>, Option<Vec<TransactionStatus>>)

source§

fn extrinsic_filter(xts: Vec<<Block as BlockT>::Extrinsic>) -> Vec<Transaction>

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

fn elasticity() -> Option<Permill>

Return the elasticity multiplier.
source§

fn gas_limit_multiplier_support()

Used to determine if gas limit multiplier for non-transactional calls (eth_call/estimateGas) is supported.
source§

fn pending_block( xts: Vec<<Block as BlockT>::Extrinsic> ) -> (Option<Block>, Option<Vec<TransactionStatus>>)

Return the pending block.
source§

fn initialize_pending_block(header: &<Block as BlockT>::Header)

Initialize the pending block. The behavior should be the same as the runtime api Core_initialize_block but for a “pending” block. If your project don’t need to have a different behavior to initialize “pending” blocks, you can copy your Core_initialize_block implementation.
source§

impl GenesisBuilderV1<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, RuntimeCall, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>, CheckMetadataHash<Runtime>)>>> for Runtime

source§

fn build_state(config: Vec<u8>) -> Result

Build RuntimeGenesisConfig from a JSON blob not using any defaults and store it in the storage. Read more
source§

fn get_preset(id: &Option<PresetId>) -> Option<Vec<u8>>

Returns a JSON blob representation of the built-in RuntimeGenesisConfig identified by id. Read more
source§

fn preset_names() -> Vec<PresetId>

Returns a list of identifiers for available builtin RuntimeGenesisConfig presets. Read more
source§

impl GetRuntimeBlockType for Runtime

§

type RuntimeBlock = <Runtime as Config>::Block

The RuntimeBlock type.
source§

impl GrandpaApiV3<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, RuntimeCall, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>, CheckMetadataHash<Runtime>)>>> for Runtime

source§

fn grandpa_authorities() -> GrandpaAuthorityList

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

fn current_set_id() -> SetId

Get current GRANDPA authority set id.
source§

fn submit_report_equivocation_unsigned_extrinsic( _equivocation_proof: EquivocationProof<<Block as BlockT>::Hash, NumberFor<Block>>, _key_owner_proof: OpaqueKeyOwnershipProof ) -> Option<()>

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.
source§

fn generate_key_ownership_proof( _set_id: SetId, _authority_id: GrandpaId ) -> Option<OpaqueKeyOwnershipProof>

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.
source§

impl IsInherent<<<Runtime as Config>::Block as Block>::Extrinsic> for Runtime

source§

fn is_inherent(ext: &<<Runtime as Config>::Block as Block>::Extrinsic) -> bool

Whether this extrinsic is an inherent.
source§

impl MetadataV2<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, RuntimeCall, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>, CheckMetadataHash<Runtime>)>>> for Runtime

source§

fn metadata() -> OpaqueMetadata

Returns the metadata of a runtime.
source§

fn metadata_at_version(version: u32) -> Option<OpaqueMetadata>

Returns the metadata at a given version. Read more
source§

fn metadata_versions() -> Vec<u32>

Returns the supported metadata versions. Read more
source§

impl OffchainWorkerApiV2<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, RuntimeCall, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>, CheckMetadataHash<Runtime>)>>> for Runtime

source§

fn offchain_worker(header: &<Block as BlockT>::Header)

Starts the off-chain task for given block header.
source§

impl PartialEq for Runtime

source§

fn eq(&self, other: &Runtime) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl RegisteredChainExtension<Runtime> for AssetsExtension<Runtime>

source§

const ID: u16 = 2u16

The extensions globally unique identifier.
source§

impl RegisteredChainExtension<Runtime> for UnifiedAccountsExtension<Runtime, UnifiedAccounts>

source§

const ID: u16 = 3u16

The extensions globally unique identifier.
source§

impl SessionKeysV1<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, RuntimeCall, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>, CheckMetadataHash<Runtime>)>>> for Runtime

source§

fn generate_session_keys(seed: Option<Vec<u8>>) -> Vec<u8>

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

fn decode_session_keys(encoded: Vec<u8>) -> Option<Vec<(Vec<u8>, KeyTypeId)>>

Decode the given public session keys. Read more
source§

impl TaggedTransactionQueueV3<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, RuntimeCall, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>, CheckMetadataHash<Runtime>)>>> for Runtime

source§

fn validate_transaction( source: TransactionSource, tx: <Block as BlockT>::Extrinsic, block_hash: <Block as BlockT>::Hash ) -> TransactionValidity

Validate the transaction. Read more
source§

impl TransactionPaymentApiV4<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, RuntimeCall, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>, CheckMetadataHash<Runtime>)>>, u128> for Runtime

source§

fn query_info( uxt: <Block as BlockT>::Extrinsic, len: u32 ) -> RuntimeDispatchInfo<Balance>

source§

fn query_fee_details( uxt: <Block as BlockT>::Extrinsic, len: u32 ) -> FeeDetails<Balance>

source§

fn query_weight_to_fee(weight: Weight) -> Balance

source§

fn query_length_to_fee(length: u32) -> Balance

source§

impl TransactionPaymentCallApiV3<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, RuntimeCall, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>, CheckMetadataHash<Runtime>)>>, u128, RuntimeCall> for Runtime

source§

fn query_call_info(call: RuntimeCall, len: u32) -> RuntimeDispatchInfo<Balance>

Query information of a dispatch class, weight, and fee of a given encoded Call.
source§

fn query_call_fee_details(call: RuntimeCall, len: u32) -> FeeDetails<Balance>

Query fee details of a given encoded Call.
source§

fn query_weight_to_fee(weight: Weight) -> Balance

Query the output of the current WeightToFee given some input.
source§

fn query_length_to_fee(length: u32) -> Balance

Query the output of the current LengthToFee given some input.
source§

impl TxPoolRuntimeApiV2<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, RuntimeCall, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>, CheckMetadataHash<Runtime>)>>> for Runtime

source§

fn extrinsic_filter( xts_ready: Vec<<Block as BlockT>::Extrinsic>, xts_future: Vec<<Block as BlockT>::Extrinsic> ) -> TxPoolResponse

source§

impl TypeInfo for Runtime

§

type Identity = Runtime

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

fn type_info() -> Type

Returns the static type identifier for Self.
source§

impl ValidateUnsigned for Runtime

§

type Call = RuntimeCall

The call to validate
source§

fn pre_dispatch(call: &Self::Call) -> Result<(), TransactionValidityError>

Validate the call right before dispatch. Read more
source§

fn validate_unsigned( source: TransactionSource, call: &Self::Call ) -> TransactionValidity

Return the validity of the call Read more
source§

impl Config for Runtime

source§

impl Copy for Runtime

source§

impl Eq for Runtime

source§

impl StructuralPartialEq for Runtime

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> CheckedConversion for T

§

fn checked_from<T>(t: T) -> Option<Self>
where Self: TryFrom<T>,

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

fn checked_into<T>(self) -> Option<T>
where Self: TryInto<T>,

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

impl<T> Conv for T

§

fn conv<T>(self) -> T
where Self: Into<T>,

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

impl<T> Downcast for T
where T: Any,

§

fn into_any(self: Box<T>) -> Box<dyn Any>

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

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

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

fn as_any(&self) -> &(dyn Any + 'static)

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

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

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

impl<T> DowncastSync for T
where T: Any + Send + Sync,

§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync>

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

impl<T> DynClone for T
where T: Clone,

source§

fn __clone_box(&self, _: Private) -> *mut ()

source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

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

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<T> FmtForward for T

§

fn fmt_binary(self) -> FmtBinary<Self>
where Self: Binary,

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

fn fmt_display(self) -> FmtDisplay<Self>
where Self: Display,

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

fn fmt_lower_exp(self) -> FmtLowerExp<Self>
where Self: LowerExp,

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

fn fmt_lower_hex(self) -> FmtLowerHex<Self>
where Self: LowerHex,

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

fn fmt_octal(self) -> FmtOctal<Self>
where Self: Octal,

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

fn fmt_pointer(self) -> FmtPointer<Self>
where Self: Pointer,

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

fn fmt_upper_exp(self) -> FmtUpperExp<Self>
where Self: UpperExp,

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

fn fmt_upper_hex(self) -> FmtUpperHex<Self>
where Self: UpperHex,

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

fn fmt_list(self) -> FmtList<Self>
where &'a Self: for<'a> IntoIterator,

Formats each item in a sequence. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

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

fn in_current_span(self) -> Instrumented<Self>

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

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

§

impl<T, U> Into2<U> for T
where U: From2<T>,

§

fn into2(self) -> U

source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
§

impl<T, U> IntoKey<U> for T
where U: FromKey<T>,

§

fn into_key(self) -> U

§

impl<T> IsType<T> for T

§

fn from_ref(t: &T) -> &T

Cast reference.
§

fn into_ref(&self) -> &T

Cast reference.
§

fn from_mut(t: &mut T) -> &mut T

Cast mutable reference.
§

fn into_mut(&mut self) -> &mut T

Cast mutable reference.
§

impl<T, Outer> IsWrappedBy<Outer> for T
where Outer: AsRef<T> + AsMut<T> + From<T>, T: From<Outer>,

§

fn from_ref(outer: &Outer) -> &T

Get a reference to the inner from the outer.

§

fn from_mut(outer: &mut Outer) -> &mut T

Get a mutable reference to the inner from the outer.

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

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

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

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

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where R: 'a,

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

fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
where Self: Borrow<B>, B: 'a + ?Sized, R: 'a,

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

fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R ) -> R
where Self: BorrowMut<B>, B: 'a + ?Sized, R: 'a,

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

fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
where Self: AsRef<U>, U: 'a + ?Sized, R: 'a,

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

fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
where Self: AsMut<U>, U: 'a + ?Sized, R: 'a,

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

fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
where Self: Deref<Target = T>, T: 'a + ?Sized, R: 'a,

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

fn pipe_deref_mut<'a, T, R>( &'a mut self, func: impl FnOnce(&'a mut T) -> R ) -> R
where Self: DerefMut<Target = T> + Deref, T: 'a + ?Sized, R: 'a,

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

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

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

impl<T> Same for T

§

type Output = T

Should always be Self
§

impl<T> SaturatedConversion for T

§

fn saturated_from<T>(t: T) -> Self
where Self: UniqueSaturatedFrom<T>,

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

fn saturated_into<T>(self) -> T
where Self: UniqueSaturatedInto<T>,

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

impl<T> Tap for T

§

fn tap(self, func: impl FnOnce(&Self)) -> Self

Immutable access to a value. Read more
§

fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

Mutable access to a value. Read more
§

fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

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

fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

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

fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

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

fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

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

fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

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

fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

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

fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

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

fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

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

fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

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

fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

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

fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

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

fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

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

fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

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

fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Calls .tap_deref_mut() only in debug builds, and is erased in release builds.
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T> TryConv for T

§

fn try_conv<T>(self) -> Result<T, Self::Error>
where Self: TryInto<T>,

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

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T, U> TryInto2<U> for T
where U: TryFrom2<T>,

§

type Error = <U as TryFrom2<T>>::Error

§

fn try_into2(self) -> Result<U, <U as TryFrom2<T>>::Error>

§

impl<T, U> TryIntoKey<U> for T
where U: TryFromKey<T>,

§

type Error = <U as TryFromKey<T>>::Error

§

fn try_into_key(self) -> Result<U, <U as TryFromKey<T>>::Error>

§

impl<S, T> UncheckedInto<T> for S
where T: UncheckedFrom<S>,

§

fn unchecked_into(self) -> T

The counterpart to unchecked_from.
§

impl<T, S> UniqueSaturatedInto<T> for S
where T: Bounded, S: TryInto<T>,

§

fn unique_saturated_into(self) -> T

Consume self to return an equivalent value of T.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

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

fn with_current_subscriber(self) -> WithDispatch<Self>

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

impl<T> JsonSchemaMaybe for T

§

impl<T> MaybeDebug for T
where T: Debug,

§

impl<T> MaybeRefUnwindSafe for T
where T: RefUnwindSafe,

§

impl<T> Member for T
where T: Send + Sync + Debug + Eq + PartialEq + Clone + 'static,

§

impl<T> StaticTypeInfo for T
where T: TypeInfo + 'static,