Struct polkadot_runtime::RuntimeApiImpl
source · Expand description
Implements all runtime apis for the client side.
Trait Implementations§
source§impl<__SR_API_BLOCK__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SR_API_BLOCK__> + 'static> AccountNonceApi<__SR_API_BLOCK__, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, u32> for RuntimeApiImpl<__SR_API_BLOCK__, RuntimeApiImplCall>where
RuntimeApiImplCall::StateBackend: StateBackend<HashFor<__SR_API_BLOCK__>>,
AccountId: UnwindSafe + RefUnwindSafe,
Nonce: UnwindSafe + RefUnwindSafe,
__SR_API_BLOCK__::Header: UnwindSafe + RefUnwindSafe,
impl<__SR_API_BLOCK__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SR_API_BLOCK__> + 'static> AccountNonceApi<__SR_API_BLOCK__, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, u32> for RuntimeApiImpl<__SR_API_BLOCK__, RuntimeApiImplCall>where
RuntimeApiImplCall::StateBackend: StateBackend<HashFor<__SR_API_BLOCK__>>,
AccountId: UnwindSafe + RefUnwindSafe,
Nonce: UnwindSafe + RefUnwindSafe,
__SR_API_BLOCK__::Header: UnwindSafe + RefUnwindSafe,
source§fn account_nonce(
&self,
__runtime_api_at_param__: &BlockId<Block>,
account: AccountId
) -> Result<Index, ApiError>
fn account_nonce(
&self,
__runtime_api_at_param__: &BlockId<Block>,
account: AccountId
) -> Result<Index, ApiError>
Get current account nonce of given
AccountId
.source§fn account_nonce_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
account: AccountId
) -> Result<Index, ApiError>
fn account_nonce_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
account: AccountId
) -> Result<Index, ApiError>
Get current account nonce of given
AccountId
.source§impl<Block: BlockT, C: CallApiAt<Block>> ApiExt<Block> for RuntimeApiImpl<Block, C>
impl<Block: BlockT, C: CallApiAt<Block>> ApiExt<Block> for RuntimeApiImpl<Block, C>
§type StateBackend = <C as CallApiAt<Block>>::StateBackend
type StateBackend = <C as CallApiAt<Block>>::StateBackend
The state backend that is used to store the block states.
source§fn execute_in_transaction<F: FnOnce(&Self) -> TransactionOutcome<R>, R>(
&self,
call: F
) -> Rwhere
Self: Sized,
fn execute_in_transaction<F: FnOnce(&Self) -> TransactionOutcome<R>, R>(
&self,
call: F
) -> Rwhere
Self: Sized,
Execute the given closure inside a new transaction. Read more
source§fn has_api<A: RuntimeApiInfo + ?Sized>(
&self,
at: &BlockId<Block>
) -> Result<bool, ApiError>where
Self: Sized,
fn has_api<A: RuntimeApiInfo + ?Sized>(
&self,
at: &BlockId<Block>
) -> Result<bool, ApiError>where
Self: Sized,
Checks if the given api is implemented and versions match.
source§fn has_api_with<A: RuntimeApiInfo + ?Sized, P: Fn(u32) -> bool>(
&self,
at: &BlockId<Block>,
pred: P
) -> Result<bool, ApiError>where
Self: Sized,
fn has_api_with<A: RuntimeApiInfo + ?Sized, P: Fn(u32) -> bool>(
&self,
at: &BlockId<Block>,
pred: P
) -> Result<bool, ApiError>where
Self: Sized,
Check if the given api is implemented and the version passes a predicate.
source§fn api_version<A: RuntimeApiInfo + ?Sized>(
&self,
at: &BlockId<Block>
) -> Result<Option<u32>, ApiError>where
Self: Sized,
fn api_version<A: RuntimeApiInfo + ?Sized>(
&self,
at: &BlockId<Block>
) -> Result<Option<u32>, ApiError>where
Self: Sized,
Returns the version of the given api.
source§fn record_proof(&mut self)
fn record_proof(&mut self)
Start recording all accessed trie nodes for generating proofs.
source§fn proof_recorder(&self) -> Option<ProofRecorder<Block>>
fn proof_recorder(&self) -> Option<ProofRecorder<Block>>
Returns the current active proof recorder.
source§fn extract_proof(&mut self) -> Option<StorageProof>
fn extract_proof(&mut self) -> Option<StorageProof>
Extract the recorded proof. Read more
source§fn into_storage_changes(
&self,
backend: &Self::StateBackend,
parent_hash: Block::Hash
) -> Result<StorageChanges<C::StateBackend, Block>, String>where
Self: Sized,
fn into_storage_changes(
&self,
backend: &Self::StateBackend,
parent_hash: Block::Hash
) -> Result<StorageChanges<C::StateBackend, Block>, String>where
Self: Sized,
Convert the api object into the storage changes that were done while executing runtime
api functions. Read more
source§impl<__SR_API_BLOCK__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SR_API_BLOCK__> + 'static> AuthorityDiscoveryApi<__SR_API_BLOCK__> for RuntimeApiImpl<__SR_API_BLOCK__, RuntimeApiImplCall>where
RuntimeApiImplCall::StateBackend: StateBackend<HashFor<__SR_API_BLOCK__>>,
Vec<AuthorityDiscoveryId>: UnwindSafe + RefUnwindSafe,
__SR_API_BLOCK__::Header: UnwindSafe + RefUnwindSafe,
impl<__SR_API_BLOCK__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SR_API_BLOCK__> + 'static> AuthorityDiscoveryApi<__SR_API_BLOCK__> for RuntimeApiImpl<__SR_API_BLOCK__, RuntimeApiImplCall>where
RuntimeApiImplCall::StateBackend: StateBackend<HashFor<__SR_API_BLOCK__>>,
Vec<AuthorityDiscoveryId>: UnwindSafe + RefUnwindSafe,
__SR_API_BLOCK__::Header: UnwindSafe + RefUnwindSafe,
Retrieve authority identifiers of the current and next authority set.
Retrieve authority identifiers of the current and next authority set.
source§impl<__SR_API_BLOCK__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SR_API_BLOCK__> + 'static> BabeApi<__SR_API_BLOCK__> for RuntimeApiImpl<__SR_API_BLOCK__, RuntimeApiImplCall>where
RuntimeApiImplCall::StateBackend: StateBackend<HashFor<__SR_API_BLOCK__>>,
BabeConfiguration: UnwindSafe + RefUnwindSafe,
Slot: UnwindSafe + RefUnwindSafe,
Epoch: UnwindSafe + RefUnwindSafe,
AuthorityId: UnwindSafe + RefUnwindSafe,
Option<OpaqueKeyOwnershipProof>: UnwindSafe + RefUnwindSafe,
EquivocationProof<<__SR_API_BLOCK__ as BlockT>::Header>: UnwindSafe + RefUnwindSafe,
OpaqueKeyOwnershipProof: UnwindSafe + RefUnwindSafe,
Option<()>: UnwindSafe + RefUnwindSafe,
__SR_API_BLOCK__::Header: UnwindSafe + RefUnwindSafe,
impl<__SR_API_BLOCK__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SR_API_BLOCK__> + 'static> BabeApi<__SR_API_BLOCK__> for RuntimeApiImpl<__SR_API_BLOCK__, RuntimeApiImplCall>where
RuntimeApiImplCall::StateBackend: StateBackend<HashFor<__SR_API_BLOCK__>>,
BabeConfiguration: UnwindSafe + RefUnwindSafe,
Slot: UnwindSafe + RefUnwindSafe,
Epoch: UnwindSafe + RefUnwindSafe,
AuthorityId: UnwindSafe + RefUnwindSafe,
Option<OpaqueKeyOwnershipProof>: UnwindSafe + RefUnwindSafe,
EquivocationProof<<__SR_API_BLOCK__ as BlockT>::Header>: UnwindSafe + RefUnwindSafe,
OpaqueKeyOwnershipProof: UnwindSafe + RefUnwindSafe,
Option<()>: UnwindSafe + RefUnwindSafe,
__SR_API_BLOCK__::Header: UnwindSafe + RefUnwindSafe,
source§fn configuration(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<BabeConfiguration, ApiError>
fn configuration(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<BabeConfiguration, ApiError>
Return the configuration for BABE.
source§fn configuration_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<BabeConfiguration, ApiError>
fn configuration_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<BabeConfiguration, ApiError>
Return the configuration for BABE.
source§fn configuration_before_version_2(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<BabeConfigurationV1, ApiError>
fn configuration_before_version_2(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<BabeConfigurationV1, ApiError>
👎Deprecated
Return the configuration for BABE. Version 1.
source§fn configuration_before_version_2_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<BabeConfigurationV1, ApiError>
fn configuration_before_version_2_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<BabeConfigurationV1, ApiError>
👎Deprecated
Return the configuration for BABE. Version 1.
source§fn current_epoch_start(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<Slot, ApiError>
fn current_epoch_start(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<Slot, ApiError>
Returns the slot that started the current epoch.
source§fn current_epoch_start_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<Slot, ApiError>
fn current_epoch_start_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<Slot, ApiError>
Returns the slot that started the current epoch.
source§fn current_epoch(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<Epoch, ApiError>
fn current_epoch(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<Epoch, ApiError>
Returns information regarding the current epoch.
source§fn current_epoch_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<Epoch, ApiError>
fn current_epoch_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<Epoch, ApiError>
Returns information regarding the current epoch.
source§fn next_epoch(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<Epoch, ApiError>
fn next_epoch(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<Epoch, ApiError>
Returns information regarding the next epoch (which was already
previously announced). Read more
source§fn next_epoch_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<Epoch, ApiError>
fn next_epoch_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<Epoch, ApiError>
Returns information regarding the next epoch (which was already
previously announced). Read more
source§fn generate_key_ownership_proof(
&self,
__runtime_api_at_param__: &BlockId<Block>,
slot: Slot,
authority_id: Public
) -> Result<Option<OpaqueKeyOwnershipProof>, ApiError>
fn generate_key_ownership_proof(
&self,
__runtime_api_at_param__: &BlockId<Block>,
slot: Slot,
authority_id: Public
) -> Result<Option<OpaqueKeyOwnershipProof>, ApiError>
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 generate_key_ownership_proof_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
slot: Slot,
authority_id: Public
) -> Result<Option<OpaqueKeyOwnershipProof>, ApiError>
fn generate_key_ownership_proof_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
slot: Slot,
authority_id: Public
) -> Result<Option<OpaqueKeyOwnershipProof>, ApiError>
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(
&self,
__runtime_api_at_param__: &BlockId<Block>,
equivocation_proof: EquivocationProof<<Block as Block>::Header, Public>,
key_owner_proof: OpaqueKeyOwnershipProof
) -> Result<Option<()>, ApiError>
fn submit_report_equivocation_unsigned_extrinsic(
&self,
__runtime_api_at_param__: &BlockId<Block>,
equivocation_proof: EquivocationProof<<Block as Block>::Header, Public>,
key_owner_proof: OpaqueKeyOwnershipProof
) -> Result<Option<()>, ApiError>
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 submit_report_equivocation_unsigned_extrinsic_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
equivocation_proof: EquivocationProof<<Block as Block>::Header, Public>,
key_owner_proof: OpaqueKeyOwnershipProof
) -> Result<Option<()>, ApiError>
fn submit_report_equivocation_unsigned_extrinsic_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
equivocation_proof: EquivocationProof<<Block as Block>::Header, Public>,
key_owner_proof: OpaqueKeyOwnershipProof
) -> Result<Option<()>, ApiError>
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<__SR_API_BLOCK__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SR_API_BLOCK__> + 'static> BeefyApi<__SR_API_BLOCK__> for RuntimeApiImpl<__SR_API_BLOCK__, RuntimeApiImplCall>where
RuntimeApiImplCall::StateBackend: StateBackend<HashFor<__SR_API_BLOCK__>>,
Option<ValidatorSet<BeefyId>>: UnwindSafe + RefUnwindSafe,
__SR_API_BLOCK__::Header: UnwindSafe + RefUnwindSafe,
impl<__SR_API_BLOCK__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SR_API_BLOCK__> + 'static> BeefyApi<__SR_API_BLOCK__> for RuntimeApiImpl<__SR_API_BLOCK__, RuntimeApiImplCall>where
RuntimeApiImplCall::StateBackend: StateBackend<HashFor<__SR_API_BLOCK__>>,
Option<ValidatorSet<BeefyId>>: UnwindSafe + RefUnwindSafe,
__SR_API_BLOCK__::Header: UnwindSafe + RefUnwindSafe,
source§fn validator_set(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<Option<ValidatorSet<Public>>, ApiError>
fn validator_set(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<Option<ValidatorSet<Public>>, ApiError>
Return the current active BEEFY validator set
source§fn validator_set_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<Option<ValidatorSet<Public>>, ApiError>
fn validator_set_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<Option<ValidatorSet<Public>>, ApiError>
Return the current active BEEFY validator set
source§impl<__SR_API_BLOCK__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SR_API_BLOCK__> + 'static> Benchmark<__SR_API_BLOCK__> for RuntimeApiImpl<__SR_API_BLOCK__, RuntimeApiImplCall>where
RuntimeApiImplCall::StateBackend: StateBackend<HashFor<__SR_API_BLOCK__>>,
bool: UnwindSafe + RefUnwindSafe,
(Vec<BenchmarkList>, Vec<StorageInfo>): UnwindSafe + RefUnwindSafe,
BenchmarkConfig: UnwindSafe + RefUnwindSafe,
Result<Vec<BenchmarkBatch>, RuntimeString>: UnwindSafe + RefUnwindSafe,
__SR_API_BLOCK__::Header: UnwindSafe + RefUnwindSafe,
impl<__SR_API_BLOCK__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SR_API_BLOCK__> + 'static> Benchmark<__SR_API_BLOCK__> for RuntimeApiImpl<__SR_API_BLOCK__, RuntimeApiImplCall>where
RuntimeApiImplCall::StateBackend: StateBackend<HashFor<__SR_API_BLOCK__>>,
bool: UnwindSafe + RefUnwindSafe,
(Vec<BenchmarkList>, Vec<StorageInfo>): UnwindSafe + RefUnwindSafe,
BenchmarkConfig: UnwindSafe + RefUnwindSafe,
Result<Vec<BenchmarkBatch>, RuntimeString>: UnwindSafe + RefUnwindSafe,
__SR_API_BLOCK__::Header: UnwindSafe + RefUnwindSafe,
source§fn benchmark_metadata(
&self,
__runtime_api_at_param__: &BlockId<Block>,
extra: bool
) -> Result<(Vec<BenchmarkList, Global>, Vec<StorageInfo, Global>), ApiError>
fn benchmark_metadata(
&self,
__runtime_api_at_param__: &BlockId<Block>,
extra: bool
) -> Result<(Vec<BenchmarkList, Global>, Vec<StorageInfo, Global>), ApiError>
Get the benchmark metadata available for this runtime. Read more
source§fn benchmark_metadata_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
extra: bool
) -> Result<(Vec<BenchmarkList, Global>, Vec<StorageInfo, Global>), ApiError>
fn benchmark_metadata_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
extra: bool
) -> Result<(Vec<BenchmarkList, Global>, Vec<StorageInfo, Global>), ApiError>
Get the benchmark metadata available for this runtime. Read more
source§fn dispatch_benchmark(
&self,
__runtime_api_at_param__: &BlockId<Block>,
config: BenchmarkConfig
) -> Result<Result<Vec<BenchmarkBatch, Global>, RuntimeString>, ApiError>
fn dispatch_benchmark(
&self,
__runtime_api_at_param__: &BlockId<Block>,
config: BenchmarkConfig
) -> Result<Result<Vec<BenchmarkBatch, Global>, RuntimeString>, ApiError>
Dispatch the given benchmark.
source§fn dispatch_benchmark_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
config: BenchmarkConfig
) -> Result<Result<Vec<BenchmarkBatch, Global>, RuntimeString>, ApiError>
fn dispatch_benchmark_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
config: BenchmarkConfig
) -> Result<Result<Vec<BenchmarkBatch, Global>, RuntimeString>, ApiError>
Dispatch the given benchmark.
source§impl<__SR_API_BLOCK__, RuntimeApiImplCall: CallApiAt<__SR_API_BLOCK__> + 'static> BlockBuilder<__SR_API_BLOCK__> for RuntimeApiImpl<__SR_API_BLOCK__, RuntimeApiImplCall>where
RuntimeApiImplCall::StateBackend: StateBackend<HashFor<__SR_API_BLOCK__>>,
<__SR_API_BLOCK__ as BlockT>::Extrinsic: UnwindSafe + RefUnwindSafe,
ApplyExtrinsicResult: UnwindSafe + RefUnwindSafe,
<__SR_API_BLOCK__ as BlockT>::Header: UnwindSafe + RefUnwindSafe,
InherentData: UnwindSafe + RefUnwindSafe,
Vec<<__SR_API_BLOCK__ as BlockT>::Extrinsic>: UnwindSafe + RefUnwindSafe,
__SR_API_BLOCK__: UnwindSafe + RefUnwindSafe + BlockT,
CheckInherentsResult: UnwindSafe + RefUnwindSafe,
__SR_API_BLOCK__::Header: UnwindSafe + RefUnwindSafe,
impl<__SR_API_BLOCK__, RuntimeApiImplCall: CallApiAt<__SR_API_BLOCK__> + 'static> BlockBuilder<__SR_API_BLOCK__> for RuntimeApiImpl<__SR_API_BLOCK__, RuntimeApiImplCall>where
RuntimeApiImplCall::StateBackend: StateBackend<HashFor<__SR_API_BLOCK__>>,
<__SR_API_BLOCK__ as BlockT>::Extrinsic: UnwindSafe + RefUnwindSafe,
ApplyExtrinsicResult: UnwindSafe + RefUnwindSafe,
<__SR_API_BLOCK__ as BlockT>::Header: UnwindSafe + RefUnwindSafe,
InherentData: UnwindSafe + RefUnwindSafe,
Vec<<__SR_API_BLOCK__ as BlockT>::Extrinsic>: UnwindSafe + RefUnwindSafe,
__SR_API_BLOCK__: UnwindSafe + RefUnwindSafe + BlockT,
CheckInherentsResult: UnwindSafe + RefUnwindSafe,
__SR_API_BLOCK__::Header: UnwindSafe + RefUnwindSafe,
source§fn apply_extrinsic(
&self,
__runtime_api_at_param__: &BlockId<Block>,
extrinsic: <Block as Block>::Extrinsic
) -> Result<Result<Result<(), DispatchError>, TransactionValidityError>, ApiError>
fn apply_extrinsic(
&self,
__runtime_api_at_param__: &BlockId<Block>,
extrinsic: <Block as Block>::Extrinsic
) -> Result<Result<Result<(), DispatchError>, TransactionValidityError>, ApiError>
Apply the given extrinsic. Read more
source§fn apply_extrinsic_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
extrinsic: <Block as Block>::Extrinsic
) -> Result<Result<Result<(), DispatchError>, TransactionValidityError>, ApiError>
fn apply_extrinsic_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
extrinsic: <Block as Block>::Extrinsic
) -> Result<Result<Result<(), DispatchError>, TransactionValidityError>, ApiError>
Apply the given extrinsic. Read more
source§fn apply_extrinsic_before_version_6(
&self,
__runtime_api_at_param__: &BlockId<Block>,
extrinsic: <Block as Block>::Extrinsic
) -> Result<Result<Result<(), DispatchError>, TransactionValidityError>, ApiError>
fn apply_extrinsic_before_version_6(
&self,
__runtime_api_at_param__: &BlockId<Block>,
extrinsic: <Block as Block>::Extrinsic
) -> Result<Result<Result<(), DispatchError>, TransactionValidityError>, ApiError>
👎Deprecated
source§fn apply_extrinsic_before_version_6_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
extrinsic: <Block as Block>::Extrinsic
) -> Result<Result<Result<(), DispatchError>, TransactionValidityError>, ApiError>
fn apply_extrinsic_before_version_6_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
extrinsic: <Block as Block>::Extrinsic
) -> Result<Result<Result<(), DispatchError>, TransactionValidityError>, ApiError>
👎Deprecated
source§fn finalize_block(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<<Block as Block>::Header, ApiError>
fn finalize_block(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<<Block as Block>::Header, ApiError>
Finish the current block.
source§fn finalize_block_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<<Block as Block>::Header, ApiError>
fn finalize_block_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<<Block as Block>::Header, ApiError>
Finish the current block.
source§fn inherent_extrinsics(
&self,
__runtime_api_at_param__: &BlockId<Block>,
inherent: InherentData
) -> Result<Vec<<Block as Block>::Extrinsic, Global>, ApiError>
fn inherent_extrinsics(
&self,
__runtime_api_at_param__: &BlockId<Block>,
inherent: InherentData
) -> Result<Vec<<Block as Block>::Extrinsic, Global>, ApiError>
Generate inherent extrinsics. The inherent data will vary from chain to chain.
source§fn inherent_extrinsics_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
inherent: InherentData
) -> Result<Vec<<Block as Block>::Extrinsic, Global>, ApiError>
fn inherent_extrinsics_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
inherent: InherentData
) -> Result<Vec<<Block as Block>::Extrinsic, Global>, ApiError>
Generate inherent extrinsics. The inherent data will vary from chain to chain.
source§fn check_inherents(
&self,
__runtime_api_at_param__: &BlockId<Block>,
block: Block,
data: InherentData
) -> Result<CheckInherentsResult, ApiError>
fn check_inherents(
&self,
__runtime_api_at_param__: &BlockId<Block>,
block: Block,
data: InherentData
) -> Result<CheckInherentsResult, ApiError>
Check that the inherents are valid. The inherent data will vary from chain to chain.
source§fn check_inherents_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
block: Block,
data: InherentData
) -> Result<CheckInherentsResult, ApiError>
fn check_inherents_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
block: Block,
data: InherentData
) -> Result<CheckInherentsResult, ApiError>
Check that the inherents are valid. The inherent data will vary from chain to chain.
source§impl<__SR_API_BLOCK__, RuntimeApiImplCall: CallApiAt<__SR_API_BLOCK__> + 'static> Core<__SR_API_BLOCK__> for RuntimeApiImpl<__SR_API_BLOCK__, RuntimeApiImplCall>where
RuntimeApiImplCall::StateBackend: StateBackend<HashFor<__SR_API_BLOCK__>>,
RuntimeVersion: UnwindSafe + RefUnwindSafe,
__SR_API_BLOCK__: UnwindSafe + RefUnwindSafe + BlockT,
<__SR_API_BLOCK__ as BlockT>::Header: UnwindSafe + RefUnwindSafe,
__SR_API_BLOCK__::Header: UnwindSafe + RefUnwindSafe,
impl<__SR_API_BLOCK__, RuntimeApiImplCall: CallApiAt<__SR_API_BLOCK__> + 'static> Core<__SR_API_BLOCK__> for RuntimeApiImpl<__SR_API_BLOCK__, RuntimeApiImplCall>where
RuntimeApiImplCall::StateBackend: StateBackend<HashFor<__SR_API_BLOCK__>>,
RuntimeVersion: UnwindSafe + RefUnwindSafe,
__SR_API_BLOCK__: UnwindSafe + RefUnwindSafe + BlockT,
<__SR_API_BLOCK__ as BlockT>::Header: UnwindSafe + RefUnwindSafe,
__SR_API_BLOCK__::Header: UnwindSafe + RefUnwindSafe,
source§fn version(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<RuntimeVersion, ApiError>
fn version(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<RuntimeVersion, ApiError>
Returns the version of the runtime.
source§fn version_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<RuntimeVersion, ApiError>
fn version_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<RuntimeVersion, ApiError>
Returns the version of the runtime.
source§fn execute_block(
&self,
__runtime_api_at_param__: &BlockId<Block>,
block: Block
) -> Result<(), ApiError>
fn execute_block(
&self,
__runtime_api_at_param__: &BlockId<Block>,
block: Block
) -> Result<(), ApiError>
Execute the given block.
source§fn execute_block_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
block: Block
) -> Result<(), ApiError>
fn execute_block_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
block: Block
) -> Result<(), ApiError>
Execute the given block.
source§fn initialize_block(
&self,
__runtime_api_at_param__: &BlockId<Block>,
header: &<Block as Block>::Header
) -> Result<(), ApiError>
fn initialize_block(
&self,
__runtime_api_at_param__: &BlockId<Block>,
header: &<Block as Block>::Header
) -> Result<(), ApiError>
Initialize a block with the given header.
source§fn initialize_block_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
header: &<Block as Block>::Header
) -> Result<(), ApiError>
fn initialize_block_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
header: &<Block as Block>::Header
) -> Result<(), ApiError>
Initialize a block with the given header.
source§impl<__SR_API_BLOCK__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SR_API_BLOCK__> + 'static> GrandpaApi<__SR_API_BLOCK__> for RuntimeApiImpl<__SR_API_BLOCK__, RuntimeApiImplCall>where
RuntimeApiImplCall::StateBackend: StateBackend<HashFor<__SR_API_BLOCK__>>,
Vec<(GrandpaId, u64)>: UnwindSafe + RefUnwindSafe,
SetId: UnwindSafe + RefUnwindSafe,
EquivocationProof<<__SR_API_BLOCK__ as BlockT>::Hash, NumberFor<__SR_API_BLOCK__>>: UnwindSafe + RefUnwindSafe,
OpaqueKeyOwnershipProof: UnwindSafe + RefUnwindSafe,
Option<()>: UnwindSafe + RefUnwindSafe,
AuthorityId: UnwindSafe + RefUnwindSafe,
Option<OpaqueKeyOwnershipProof>: UnwindSafe + RefUnwindSafe,
__SR_API_BLOCK__::Header: UnwindSafe + RefUnwindSafe,
impl<__SR_API_BLOCK__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SR_API_BLOCK__> + 'static> GrandpaApi<__SR_API_BLOCK__> for RuntimeApiImpl<__SR_API_BLOCK__, RuntimeApiImplCall>where
RuntimeApiImplCall::StateBackend: StateBackend<HashFor<__SR_API_BLOCK__>>,
Vec<(GrandpaId, u64)>: UnwindSafe + RefUnwindSafe,
SetId: UnwindSafe + RefUnwindSafe,
EquivocationProof<<__SR_API_BLOCK__ as BlockT>::Hash, NumberFor<__SR_API_BLOCK__>>: UnwindSafe + RefUnwindSafe,
OpaqueKeyOwnershipProof: UnwindSafe + RefUnwindSafe,
Option<()>: UnwindSafe + RefUnwindSafe,
AuthorityId: UnwindSafe + RefUnwindSafe,
Option<OpaqueKeyOwnershipProof>: UnwindSafe + RefUnwindSafe,
__SR_API_BLOCK__::Header: UnwindSafe + RefUnwindSafe,
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 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 submit_report_equivocation_unsigned_extrinsic(
&self,
__runtime_api_at_param__: &BlockId<Block>,
equivocation_proof: EquivocationProof<<Block as Block>::Hash, <<Block as Block>::Header as Header>::Number>,
key_owner_proof: OpaqueKeyOwnershipProof
) -> Result<Option<()>, ApiError>
fn submit_report_equivocation_unsigned_extrinsic(
&self,
__runtime_api_at_param__: &BlockId<Block>,
equivocation_proof: EquivocationProof<<Block as Block>::Hash, <<Block as Block>::Header as Header>::Number>,
key_owner_proof: OpaqueKeyOwnershipProof
) -> Result<Option<()>, ApiError>
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 submit_report_equivocation_unsigned_extrinsic_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
equivocation_proof: EquivocationProof<<Block as Block>::Hash, <<Block as Block>::Header as Header>::Number>,
key_owner_proof: OpaqueKeyOwnershipProof
) -> Result<Option<()>, ApiError>
fn submit_report_equivocation_unsigned_extrinsic_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
equivocation_proof: EquivocationProof<<Block as Block>::Hash, <<Block as Block>::Header as Header>::Number>,
key_owner_proof: OpaqueKeyOwnershipProof
) -> Result<Option<()>, ApiError>
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(
&self,
__runtime_api_at_param__: &BlockId<Block>,
set_id: u64,
authority_id: Public
) -> Result<Option<OpaqueKeyOwnershipProof>, ApiError>
fn generate_key_ownership_proof(
&self,
__runtime_api_at_param__: &BlockId<Block>,
set_id: u64,
authority_id: Public
) -> Result<Option<OpaqueKeyOwnershipProof>, ApiError>
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§fn generate_key_ownership_proof_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
set_id: u64,
authority_id: Public
) -> Result<Option<OpaqueKeyOwnershipProof>, ApiError>
fn generate_key_ownership_proof_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
set_id: u64,
authority_id: Public
) -> Result<Option<OpaqueKeyOwnershipProof>, ApiError>
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§fn current_set_id(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<u64, ApiError>
fn current_set_id(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<u64, ApiError>
Get current GRANDPA authority set id.
source§fn current_set_id_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<u64, ApiError>
fn current_set_id_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<u64, ApiError>
Get current GRANDPA authority set id.
source§impl<__SR_API_BLOCK__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SR_API_BLOCK__> + 'static> Metadata<__SR_API_BLOCK__> for RuntimeApiImpl<__SR_API_BLOCK__, RuntimeApiImplCall>where
RuntimeApiImplCall::StateBackend: StateBackend<HashFor<__SR_API_BLOCK__>>,
OpaqueMetadata: UnwindSafe + RefUnwindSafe,
__SR_API_BLOCK__::Header: UnwindSafe + RefUnwindSafe,
impl<__SR_API_BLOCK__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SR_API_BLOCK__> + 'static> Metadata<__SR_API_BLOCK__> for RuntimeApiImpl<__SR_API_BLOCK__, RuntimeApiImplCall>where
RuntimeApiImplCall::StateBackend: StateBackend<HashFor<__SR_API_BLOCK__>>,
OpaqueMetadata: UnwindSafe + RefUnwindSafe,
__SR_API_BLOCK__::Header: UnwindSafe + RefUnwindSafe,
source§fn metadata(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<OpaqueMetadata, ApiError>
fn metadata(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<OpaqueMetadata, ApiError>
Returns the metadata of a runtime.
source§fn metadata_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<OpaqueMetadata, ApiError>
fn metadata_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<OpaqueMetadata, ApiError>
Returns the metadata of a runtime.
source§impl<__SR_API_BLOCK__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SR_API_BLOCK__> + 'static> MmrApi<__SR_API_BLOCK__, H256> for RuntimeApiImpl<__SR_API_BLOCK__, RuntimeApiImplCall>where
RuntimeApiImplCall::StateBackend: StateBackend<HashFor<__SR_API_BLOCK__>>,
u64: UnwindSafe + RefUnwindSafe,
Result<(EncodableOpaqueLeaf, Proof<Hash>), Error>: UnwindSafe + RefUnwindSafe,
EncodableOpaqueLeaf: UnwindSafe + RefUnwindSafe,
Proof<Hash>: UnwindSafe + RefUnwindSafe,
Result<(), Error>: UnwindSafe + RefUnwindSafe,
Hash: UnwindSafe + RefUnwindSafe,
Result<Hash, Error>: UnwindSafe + RefUnwindSafe,
Vec<u64>: UnwindSafe + RefUnwindSafe,
Result<(Vec<EncodableOpaqueLeaf>, BatchProof<Hash>), Error>: UnwindSafe + RefUnwindSafe,
Vec<EncodableOpaqueLeaf>: UnwindSafe + RefUnwindSafe,
BatchProof<Hash>: UnwindSafe + RefUnwindSafe,
__SR_API_BLOCK__::Header: UnwindSafe + RefUnwindSafe,
impl<__SR_API_BLOCK__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SR_API_BLOCK__> + 'static> MmrApi<__SR_API_BLOCK__, H256> for RuntimeApiImpl<__SR_API_BLOCK__, RuntimeApiImplCall>where
RuntimeApiImplCall::StateBackend: StateBackend<HashFor<__SR_API_BLOCK__>>,
u64: UnwindSafe + RefUnwindSafe,
Result<(EncodableOpaqueLeaf, Proof<Hash>), Error>: UnwindSafe + RefUnwindSafe,
EncodableOpaqueLeaf: UnwindSafe + RefUnwindSafe,
Proof<Hash>: UnwindSafe + RefUnwindSafe,
Result<(), Error>: UnwindSafe + RefUnwindSafe,
Hash: UnwindSafe + RefUnwindSafe,
Result<Hash, Error>: UnwindSafe + RefUnwindSafe,
Vec<u64>: UnwindSafe + RefUnwindSafe,
Result<(Vec<EncodableOpaqueLeaf>, BatchProof<Hash>), Error>: UnwindSafe + RefUnwindSafe,
Vec<EncodableOpaqueLeaf>: UnwindSafe + RefUnwindSafe,
BatchProof<Hash>: UnwindSafe + RefUnwindSafe,
__SR_API_BLOCK__::Header: UnwindSafe + RefUnwindSafe,
source§fn generate_proof(
&self,
__runtime_api_at_param__: &BlockId<Block>,
leaf_index: u64
) -> Result<Result<(EncodableOpaqueLeaf, Proof<Hash>), Error>, ApiError>
fn generate_proof(
&self,
__runtime_api_at_param__: &BlockId<Block>,
leaf_index: u64
) -> Result<Result<(EncodableOpaqueLeaf, Proof<Hash>), Error>, ApiError>
Generate MMR proof for a leaf under given index.
source§fn generate_proof_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
leaf_index: u64
) -> Result<Result<(EncodableOpaqueLeaf, Proof<Hash>), Error>, ApiError>
fn generate_proof_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
leaf_index: u64
) -> Result<Result<(EncodableOpaqueLeaf, Proof<Hash>), Error>, ApiError>
Generate MMR proof for a leaf under given index.
source§fn verify_proof(
&self,
__runtime_api_at_param__: &BlockId<Block>,
leaf: EncodableOpaqueLeaf,
proof: Proof<Hash>
) -> Result<Result<(), Error>, ApiError>
fn verify_proof(
&self,
__runtime_api_at_param__: &BlockId<Block>,
leaf: EncodableOpaqueLeaf,
proof: Proof<Hash>
) -> Result<Result<(), Error>, ApiError>
Verify MMR proof against on-chain MMR. Read more
source§fn verify_proof_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
leaf: EncodableOpaqueLeaf,
proof: Proof<Hash>
) -> Result<Result<(), Error>, ApiError>
fn verify_proof_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
leaf: EncodableOpaqueLeaf,
proof: Proof<Hash>
) -> Result<Result<(), Error>, ApiError>
Verify MMR proof against on-chain MMR. Read more
source§fn verify_proof_stateless(
&self,
__runtime_api_at_param__: &BlockId<Block>,
root: Hash,
leaf: EncodableOpaqueLeaf,
proof: Proof<Hash>
) -> Result<Result<(), Error>, ApiError>
fn verify_proof_stateless(
&self,
__runtime_api_at_param__: &BlockId<Block>,
root: Hash,
leaf: EncodableOpaqueLeaf,
proof: Proof<Hash>
) -> Result<Result<(), Error>, ApiError>
Verify MMR proof against given root hash. Read more
source§fn verify_proof_stateless_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
root: Hash,
leaf: EncodableOpaqueLeaf,
proof: Proof<Hash>
) -> Result<Result<(), Error>, ApiError>
fn verify_proof_stateless_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
root: Hash,
leaf: EncodableOpaqueLeaf,
proof: Proof<Hash>
) -> Result<Result<(), Error>, ApiError>
Verify MMR proof against given root hash. Read more
source§fn mmr_root(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<Result<Hash, Error>, ApiError>
fn mmr_root(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<Result<Hash, Error>, ApiError>
Return the on-chain MMR root hash.
source§fn mmr_root_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<Result<Hash, Error>, ApiError>
fn mmr_root_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<Result<Hash, Error>, ApiError>
Return the on-chain MMR root hash.
source§fn generate_batch_proof(
&self,
__runtime_api_at_param__: &BlockId<Block>,
leaf_indices: Vec<u64, Global>
) -> Result<Result<(Vec<EncodableOpaqueLeaf, Global>, BatchProof<Hash>), Error>, ApiError>
fn generate_batch_proof(
&self,
__runtime_api_at_param__: &BlockId<Block>,
leaf_indices: Vec<u64, Global>
) -> Result<Result<(Vec<EncodableOpaqueLeaf, Global>, BatchProof<Hash>), Error>, ApiError>
Generate MMR proof for a series of leaves under given indices.
source§fn generate_batch_proof_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
leaf_indices: Vec<u64, Global>
) -> Result<Result<(Vec<EncodableOpaqueLeaf, Global>, BatchProof<Hash>), Error>, ApiError>
fn generate_batch_proof_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
leaf_indices: Vec<u64, Global>
) -> Result<Result<(Vec<EncodableOpaqueLeaf, Global>, BatchProof<Hash>), Error>, ApiError>
Generate MMR proof for a series of leaves under given indices.
source§fn verify_batch_proof(
&self,
__runtime_api_at_param__: &BlockId<Block>,
leaves: Vec<EncodableOpaqueLeaf, Global>,
proof: BatchProof<Hash>
) -> Result<Result<(), Error>, ApiError>
fn verify_batch_proof(
&self,
__runtime_api_at_param__: &BlockId<Block>,
leaves: Vec<EncodableOpaqueLeaf, Global>,
proof: BatchProof<Hash>
) -> Result<Result<(), Error>, ApiError>
Verify MMR proof against on-chain MMR for a batch of leaves. Read more
source§fn verify_batch_proof_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
leaves: Vec<EncodableOpaqueLeaf, Global>,
proof: BatchProof<Hash>
) -> Result<Result<(), Error>, ApiError>
fn verify_batch_proof_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
leaves: Vec<EncodableOpaqueLeaf, Global>,
proof: BatchProof<Hash>
) -> Result<Result<(), Error>, ApiError>
Verify MMR proof against on-chain MMR for a batch of leaves. Read more
source§fn verify_batch_proof_stateless(
&self,
__runtime_api_at_param__: &BlockId<Block>,
root: Hash,
leaves: Vec<EncodableOpaqueLeaf, Global>,
proof: BatchProof<Hash>
) -> Result<Result<(), Error>, ApiError>
fn verify_batch_proof_stateless(
&self,
__runtime_api_at_param__: &BlockId<Block>,
root: Hash,
leaves: Vec<EncodableOpaqueLeaf, Global>,
proof: BatchProof<Hash>
) -> Result<Result<(), Error>, ApiError>
Verify MMR proof against given root hash or a batch of leaves. Read more
source§fn verify_batch_proof_stateless_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
root: Hash,
leaves: Vec<EncodableOpaqueLeaf, Global>,
proof: BatchProof<Hash>
) -> Result<Result<(), Error>, ApiError>
fn verify_batch_proof_stateless_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
root: Hash,
leaves: Vec<EncodableOpaqueLeaf, Global>,
proof: BatchProof<Hash>
) -> Result<Result<(), Error>, ApiError>
Verify MMR proof against given root hash or a batch of leaves. Read more
source§impl<__SR_API_BLOCK__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SR_API_BLOCK__> + 'static> NominationPoolsApi<__SR_API_BLOCK__, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, u128> for RuntimeApiImpl<__SR_API_BLOCK__, RuntimeApiImplCall>where
RuntimeApiImplCall::StateBackend: StateBackend<HashFor<__SR_API_BLOCK__>>,
AccountId: UnwindSafe + RefUnwindSafe,
Balance: UnwindSafe + RefUnwindSafe,
__SR_API_BLOCK__::Header: UnwindSafe + RefUnwindSafe,
impl<__SR_API_BLOCK__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SR_API_BLOCK__> + 'static> NominationPoolsApi<__SR_API_BLOCK__, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, u128> for RuntimeApiImpl<__SR_API_BLOCK__, RuntimeApiImplCall>where
RuntimeApiImplCall::StateBackend: StateBackend<HashFor<__SR_API_BLOCK__>>,
AccountId: UnwindSafe + RefUnwindSafe,
Balance: UnwindSafe + RefUnwindSafe,
__SR_API_BLOCK__::Header: UnwindSafe + RefUnwindSafe,
source§fn pending_rewards(
&self,
__runtime_api_at_param__: &BlockId<Block>,
member: AccountId
) -> Result<Balance, ApiError>
fn pending_rewards(
&self,
__runtime_api_at_param__: &BlockId<Block>,
member: AccountId
) -> Result<Balance, ApiError>
Returns the pending rewards for the member that the AccountId was given for.
source§fn pending_rewards_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
member: AccountId
) -> Result<Balance, ApiError>
fn pending_rewards_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
member: AccountId
) -> Result<Balance, ApiError>
Returns the pending rewards for the member that the AccountId was given for.
source§impl<__SR_API_BLOCK__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SR_API_BLOCK__> + 'static> OffchainWorkerApi<__SR_API_BLOCK__> for RuntimeApiImpl<__SR_API_BLOCK__, RuntimeApiImplCall>where
RuntimeApiImplCall::StateBackend: StateBackend<HashFor<__SR_API_BLOCK__>>,
<__SR_API_BLOCK__ as BlockT>::Header: UnwindSafe + RefUnwindSafe,
__SR_API_BLOCK__::Header: UnwindSafe + RefUnwindSafe,
impl<__SR_API_BLOCK__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SR_API_BLOCK__> + 'static> OffchainWorkerApi<__SR_API_BLOCK__> for RuntimeApiImpl<__SR_API_BLOCK__, RuntimeApiImplCall>where
RuntimeApiImplCall::StateBackend: StateBackend<HashFor<__SR_API_BLOCK__>>,
<__SR_API_BLOCK__ as BlockT>::Header: UnwindSafe + RefUnwindSafe,
__SR_API_BLOCK__::Header: UnwindSafe + RefUnwindSafe,
source§fn offchain_worker_before_version_2(
&self,
__runtime_api_at_param__: &BlockId<Block>,
number: <<Block as Block>::Header as Header>::Number
) -> Result<(), ApiError>
fn offchain_worker_before_version_2(
&self,
__runtime_api_at_param__: &BlockId<Block>,
number: <<Block as Block>::Header as Header>::Number
) -> Result<(), ApiError>
👎Deprecated
Starts the off-chain task for given block number.
source§fn offchain_worker_before_version_2_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
number: <<Block as Block>::Header as Header>::Number
) -> Result<(), ApiError>
fn offchain_worker_before_version_2_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
number: <<Block as Block>::Header as Header>::Number
) -> Result<(), ApiError>
👎Deprecated
Starts the off-chain task for given block number.
source§fn offchain_worker(
&self,
__runtime_api_at_param__: &BlockId<Block>,
header: &<Block as Block>::Header
) -> Result<(), ApiError>
fn offchain_worker(
&self,
__runtime_api_at_param__: &BlockId<Block>,
header: &<Block as Block>::Header
) -> Result<(), ApiError>
Starts the off-chain task for given block header.
source§fn offchain_worker_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
header: &<Block as Block>::Header
) -> Result<(), ApiError>
fn offchain_worker_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
header: &<Block as Block>::Header
) -> Result<(), ApiError>
Starts the off-chain task for given block header.
source§impl<__SR_API_BLOCK__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SR_API_BLOCK__> + 'static> ParachainHost<__SR_API_BLOCK__, H256, u32> for RuntimeApiImpl<__SR_API_BLOCK__, RuntimeApiImplCall>where
RuntimeApiImplCall::StateBackend: StateBackend<HashFor<__SR_API_BLOCK__>>,
Vec<ValidatorId>: UnwindSafe + RefUnwindSafe,
(Vec<Vec<ValidatorIndex>>, GroupRotationInfo<BlockNumber>): UnwindSafe + RefUnwindSafe,
Vec<CoreState<Hash, BlockNumber>>: UnwindSafe + RefUnwindSafe,
ParaId: UnwindSafe + RefUnwindSafe,
OccupiedCoreAssumption: UnwindSafe + RefUnwindSafe,
Option<PersistedValidationData<Hash, BlockNumber>>: UnwindSafe + RefUnwindSafe,
Hash: UnwindSafe + RefUnwindSafe,
Option<(PersistedValidationData<Hash, BlockNumber>, ValidationCodeHash)>: UnwindSafe + RefUnwindSafe,
CandidateCommitments: UnwindSafe + RefUnwindSafe,
bool: UnwindSafe + RefUnwindSafe,
SessionIndex: UnwindSafe + RefUnwindSafe,
Option<ValidationCode>: UnwindSafe + RefUnwindSafe,
Option<CommittedCandidateReceipt<Hash>>: UnwindSafe + RefUnwindSafe,
Vec<CandidateEvent<Hash>>: UnwindSafe + RefUnwindSafe,
Option<SessionInfo>: UnwindSafe + RefUnwindSafe,
Vec<InboundDownwardMessage<BlockNumber>>: UnwindSafe + RefUnwindSafe,
BTreeMap<ParaId, Vec<InboundHrmpMessage<BlockNumber>>>: UnwindSafe + RefUnwindSafe,
ValidationCodeHash: UnwindSafe + RefUnwindSafe,
Option<ScrapedOnChainVotes<Hash>>: UnwindSafe + RefUnwindSafe,
PvfCheckStatement: UnwindSafe + RefUnwindSafe,
ValidatorSignature: UnwindSafe + RefUnwindSafe,
Vec<ValidationCodeHash>: UnwindSafe + RefUnwindSafe,
Option<ValidationCodeHash>: UnwindSafe + RefUnwindSafe,
Vec<(SessionIndex, CandidateHash, DisputeState<BlockNumber>)>: UnwindSafe + RefUnwindSafe,
__SR_API_BLOCK__::Header: UnwindSafe + RefUnwindSafe,
impl<__SR_API_BLOCK__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SR_API_BLOCK__> + 'static> ParachainHost<__SR_API_BLOCK__, H256, u32> for RuntimeApiImpl<__SR_API_BLOCK__, RuntimeApiImplCall>where
RuntimeApiImplCall::StateBackend: StateBackend<HashFor<__SR_API_BLOCK__>>,
Vec<ValidatorId>: UnwindSafe + RefUnwindSafe,
(Vec<Vec<ValidatorIndex>>, GroupRotationInfo<BlockNumber>): UnwindSafe + RefUnwindSafe,
Vec<CoreState<Hash, BlockNumber>>: UnwindSafe + RefUnwindSafe,
ParaId: UnwindSafe + RefUnwindSafe,
OccupiedCoreAssumption: UnwindSafe + RefUnwindSafe,
Option<PersistedValidationData<Hash, BlockNumber>>: UnwindSafe + RefUnwindSafe,
Hash: UnwindSafe + RefUnwindSafe,
Option<(PersistedValidationData<Hash, BlockNumber>, ValidationCodeHash)>: UnwindSafe + RefUnwindSafe,
CandidateCommitments: UnwindSafe + RefUnwindSafe,
bool: UnwindSafe + RefUnwindSafe,
SessionIndex: UnwindSafe + RefUnwindSafe,
Option<ValidationCode>: UnwindSafe + RefUnwindSafe,
Option<CommittedCandidateReceipt<Hash>>: UnwindSafe + RefUnwindSafe,
Vec<CandidateEvent<Hash>>: UnwindSafe + RefUnwindSafe,
Option<SessionInfo>: UnwindSafe + RefUnwindSafe,
Vec<InboundDownwardMessage<BlockNumber>>: UnwindSafe + RefUnwindSafe,
BTreeMap<ParaId, Vec<InboundHrmpMessage<BlockNumber>>>: UnwindSafe + RefUnwindSafe,
ValidationCodeHash: UnwindSafe + RefUnwindSafe,
Option<ScrapedOnChainVotes<Hash>>: UnwindSafe + RefUnwindSafe,
PvfCheckStatement: UnwindSafe + RefUnwindSafe,
ValidatorSignature: UnwindSafe + RefUnwindSafe,
Vec<ValidationCodeHash>: UnwindSafe + RefUnwindSafe,
Option<ValidationCodeHash>: UnwindSafe + RefUnwindSafe,
Vec<(SessionIndex, CandidateHash, DisputeState<BlockNumber>)>: UnwindSafe + RefUnwindSafe,
__SR_API_BLOCK__::Header: UnwindSafe + RefUnwindSafe,
source§fn validators(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<Vec<Public, Global>, ApiError>
fn validators(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<Vec<Public, Global>, ApiError>
Get the current validators.
source§fn validators_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<Vec<Public, Global>, ApiError>
fn validators_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<Vec<Public, Global>, ApiError>
Get the current validators.
source§fn validator_groups(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<(Vec<Vec<ValidatorIndex, Global>, Global>, GroupRotationInfo<N>), ApiError>
fn validator_groups(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<(Vec<Vec<ValidatorIndex, Global>, Global>, GroupRotationInfo<N>), ApiError>
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 validator_groups_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<(Vec<Vec<ValidatorIndex, Global>, Global>, GroupRotationInfo<N>), ApiError>
fn validator_groups_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<(Vec<Vec<ValidatorIndex, Global>, Global>, GroupRotationInfo<N>), ApiError>
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(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<Vec<CoreState<H, N>, Global>, ApiError>
fn availability_cores(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<Vec<CoreState<H, N>, Global>, ApiError>
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 availability_cores_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<Vec<CoreState<H, N>, Global>, ApiError>
fn availability_cores_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<Vec<CoreState<H, N>, Global>, ApiError>
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(
&self,
__runtime_api_at_param__: &BlockId<Block>,
para_id: Id,
assumption: OccupiedCoreAssumption
) -> Result<Option<PersistedValidationData<H, N>>, ApiError>
fn persisted_validation_data(
&self,
__runtime_api_at_param__: &BlockId<Block>,
para_id: Id,
assumption: OccupiedCoreAssumption
) -> Result<Option<PersistedValidationData<H, N>>, ApiError>
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 persisted_validation_data_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
para_id: Id,
assumption: OccupiedCoreAssumption
) -> Result<Option<PersistedValidationData<H, N>>, ApiError>
fn persisted_validation_data_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
para_id: Id,
assumption: OccupiedCoreAssumption
) -> Result<Option<PersistedValidationData<H, N>>, ApiError>
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(
&self,
__runtime_api_at_param__: &BlockId<Block>,
para_id: Id,
expected_persisted_validation_data_hash: H256
) -> Result<Option<(PersistedValidationData<H, N>, ValidationCodeHash)>, ApiError>
fn assumed_validation_data(
&self,
__runtime_api_at_param__: &BlockId<Block>,
para_id: Id,
expected_persisted_validation_data_hash: H256
) -> Result<Option<(PersistedValidationData<H, N>, ValidationCodeHash)>, ApiError>
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 assumed_validation_data_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
para_id: Id,
expected_persisted_validation_data_hash: H256
) -> Result<Option<(PersistedValidationData<H, N>, ValidationCodeHash)>, ApiError>
fn assumed_validation_data_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
para_id: Id,
expected_persisted_validation_data_hash: H256
) -> Result<Option<(PersistedValidationData<H, N>, ValidationCodeHash)>, ApiError>
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(
&self,
__runtime_api_at_param__: &BlockId<Block>,
para_id: Id,
outputs: CandidateCommitments<u32>
) -> Result<bool, ApiError>
fn check_validation_outputs(
&self,
__runtime_api_at_param__: &BlockId<Block>,
para_id: Id,
outputs: CandidateCommitments<u32>
) -> Result<bool, ApiError>
Checks if the given validation outputs pass the acceptance criteria.
source§fn check_validation_outputs_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
para_id: Id,
outputs: CandidateCommitments<u32>
) -> Result<bool, ApiError>
fn check_validation_outputs_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
para_id: Id,
outputs: CandidateCommitments<u32>
) -> Result<bool, ApiError>
Checks if the given validation outputs pass the acceptance criteria.
source§fn session_index_for_child(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<u32, ApiError>
fn session_index_for_child(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<u32, ApiError>
Returns the session index expected at a child of the block. Read more
source§fn session_index_for_child_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<u32, ApiError>
fn session_index_for_child_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<u32, ApiError>
Returns the session index expected at a child of the block. Read more
source§fn validation_code(
&self,
__runtime_api_at_param__: &BlockId<Block>,
para_id: Id,
assumption: OccupiedCoreAssumption
) -> Result<Option<ValidationCode>, ApiError>
fn validation_code(
&self,
__runtime_api_at_param__: &BlockId<Block>,
para_id: Id,
assumption: OccupiedCoreAssumption
) -> Result<Option<ValidationCode>, ApiError>
Fetch the validation code used by a para, making the given
OccupiedCoreAssumption
. Read moresource§fn validation_code_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
para_id: Id,
assumption: OccupiedCoreAssumption
) -> Result<Option<ValidationCode>, ApiError>
fn validation_code_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
para_id: Id,
assumption: OccupiedCoreAssumption
) -> Result<Option<ValidationCode>, ApiError>
Fetch the validation code used by a para, making the given
OccupiedCoreAssumption
. Read moresource§fn candidate_pending_availability(
&self,
__runtime_api_at_param__: &BlockId<Block>,
para_id: Id
) -> Result<Option<CommittedCandidateReceipt<H>>, ApiError>
fn candidate_pending_availability(
&self,
__runtime_api_at_param__: &BlockId<Block>,
para_id: Id
) -> Result<Option<CommittedCandidateReceipt<H>>, ApiError>
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_pending_availability_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
para_id: Id
) -> Result<Option<CommittedCandidateReceipt<H>>, ApiError>
fn candidate_pending_availability_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
para_id: Id
) -> Result<Option<CommittedCandidateReceipt<H>>, ApiError>
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(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<Vec<CandidateEvent<H>, Global>, ApiError>
fn candidate_events(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<Vec<CandidateEvent<H>, Global>, ApiError>
Get a vector of events concerning candidates that occurred within a block.
source§fn candidate_events_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<Vec<CandidateEvent<H>, Global>, ApiError>
fn candidate_events_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<Vec<CandidateEvent<H>, Global>, ApiError>
Get a vector of events concerning candidates that occurred within a block.
source§fn dmq_contents(
&self,
__runtime_api_at_param__: &BlockId<Block>,
recipient: Id
) -> Result<Vec<InboundDownwardMessage<N>, Global>, ApiError>
fn dmq_contents(
&self,
__runtime_api_at_param__: &BlockId<Block>,
recipient: Id
) -> Result<Vec<InboundDownwardMessage<N>, Global>, ApiError>
Get all the pending inbound messages in the downward message queue for a para.
source§fn dmq_contents_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
recipient: Id
) -> Result<Vec<InboundDownwardMessage<N>, Global>, ApiError>
fn dmq_contents_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
recipient: Id
) -> Result<Vec<InboundDownwardMessage<N>, Global>, ApiError>
Get all the pending inbound messages in the downward message queue for a para.
source§fn inbound_hrmp_channels_contents(
&self,
__runtime_api_at_param__: &BlockId<Block>,
recipient: Id
) -> Result<BTreeMap<Id, Vec<InboundHrmpMessage<N>, Global>, Global>, ApiError>
fn inbound_hrmp_channels_contents(
&self,
__runtime_api_at_param__: &BlockId<Block>,
recipient: Id
) -> Result<BTreeMap<Id, Vec<InboundHrmpMessage<N>, Global>, Global>, ApiError>
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 inbound_hrmp_channels_contents_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
recipient: Id
) -> Result<BTreeMap<Id, Vec<InboundHrmpMessage<N>, Global>, Global>, ApiError>
fn inbound_hrmp_channels_contents_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
recipient: Id
) -> Result<BTreeMap<Id, Vec<InboundHrmpMessage<N>, Global>, Global>, ApiError>
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(
&self,
__runtime_api_at_param__: &BlockId<Block>,
hash: ValidationCodeHash
) -> Result<Option<ValidationCode>, ApiError>
fn validation_code_by_hash(
&self,
__runtime_api_at_param__: &BlockId<Block>,
hash: ValidationCodeHash
) -> Result<Option<ValidationCode>, ApiError>
Get the validation code from its hash.
source§fn validation_code_by_hash_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
hash: ValidationCodeHash
) -> Result<Option<ValidationCode>, ApiError>
fn validation_code_by_hash_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
hash: ValidationCodeHash
) -> Result<Option<ValidationCode>, ApiError>
Get the validation code from its hash.
source§fn on_chain_votes(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<Option<ScrapedOnChainVotes<H>>, ApiError>
fn on_chain_votes(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<Option<ScrapedOnChainVotes<H>>, ApiError>
Scrape dispute relevant from on-chain, backing votes and resolved disputes.
source§fn on_chain_votes_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<Option<ScrapedOnChainVotes<H>>, ApiError>
fn on_chain_votes_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<Option<ScrapedOnChainVotes<H>>, ApiError>
Scrape dispute relevant from on-chain, backing votes and resolved disputes.
source§fn session_info(
&self,
__runtime_api_at_param__: &BlockId<Block>,
index: u32
) -> Result<Option<SessionInfo>, ApiError>
fn session_info(
&self,
__runtime_api_at_param__: &BlockId<Block>,
index: u32
) -> Result<Option<SessionInfo>, ApiError>
Get the session info for the given session, if stored. Read more
source§fn session_info_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
index: u32
) -> Result<Option<SessionInfo>, ApiError>
fn session_info_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
index: u32
) -> Result<Option<SessionInfo>, ApiError>
Get the session info for the given session, if stored. Read more
source§fn submit_pvf_check_statement(
&self,
__runtime_api_at_param__: &BlockId<Block>,
stmt: PvfCheckStatement,
signature: Signature
) -> Result<(), ApiError>
fn submit_pvf_check_statement(
&self,
__runtime_api_at_param__: &BlockId<Block>,
stmt: PvfCheckStatement,
signature: Signature
) -> Result<(), ApiError>
Submits a PVF pre-checking statement into the transaction pool. Read more
source§fn submit_pvf_check_statement_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
stmt: PvfCheckStatement,
signature: Signature
) -> Result<(), ApiError>
fn submit_pvf_check_statement_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
stmt: PvfCheckStatement,
signature: Signature
) -> Result<(), ApiError>
Submits a PVF pre-checking statement into the transaction pool. Read more
source§fn pvfs_require_precheck(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<Vec<ValidationCodeHash, Global>, ApiError>
fn pvfs_require_precheck(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<Vec<ValidationCodeHash, Global>, ApiError>
Returns code hashes of PVFs that require pre-checking by validators in the active set. Read more
source§fn pvfs_require_precheck_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<Vec<ValidationCodeHash, Global>, ApiError>
fn pvfs_require_precheck_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<Vec<ValidationCodeHash, Global>, ApiError>
Returns code hashes of PVFs that require pre-checking by validators in the active set. Read more
source§fn validation_code_hash(
&self,
__runtime_api_at_param__: &BlockId<Block>,
para_id: Id,
assumption: OccupiedCoreAssumption
) -> Result<Option<ValidationCodeHash>, ApiError>
fn validation_code_hash(
&self,
__runtime_api_at_param__: &BlockId<Block>,
para_id: Id,
assumption: OccupiedCoreAssumption
) -> Result<Option<ValidationCodeHash>, ApiError>
Fetch the hash of the validation code used by a para, making the given
OccupiedCoreAssumption
. Read moresource§fn validation_code_hash_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
para_id: Id,
assumption: OccupiedCoreAssumption
) -> Result<Option<ValidationCodeHash>, ApiError>
fn validation_code_hash_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
para_id: Id,
assumption: OccupiedCoreAssumption
) -> Result<Option<ValidationCodeHash>, ApiError>
Fetch the hash of the validation code used by a para, making the given
OccupiedCoreAssumption
. Read moresource§fn session_info_before_version_2(
&self,
__runtime_api_at_param__: &BlockId<Block>,
index: u32
) -> Result<Option<OldV1SessionInfo>, ApiError>
fn session_info_before_version_2(
&self,
__runtime_api_at_param__: &BlockId<Block>,
index: u32
) -> Result<Option<OldV1SessionInfo>, ApiError>
👎Deprecated
Old method to fetch v1 session info.
source§fn session_info_before_version_2_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
index: u32
) -> Result<Option<OldV1SessionInfo>, ApiError>
fn session_info_before_version_2_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
index: u32
) -> Result<Option<OldV1SessionInfo>, ApiError>
👎Deprecated
Old method to fetch v1 session info.
source§fn staging_get_disputes(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<Vec<(u32, CandidateHash, DisputeState<u32>), Global>, ApiError>
fn staging_get_disputes(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<Vec<(u32, CandidateHash, DisputeState<u32>), Global>, ApiError>
Returns all onchain disputes.
This is a staging method! Do not use on production runtimes! Read more
source§fn staging_get_disputes_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<Vec<(u32, CandidateHash, DisputeState<u32>), Global>, ApiError>
fn staging_get_disputes_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<Vec<(u32, CandidateHash, DisputeState<u32>), Global>, ApiError>
Returns all onchain disputes.
This is a staging method! Do not use on production runtimes! Read more
source§impl<__SR_API_BLOCK__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SR_API_BLOCK__> + 'static> SessionKeys<__SR_API_BLOCK__> for RuntimeApiImpl<__SR_API_BLOCK__, RuntimeApiImplCall>where
RuntimeApiImplCall::StateBackend: StateBackend<HashFor<__SR_API_BLOCK__>>,
Option<Vec<u8>>: UnwindSafe + RefUnwindSafe,
Vec<u8>: UnwindSafe + RefUnwindSafe,
Option<Vec<(Vec<u8>, KeyTypeId)>>: UnwindSafe + RefUnwindSafe,
__SR_API_BLOCK__::Header: UnwindSafe + RefUnwindSafe,
impl<__SR_API_BLOCK__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SR_API_BLOCK__> + 'static> SessionKeys<__SR_API_BLOCK__> for RuntimeApiImpl<__SR_API_BLOCK__, RuntimeApiImplCall>where
RuntimeApiImplCall::StateBackend: StateBackend<HashFor<__SR_API_BLOCK__>>,
Option<Vec<u8>>: UnwindSafe + RefUnwindSafe,
Vec<u8>: UnwindSafe + RefUnwindSafe,
Option<Vec<(Vec<u8>, KeyTypeId)>>: UnwindSafe + RefUnwindSafe,
__SR_API_BLOCK__::Header: UnwindSafe + RefUnwindSafe,
source§fn generate_session_keys(
&self,
__runtime_api_at_param__: &BlockId<Block>,
seed: Option<Vec<u8, Global>>
) -> Result<Vec<u8, Global>, ApiError>
fn generate_session_keys(
&self,
__runtime_api_at_param__: &BlockId<Block>,
seed: Option<Vec<u8, Global>>
) -> Result<Vec<u8, Global>, ApiError>
Generate a set of session keys with optionally using the given seed.
The keys should be stored within the keystore exposed via runtime
externalities. Read more
source§fn generate_session_keys_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
seed: Option<Vec<u8, Global>>
) -> Result<Vec<u8, Global>, ApiError>
fn generate_session_keys_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
seed: Option<Vec<u8, Global>>
) -> Result<Vec<u8, Global>, ApiError>
Generate a set of session keys with optionally using the given seed.
The keys should be stored within the keystore exposed via runtime
externalities. Read more
source§impl<__SR_API_BLOCK__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SR_API_BLOCK__> + 'static> TaggedTransactionQueue<__SR_API_BLOCK__> for RuntimeApiImpl<__SR_API_BLOCK__, RuntimeApiImplCall>where
RuntimeApiImplCall::StateBackend: StateBackend<HashFor<__SR_API_BLOCK__>>,
TransactionSource: UnwindSafe + RefUnwindSafe,
<__SR_API_BLOCK__ as BlockT>::Extrinsic: UnwindSafe + RefUnwindSafe,
<__SR_API_BLOCK__ as BlockT>::Hash: UnwindSafe + RefUnwindSafe,
TransactionValidity: UnwindSafe + RefUnwindSafe,
__SR_API_BLOCK__::Header: UnwindSafe + RefUnwindSafe,
impl<__SR_API_BLOCK__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SR_API_BLOCK__> + 'static> TaggedTransactionQueue<__SR_API_BLOCK__> for RuntimeApiImpl<__SR_API_BLOCK__, RuntimeApiImplCall>where
RuntimeApiImplCall::StateBackend: StateBackend<HashFor<__SR_API_BLOCK__>>,
TransactionSource: UnwindSafe + RefUnwindSafe,
<__SR_API_BLOCK__ as BlockT>::Extrinsic: UnwindSafe + RefUnwindSafe,
<__SR_API_BLOCK__ as BlockT>::Hash: UnwindSafe + RefUnwindSafe,
TransactionValidity: UnwindSafe + RefUnwindSafe,
__SR_API_BLOCK__::Header: UnwindSafe + RefUnwindSafe,
source§fn validate_transaction_before_version_2(
&self,
__runtime_api_at_param__: &BlockId<Block>,
tx: <Block as Block>::Extrinsic
) -> Result<Result<ValidTransaction, TransactionValidityError>, ApiError>
fn validate_transaction_before_version_2(
&self,
__runtime_api_at_param__: &BlockId<Block>,
tx: <Block as Block>::Extrinsic
) -> Result<Result<ValidTransaction, TransactionValidityError>, ApiError>
👎Deprecated
Validate the transaction.
source§fn validate_transaction_before_version_2_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
tx: <Block as Block>::Extrinsic
) -> Result<Result<ValidTransaction, TransactionValidityError>, ApiError>
fn validate_transaction_before_version_2_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
tx: <Block as Block>::Extrinsic
) -> Result<Result<ValidTransaction, TransactionValidityError>, ApiError>
👎Deprecated
Validate the transaction.
source§fn validate_transaction_before_version_3(
&self,
__runtime_api_at_param__: &BlockId<Block>,
source: TransactionSource,
tx: <Block as Block>::Extrinsic
) -> Result<Result<ValidTransaction, TransactionValidityError>, ApiError>
fn validate_transaction_before_version_3(
&self,
__runtime_api_at_param__: &BlockId<Block>,
source: TransactionSource,
tx: <Block as Block>::Extrinsic
) -> Result<Result<ValidTransaction, TransactionValidityError>, ApiError>
👎Deprecated
Validate the transaction.
source§fn validate_transaction_before_version_3_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
source: TransactionSource,
tx: <Block as Block>::Extrinsic
) -> Result<Result<ValidTransaction, TransactionValidityError>, ApiError>
fn validate_transaction_before_version_3_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
source: TransactionSource,
tx: <Block as Block>::Extrinsic
) -> Result<Result<ValidTransaction, TransactionValidityError>, ApiError>
👎Deprecated
Validate the transaction.
source§fn validate_transaction(
&self,
__runtime_api_at_param__: &BlockId<Block>,
source: TransactionSource,
tx: <Block as Block>::Extrinsic,
block_hash: <Block as Block>::Hash
) -> Result<Result<ValidTransaction, TransactionValidityError>, ApiError>
fn validate_transaction(
&self,
__runtime_api_at_param__: &BlockId<Block>,
source: TransactionSource,
tx: <Block as Block>::Extrinsic,
block_hash: <Block as Block>::Hash
) -> Result<Result<ValidTransaction, TransactionValidityError>, ApiError>
Validate the transaction. Read more
source§fn validate_transaction_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
source: TransactionSource,
tx: <Block as Block>::Extrinsic,
block_hash: <Block as Block>::Hash
) -> Result<Result<ValidTransaction, TransactionValidityError>, ApiError>
fn validate_transaction_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
source: TransactionSource,
tx: <Block as Block>::Extrinsic,
block_hash: <Block as Block>::Hash
) -> Result<Result<ValidTransaction, TransactionValidityError>, ApiError>
Validate the transaction. Read more
source§impl<__SR_API_BLOCK__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SR_API_BLOCK__> + 'static> TransactionPaymentApi<__SR_API_BLOCK__, u128> for RuntimeApiImpl<__SR_API_BLOCK__, RuntimeApiImplCall>where
RuntimeApiImplCall::StateBackend: StateBackend<HashFor<__SR_API_BLOCK__>>,
<__SR_API_BLOCK__ as BlockT>::Extrinsic: UnwindSafe + RefUnwindSafe,
u32: UnwindSafe + RefUnwindSafe,
RuntimeDispatchInfo<Balance>: UnwindSafe + RefUnwindSafe,
FeeDetails<Balance>: UnwindSafe + RefUnwindSafe,
__SR_API_BLOCK__::Header: UnwindSafe + RefUnwindSafe,
impl<__SR_API_BLOCK__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SR_API_BLOCK__> + 'static> TransactionPaymentApi<__SR_API_BLOCK__, u128> for RuntimeApiImpl<__SR_API_BLOCK__, RuntimeApiImplCall>where
RuntimeApiImplCall::StateBackend: StateBackend<HashFor<__SR_API_BLOCK__>>,
<__SR_API_BLOCK__ as BlockT>::Extrinsic: UnwindSafe + RefUnwindSafe,
u32: UnwindSafe + RefUnwindSafe,
RuntimeDispatchInfo<Balance>: UnwindSafe + RefUnwindSafe,
FeeDetails<Balance>: UnwindSafe + RefUnwindSafe,
__SR_API_BLOCK__::Header: UnwindSafe + RefUnwindSafe,
fn query_info(
&self,
__runtime_api_at_param__: &BlockId<Block>,
uxt: <Block as Block>::Extrinsic,
len: u32
) -> Result<RuntimeDispatchInfo<Balance>, ApiError>
fn query_info_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
uxt: <Block as Block>::Extrinsic,
len: u32
) -> Result<RuntimeDispatchInfo<Balance>, ApiError>
fn query_fee_details(
&self,
__runtime_api_at_param__: &BlockId<Block>,
uxt: <Block as Block>::Extrinsic,
len: u32
) -> Result<FeeDetails<Balance>, ApiError>
fn query_fee_details_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
uxt: <Block as Block>::Extrinsic,
len: u32
) -> Result<FeeDetails<Balance>, ApiError>
source§impl<__SR_API_BLOCK__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SR_API_BLOCK__> + 'static> TransactionPaymentCallApi<__SR_API_BLOCK__, u128, Call> for RuntimeApiImpl<__SR_API_BLOCK__, RuntimeApiImplCall>where
RuntimeApiImplCall::StateBackend: StateBackend<HashFor<__SR_API_BLOCK__>>,
Call: UnwindSafe + RefUnwindSafe,
u32: UnwindSafe + RefUnwindSafe,
RuntimeDispatchInfo<Balance>: UnwindSafe + RefUnwindSafe,
FeeDetails<Balance>: UnwindSafe + RefUnwindSafe,
__SR_API_BLOCK__::Header: UnwindSafe + RefUnwindSafe,
impl<__SR_API_BLOCK__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SR_API_BLOCK__> + 'static> TransactionPaymentCallApi<__SR_API_BLOCK__, u128, Call> for RuntimeApiImpl<__SR_API_BLOCK__, RuntimeApiImplCall>where
RuntimeApiImplCall::StateBackend: StateBackend<HashFor<__SR_API_BLOCK__>>,
Call: UnwindSafe + RefUnwindSafe,
u32: UnwindSafe + RefUnwindSafe,
RuntimeDispatchInfo<Balance>: UnwindSafe + RefUnwindSafe,
FeeDetails<Balance>: UnwindSafe + RefUnwindSafe,
__SR_API_BLOCK__::Header: UnwindSafe + RefUnwindSafe,
source§fn query_call_info(
&self,
__runtime_api_at_param__: &BlockId<Block>,
call: Call,
len: u32
) -> Result<RuntimeDispatchInfo<Balance>, ApiError>
fn query_call_info(
&self,
__runtime_api_at_param__: &BlockId<Block>,
call: Call,
len: u32
) -> Result<RuntimeDispatchInfo<Balance>, ApiError>
Query information of a dispatch class, weight, and fee of a given encoded
Call
.source§fn query_call_info_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
call: Call,
len: u32
) -> Result<RuntimeDispatchInfo<Balance>, ApiError>
fn query_call_info_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
call: Call,
len: u32
) -> Result<RuntimeDispatchInfo<Balance>, ApiError>
Query information of a dispatch class, weight, and fee of a given encoded
Call
.source§fn query_call_fee_details(
&self,
__runtime_api_at_param__: &BlockId<Block>,
call: Call,
len: u32
) -> Result<FeeDetails<Balance>, ApiError>
fn query_call_fee_details(
&self,
__runtime_api_at_param__: &BlockId<Block>,
call: Call,
len: u32
) -> Result<FeeDetails<Balance>, ApiError>
Query fee details of a given encoded
Call
.source§fn query_call_fee_details_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
call: Call,
len: u32
) -> Result<FeeDetails<Balance>, ApiError>
fn query_call_fee_details_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
call: Call,
len: u32
) -> Result<FeeDetails<Balance>, ApiError>
Query fee details of a given encoded
Call
.impl<Block: BlockT, C: CallApiAt<Block>> Send for RuntimeApiImpl<Block, C>
impl<Block: BlockT, C: CallApiAt<Block>> Sync for RuntimeApiImpl<Block, C>
Auto Trait Implementations§
impl<Block, C> !RefUnwindSafe for RuntimeApiImpl<Block, C>
impl<Block, C> Unpin for RuntimeApiImpl<Block, C>where
<Block as Block>::Hash: Unpin,
<<C as CallApiAt<Block>>::StateBackend as Backend<<<Block as Block>::Header as Header>::Hashing>>::Transaction: Unpin,
impl<Block, C> !UnwindSafe for RuntimeApiImpl<Block, C>
Blanket Implementations§
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<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
.