Struct westend_runtime::Runtime [−][src]
pub struct Runtime;
Implementations
Trait Implementations
impl AccountNonceApi<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, u32> for Runtime
impl AccountNonceApi<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, u32> for Runtime
Get current account nonce of given AccountId
.
impl AuthorityDiscoveryApi<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
impl AuthorityDiscoveryApi<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
Retrieve authority identifiers of the current and next authority set.
impl BabeApi<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
impl BabeApi<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
Return the genesis configuration for BABE. The configuration is only read on genesis.
Returns the slot that started the current epoch.
Returns information regarding the current epoch.
Returns information regarding the next epoch (which was already previously announced). Read more
fn generate_key_ownership_proof(
_slot: Slot,
authority_id: AuthorityId
) -> Option<OpaqueKeyOwnershipProof>
fn generate_key_ownership_proof(
_slot: Slot,
authority_id: AuthorityId
) -> Option<OpaqueKeyOwnershipProof>
Generates a proof of key ownership for the given authority in the
current epoch. An example usage of this module is coupled with the
session historical module to prove that a given authority key is
tied to a given staking identity during a specific session. Proofs
of key ownership are necessary for submitting equivocation reports.
NOTE: even though the API takes a slot
as parameter the current
implementations ignores this parameter and instead relies on this
method being called at the correct block height, i.e. any point at
which the epoch for the given slot is live on-chain. Future
implementations will instead use indexed data through an offchain
worker, not requiring older states to be available. Read more
fn submit_report_equivocation_unsigned_extrinsic(
equivocation_proof: EquivocationProof<<Block as BlockT>::Header>,
key_owner_proof: OpaqueKeyOwnershipProof
) -> Option<()>
fn submit_report_equivocation_unsigned_extrinsic(
equivocation_proof: EquivocationProof<<Block as BlockT>::Header>,
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. Read more
impl BeefyApi<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
impl BeefyApi<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
Return the current active BEEFY validator set
impl Benchmark<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
impl Benchmark<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
Get the benchmark metadata available for this runtime. Read more
Dispatch the given benchmark.
impl BlockBuilder<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
impl BlockBuilder<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
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.
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
type WeightToFee = WeightToFee
type WeightToFee = WeightToFee
Convert a weight value into a deductible fee based on the currency type.
type FeeMultiplierUpdate = SlowAdjustingFeeUpdate<Self>
type FeeMultiplierUpdate = SlowAdjustingFeeUpdate<Self>
Update the multiplier of the next block, based on the previous block’s weight.
type DustRemoval = ()
type DustRemoval = ()
Handler for the unbalanced reduction when removing a dust account.
The minimum amount required to keep an account open.
type AccountStore = System
type AccountStore = System
The means of storing the balances of an account.
The maximum number of locks that should exist on an account. Not strictly enforced, but used for weight estimation. Read more
type MaxReserves = MaxReserves
type MaxReserves = MaxReserves
The maximum number of named reserves that can exist on an account.
type ReserveIdentifier = [u8; 8]
type ReserveIdentifier = [u8; 8]
The id type for named reserves.
type WeightInfo = WeightInfo<Runtime>
type WeightInfo = WeightInfo<Runtime>
Weight information for extrinsics in this pallet.
type TransactAsset = Balances
type TransactAsset = Balances
The type of fungible
that is being used under the hood. Read more
type CheckedAccount = CheckAccount
type CheckedAccount = CheckAccount
The account used to check assets being teleported.
type TrustedTeleporter = TrustedTeleporter
type TrustedTeleporter = TrustedTeleporter
A trusted location which we allow teleports from, and the asset we allow to teleport.
Give me a fungible asset that your asset transactor is going to accept.
type BaseCallFilter = BaseFilter
type BaseCallFilter = BaseFilter
The basic call filter to use in Origin. All origins are built with this filter as base, except Root. Read more
type BlockWeights = BlockWeights
type BlockWeights = BlockWeights
Block & extrinsics weights: base values and limits.
type BlockLength = BlockLength
type BlockLength = BlockLength
The maximum length of a block (in bytes).
Account index (aka nonce) type. This stores the number of previous transactions associated with a sender account. Read more
type BlockNumber = BlockNumber
type BlockNumber = BlockNumber
The block number type used by the runtime.
type Hashing = BlakeTwo256
type Hashing = BlakeTwo256
The hashing system (algorithm) being used in the runtime (e.g. Blake2).
type Lookup = AccountIdLookup<AccountId, ()>
type Lookup = AccountIdLookup<AccountId, ()>
Converting trait to take a source type and convert to AccountId
. Read more
type Header = Header<BlockNumber, BlakeTwo256>
type Header = Header<BlockNumber, BlakeTwo256>
The block header.
type BlockHashCount = BlockHashCount
type BlockHashCount = BlockHashCount
Maximum number of block number to block hash mappings to keep (oldest pruned first).
type DbWeight = RocksDbWeight
type DbWeight = RocksDbWeight
The weight of runtime database operations the runtime can invoke.
type PalletInfo = PalletInfo
type PalletInfo = PalletInfo
Provides information about the pallet setup in the runtime. Read more
type AccountData = AccountData<Balance>
type AccountData = AccountData<Balance>
Data to be associated with an account (other than nonce/transaction counter, which this pallet does regardless). Read more
type OnNewAccount = ()
type OnNewAccount = ()
Handler for when a new account has just been created.
type OnKilledAccount = ()
type OnKilledAccount = ()
A function that is invoked when an account has been determined to be dead. Read more
type SystemWeightInfo = WeightInfo<Runtime>
type SS58Prefix = SS58Prefix
type SS58Prefix = SS58Prefix
The designated SS85 prefix of this chain. Read more
type DisputesHandler = ()
A randomness beacon.
type ForceOrigin = EnsureRoot<AccountId>
type ForceOrigin = EnsureRoot<AccountId>
An origin which is allowed to force updates to parachains.
type WeightInfo = WeightInfo<Runtime>
type WeightInfo = WeightInfo<Runtime>
Weight information for extrinsics in this pallet.
type LeasePeriod = LeasePeriod
type LeasePeriod = LeasePeriod
The number of blocks over which a single period lasts.
type LeaseOffset = ()
type LeaseOffset = ()
The number of blocks to offset each lease period by.
type WeightInfo = WeightInfo<Runtime>
type WeightInfo = WeightInfo<Runtime>
Weight Information for the Extrinsics in the Pallet
type Accuracy = OnOnChainAccuracy
type Accuracy = OnOnChainAccuracy
The accuracy used to compute the election:
type DataProvider = Staking
type DataProvider = Staking
Something that provides the data for election.
type EpochDuration = EpochDuration
type EpochDuration = EpochDuration
The amount of time, in slots, that each epoch should last. NOTE: Currently it is not possible to change the epoch duration after the chain has started. Attempting to do so will brick block production. Read more
The expected average block time at which BABE should be creating
blocks. Since BABE is probabilistic it is not trivial to figure out
what the expected average block time should be based on the slot
duration and the security parameter c
(where 1 - c
represents
the probability of a slot being empty). Read more
BABE requires some logic to be triggered on every block to query for whether an epoch has ended and to perform the transition to the next epoch. Read more
type DisabledValidators = Session
type DisabledValidators = Session
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
type KeyOwnerProofSystem = Historical
type KeyOwnerProofSystem = Historical
A system for proving ownership of keys, i.e. that a given key was part of a validator set, needed for validating equivocation reports. Read more
type KeyOwnerProof = <Self::KeyOwnerProofSystem as KeyOwnerProofSystem<(KeyTypeId, AuthorityId)>>::Proof
type KeyOwnerProof = <Self::KeyOwnerProofSystem as KeyOwnerProofSystem<(KeyTypeId, AuthorityId)>>::Proof
The proof of key ownership, used for validating equivocation reports. The proof must include the session index and validator count of the session at which the equivocation occurred. Read more
type KeyOwnerIdentification = <Self::KeyOwnerProofSystem as KeyOwnerProofSystem<(KeyTypeId, AuthorityId)>>::IdentificationTuple
type KeyOwnerIdentification = <Self::KeyOwnerProofSystem as KeyOwnerProofSystem<(KeyTypeId, AuthorityId)>>::IdentificationTuple
The identification of a key owner, used when reporting equivocations.
The equivocation handling subsystem, defines methods to report an
offence (after the equivocation has been validated) and for submitting a
transaction to report an equivocation (from an offchain context).
NOTE: when enabling equivocation handling (i.e. this type isn’t set to
()
) you must use this pallet’s ValidateUnsigned
in the runtime
definition. Read more
type WeightInfo = ()
type MaxAuthorities = MaxAuthorities
type MaxAuthorities = MaxAuthorities
Max number of authorities allowed
type EndingPeriod = EndingPeriod
type EndingPeriod = EndingPeriod
The number of blocks over which an auction may be retroactively ended.
type SampleLength = SampleLength
type SampleLength = SampleLength
The length of each sample to take during the ending period. Read more
Something that provides randomness in the runtime.
type InitiateOrigin = EnsureRoot<AccountId>
type InitiateOrigin = EnsureRoot<AccountId>
The origin which may initiate auctions.
type WeightInfo = WeightInfo<Runtime>
type WeightInfo = WeightInfo<Runtime>
Weight Information for the Extrinsics in the Pallet
type WeightInfo = WeightInfo<Runtime>
type WeightInfo = WeightInfo<Runtime>
Weight information for extrinsics in this pallet.
type FindAuthor = FindAccountFromAuthorIndex<Self, Babe>
type FindAuthor = FindAccountFromAuthorIndex<Self, Babe>
Find the author of a block.
type UncleGenerations = UncleGenerations
type UncleGenerations = UncleGenerations
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
type FilterUncle = ()
type FilterUncle = ()
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
type EventHandler = (Staking, ImOnline)
type EventHandler = (Staking, ImOnline)
An event handler for authored blocks.
type OnTimestampSet = Babe
type OnTimestampSet = Babe
Something which can be notified when the timestamp is set. Set this to ()
if not
needed. Read more
type MinimumPeriod = MinimumPeriod
type MinimumPeriod = MinimumPeriod
The minimum period between blocks. Beware that this is different to the expected period that the block production apparatus provides. Your chosen consensus system will generally work with this to determine a sensible block time. e.g. For Aura, it will be double this period on default settings. Read more
type WeightInfo = WeightInfo<Runtime>
type WeightInfo = WeightInfo<Runtime>
Weight information for extrinsics in this pallet.
type FullIdentification = Exposure<AccountId, Balance>
type FullIdentification = Exposure<AccountId, Balance>
Full identification of the validator.
type FullIdentificationOf = ExposureOf<Runtime>
type FullIdentificationOf = ExposureOf<Runtime>
A conversion from validator ID to full identification. Read more
type ValidatorId = AccountId
type ValidatorId = AccountId
A stable ID for a validator.
type ValidatorIdOf = StashOf<Self>
type ValidatorIdOf = StashOf<Self>
A conversion from account ID to validator ID. Read more
type ShouldEndSession = Babe
type ShouldEndSession = Babe
Indicator for when to end the session.
type NextSessionRotation = Babe
type NextSessionRotation = Babe
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
type SessionManager = NoteHistoricalRoot<Self, Staking>
type SessionManager = NoteHistoricalRoot<Self, Staking>
Handler for managing new session.
type SessionHandler = <SessionKeys as OpaqueKeys>::KeyTypeIdProviders
type SessionHandler = <SessionKeys as OpaqueKeys>::KeyTypeIdProviders
Handler when a session has changed.
type Keys = SessionKeys
type Keys = SessionKeys
The keys.
type WeightInfo = WeightInfo<Runtime>
type WeightInfo = WeightInfo<Runtime>
Weight information for extrinsics in this pallet.
Maximum number of nominations per nominator.
type CurrencyToVote = CurrencyToVote
type CurrencyToVote = CurrencyToVote
Convert a balance into a number used for election calculation. This must fit into a
u64
but is allowed to be sensibly lossy. The u64
is used to communicate with the
frame_election_provider_support
crate which accepts u64 numbers and does operations
in 128.
Consequently, the backward convert is used convert the u128s from sp-elections back to a
BalanceOf
. Read more
type RewardRemainder = ()
type RewardRemainder = ()
Tokens have been minted and are unused for validator-reward. See Era payout. Read more
type SessionsPerEra = SessionsPerEra
type SessionsPerEra = SessionsPerEra
Number of sessions per era.
type BondingDuration = BondingDuration
type BondingDuration = BondingDuration
Number of eras that staked funds must remain bonded for.
Number of eras that slashes are deferred by, after computation. Read more
type SlashCancelOrigin = EnsureRoot<AccountId>
type SlashCancelOrigin = EnsureRoot<AccountId>
The origin which can cancel a deferred slash. Root can always do this.
type SessionInterface = Self
type SessionInterface = Self
Interface for interacting with a session pallet.
type EraPayout = ConvertCurve<RewardCurve>
type EraPayout = ConvertCurve<RewardCurve>
The payout for validators and the system for the current era. See Era payout. Read more
The maximum number of nominators rewarded for each validator. Read more
The fraction of the validator set that is safe to be offending. After the threshold is reached a new era will be forced. Read more
type NextNewSession = Session
type NextNewSession = Session
Something that can estimate the next session change, accurately or as a best effort guess. Read more
Something that provides the election functionality.
type GenesisElectionProvider = GenesisElectionOf<Self>
type GenesisElectionProvider = GenesisElectionOf<Self>
Something that provides the election functionality at genesis.
type SortedListProvider = BagsList
type SortedListProvider = BagsList
Something that can provide a sorted list of voters in a somewhat sorted way. The
original use case for this was designed with pallet_bags_list::Pallet
in mind. If
the bags-list is not desired, impls::UseNominatorsMap
is likely the desired option. Read more
type WeightInfo = WeightInfo<Runtime>
type WeightInfo = WeightInfo<Runtime>
Weight information for extrinsics in this pallet.
type MaxAuthorities = MaxAuthorities
type MaxAuthorities = MaxAuthorities
The maximum number of authorities that can be added.
Something that can predict the fee of a call. Used to sensibly distribute rewards.
type SignedPhase = SignedPhase
type SignedPhase = SignedPhase
Duration of the signed phase.
type UnsignedPhase = UnsignedPhase
type UnsignedPhase = UnsignedPhase
Duration of the unsigned phase.
Maximum number of signed submissions that can be queued. Read more
type SignedRewardBase = SignedRewardBase
type SignedRewardBase = SignedRewardBase
Base reward for a signed solution
Base deposit for a signed solution.
Per-byte deposit for a signed solution.
type SignedDepositWeight = ()
type SignedDepositWeight = ()
Per-weight deposit for a signed solution.
type SignedMaxWeight = Self::MinerMaxWeight
type SignedMaxWeight = Self::MinerMaxWeight
Maximum weight of a signed solution. Read more
type SlashHandler = ()
type SlashHandler = ()
Handler for the slashed deposits.
type RewardHandler = ()
type RewardHandler = ()
Handler for the rewards.
The minimum amount of improvement to the solution score that defines a solution as “better” (in any phase). Read more
Maximum weight that the miner should consume. Read more
Maximum length (bytes) that the mined solution should consume. Read more
type OffchainRepeat = OffchainRepeat
type OffchainRepeat = OffchainRepeat
The repeat threshold of the offchain worker. Read more
The priority of the unsigned transaction submitted in the unsigned-phase
type DataProvider = Staking
type DataProvider = Staking
Something that will provide the election data.
type Solution = NposCompactSolution16
type Solution = NposCompactSolution16
The solution type.
type Fallback = NoFallback<Self>
type Fallback = NoFallback<Self>
Configuration for the fallback
type Solver = SequentialPhragmen<AccountId, SolutionAccuracyOf<Self>, OffchainRandomBalancing>
type Solver = SequentialPhragmen<AccountId, SolutionAccuracyOf<Self>, OffchainRandomBalancing>
OCW election solution miner algorithm implementation.
The configuration of benchmarking.
type ForceOrigin = EnsureRoot<AccountId>
type ForceOrigin = EnsureRoot<AccountId>
Origin that can control this pallet. Note that any action taken by this origin (such) as providing an emergency solution is not checked. Thus, it must be a trusted origin. Read more
type WeightInfo = WeightInfo<Self>
type WeightInfo = WeightInfo<Self>
The weight of the pallet.
The maximum number of voters to put in the snapshot. At the moment, snapshots are only over a single block, but once multi-block elections are introduced they will take place over multiple blocks. Read more
type VoteWeightProvider = Staking
type VoteWeightProvider = Staking
Something that provides the weights of ids.
type WeightInfo = WeightInfo<Runtime>
type WeightInfo = WeightInfo<Runtime>
Weight information for extrinsics in this pallet.
type BagThresholds = BagThresholds
type BagThresholds = BagThresholds
The list of thresholds separating the various bags. Read more
type KeyOwnerProofSystem = Historical
type KeyOwnerProofSystem = Historical
A system for proving ownership of keys, i.e. that a given key was part of a validator set, needed for validating equivocation reports. Read more
type KeyOwnerProof = <Self::KeyOwnerProofSystem as KeyOwnerProofSystem<(KeyTypeId, GrandpaId)>>::Proof
type KeyOwnerProof = <Self::KeyOwnerProofSystem as KeyOwnerProofSystem<(KeyTypeId, GrandpaId)>>::Proof
The proof of key ownership, used for validating equivocation reports The proof must include the session index and validator count of the session at which the equivocation occurred. Read more
type KeyOwnerIdentification = <Self::KeyOwnerProofSystem as KeyOwnerProofSystem<(KeyTypeId, GrandpaId)>>::IdentificationTuple
type KeyOwnerIdentification = <Self::KeyOwnerProofSystem as KeyOwnerProofSystem<(KeyTypeId, GrandpaId)>>::IdentificationTuple
The identification of a key owner, used when reporting equivocations.
The equivocation handling subsystem, defines methods to report an
offence (after the equivocation has been validated) and for submitting a
transaction to report an equivocation (from an offchain context).
NOTE: when enabling equivocation handling (i.e. this type isn’t set to
()
) you must use this pallet’s ValidateUnsigned
in the runtime
definition. Read more
type WeightInfo = ()
type WeightInfo = ()
Weights for this pallet.
type MaxAuthorities = MaxAuthorities
type MaxAuthorities = MaxAuthorities
Max Authorities in use
type PalletId = CrowdloanId
type PalletId = CrowdloanId
PalletId
for the crowdloan pallet. An appropriate value could be PalletId(*b"py/cfund")
The amount to be held on deposit by the depositor of a crowdloan.
type MinContribution = MinContribution
type MinContribution = MinContribution
The minimum amount that may be contributed into a crowdloan. Should almost certainly be at
least ExistentialDeposit
. Read more
type RemoveKeysLimit = RemoveKeysLimit
type RemoveKeysLimit = RemoveKeysLimit
Max number of storage keys to remove per extrinsic call.
The parachain registrar type. We just use this to ensure that only the manager of a para is able to start a crowdloan for its slot. Read more
type Auctioneer = Auctions
type Auctioneer = Auctions
The type representing the auctioning system.
type MaxMemoLength = MaxMemoLength
type MaxMemoLength = MaxMemoLength
The maximum length for the memo attached to a crowdloan contribution.
type WeightInfo = WeightInfo<Runtime>
type WeightInfo = WeightInfo<Runtime>
Weight Information for the Extrinsics in the Pallet
type AuthorityId = ImOnlineId
type AuthorityId = ImOnlineId
The identifier type for an authority.
type ValidatorSet = Historical
type ValidatorSet = Historical
A type for retrieving the validators supposed to be online in a session.
type NextSessionRotation = Babe
type NextSessionRotation = Babe
A trait that allows us to estimate the current session progress and also the average session length. Read more
type ReportUnresponsiveness = Offences
type ReportUnresponsiveness = Offences
A type that gives us the ability to submit unresponsiveness offence reports.
A configuration for base priority of unsigned transactions. Read more
type WeightInfo = WeightInfo<Runtime>
type WeightInfo = WeightInfo<Runtime>
Weight information for extrinsics in this pallet.
The maximum number of peers to be stored in ReceivedHeartbeats
The maximum size of the encoding of PeerId
and MultiAddr
that are coming
from the hearbeat Read more
type AccountIndex = AccountIndex
type AccountIndex = AccountIndex
Type used for storing an account’s index; implies the maximum number of accounts the system can hold. Read more
type Deposit = IndexDeposit
type Deposit = IndexDeposit
The deposit needed for reserving an index.
type WeightInfo = WeightInfo<Runtime>
type WeightInfo = WeightInfo<Runtime>
Weight information for extrinsics in this pallet.
type IdentificationTuple = IdentificationTuple<Self>
type IdentificationTuple = IdentificationTuple<Self>
Full identification of the validator.
type OnOffenceHandler = Staking
type OnOffenceHandler = Staking
A handler called for every offence report.
type PalletsOrigin = OriginCaller
type PalletsOrigin = OriginCaller
The caller origin, overarching type of all pallets origins.
type WeightInfo = WeightInfo<Runtime>
type WeightInfo = WeightInfo<Runtime>
Weight information for extrinsics in this pallet.
type BasicDeposit = BasicDeposit
type BasicDeposit = BasicDeposit
The amount held on deposit for a registered identity
type FieldDeposit = FieldDeposit
type FieldDeposit = FieldDeposit
The amount held on deposit per additional field for a registered identity.
The amount held on deposit for a registered subaccount. This should account for the fact that one storage item’s value will increase by the size of an account ID, and there will be another trie item whose value is the size of an account ID plus 32 bytes. Read more
type MaxSubAccounts = MaxSubAccounts
type MaxSubAccounts = MaxSubAccounts
The maximum number of sub-accounts allowed per identified account.
Maximum number of additional fields that may be stored in an ID. Needed to bound the I/O required to access an identity, but can be pretty high. Read more
type MaxRegistrars = MaxRegistrars
type MaxRegistrars = MaxRegistrars
Maxmimum number of registrars allowed in the system. Needed to bound the complexity of, e.g., updating judgements. Read more
type RegistrarOrigin = EnsureRoot<AccountId>
type RegistrarOrigin = EnsureRoot<AccountId>
The origin which may add or remove registrars. Root can always do this.
type ForceOrigin = EnsureRoot<AccountId>
type ForceOrigin = EnsureRoot<AccountId>
The origin which may forcibly set or remove a name. Root can always do this.
type WeightInfo = WeightInfo<Runtime>
type WeightInfo = WeightInfo<Runtime>
Weight information for extrinsics in this pallet.
The base amount of currency needed to reserve for creating a recovery configuration. Read more
The amount of currency needed per additional user when creating a recovery configuration. Read more
type MaxFriends = MaxFriends
type MaxFriends = MaxFriends
The maximum amount of friends allowed in a recovery configuration.
type RecoveryDeposit = RecoveryDeposit
type RecoveryDeposit = RecoveryDeposit
The base amount of currency needed to reserve for starting a recovery. Read more
type BlockNumberToBalance = ConvertInto
type BlockNumberToBalance = ConvertInto
Convert the block number into a balance.
The minimum amount transferred to call vested_transfer
.
type WeightInfo = WeightInfo<Runtime>
type WeightInfo = WeightInfo<Runtime>
Weight information for extrinsics in this pallet.
Maximum number of vesting schedules an account may have at a given moment.
type PalletsOrigin = OriginCaller
type PalletsOrigin = OriginCaller
The caller origin, overarching type of all pallets origins.
The maximum weight that may be scheduled per block for any dispatchables of less
priority than schedule::HARD_DEADLINE
. Read more
type ScheduleOrigin = EnsureRoot<AccountId>
type ScheduleOrigin = EnsureRoot<AccountId>
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
type WeightInfo = WeightInfo<Runtime>
type WeightInfo = WeightInfo<Runtime>
Weight information for extrinsics in this pallet.
Compare the privileges of origins. Read more
A kind of proxy; specified with the proxy and passed in to the IsProxyable
fitler.
The instance filter determines whether a given call may be proxied under this type. Read more
type ProxyDepositBase = ProxyDepositBase
type ProxyDepositBase = ProxyDepositBase
The base amount of currency needed to reserve for creating a proxy. Read more
The amount of currency needed per proxy added. Read more
type MaxProxies = MaxProxies
type MaxProxies = MaxProxies
The maximum amount of proxies allowed for a single account.
type WeightInfo = WeightInfo<Runtime>
type WeightInfo = WeightInfo<Runtime>
Weight information for extrinsics in this pallet.
type MaxPending = MaxPending
type MaxPending = MaxPending
The maximum amount of time-delayed announcements that are allowed to be pending.
type CallHasher = BlakeTwo256
type CallHasher = BlakeTwo256
The type of hash used for hashing the call.
The base amount of currency needed to reserve for creating an announcement. Read more
The amount of currency needed per announcement made. Read more
The aggregated origin type must support the parachains
origin. We require that we can
infallibly convert between this origin and the system origin, but in reality, they’re the
same type, we just can’t express that to the Rust type system without writing a where
clause everywhere. Read more
type ParaDeposit = ParaDeposit
type ParaDeposit = ParaDeposit
The deposit to be paid to run a parathread. This should include the cost for storing the genesis head and validation code. Read more
The deposit to be paid per byte stored on chain.
type WeightInfo = WeightInfo<Runtime>
type WeightInfo = WeightInfo<Runtime>
Weight Information for the Extrinsics in the Pallet
type DepositBase = DepositBase
type DepositBase = DepositBase
The base amount of currency needed to reserve for creating a multisig execution or to store a dispatch call for later. Read more
type DepositFactor = DepositFactor
type DepositFactor = DepositFactor
The amount of currency needed per unit threshold when creating a multisig execution. Read more
type MaxSignatories = MaxSignatories
type MaxSignatories = MaxSignatories
The maximum amount of signatories allowed in the multisig.
type WeightInfo = WeightInfo<Runtime>
type WeightInfo = WeightInfo<Runtime>
Weight information for extrinsics in this pallet.
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
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
type XcmExecuteFilter = Nothing
type XcmExecuteFilter = Nothing
Our XCM filter which messages to be executed using XcmExecutor
must pass.
type XcmExecutor = XcmExecutor<XcmConfig>
type XcmExecutor = XcmExecutor<XcmConfig>
Something to execute an XCM message.
type XcmTeleportFilter = Everything
type XcmTeleportFilter = Everything
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.
type Weigher = WeightInfoBounds<WestendXcmWeight<Call>, Call, MaxInstructions>
type Weigher = WeightInfoBounds<WestendXcmWeight<Call>, Call, MaxInstructions>
Means of measuring the weight consumed by an XCM message locally.
type LocationInverter = LocationInverter<Ancestry>
type LocationInverter = LocationInverter<Ancestry>
Means of inverting a location.
The latest supported version that we advertise. Generally just set it to
pallet_xcm::CurrentXcmVersion
. Read more
A converter between a multi-location to a sovereign account.
Does any necessary setup to create a valid destination for XCM messages. Returns that destination’s multi-location to be used in benchmarks. Read more
type WeightInfo = WeightInfo<Runtime>
type WeightInfo = WeightInfo<Runtime>
Weight information for extrinsics in this pallet.
impl Core<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
impl Core<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
Returns the version of the runtime.
Execute the given block.
Initialize a block with the given header.
Submits a transaction with the node’s public and signature type. Adheres to the signed extension format of the chain.
fn create_transaction<C: AppCrypto<Self::Public, Self::Signature>>(
call: Call,
public: <Signature as Verify>::Signer,
account: AccountId,
nonce: <Runtime as Config>::Index
) -> Option<(Call, <UncheckedExtrinsic as ExtrinsicT>::SignaturePayload)>
fn create_transaction<C: AppCrypto<Self::Public, Self::Signature>>(
call: Call,
public: <Signature as Verify>::Signer,
account: AccountId,
nonce: <Runtime as Config>::Index
) -> Option<(Call, <UncheckedExtrinsic as ExtrinsicT>::SignaturePayload)>
Attempt to create signed extrinsic data that encodes call from given account. Read more
impl EnsureInherentsAreFirst<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
impl EnsureInherentsAreFirst<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
type RuntimeBlock = Block
type RuntimeBlock = Block
The RuntimeBlock
type.
impl GrandpaApi<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
impl GrandpaApi<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
Get the current GRANDPA authorities and weights. This should not change except for when changes are scheduled and the corresponding delay has passed. Read more
Get current GRANDPA authority set id.
fn submit_report_equivocation_unsigned_extrinsic(
equivocation_proof: EquivocationProof<<Block as BlockT>::Hash, NumberFor<Block>>,
key_owner_proof: OpaqueKeyOwnershipProof
) -> Option<()>
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. Read more
fn generate_key_ownership_proof(
_set_id: SetId,
authority_id: AuthorityId
) -> Option<OpaqueKeyOwnershipProof>
fn generate_key_ownership_proof(
_set_id: SetId,
authority_id: AuthorityId
) -> 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. Read more
impl Metadata<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
impl Metadata<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
Returns the metadata of a runtime.
impl MmrApi<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>, H256> for Runtime
impl MmrApi<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>, H256> for Runtime
Generate MMR proof for a leaf under given index.
Verify MMR proof against on-chain MMR. Read more
fn verify_proof_stateless(
_root: Hash,
_leaf: EncodableOpaqueLeaf,
_proof: Proof<Hash>
) -> Result<(), Error>
fn verify_proof_stateless(
_root: Hash,
_leaf: EncodableOpaqueLeaf,
_proof: Proof<Hash>
) -> Result<(), Error>
Verify MMR proof against given root hash. Read more
impl OffchainWorkerApi<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
impl OffchainWorkerApi<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
Starts the off-chain task for given block header.
impl ParachainHost<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>, H256, u32> for Runtime
impl ParachainHost<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>, H256, u32> for Runtime
Get the current validators.
Returns the validator groups and rotation info localized based on the hypothetical child
of a block whose state this is invoked on. Note that now
in the GroupRotationInfo
should be the successor of the number of the block. Read more
Yields information on all availability cores as relevant to the child block. Cores are either free or occupied. Free cores can have paras assigned to them. Read more
fn persisted_validation_data(
para_id: ParaId,
assumption: OccupiedCoreAssumption
) -> Option<PersistedValidationData<Hash, BlockNumber>>
fn persisted_validation_data(
para_id: ParaId,
assumption: OccupiedCoreAssumption
) -> Option<PersistedValidationData<Hash, BlockNumber>>
Yields the persisted validation data for the given ParaId
along with an assumption that
should be used if the para currently occupies a core. Read more
fn assumed_validation_data(
para_id: ParaId,
expected_persisted_validation_data_hash: Hash
) -> Option<(PersistedValidationData<Hash, BlockNumber>, ValidationCodeHash)>
fn assumed_validation_data(
para_id: ParaId,
expected_persisted_validation_data_hash: Hash
) -> Option<(PersistedValidationData<Hash, BlockNumber>, ValidationCodeHash)>
Returns the persisted validation data for the given ParaId
along with the corresponding
validation code hash. Instead of accepting assumption about the para, matches the validation
data hash against an expected one and yields None
if they’re not equal. Read more
Checks if the given validation outputs pass the acceptance criteria.
Returns the session index expected at a child of the block. Read more
fn validation_code(
para_id: ParaId,
assumption: OccupiedCoreAssumption
) -> Option<ValidationCode>
fn validation_code(
para_id: ParaId,
assumption: OccupiedCoreAssumption
) -> Option<ValidationCode>
Fetch the validation code used by a para, making the given OccupiedCoreAssumption
. Read more
Get the receipt of a candidate pending availability. This returns Some
for any paras
assigned to occupied cores in availability_cores
and None
otherwise. Read more
Get a vector of events concerning candidates that occurred within a block.
Get the session info for the given session, if stored.
Get all the pending inbound messages in the downward message queue for a para.
fn inbound_hrmp_channels_contents(
recipient: ParaId
) -> BTreeMap<ParaId, Vec<InboundHrmpMessage<BlockNumber>>>
fn inbound_hrmp_channels_contents(
recipient: ParaId
) -> BTreeMap<ParaId, Vec<InboundHrmpMessage<BlockNumber>>>
Get the contents of all channels addressed to the given recipient. Channels that have no messages in them are also included. Read more
Get the validation code from its hash.
Scrape dispute relevant from on-chain, backing votes and resolved disputes.
type OverarchingCall = Call
type OverarchingCall = Call
The runtime’s call type. Read more
type Extrinsic = UncheckedExtrinsic
type Extrinsic = UncheckedExtrinsic
The extrinsic type expected by the runtime.
impl SessionKeys<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
impl SessionKeys<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
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
impl TaggedTransactionQueue<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
impl TaggedTransactionQueue<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
fn validate_transaction(
source: TransactionSource,
tx: <Block as BlockT>::Extrinsic,
block_hash: <Block as BlockT>::Hash
) -> TransactionValidity
fn validate_transaction(
source: TransactionSource,
tx: <Block as BlockT>::Extrinsic,
block_hash: <Block as BlockT>::Hash
) -> TransactionValidity
Validate the transaction. Read more
impl TransactionPaymentApi<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>, u128> for Runtime
impl TransactionPaymentApi<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>, u128> for Runtime
Auto Trait Implementations
impl RefUnwindSafe for Runtime
impl UnwindSafe for Runtime
Blanket Implementations
Retrieve authority identifiers of the current authority set in canonical ordering.
Mutably borrows from an owned value. 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
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
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.
fn pipe_as_ref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R where
Self: AsRef<T>,
T: 'a,
R: 'a,
fn pipe_as_ref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R where
Self: AsRef<T>,
T: 'a,
R: 'a,
Pipes a trait borrow into a function that cannot normally be called in suffix position. Read more
fn pipe_borrow<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R where
Self: Borrow<T>,
T: 'a,
R: 'a,
fn pipe_borrow<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R where
Self: Borrow<T>,
T: 'a,
R: 'a,
Pipes a trait borrow into a function that cannot normally be called in suffix position. Read more
fn pipe_deref<'a, R>(&'a self, func: impl FnOnce(&'a Self::Target) -> R) -> R where
Self: Deref,
R: 'a,
fn pipe_deref<'a, R>(&'a self, func: impl FnOnce(&'a Self::Target) -> R) -> R where
Self: Deref,
R: 'a,
Pipes a 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
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 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
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.
fn tap_borrow_mut<F, R>(self, func: F) -> Self where
Self: BorrowMut<T>,
F: FnOnce(&mut T) -> R,
fn tap_borrow_mut<F, R>(self, func: F) -> Self where
Self: BorrowMut<T>,
F: FnOnce(&mut T) -> R,
Provides mutable access to the borrow for modification.
Immutably dereferences self
for inspection.
fn tap_deref_dbg<F, R>(self, func: F) -> Self where
Self: Deref,
F: FnOnce(&Self::Target) -> R,
fn tap_deref_dbg<F, R>(self, func: F) -> Self where
Self: Deref,
F: FnOnce(&Self::Target) -> R,
Calls tap_deref
in debug builds, and does nothing in release builds.
fn tap_deref_mut<F, R>(self, func: F) -> Self where
Self: DerefMut,
F: FnOnce(&mut Self::Target) -> R,
fn tap_deref_mut<F, R>(self, func: F) -> Self where
Self: DerefMut,
F: FnOnce(&mut Self::Target) -> R,
Mutably dereferences self
for modification.
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