Struct rococo_runtime::Runtime
source · pub struct Runtime;
Implementations§
Trait Implementations§
source§impl AccountNonceApiV1<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckNonZeroSender<Runtime>, 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 AccountNonceApiV1<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, u32> for Runtime
source§fn account_nonce(account: AccountId) -> Nonce
fn account_nonce(account: AccountId) -> Nonce
Get current account nonce of given
AccountId
.source§impl AuthorityDiscoveryApiV1<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
impl AuthorityDiscoveryApiV1<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckNonZeroSender<Runtime>, 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.
source§impl BabeApiV2<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
impl BabeApiV2<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
source§fn configuration() -> BabeConfiguration
fn configuration() -> BabeConfiguration
Return the configuration for BABE.
source§fn current_epoch_start() -> Slot
fn current_epoch_start() -> Slot
Returns the slot that started the current epoch.
source§fn current_epoch() -> Epoch
fn current_epoch() -> Epoch
Returns information regarding the current epoch.
source§fn next_epoch() -> Epoch
fn next_epoch() -> Epoch
Returns information regarding the next epoch (which was already
previously announced). Read more
source§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 moresource§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 moresource§impl BeefyApiV1<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
impl BeefyApiV1<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
source§fn validator_set() -> Option<ValidatorSet<BeefyId>>
fn validator_set() -> Option<ValidatorSet<BeefyId>>
Return the current active BEEFY validator set
source§impl BenchmarkV1<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
impl BenchmarkV1<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
source§fn benchmark_metadata(extra: bool) -> (Vec<BenchmarkList>, Vec<StorageInfo>)
fn benchmark_metadata(extra: bool) -> (Vec<BenchmarkList>, Vec<StorageInfo>)
Get the benchmark metadata available for this runtime. Read more
source§fn dispatch_benchmark(
config: BenchmarkConfig
) -> Result<Vec<BenchmarkBatch>, RuntimeString>
fn dispatch_benchmark(
config: BenchmarkConfig
) -> Result<Vec<BenchmarkBatch>, RuntimeString>
Dispatch the given benchmark.
source§impl BlockBuilderV6<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
impl BlockBuilderV6<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
source§fn apply_extrinsic(
extrinsic: <Block as BlockT>::Extrinsic
) -> ApplyExtrinsicResult
fn apply_extrinsic(
extrinsic: <Block as BlockT>::Extrinsic
) -> ApplyExtrinsicResult
Apply the given extrinsic. Read more
source§fn inherent_extrinsics(data: InherentData) -> Vec<<Block as BlockT>::Extrinsic> ⓘ
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
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 Config<()> for Runtime
impl Config<()> for Runtime
§type DustRemoval = ()
type DustRemoval = ()
Handler for the unbalanced reduction when removing a dust account.
§type ExistentialDeposit = ExistentialDeposit
type ExistentialDeposit = ExistentialDeposit
The minimum amount required to keep an account open.
§type AccountStore = Pallet<Runtime>
type AccountStore = Pallet<Runtime>
The means of storing the balances of an account.
§type MaxLocks = MaxLocks
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 = 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.
source§impl Config<()> for Runtime
impl Config<()> for Runtime
source§const INDEXING_PREFIX: &'static [u8] = b"mmr"
const INDEXING_PREFIX: &'static [u8] = b"mmr"
Prefix for elements stored in the Off-chain DB via Indexing API. Read more
§type OnNewRoot = DepositBeefyDigest<Runtime>
type OnNewRoot = DepositBeefyDigest<Runtime>
A hook to act on the new MMR root. Read more
§type WeightInfo = ()
type WeightInfo = ()
Weights for this pallet.
source§impl Config<()> for Runtime
impl Config<()> for Runtime
§type MotionDuration = MotionDuration
type MotionDuration = MotionDuration
The time-out for council motions.
§type MaxProposals = MaxProposals
type MaxProposals = MaxProposals
Maximum number of proposals allowed to be active in parallel.
§type DefaultVote = PrimeDefaultVote
type DefaultVote = PrimeDefaultVote
Default vote strategy of this collective.
§type MaxMembers = MaxMembers
type MaxMembers = MaxMembers
The maximum number of members supported by the pallet. Used for weight estimation. Read more
§type WeightInfo = WeightInfo<Runtime>
type WeightInfo = WeightInfo<Runtime>
Weight information for extrinsics in this pallet.
source§impl Config<()> for Runtime
impl Config<()> for Runtime
§type AddOrigin = EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>
type AddOrigin = EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>
Required origin for adding a member (though can always be Root).
§type RemoveOrigin = EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>
type RemoveOrigin = EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>
Required origin for removing a member (though can always be Root).
§type SwapOrigin = EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>
type SwapOrigin = EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>
Required origin for adding and removing a member in a single action.
§type ResetOrigin = EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>
type ResetOrigin = EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>
Required origin for resetting membership.
§type PrimeOrigin = EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>
type PrimeOrigin = EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>
Required origin for setting or resetting the prime member.
§type MembershipInitialized = Pallet<Runtime, ()>
type MembershipInitialized = Pallet<Runtime, ()>
The receiver of the signal for when the membership has been initialized. This happens
pre-genesis and will usually be the same as
MembershipChanged
. If you need to do
something different on initialization, then you can change this accordingly. Read more§type MembershipChanged = Pallet<Runtime, ()>
type MembershipChanged = Pallet<Runtime, ()>
The receiver of the signal for when the membership has changed.
§type MaxMembers = MaxMembers
type MaxMembers = MaxMembers
The maximum number of members that this membership can have. Read more
§type WeightInfo = WeightInfo<Runtime>
type WeightInfo = WeightInfo<Runtime>
Weight information for extrinsics in this pallet.
source§impl Config for Runtime
impl Config for Runtime
§type SendXcmOrigin = EnsureXcmOrigin<Origin, (BackingToPlurality<Origin, RawOrigin<<Runtime as Config>::AccountId, ()>, CollectiveBodyId>, SignedToAccountId32<Origin, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, RococoNetwork>)>
type SendXcmOrigin = EnsureXcmOrigin<Origin, (BackingToPlurality<Origin, RawOrigin<<Runtime as Config>::AccountId, ()>, CollectiveBodyId>, SignedToAccountId32<Origin, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, RococoNetwork>)>
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§type XcmRouter = (ChildParachainRouter<Runtime, Pallet<Runtime>>,)
type XcmRouter = (ChildParachainRouter<Runtime, Pallet<Runtime>>,)
The type used to actually dispatch an XCM to its destination.
§type ExecuteXcmOrigin = EnsureXcmOrigin<Origin, (BackingToPlurality<Origin, RawOrigin<<Runtime as Config>::AccountId, ()>, CollectiveBodyId>, SignedToAccountId32<Origin, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, RococoNetwork>)>
type ExecuteXcmOrigin = EnsureXcmOrigin<Origin, (BackingToPlurality<Origin, RawOrigin<<Runtime as Config>::AccountId, ()>, CollectiveBodyId>, SignedToAccountId32<Origin, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, RococoNetwork>)>
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.
§type XcmReserveTransferFilter = Everything
type XcmReserveTransferFilter = Everything
Our XCM filter which messages to be reserve-transferred using the dedicated extrinsic must pass.
§type Weigher = FixedWeightBounds<BaseXcmWeight, Call, MaxInstructions>
type Weigher = FixedWeightBounds<BaseXcmWeight, 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.
const VERSION_DISCOVERY_QUEUE_SIZE: u32 = 100u32
§type AdvertisedXcmVersion = CurrentXcmVersion
type AdvertisedXcmVersion = CurrentXcmVersion
The latest supported version that we advertise. Generally just set it to
pallet_xcm::CurrentXcmVersion
. Read moresource§impl Config for Runtime
impl Config for Runtime
§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).
§type DbWeight = RocksDbWeight
type DbWeight = RocksDbWeight
The weight of runtime database operations the runtime can invoke.
§type Index = u32
type Index = u32
Account index (aka nonce) type. This stores the number of previous transactions
associated with a sender account. Read more
§type BlockNumber = u32
type BlockNumber = u32
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 AccountId = <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId
type AccountId = <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId
The user account identifier type for the runtime.
§type Lookup = AccountIdLookup<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>
type Lookup = AccountIdLookup<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>
Converting trait to take a source type and convert to
AccountId
. Read more§type Header = Header<u32, BlakeTwo256>
type Header = Header<u32, 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 PalletInfo = PalletInfo
type PalletInfo = PalletInfo
Provides information about the pallet setup in the runtime. Read more
§type AccountData = AccountData<u128>
type AccountData = AccountData<u128>
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 SS58 prefix of this chain. Read more
§type MaxConsumers = ConstU32<16>
type MaxConsumers = ConstU32<16>
The maximum number of consumers allowed on a single account.
source§impl Config for Runtime
impl Config for Runtime
§type EpochDuration = EpochDurationInBlocks
type EpochDuration = EpochDurationInBlocks
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
§type ExpectedBlockTime = ExpectedBlockTime
type ExpectedBlockTime = ExpectedBlockTime
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§type EpochChangeTrigger = ExternalTrigger
type EpochChangeTrigger = ExternalTrigger
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 = Pallet<Runtime>
type DisabledValidators = Pallet<Runtime>
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 = Pallet<Runtime>
type KeyOwnerProofSystem = Pallet<Runtime>
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 = <<Runtime as Config>::KeyOwnerProofSystem as KeyOwnerProofSystem<(KeyTypeId, Public)>>::Proof
type KeyOwnerProof = <<Runtime as Config>::KeyOwnerProofSystem as KeyOwnerProofSystem<(KeyTypeId, Public)>>::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 = <<Runtime as Config>::KeyOwnerProofSystem as KeyOwnerProofSystem<(KeyTypeId, Public)>>::IdentificationTuple
type KeyOwnerIdentification = <<Runtime as Config>::KeyOwnerProofSystem as KeyOwnerProofSystem<(KeyTypeId, Public)>>::IdentificationTuple
The identification of a key owner, used when reporting equivocations.
§type HandleEquivocation = EquivocationHandler<<Runtime as Config>::KeyOwnerIdentification, Pallet<Runtime>, ReportLongevity>
type HandleEquivocation = EquivocationHandler<<Runtime as Config>::KeyOwnerIdentification, Pallet<Runtime>, ReportLongevity>
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 moretype WeightInfo = ()
§type MaxAuthorities = MaxAuthorities
type MaxAuthorities = MaxAuthorities
Max number of authorities allowed
source§impl Config for Runtime
impl Config for Runtime
§type AccountIndex = u32
type AccountIndex = u32
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.
source§impl Config for Runtime
impl Config for Runtime
§type KeyOwnerProofSystem = Pallet<Runtime>
type KeyOwnerProofSystem = Pallet<Runtime>
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 = <<Runtime as Config>::KeyOwnerProofSystem as KeyOwnerProofSystem<(KeyTypeId, Public)>>::Proof
type KeyOwnerProof = <<Runtime as Config>::KeyOwnerProofSystem as KeyOwnerProofSystem<(KeyTypeId, Public)>>::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 = <<Runtime as Config>::KeyOwnerProofSystem as KeyOwnerProofSystem<(KeyTypeId, Public)>>::IdentificationTuple
type KeyOwnerIdentification = <<Runtime as Config>::KeyOwnerProofSystem as KeyOwnerProofSystem<(KeyTypeId, Public)>>::IdentificationTuple
The identification of a key owner, used when reporting equivocations.
§type HandleEquivocation = EquivocationHandler<<Runtime as Config>::KeyOwnerIdentification, Pallet<Runtime>, ReportLongevity, GrandpaEquivocationOffence<<Runtime as Config>::KeyOwnerIdentification>>
type HandleEquivocation = EquivocationHandler<<Runtime as Config>::KeyOwnerIdentification, Pallet<Runtime>, ReportLongevity, GrandpaEquivocationOffence<<Runtime as Config>::KeyOwnerIdentification>>
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
source§impl Config for Runtime
impl Config for Runtime
§type FindAuthor = FindAccountFromAuthorIndex<Runtime, Pallet<Runtime>>
type FindAuthor = FindAccountFromAuthorIndex<Runtime, Pallet<Runtime>>
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 = Pallet<Runtime>
type EventHandler = Pallet<Runtime>
An event handler for authored blocks.
source§impl Config for Runtime
impl Config for Runtime
§type WeightInfo = WeightInfo<Runtime>
type WeightInfo = WeightInfo<Runtime>
Weight information for extrinsics in this pallet.
source§impl Config for Runtime
impl Config for Runtime
type Event = Event
§type WeightInfo = WeightInfo<Runtime>
type WeightInfo = WeightInfo<Runtime>
Weight information for extrinsics in this pallet.
type UnsignedPriority = ParasUnsignedPriority
type NextSessionRotation = Pallet<Runtime>
source§impl Config for Runtime
impl Config for Runtime
§type ValidatorSet = Pallet<Runtime>
type ValidatorSet = Pallet<Runtime>
A type for retrieving
AccountId
s of the validators in the current session.
These are stash keys of the validators.
It’s used for rewards and slashing. Identification
is only needed for slashing. Read moresource§impl Config for Runtime
impl Config for Runtime
§type FullIdentification = ()
type FullIdentification = ()
Full identification of the validator.
§type FullIdentificationOf = FullIdentificationOf
type FullIdentificationOf = FullIdentificationOf
A conversion from validator ID to full identification. Read more
source§impl Config for Runtime
impl Config for Runtime
§type UmpSink = XcmSink<XcmExecutor<XcmConfig>, Runtime>
type UmpSink = XcmSink<XcmExecutor<XcmConfig>, Runtime>
A place where all received upward messages are funneled.
§type FirstMessageFactorPercent = FirstMessageFactorPercent
type FirstMessageFactorPercent = FirstMessageFactorPercent
The factor by which the weight limit it multiplied for the first UMP message to execute with. Read more
§type ExecuteOverweightOrigin = EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>
type ExecuteOverweightOrigin = EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>
Origin which is allowed to execute overweight messages.
§type WeightInfo = WeightInfo<Runtime>
type WeightInfo = WeightInfo<Runtime>
Weight information for extrinsics in this pallet.
source§impl Config for Runtime
impl Config for Runtime
§type WeightInfo = WeightInfo<Runtime>
type WeightInfo = WeightInfo<Runtime>
Weight information for extrinsics in this pallet.
source§impl Config for Runtime
impl Config for Runtime
§type Randomness = RandomnessFromOneEpochAgo<Runtime>
type Randomness = RandomnessFromOneEpochAgo<Runtime>
A randomness beacon.
§type ForceOrigin = EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>
type ForceOrigin = EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::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.
source§impl Config for Runtime
impl Config for Runtime
§type AssignSlotOrigin = EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>
type AssignSlotOrigin = EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>
Origin for assigning slots.
§type PermanentSlotLeasePeriodLength = PermanentSlotLeasePeriodLength
type PermanentSlotLeasePeriodLength = PermanentSlotLeasePeriodLength
The number of lease periods a permanent parachain slot lasts.
§type TemporarySlotLeasePeriodLength = TemporarySlotLeasePeriodLength
type TemporarySlotLeasePeriodLength = TemporarySlotLeasePeriodLength
The number of lease periods a temporary parachain slot lasts.
§type MaxPermanentSlots = MaxPermanentSlots
type MaxPermanentSlots = MaxPermanentSlots
The max number of permanent slots that can be assigned.
§type MaxTemporarySlots = MaxTemporarySlots
type MaxTemporarySlots = MaxTemporarySlots
The max number of temporary slots that can be assigned.
§type MaxTemporarySlotPerLeasePeriod = MaxTemporarySlotPerLeasePeriod
type MaxTemporarySlotPerLeasePeriod = MaxTemporarySlotPerLeasePeriod
The max number of temporary slots to be scheduled per lease periods.
source§impl Config for Runtime
impl Config for Runtime
§type Origin = Origin
type Origin = Origin
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 OnSwap = (Pallet<Runtime>, Pallet<Runtime>)
type OnSwap = (Pallet<Runtime>, Pallet<Runtime>)
Runtime hook for when a parachain and parathread swap.
§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
§type DataDepositPerByte = DataDepositPerByte
type DataDepositPerByte = DataDepositPerByte
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
source§impl Config for Runtime
impl Config for Runtime
§type MaxAuthorities = MaxAuthorities
type MaxAuthorities = MaxAuthorities
The maximum number of authorities that can be added.
§type OnNewValidatorSet = Pallet<Runtime>
type OnNewValidatorSet = Pallet<Runtime>
A hook to act on the new BEEFY validator set. Read more
source§impl Config for Runtime
impl Config for Runtime
type Event = Event
type RewardValidators = ()
type PunishValidators = ()
§type WeightInfo = WeightInfo<Runtime>
type WeightInfo = WeightInfo<Runtime>
Weight information for extrinsics in this pallet.
source§impl Config for Runtime
impl Config for Runtime
§type LeafVersion = LeafVersion
type LeafVersion = LeafVersion
Current leaf version. Read more
§type BeefyAuthorityToMerkleLeaf = BeefyEcdsaToEthereum
type BeefyAuthorityToMerkleLeaf = BeefyEcdsaToEthereum
Convert BEEFY AuthorityId to a form that would end up in the Merkle Tree. Read more
§type BeefyDataProvider = ParasProvider
type BeefyDataProvider = ParasProvider
Retrieve arbitrary data that should be added to the mmr leaf
source§impl Config for Runtime
impl Config for Runtime
§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
§type Randomness = RandomnessFromOneEpochAgo<Runtime>
type Randomness = RandomnessFromOneEpochAgo<Runtime>
Something that provides randomness in the runtime.
§type InitiateOrigin = EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>
type InitiateOrigin = EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>
The origin which may initiate auctions.
§type WeightInfo = WeightInfo<Runtime>
type WeightInfo = WeightInfo<Runtime>
Weight Information for the Extrinsics in the Pallet
source§impl Config for Runtime
impl Config for Runtime
§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 ForceOrigin = EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>
type ForceOrigin = EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>
The origin which may forcibly create or clear leases. Root can always do this.
§type WeightInfo = WeightInfo<Runtime>
type WeightInfo = WeightInfo<Runtime>
Weight Information for the Extrinsics in the Pallet
source§impl Config for Runtime
impl Config for Runtime
type Event = Event
§type PalletId = CrowdloanId
type PalletId = CrowdloanId
PalletId
for the crowdloan pallet. An appropriate value could be PalletId(*b"py/cfund")
§type SubmissionDeposit = SubmissionDeposit
type SubmissionDeposit = SubmissionDeposit
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.
§type Registrar = Pallet<Runtime>
type Registrar = Pallet<Runtime>
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 = Pallet<Runtime>
type Auctioneer = Pallet<Runtime>
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
source§impl Config for Runtime
impl Config for Runtime
§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.
source§impl Config for Runtime
impl Config for Runtime
§type ProxyType = ProxyType
type ProxyType = ProxyType
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
§type ProxyDepositFactor = ProxyDepositFactor
type ProxyDepositFactor = ProxyDepositFactor
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.
§type AnnouncementDepositBase = AnnouncementDepositBase
type AnnouncementDepositBase = AnnouncementDepositBase
The base amount of currency needed to reserve for creating an announcement. Read more
§type AnnouncementDepositFactor = AnnouncementDepositFactor
type AnnouncementDepositFactor = AnnouncementDepositFactor
The amount of currency needed per announcement made. Read more
source§impl Config for Runtime
impl Config for Runtime
§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.
source§impl Config for Runtime
impl Config for Runtime
§type AuthorityId = Public
type AuthorityId = Public
The identifier type for an authority.
§type ValidatorSet = Pallet<Runtime>
type ValidatorSet = Pallet<Runtime>
A type for retrieving the validators supposed to be online in a session.
§type NextSessionRotation = Pallet<Runtime>
type NextSessionRotation = Pallet<Runtime>
A trait that allows us to estimate the current session progress and also the
average session length. Read more
§type ReportUnresponsiveness = Pallet<Runtime>
type ReportUnresponsiveness = Pallet<Runtime>
A type that gives us the ability to submit unresponsiveness offence reports.
§type UnsignedPriority = ImOnlineUnsignedPriority
type UnsignedPriority = ImOnlineUnsignedPriority
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.
§type MaxPeerInHeartbeats = MaxPeerInHeartbeats
type MaxPeerInHeartbeats = MaxPeerInHeartbeats
The maximum number of peers to be stored in
ReceivedHeartbeats
§type MaxPeerDataEncodingSize = MaxPeerDataEncodingSize
type MaxPeerDataEncodingSize = MaxPeerDataEncodingSize
The maximum size of the encoding of
PeerId
and MultiAddr
that are coming
from the hearbeat Read moresource§impl Config for Runtime
impl Config for Runtime
§type IdentificationTuple = (<Runtime as Config>::ValidatorId, <Runtime as Config>::FullIdentification)
type IdentificationTuple = (<Runtime as Config>::ValidatorId, <Runtime as Config>::FullIdentification)
Full identification of the validator.
§type OnOffenceHandler = ()
type OnOffenceHandler = ()
A handler called for every offence report.
source§impl Config for Runtime
impl Config for Runtime
§type MaxAuthorities = MaxAuthorities
type MaxAuthorities = MaxAuthorities
The maximum number of authorities that can be added.
source§impl Config for Runtime
impl Config for Runtime
§type OnTimestampSet = Pallet<Runtime>
type OnTimestampSet = Pallet<Runtime>
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.
source§impl Config for Runtime
impl Config for Runtime
§type OnChargeTransaction = CurrencyAdapter<Pallet<Runtime, ()>, ToAuthor<Runtime>>
type OnChargeTransaction = CurrencyAdapter<Pallet<Runtime, ()>, ToAuthor<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. Read more
§type OperationalFeeMultiplier = OperationalFeeMultiplier
type OperationalFeeMultiplier = OperationalFeeMultiplier
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 LengthToFee = ConstantMultiplier<u128, TransactionByteFee>
type LengthToFee = ConstantMultiplier<u128, TransactionByteFee>
Convert a length value into a deductible fee based on the currency type.
§type FeeMultiplierUpdate = TargetedFeeAdjustment<Runtime, TargetBlockFullness, AdjustmentVariable, MinimumMultiplier>
type FeeMultiplierUpdate = TargetedFeeAdjustment<Runtime, TargetBlockFullness, AdjustmentVariable, MinimumMultiplier>
Update the multiplier of the next block, based on the previous block’s weight.
source§impl Config for Runtime
impl Config for Runtime
§type ValidatorId = <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId
type ValidatorId = <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId
A stable ID for a validator.
§type ValidatorIdOf = ValidatorIdOf
type ValidatorIdOf = ValidatorIdOf
A conversion from account ID to validator ID. Read more
§type ShouldEndSession = Pallet<Runtime>
type ShouldEndSession = Pallet<Runtime>
Indicator for when to end the session.
§type NextSessionRotation = Pallet<Runtime>
type NextSessionRotation = Pallet<Runtime>
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<Runtime, Pallet<Runtime>>
type SessionManager = NoteHistoricalRoot<Runtime, Pallet<Runtime>>
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 = ()
type WeightInfo = ()
Weight information for extrinsics in this pallet.
source§impl CoreV4<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
impl CoreV4<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
source§fn version() -> RuntimeVersion
fn version() -> RuntimeVersion
Returns the version of the runtime.
source§fn execute_block(block: Block)
fn execute_block(block: Block)
Execute the given block.
source§impl<LocalCall> CreateSignedTransaction<LocalCall> for Runtimewhere
Call: From<LocalCall>,
impl<LocalCall> CreateSignedTransaction<LocalCall> for Runtimewhere
Call: From<LocalCall>,
Submits a transaction with the node’s public and signature type. Adheres to the signed extension format of the chain.
source§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
source§impl EnsureInherentsAreFirst<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckNonZeroSender<Runtime>, 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, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
source§impl GetNodeBlockType for Runtime
impl GetNodeBlockType for Runtime
§type NodeBlock = Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>
type NodeBlock = Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>
The
NodeBlock
type.source§impl GetRuntimeBlockType for Runtime
impl GetRuntimeBlockType for Runtime
§type RuntimeBlock = Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>
type RuntimeBlock = Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>
The
RuntimeBlock
type.source§impl GrandpaApiV3<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
impl GrandpaApiV3<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckNonZeroSender<Runtime>, 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
source§fn current_set_id() -> SetId
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<()>
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 moresource§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 moresource§impl MetadataV1<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
impl MetadataV1<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
source§fn metadata() -> OpaqueMetadata
fn metadata() -> OpaqueMetadata
Returns the metadata of a runtime.
source§impl MmrApiV1<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>, H256> for Runtime
impl MmrApiV1<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>, H256> for Runtime
source§fn generate_proof(
leaf_index: u64
) -> Result<(EncodableOpaqueLeaf, Proof<Hash>), Error>
fn generate_proof(
leaf_index: u64
) -> Result<(EncodableOpaqueLeaf, Proof<Hash>), Error>
Generate MMR proof for a leaf under given index.
source§fn verify_proof(
leaf: EncodableOpaqueLeaf,
proof: Proof<Hash>
) -> Result<(), Error>
fn verify_proof(
leaf: EncodableOpaqueLeaf,
proof: Proof<Hash>
) -> Result<(), Error>
Verify MMR proof against on-chain MMR. Read more
source§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
source§fn generate_batch_proof(
leaf_indices: Vec<LeafIndex>
) -> Result<(Vec<EncodableOpaqueLeaf>, BatchProof<Hash>), Error>
fn generate_batch_proof(
leaf_indices: Vec<LeafIndex>
) -> Result<(Vec<EncodableOpaqueLeaf>, BatchProof<Hash>), Error>
Generate MMR proof for a series of leaves under given indices.
source§fn verify_batch_proof(
leaves: Vec<EncodableOpaqueLeaf>,
proof: BatchProof<Hash>
) -> Result<(), Error>
fn verify_batch_proof(
leaves: Vec<EncodableOpaqueLeaf>,
proof: BatchProof<Hash>
) -> Result<(), Error>
Verify MMR proof against on-chain MMR for a batch of leaves. Read more
source§fn verify_batch_proof_stateless(
root: Hash,
leaves: Vec<EncodableOpaqueLeaf>,
proof: BatchProof<Hash>
) -> Result<(), Error>
fn verify_batch_proof_stateless(
root: Hash,
leaves: Vec<EncodableOpaqueLeaf>,
proof: BatchProof<Hash>
) -> Result<(), Error>
Verify MMR proof against given root hash or a batch of leaves. Read more
source§impl OffchainWorkerApiV2<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
impl OffchainWorkerApiV2<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
source§impl ParachainHostV2<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>, H256, u32> for Runtime
impl ParachainHostV2<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>, H256, u32> for Runtime
source§fn validators() -> Vec<ValidatorId> ⓘ
fn validators() -> Vec<ValidatorId> ⓘ
Get the current validators.
source§fn validator_groups(
) -> (Vec<Vec<ValidatorIndex>>, GroupRotationInfo<BlockNumber>)
fn validator_groups(
) -> (Vec<Vec<ValidatorIndex>>, GroupRotationInfo<BlockNumber>)
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 moresource§fn availability_cores() -> Vec<CoreState<Hash, BlockNumber>> ⓘ
fn availability_cores() -> Vec<CoreState<Hash, BlockNumber>> ⓘ
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
source§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 moresource§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 moresource§fn check_validation_outputs(
para_id: ParaId,
outputs: CandidateCommitments
) -> bool
fn check_validation_outputs(
para_id: ParaId,
outputs: CandidateCommitments
) -> bool
Checks if the given validation outputs pass the acceptance criteria.
source§fn session_index_for_child() -> SessionIndex
fn session_index_for_child() -> SessionIndex
Returns the session index expected at a child of the block. Read more
source§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 moresource§fn candidate_pending_availability(
para_id: ParaId
) -> Option<CommittedCandidateReceipt<Hash>>
fn candidate_pending_availability(
para_id: ParaId
) -> Option<CommittedCandidateReceipt<Hash>>
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 moresource§fn candidate_events() -> Vec<CandidateEvent<Hash>> ⓘ
fn candidate_events() -> Vec<CandidateEvent<Hash>> ⓘ
Get a vector of events concerning candidates that occurred within a block.
source§fn session_info(index: SessionIndex) -> Option<SessionInfo>
fn session_info(index: SessionIndex) -> Option<SessionInfo>
Get the session info for the given session, if stored. Read more
source§fn dmq_contents(recipient: ParaId) -> Vec<InboundDownwardMessage<BlockNumber>> ⓘ
fn dmq_contents(recipient: ParaId) -> Vec<InboundDownwardMessage<BlockNumber>> ⓘ
Get all the pending inbound messages in the downward message queue for a para.
source§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
source§fn validation_code_by_hash(hash: ValidationCodeHash) -> Option<ValidationCode>
fn validation_code_by_hash(hash: ValidationCodeHash) -> Option<ValidationCode>
Get the validation code from its hash.
source§fn on_chain_votes() -> Option<ScrapedOnChainVotes<Hash>>
fn on_chain_votes() -> Option<ScrapedOnChainVotes<Hash>>
Scrape dispute relevant from on-chain, backing votes and resolved disputes.
source§fn submit_pvf_check_statement(
stmt: PvfCheckStatement,
signature: ValidatorSignature
)
fn submit_pvf_check_statement(
stmt: PvfCheckStatement,
signature: ValidatorSignature
)
Submits a PVF pre-checking statement into the transaction pool. Read more
source§fn pvfs_require_precheck() -> Vec<ValidationCodeHash> ⓘ
fn pvfs_require_precheck() -> Vec<ValidationCodeHash> ⓘ
Returns code hashes of PVFs that require pre-checking by validators in the active set. Read more
source§fn validation_code_hash(
para_id: ParaId,
assumption: OccupiedCoreAssumption
) -> Option<ValidationCodeHash>
fn validation_code_hash(
para_id: ParaId,
assumption: OccupiedCoreAssumption
) -> Option<ValidationCodeHash>
Fetch the hash of the validation code used by a para, making the given
OccupiedCoreAssumption
. Read moresource§fn staging_get_disputes(
) -> Vec<(SessionIndex, CandidateHash, DisputeState<BlockNumber>)> ⓘ
fn staging_get_disputes(
) -> Vec<(SessionIndex, CandidateHash, DisputeState<BlockNumber>)> ⓘ
Returns all onchain disputes.
This is a staging method! Do not use on production runtimes! Read more
source§impl<C> SendTransactionTypes<C> for Runtimewhere
Call: From<C>,
impl<C> SendTransactionTypes<C> for Runtimewhere
Call: From<C>,
§type OverarchingCall = Call
type OverarchingCall = Call
The runtime’s call type. Read more
§type Extrinsic = UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>
type Extrinsic = UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>
The extrinsic type expected by the runtime.
source§impl SessionKeysV1<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
impl SessionKeysV1<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
source§impl SigningTypes for Runtime
impl SigningTypes for Runtime
§type Public = <MultiSignature as Verify>::Signer
type Public = <MultiSignature as Verify>::Signer
A public key that is capable of identifying
AccountId
s. Read more§type Signature = MultiSignature
type Signature = MultiSignature
A matching
Signature
type.source§impl TaggedTransactionQueueV3<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
impl TaggedTransactionQueueV3<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
source§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
source§impl TransactionPaymentApiV1<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>, u128> for Runtime
impl TransactionPaymentApiV1<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>, u128> for Runtime
fn query_info(
uxt: <Block as BlockT>::Extrinsic,
len: u32
) -> RuntimeDispatchInfo<Balance>
fn query_fee_details(
uxt: <Block as BlockT>::Extrinsic,
len: u32
) -> FeeDetails<Balance>
source§impl TransactionPaymentCallApiV1<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>, u128, Call> for Runtime
impl TransactionPaymentCallApiV1<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>, u128, Call> for Runtime
source§fn query_call_info(call: Call, len: u32) -> RuntimeDispatchInfo<Balance>
fn query_call_info(call: Call, 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: Call, len: u32) -> FeeDetails<Balance>
fn query_call_fee_details(call: Call, len: u32) -> FeeDetails<Balance>
Query fee details of a given encoded
Call
.source§impl ValidateUnsigned for Runtime
impl ValidateUnsigned for Runtime
source§fn pre_dispatch(call: &Self::Call) -> Result<(), TransactionValidityError>
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
fn validate_unsigned(
source: TransactionSource,
call: &Self::Call
) -> TransactionValidity
Return the validity of the call Read more
impl Config for Runtime
impl Config for Runtime
impl Config for Runtime
impl Config for Runtime
impl Config for Runtime
impl Config for Runtime
impl Config for Runtime
impl Copy for Runtime
impl Eq for Runtime
impl StructuralEq for Runtime
impl StructuralPartialEq for Runtime
Auto Trait Implementations§
impl RefUnwindSafe for Runtime
impl Send for Runtime
impl Sync for Runtime
impl Unpin for Runtime
impl UnwindSafe for Runtime
Blanket Implementations§
source§impl<T> AuthorityDiscoveryConfig for Twhere
T: Config,
impl<T> AuthorityDiscoveryConfig for Twhere
T: Config,
Retrieve authority identifiers of the current authority set in canonical ordering.
source§impl<T> CheckedConversion for T
impl<T> CheckedConversion for T
source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
source§fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
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 moresource§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read moresource§fn as_any(&self) -> &(dyn Any + 'static)
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. Read moresource§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
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. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> FmtForward for T
impl<T> FmtForward for T
source§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
source§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
source§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
source§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
source§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
source§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
source§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T, Outer> IsWrappedBy<Outer> for Twhere
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
impl<T, Outer> IsWrappedBy<Outer> for Twhere
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
source§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
source§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Pipes by value. This is generally the method you want to use. Read more
source§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
Borrows
self
and passes that borrow into the pipe function. Read moresource§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
Mutably borrows
self
and passes that borrow into the pipe function. Read moresource§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> Rwhere
Self: Borrow<B>,
B: 'a + ?Sized,
R: 'a,
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> Rwhere
Self: Borrow<B>,
B: 'a + ?Sized,
R: 'a,
source§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R
) -> Rwhere
Self: BorrowMut<B>,
B: 'a + ?Sized,
R: 'a,
fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R
) -> Rwhere
Self: BorrowMut<B>,
B: 'a + ?Sized,
R: 'a,
source§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> Rwhere
Self: AsRef<U>,
U: 'a + ?Sized,
R: 'a,
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> Rwhere
Self: AsRef<U>,
U: 'a + ?Sized,
R: 'a,
Borrows
self
, then passes self.as_ref()
into the pipe function.source§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> Rwhere
Self: AsMut<U>,
U: 'a + ?Sized,
R: 'a,
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> Rwhere
Self: AsMut<U>,
U: 'a + ?Sized,
R: 'a,
source§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> SaturatedConversion for T
impl<T> SaturatedConversion for T
source§fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
source§fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
Consume self to return an equivalent value of
T
. Read moresource§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read moresource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.source§impl<T> Tap for T
impl<T> Tap for T
source§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Selfwhere
Self: Borrow<B>,
B: ?Sized,
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Selfwhere
Self: Borrow<B>,
B: ?Sized,
Immutable access to the
Borrow<B>
of a value. Read moresource§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Selfwhere
Self: BorrowMut<B>,
B: ?Sized,
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Selfwhere
Self: BorrowMut<B>,
B: ?Sized,
Mutable access to the
BorrowMut<B>
of a value. Read moresource§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Selfwhere
Self: AsRef<R>,
R: ?Sized,
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Selfwhere
Self: AsRef<R>,
R: ?Sized,
Immutable access to the
AsRef<R>
view of a value. Read moresource§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Selfwhere
Self: AsMut<R>,
R: ?Sized,
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Selfwhere
Self: AsMut<R>,
R: ?Sized,
Mutable access to the
AsMut<R>
view of a value. Read moresource§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Selfwhere
Self: Deref<Target = T>,
T: ?Sized,
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Selfwhere
Self: Deref<Target = T>,
T: ?Sized,
Immutable access to the
Deref::Target
of a value. Read moresource§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Selfwhere
Self: DerefMut<Target = T> + Deref,
T: ?Sized,
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Selfwhere
Self: DerefMut<Target = T> + Deref,
T: ?Sized,
Mutable access to the
Deref::Target
of a value. Read moresource§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
Calls
.tap()
only in debug builds, and is erased in release builds.source§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
Calls
.tap_mut()
only in debug builds, and is erased in release
builds. Read moresource§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Selfwhere
Self: Borrow<B>,
B: ?Sized,
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Selfwhere
Self: Borrow<B>,
B: ?Sized,
Calls
.tap_borrow()
only in debug builds, and is erased in release
builds. Read moresource§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Selfwhere
Self: BorrowMut<B>,
B: ?Sized,
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Selfwhere
Self: BorrowMut<B>,
B: ?Sized,
Calls
.tap_borrow_mut()
only in debug builds, and is erased in release
builds. Read moresource§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Selfwhere
Self: AsRef<R>,
R: ?Sized,
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Selfwhere
Self: AsRef<R>,
R: ?Sized,
Calls
.tap_ref()
only in debug builds, and is erased in release
builds. Read moresource§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Selfwhere
Self: AsMut<R>,
R: ?Sized,
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Selfwhere
Self: AsMut<R>,
R: ?Sized,
Calls
.tap_ref_mut()
only in debug builds, and is erased in release
builds. Read moresource§impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
source§fn unchecked_into(self) -> T
fn unchecked_into(self) -> T
The counterpart to
unchecked_from
.source§impl<T, S> UniqueSaturatedInto<T> for Swhere
T: Bounded,
S: TryInto<T>,
impl<T, S> UniqueSaturatedInto<T> for Swhere
T: Bounded,
S: TryInto<T>,
source§fn unique_saturated_into(self) -> T
fn unique_saturated_into(self) -> T
Consume self to return an equivalent value of
T
.