Struct dock_runtime::RuntimeApiImpl
source · pub struct RuntimeApiImpl<Block: BlockT, C: CallApiAt<Block> + 'static> { /* private fields */ }
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,
Index: 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, Index: UnwindSafe + RefUnwindSafe, __SR_API_BLOCK__::Header: UnwindSafe + RefUnwindSafe,
§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
.§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§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,
§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.
§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.
§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.
§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.
§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.
§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.
§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.
§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.
§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).
§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).
§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.§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.§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.§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.source§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<AuthorityId>>: 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<AuthorityId>>: UnwindSafe + RefUnwindSafe, __SR_API_BLOCK__::Header: UnwindSafe + RefUnwindSafe,
§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
§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__, 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,
§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
§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
§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
§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
§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.
§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.
§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.
§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.
§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.
§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__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SR_API_BLOCK__> + 'static> ConvertTransactionRuntimeApi<__SR_API_BLOCK__> for RuntimeApiImpl<__SR_API_BLOCK__, RuntimeApiImplCall>where
RuntimeApiImplCall::StateBackend: StateBackend<HashFor<__SR_API_BLOCK__>>,
EthereumTransaction: UnwindSafe + RefUnwindSafe,
<__SR_API_BLOCK__ as BlockT>::Extrinsic: UnwindSafe + RefUnwindSafe,
__SR_API_BLOCK__::Header: UnwindSafe + RefUnwindSafe,
impl<__SR_API_BLOCK__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SR_API_BLOCK__> + 'static> ConvertTransactionRuntimeApi<__SR_API_BLOCK__> for RuntimeApiImpl<__SR_API_BLOCK__, RuntimeApiImplCall>where RuntimeApiImplCall::StateBackend: StateBackend<HashFor<__SR_API_BLOCK__>>, EthereumTransaction: UnwindSafe + RefUnwindSafe, <__SR_API_BLOCK__ as BlockT>::Extrinsic: UnwindSafe + RefUnwindSafe, __SR_API_BLOCK__::Header: UnwindSafe + RefUnwindSafe,
fn convert_transaction( &self, __runtime_api_at_param__: &BlockId<Block>, transaction: TransactionV2 ) -> Result<<Block as Block>::Extrinsic, ApiError>
fn convert_transaction_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext, transaction: TransactionV2 ) -> Result<<Block as Block>::Extrinsic, ApiError>
§fn convert_transaction_before_version_2(
&self,
__runtime_api_at_param__: &BlockId<Block>,
transaction: LegacyTransaction
) -> Result<<Block as Block>::Extrinsic, ApiError>
fn convert_transaction_before_version_2( &self, __runtime_api_at_param__: &BlockId<Block>, transaction: LegacyTransaction ) -> Result<<Block as Block>::Extrinsic, ApiError>
👎Deprecated
§fn convert_transaction_before_version_2_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
transaction: LegacyTransaction
) -> Result<<Block as Block>::Extrinsic, ApiError>
fn convert_transaction_before_version_2_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext, transaction: LegacyTransaction ) -> Result<<Block as Block>::Extrinsic, ApiError>
👎Deprecated
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,
§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.
§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.
§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.
§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.
§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.
§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> CoreModsApi<__SR_API_BLOCK__, Runtime> for RuntimeApiImpl<__SR_API_BLOCK__, RuntimeApiImplCall>where
RuntimeApiImplCall::StateBackend: StateBackend<HashFor<__SR_API_BLOCK__>>,
Did: UnwindSafe + RefUnwindSafe,
Option<AggregatedDidDetailsRequestParams>: UnwindSafe + RefUnwindSafe,
Option<AggregatedDidDetailsResponse<Runtime>>: UnwindSafe + RefUnwindSafe,
Vec<Did>: UnwindSafe + RefUnwindSafe,
Vec<Option<AggregatedDidDetailsResponse<Runtime>>>: UnwindSafe + RefUnwindSafe,
SignaturePublicKeyStorageKey: UnwindSafe + RefUnwindSafe,
Option<BBSPublicKeyWithParams<Runtime>>: UnwindSafe + RefUnwindSafe,
SignatureParamsOwner: UnwindSafe + RefUnwindSafe,
BTreeMap<IncId, BBSParameters<Runtime>>: UnwindSafe + RefUnwindSafe,
BTreeMap<IncId, BBSPublicKeyWithParams<Runtime>>: UnwindSafe + RefUnwindSafe,
Option<BBSPlusPublicKeyWithParams<Runtime>>: UnwindSafe + RefUnwindSafe,
BTreeMap<IncId, BBSPlusParameters<Runtime>>: UnwindSafe + RefUnwindSafe,
BTreeMap<IncId, BBSPlusPublicKeyWithParams<Runtime>>: UnwindSafe + RefUnwindSafe,
Option<PSPublicKeyWithParams<Runtime>>: UnwindSafe + RefUnwindSafe,
BTreeMap<IncId, PSParameters<Runtime>>: UnwindSafe + RefUnwindSafe,
BTreeMap<IncId, PSPublicKeyWithParams<Runtime>>: UnwindSafe + RefUnwindSafe,
AccumPublicKeyStorageKey: UnwindSafe + RefUnwindSafe,
Option<AccumPublicKeyWithParams<Runtime>>: UnwindSafe + RefUnwindSafe,
AccumulatorId: UnwindSafe + RefUnwindSafe,
Option<(Vec<u8>, Option<AccumPublicKeyWithParams<Runtime>>)>: UnwindSafe + RefUnwindSafe,
TrustRegistrySchemaId: UnwindSafe + RefUnwindSafe,
BTreeMap<TrustRegistryId, AggregatedTrustRegistrySchemaMetadata<Runtime>>: UnwindSafe + RefUnwindSafe,
BTreeMap<TrustRegistryId, AggregatedTrustRegistrySchemaIssuers<Runtime>>: UnwindSafe + RefUnwindSafe,
BTreeMap<TrustRegistryId, TrustRegistrySchemaVerifiers<Runtime>>: UnwindSafe + RefUnwindSafe,
TrustRegistryId: UnwindSafe + RefUnwindSafe,
Option<AggregatedTrustRegistrySchemaMetadata<Runtime>>: UnwindSafe + RefUnwindSafe,
Option<AggregatedTrustRegistrySchemaIssuers<Runtime>>: UnwindSafe + RefUnwindSafe,
Option<TrustRegistrySchemaVerifiers<Runtime>>: UnwindSafe + RefUnwindSafe,
BTreeMap<TrustRegistrySchemaId, AggregatedTrustRegistrySchemaMetadata<Runtime>>: UnwindSafe + RefUnwindSafe,
BTreeMap<TrustRegistrySchemaId, AggregatedTrustRegistrySchemaIssuers<Runtime>>: UnwindSafe + RefUnwindSafe,
BTreeMap<TrustRegistrySchemaId, TrustRegistrySchemaVerifiers<Runtime>>: UnwindSafe + RefUnwindSafe,
QueryTrustRegistriesBy: UnwindSafe + RefUnwindSafe,
BTreeMap<TrustRegistryId, TrustRegistryInfo<Runtime>>: UnwindSafe + RefUnwindSafe,
QueryTrustRegistryBy: UnwindSafe + RefUnwindSafe,
BTreeSet<TrustRegistryId>: UnwindSafe + RefUnwindSafe,
BTreeSet<TrustRegistrySchemaId>: UnwindSafe + RefUnwindSafe,
Option<BBDT16PublicKeyWithParams<Runtime>>: UnwindSafe + RefUnwindSafe,
BTreeMap<IncId, BBDT16Parameters<Runtime>>: UnwindSafe + RefUnwindSafe,
BTreeMap<IncId, BBDT16PublicKeyWithParams<Runtime>>: UnwindSafe + RefUnwindSafe,
__SR_API_BLOCK__::Header: UnwindSafe + RefUnwindSafe,
impl<__SR_API_BLOCK__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SR_API_BLOCK__> + 'static> CoreModsApi<__SR_API_BLOCK__, Runtime> for RuntimeApiImpl<__SR_API_BLOCK__, RuntimeApiImplCall>where RuntimeApiImplCall::StateBackend: StateBackend<HashFor<__SR_API_BLOCK__>>, Did: UnwindSafe + RefUnwindSafe, Option<AggregatedDidDetailsRequestParams>: UnwindSafe + RefUnwindSafe, Option<AggregatedDidDetailsResponse<Runtime>>: UnwindSafe + RefUnwindSafe, Vec<Did>: UnwindSafe + RefUnwindSafe, Vec<Option<AggregatedDidDetailsResponse<Runtime>>>: UnwindSafe + RefUnwindSafe, SignaturePublicKeyStorageKey: UnwindSafe + RefUnwindSafe, Option<BBSPublicKeyWithParams<Runtime>>: UnwindSafe + RefUnwindSafe, SignatureParamsOwner: UnwindSafe + RefUnwindSafe, BTreeMap<IncId, BBSParameters<Runtime>>: UnwindSafe + RefUnwindSafe, BTreeMap<IncId, BBSPublicKeyWithParams<Runtime>>: UnwindSafe + RefUnwindSafe, Option<BBSPlusPublicKeyWithParams<Runtime>>: UnwindSafe + RefUnwindSafe, BTreeMap<IncId, BBSPlusParameters<Runtime>>: UnwindSafe + RefUnwindSafe, BTreeMap<IncId, BBSPlusPublicKeyWithParams<Runtime>>: UnwindSafe + RefUnwindSafe, Option<PSPublicKeyWithParams<Runtime>>: UnwindSafe + RefUnwindSafe, BTreeMap<IncId, PSParameters<Runtime>>: UnwindSafe + RefUnwindSafe, BTreeMap<IncId, PSPublicKeyWithParams<Runtime>>: UnwindSafe + RefUnwindSafe, AccumPublicKeyStorageKey: UnwindSafe + RefUnwindSafe, Option<AccumPublicKeyWithParams<Runtime>>: UnwindSafe + RefUnwindSafe, AccumulatorId: UnwindSafe + RefUnwindSafe, Option<(Vec<u8>, Option<AccumPublicKeyWithParams<Runtime>>)>: UnwindSafe + RefUnwindSafe, TrustRegistrySchemaId: UnwindSafe + RefUnwindSafe, BTreeMap<TrustRegistryId, AggregatedTrustRegistrySchemaMetadata<Runtime>>: UnwindSafe + RefUnwindSafe, BTreeMap<TrustRegistryId, AggregatedTrustRegistrySchemaIssuers<Runtime>>: UnwindSafe + RefUnwindSafe, BTreeMap<TrustRegistryId, TrustRegistrySchemaVerifiers<Runtime>>: UnwindSafe + RefUnwindSafe, TrustRegistryId: UnwindSafe + RefUnwindSafe, Option<AggregatedTrustRegistrySchemaMetadata<Runtime>>: UnwindSafe + RefUnwindSafe, Option<AggregatedTrustRegistrySchemaIssuers<Runtime>>: UnwindSafe + RefUnwindSafe, Option<TrustRegistrySchemaVerifiers<Runtime>>: UnwindSafe + RefUnwindSafe, BTreeMap<TrustRegistrySchemaId, AggregatedTrustRegistrySchemaMetadata<Runtime>>: UnwindSafe + RefUnwindSafe, BTreeMap<TrustRegistrySchemaId, AggregatedTrustRegistrySchemaIssuers<Runtime>>: UnwindSafe + RefUnwindSafe, BTreeMap<TrustRegistrySchemaId, TrustRegistrySchemaVerifiers<Runtime>>: UnwindSafe + RefUnwindSafe, QueryTrustRegistriesBy: UnwindSafe + RefUnwindSafe, BTreeMap<TrustRegistryId, TrustRegistryInfo<Runtime>>: UnwindSafe + RefUnwindSafe, QueryTrustRegistryBy: UnwindSafe + RefUnwindSafe, BTreeSet<TrustRegistryId>: UnwindSafe + RefUnwindSafe, BTreeSet<TrustRegistrySchemaId>: UnwindSafe + RefUnwindSafe, Option<BBDT16PublicKeyWithParams<Runtime>>: UnwindSafe + RefUnwindSafe, BTreeMap<IncId, BBDT16Parameters<Runtime>>: UnwindSafe + RefUnwindSafe, BTreeMap<IncId, BBDT16PublicKeyWithParams<Runtime>>: UnwindSafe + RefUnwindSafe, __SR_API_BLOCK__::Header: UnwindSafe + RefUnwindSafe,
fn did_details( &self, __runtime_api_at_param__: &BlockId<Block>, id: Did, params: Option<AggregatedDidDetailsRequestParams> ) -> Result<Option<AggregatedDidDetailsResponse<T>>, ApiError>
fn did_details_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext, id: Did, params: Option<AggregatedDidDetailsRequestParams> ) -> Result<Option<AggregatedDidDetailsResponse<T>>, ApiError>
fn did_list_details( &self, __runtime_api_at_param__: &BlockId<Block>, dids: Vec<Did, Global>, params: Option<AggregatedDidDetailsRequestParams> ) -> Result<Vec<Option<AggregatedDidDetailsResponse<T>>, Global>, ApiError>
fn did_list_details_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext, dids: Vec<Did, Global>, params: Option<AggregatedDidDetailsRequestParams> ) -> Result<Vec<Option<AggregatedDidDetailsResponse<T>>, Global>, ApiError>
fn bbs_public_key_with_params( &self, __runtime_api_at_param__: &BlockId<Block>, id: (Did, IncId) ) -> Result<Option<(BBSPublicKey<T>, Option<BBSParameters<T>>)>, ApiError>
fn bbs_public_key_with_params_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext, id: (Did, IncId) ) -> Result<Option<(BBSPublicKey<T>, Option<BBSParameters<T>>)>, ApiError>
fn bbs_params_by_did( &self, __runtime_api_at_param__: &BlockId<Block>, owner: SignatureParamsOwner ) -> Result<BTreeMap<IncId, BBSParameters<T>, Global>, ApiError>
fn bbs_params_by_did_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext, owner: SignatureParamsOwner ) -> Result<BTreeMap<IncId, BBSParameters<T>, Global>, ApiError>
fn bbs_public_keys_by_did( &self, __runtime_api_at_param__: &BlockId<Block>, did: Did ) -> Result<BTreeMap<IncId, (BBSPublicKey<T>, Option<BBSParameters<T>>), Global>, ApiError>
fn bbs_public_keys_by_did_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext, did: Did ) -> Result<BTreeMap<IncId, (BBSPublicKey<T>, Option<BBSParameters<T>>), Global>, ApiError>
fn bbs_plus_public_key_with_params( &self, __runtime_api_at_param__: &BlockId<Block>, id: (Did, IncId) ) -> Result<Option<(BBSPlusPublicKey<T>, Option<BBSPlusParameters<T>>)>, ApiError>
fn bbs_plus_public_key_with_params_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext, id: (Did, IncId) ) -> Result<Option<(BBSPlusPublicKey<T>, Option<BBSPlusParameters<T>>)>, ApiError>
fn bbs_plus_params_by_did( &self, __runtime_api_at_param__: &BlockId<Block>, owner: SignatureParamsOwner ) -> Result<BTreeMap<IncId, BBSPlusParameters<T>, Global>, ApiError>
fn bbs_plus_params_by_did_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext, owner: SignatureParamsOwner ) -> Result<BTreeMap<IncId, BBSPlusParameters<T>, Global>, ApiError>
fn bbs_plus_public_keys_by_did( &self, __runtime_api_at_param__: &BlockId<Block>, did: Did ) -> Result<BTreeMap<IncId, (BBSPlusPublicKey<T>, Option<BBSPlusParameters<T>>), Global>, ApiError>
fn bbs_plus_public_keys_by_did_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext, did: Did ) -> Result<BTreeMap<IncId, (BBSPlusPublicKey<T>, Option<BBSPlusParameters<T>>), Global>, ApiError>
fn ps_public_key_with_params( &self, __runtime_api_at_param__: &BlockId<Block>, id: (Did, IncId) ) -> Result<Option<(PSPublicKey<T>, Option<PSParameters<T>>)>, ApiError>
fn ps_public_key_with_params_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext, id: (Did, IncId) ) -> Result<Option<(PSPublicKey<T>, Option<PSParameters<T>>)>, ApiError>
fn ps_params_by_did( &self, __runtime_api_at_param__: &BlockId<Block>, owner: SignatureParamsOwner ) -> Result<BTreeMap<IncId, PSParameters<T>, Global>, ApiError>
fn ps_params_by_did_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext, owner: SignatureParamsOwner ) -> Result<BTreeMap<IncId, PSParameters<T>, Global>, ApiError>
fn ps_public_keys_by_did( &self, __runtime_api_at_param__: &BlockId<Block>, did: Did ) -> Result<BTreeMap<IncId, (PSPublicKey<T>, Option<PSParameters<T>>), Global>, ApiError>
fn ps_public_keys_by_did_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext, did: Did ) -> Result<BTreeMap<IncId, (PSPublicKey<T>, Option<PSParameters<T>>), Global>, ApiError>
fn accumulator_public_key_with_params( &self, __runtime_api_at_param__: &BlockId<Block>, id: AccumPublicKeyStorageKey ) -> Result<Option<(AccumulatorPublicKey<T>, Option<AccumulatorParameters<T>>)>, ApiError>
fn accumulator_public_key_with_params_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext, id: AccumPublicKeyStorageKey ) -> Result<Option<(AccumulatorPublicKey<T>, Option<AccumulatorParameters<T>>)>, ApiError>
fn accumulator_with_public_key_and_params( &self, __runtime_api_at_param__: &BlockId<Block>, id: AccumulatorId ) -> Result<Option<(Vec<u8, Global>, Option<(AccumulatorPublicKey<T>, Option<AccumulatorParameters<T>>)>)>, ApiError>
fn accumulator_with_public_key_and_params_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext, id: AccumulatorId ) -> Result<Option<(Vec<u8, Global>, Option<(AccumulatorPublicKey<T>, Option<AccumulatorParameters<T>>)>)>, ApiError>
fn schema_metadata( &self, __runtime_api_at_param__: &BlockId<Block>, id: TrustRegistrySchemaId ) -> Result<BTreeMap<TrustRegistryId, AggregatedTrustRegistrySchemaMetadata<T>, Global>, ApiError>
fn schema_metadata_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext, id: TrustRegistrySchemaId ) -> Result<BTreeMap<TrustRegistryId, AggregatedTrustRegistrySchemaMetadata<T>, Global>, ApiError>
fn schema_issuers( &self, __runtime_api_at_param__: &BlockId<Block>, id: TrustRegistrySchemaId ) -> Result<BTreeMap<TrustRegistryId, Vec<(Issuer, AggregatedIssuerInfo<T>), Global>, Global>, ApiError>
fn schema_issuers_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext, id: TrustRegistrySchemaId ) -> Result<BTreeMap<TrustRegistryId, Vec<(Issuer, AggregatedIssuerInfo<T>), Global>, Global>, ApiError>
fn schema_verifiers( &self, __runtime_api_at_param__: &BlockId<Block>, id: TrustRegistrySchemaId ) -> Result<BTreeMap<TrustRegistryId, TrustRegistrySchemaVerifiers<T>, Global>, ApiError>
fn schema_verifiers_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext, id: TrustRegistrySchemaId ) -> Result<BTreeMap<TrustRegistryId, TrustRegistrySchemaVerifiers<T>, Global>, ApiError>
fn schema_metadata_in_registry( &self, __runtime_api_at_param__: &BlockId<Block>, id: TrustRegistrySchemaId, registry_id: TrustRegistryId ) -> Result<Option<AggregatedTrustRegistrySchemaMetadata<T>>, ApiError>
fn schema_metadata_in_registry_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext, id: TrustRegistrySchemaId, registry_id: TrustRegistryId ) -> Result<Option<AggregatedTrustRegistrySchemaMetadata<T>>, ApiError>
fn schema_issuers_in_registry( &self, __runtime_api_at_param__: &BlockId<Block>, id: TrustRegistrySchemaId, registry_id: TrustRegistryId ) -> Result<Option<Vec<(Issuer, AggregatedIssuerInfo<T>), Global>>, ApiError>
fn schema_issuers_in_registry_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext, id: TrustRegistrySchemaId, registry_id: TrustRegistryId ) -> Result<Option<Vec<(Issuer, AggregatedIssuerInfo<T>), Global>>, ApiError>
fn schema_verifiers_in_registry( &self, __runtime_api_at_param__: &BlockId<Block>, id: TrustRegistrySchemaId, registry_id: TrustRegistryId ) -> Result<Option<TrustRegistrySchemaVerifiers<T>>, ApiError>
fn schema_verifiers_in_registry_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext, id: TrustRegistrySchemaId, registry_id: TrustRegistryId ) -> Result<Option<TrustRegistrySchemaVerifiers<T>>, ApiError>
fn all_registry_schema_metadata( &self, __runtime_api_at_param__: &BlockId<Block>, registry_id: TrustRegistryId ) -> Result<BTreeMap<TrustRegistrySchemaId, AggregatedTrustRegistrySchemaMetadata<T>, Global>, ApiError>
fn all_registry_schema_metadata_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext, registry_id: TrustRegistryId ) -> Result<BTreeMap<TrustRegistrySchemaId, AggregatedTrustRegistrySchemaMetadata<T>, Global>, ApiError>
fn all_registry_schema_issuers( &self, __runtime_api_at_param__: &BlockId<Block>, registry_id: TrustRegistryId ) -> Result<BTreeMap<TrustRegistrySchemaId, Vec<(Issuer, AggregatedIssuerInfo<T>), Global>, Global>, ApiError>
fn all_registry_schema_issuers_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext, registry_id: TrustRegistryId ) -> Result<BTreeMap<TrustRegistrySchemaId, Vec<(Issuer, AggregatedIssuerInfo<T>), Global>, Global>, ApiError>
fn all_registry_schema_verifiers( &self, __runtime_api_at_param__: &BlockId<Block>, registry_id: TrustRegistryId ) -> Result<BTreeMap<TrustRegistrySchemaId, TrustRegistrySchemaVerifiers<T>, Global>, ApiError>
fn all_registry_schema_verifiers_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext, registry_id: TrustRegistryId ) -> Result<BTreeMap<TrustRegistrySchemaId, TrustRegistrySchemaVerifiers<T>, Global>, ApiError>
fn registries_info_by( &self, __runtime_api_at_param__: &BlockId<Block>, by: QueryTrustRegistriesBy ) -> Result<BTreeMap<TrustRegistryId, TrustRegistryInfo<T>, Global>, ApiError>
fn registries_info_by_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext, by: QueryTrustRegistriesBy ) -> Result<BTreeMap<TrustRegistryId, TrustRegistryInfo<T>, Global>, ApiError>
fn registry_schemas_metadata_by( &self, __runtime_api_at_param__: &BlockId<Block>, by: QueryTrustRegistryBy, reg_id: TrustRegistryId ) -> Result<BTreeMap<TrustRegistrySchemaId, AggregatedTrustRegistrySchemaMetadata<T>, Global>, ApiError>
fn registry_schemas_metadata_by_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext, by: QueryTrustRegistryBy, reg_id: TrustRegistryId ) -> Result<BTreeMap<TrustRegistrySchemaId, AggregatedTrustRegistrySchemaMetadata<T>, Global>, ApiError>
fn registries_ids_by( &self, __runtime_api_at_param__: &BlockId<Block>, by: QueryTrustRegistriesBy ) -> Result<BTreeSet<TrustRegistryId, Global>, ApiError>
fn registries_ids_by_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext, by: QueryTrustRegistriesBy ) -> Result<BTreeSet<TrustRegistryId, Global>, ApiError>
fn registry_schemas_ids_by( &self, __runtime_api_at_param__: &BlockId<Block>, by: QueryTrustRegistryBy, reg_id: TrustRegistryId ) -> Result<BTreeSet<TrustRegistrySchemaId, Global>, ApiError>
fn registry_schemas_ids_by_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext, by: QueryTrustRegistryBy, reg_id: TrustRegistryId ) -> Result<BTreeSet<TrustRegistrySchemaId, Global>, ApiError>
fn bbdt16_public_key_with_params( &self, __runtime_api_at_param__: &BlockId<Block>, id: (Did, IncId) ) -> Result<Option<(BBDT16PublicKey<T>, Option<BBDT16Parameters<T>>)>, ApiError>
fn bbdt16_public_key_with_params_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext, id: (Did, IncId) ) -> Result<Option<(BBDT16PublicKey<T>, Option<BBDT16Parameters<T>>)>, ApiError>
fn bbdt16_params_by_did( &self, __runtime_api_at_param__: &BlockId<Block>, owner: SignatureParamsOwner ) -> Result<BTreeMap<IncId, BBDT16Parameters<T>, Global>, ApiError>
fn bbdt16_params_by_did_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext, owner: SignatureParamsOwner ) -> Result<BTreeMap<IncId, BBDT16Parameters<T>, Global>, ApiError>
fn bbdt16_public_keys_by_did( &self, __runtime_api_at_param__: &BlockId<Block>, did: Did ) -> Result<BTreeMap<IncId, (BBDT16PublicKey<T>, Option<BBDT16Parameters<T>>), Global>, ApiError>
fn bbdt16_public_keys_by_did_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext, did: Did ) -> Result<BTreeMap<IncId, (BBDT16PublicKey<T>, Option<BBDT16Parameters<T>>), Global>, ApiError>
source§impl<__SR_API_BLOCK__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SR_API_BLOCK__> + 'static> EthereumRuntimeRPCApi<__SR_API_BLOCK__> for RuntimeApiImpl<__SR_API_BLOCK__, RuntimeApiImplCall>where
RuntimeApiImplCall::StateBackend: StateBackend<HashFor<__SR_API_BLOCK__>>,
u64: UnwindSafe + RefUnwindSafe,
H160: UnwindSafe + RefUnwindSafe,
EVMAccount: UnwindSafe + RefUnwindSafe,
U256: UnwindSafe + RefUnwindSafe,
Vec<u8>: UnwindSafe + RefUnwindSafe,
H256: UnwindSafe + RefUnwindSafe,
Option<U256>: UnwindSafe + RefUnwindSafe,
bool: UnwindSafe + RefUnwindSafe,
Option<Vec<(H160, Vec<H256>)>>: UnwindSafe + RefUnwindSafe,
Result<CallInfo, DispatchError>: UnwindSafe + RefUnwindSafe,
Result<CreateInfo, DispatchError>: UnwindSafe + RefUnwindSafe,
Option<Vec<TransactionStatus>>: UnwindSafe + RefUnwindSafe,
Option<Block>: UnwindSafe + RefUnwindSafe,
Option<Vec<Receipt>>: UnwindSafe + RefUnwindSafe,
(Option<Block>, Option<Vec<Receipt>>, Option<Vec<TransactionStatus>>): UnwindSafe + RefUnwindSafe,
Vec<<__SR_API_BLOCK__ as BlockT>::Extrinsic>: UnwindSafe + RefUnwindSafe,
Vec<EthereumTransaction>: UnwindSafe + RefUnwindSafe,
Option<Permill>: UnwindSafe + RefUnwindSafe,
__SR_API_BLOCK__::Header: UnwindSafe + RefUnwindSafe,
impl<__SR_API_BLOCK__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SR_API_BLOCK__> + 'static> EthereumRuntimeRPCApi<__SR_API_BLOCK__> for RuntimeApiImpl<__SR_API_BLOCK__, RuntimeApiImplCall>where RuntimeApiImplCall::StateBackend: StateBackend<HashFor<__SR_API_BLOCK__>>, u64: UnwindSafe + RefUnwindSafe, H160: UnwindSafe + RefUnwindSafe, EVMAccount: UnwindSafe + RefUnwindSafe, U256: UnwindSafe + RefUnwindSafe, Vec<u8>: UnwindSafe + RefUnwindSafe, H256: UnwindSafe + RefUnwindSafe, Option<U256>: UnwindSafe + RefUnwindSafe, bool: UnwindSafe + RefUnwindSafe, Option<Vec<(H160, Vec<H256>)>>: UnwindSafe + RefUnwindSafe, Result<CallInfo, DispatchError>: UnwindSafe + RefUnwindSafe, Result<CreateInfo, DispatchError>: UnwindSafe + RefUnwindSafe, Option<Vec<TransactionStatus>>: UnwindSafe + RefUnwindSafe, Option<Block>: UnwindSafe + RefUnwindSafe, Option<Vec<Receipt>>: UnwindSafe + RefUnwindSafe, (Option<Block>, Option<Vec<Receipt>>, Option<Vec<TransactionStatus>>): UnwindSafe + RefUnwindSafe, Vec<<__SR_API_BLOCK__ as BlockT>::Extrinsic>: UnwindSafe + RefUnwindSafe, Vec<EthereumTransaction>: UnwindSafe + RefUnwindSafe, Option<Permill>: UnwindSafe + RefUnwindSafe, __SR_API_BLOCK__::Header: UnwindSafe + RefUnwindSafe,
§fn chain_id(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<u64, ApiError>
fn chain_id( &self, __runtime_api_at_param__: &BlockId<Block> ) -> Result<u64, ApiError>
Returns runtime defined pallet_evm::ChainId.
§fn chain_id_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<u64, ApiError>
fn chain_id_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext ) -> Result<u64, ApiError>
Returns runtime defined pallet_evm::ChainId.
§fn account_basic(
&self,
__runtime_api_at_param__: &BlockId<Block>,
address: H160
) -> Result<Basic, ApiError>
fn account_basic( &self, __runtime_api_at_param__: &BlockId<Block>, address: H160 ) -> Result<Basic, ApiError>
Returns pallet_evm::Accounts by address.
§fn account_basic_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
address: H160
) -> Result<Basic, ApiError>
fn account_basic_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext, address: H160 ) -> Result<Basic, ApiError>
Returns pallet_evm::Accounts by address.
§fn gas_price(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<U256, ApiError>
fn gas_price( &self, __runtime_api_at_param__: &BlockId<Block> ) -> Result<U256, ApiError>
Returns FixedGasPrice::min_gas_price
§fn gas_price_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<U256, ApiError>
fn gas_price_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext ) -> Result<U256, ApiError>
Returns FixedGasPrice::min_gas_price
§fn account_code_at(
&self,
__runtime_api_at_param__: &BlockId<Block>,
address: H160
) -> Result<Vec<u8, Global>, ApiError>
fn account_code_at( &self, __runtime_api_at_param__: &BlockId<Block>, address: H160 ) -> Result<Vec<u8, Global>, ApiError>
For a given account address, returns pallet_evm::AccountCodes.
§fn account_code_at_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
address: H160
) -> Result<Vec<u8, Global>, ApiError>
fn account_code_at_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext, address: H160 ) -> Result<Vec<u8, Global>, ApiError>
For a given account address, returns pallet_evm::AccountCodes.
Returns the converted FindAuthor::find_author authority id.
Returns the converted FindAuthor::find_author authority id.
§fn storage_at(
&self,
__runtime_api_at_param__: &BlockId<Block>,
address: H160,
index: U256
) -> Result<H256, ApiError>
fn storage_at( &self, __runtime_api_at_param__: &BlockId<Block>, address: H160, index: U256 ) -> Result<H256, ApiError>
For a given account address and index, returns pallet_evm::AccountStorages.
§fn storage_at_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
address: H160,
index: U256
) -> Result<H256, ApiError>
fn storage_at_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext, address: H160, index: U256 ) -> Result<H256, ApiError>
For a given account address and index, returns pallet_evm::AccountStorages.
§fn call_before_version_2(
&self,
__runtime_api_at_param__: &BlockId<Block>,
from: H160,
to: H160,
data: Vec<u8, Global>,
value: U256,
gas_limit: U256,
gas_price: Option<U256>,
nonce: Option<U256>,
estimate: bool
) -> Result<Result<ExecutionInfo<Vec<u8, Global>>, DispatchError>, ApiError>
fn call_before_version_2( &self, __runtime_api_at_param__: &BlockId<Block>, from: H160, to: H160, data: Vec<u8, Global>, value: U256, gas_limit: U256, gas_price: Option<U256>, nonce: Option<U256>, estimate: bool ) -> Result<Result<ExecutionInfo<Vec<u8, Global>>, DispatchError>, ApiError>
👎Deprecated
Returns a frame_ethereum::call response. If
estimate
is true,§fn call_before_version_2_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
from: H160,
to: H160,
data: Vec<u8, Global>,
value: U256,
gas_limit: U256,
gas_price: Option<U256>,
nonce: Option<U256>,
estimate: bool
) -> Result<Result<ExecutionInfo<Vec<u8, Global>>, DispatchError>, ApiError>
fn call_before_version_2_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext, from: H160, to: H160, data: Vec<u8, Global>, value: U256, gas_limit: U256, gas_price: Option<U256>, nonce: Option<U256>, estimate: bool ) -> Result<Result<ExecutionInfo<Vec<u8, Global>>, DispatchError>, ApiError>
👎Deprecated
Returns a frame_ethereum::call response. If
estimate
is true,§fn call_before_version_4(
&self,
__runtime_api_at_param__: &BlockId<Block>,
from: H160,
to: H160,
data: Vec<u8, Global>,
value: U256,
gas_limit: U256,
max_fee_per_gas: Option<U256>,
max_priority_fee_per_gas: Option<U256>,
nonce: Option<U256>,
estimate: bool
) -> Result<Result<ExecutionInfo<Vec<u8, Global>>, DispatchError>, ApiError>
fn call_before_version_4( &self, __runtime_api_at_param__: &BlockId<Block>, from: H160, to: H160, data: Vec<u8, Global>, value: U256, gas_limit: U256, max_fee_per_gas: Option<U256>, max_priority_fee_per_gas: Option<U256>, nonce: Option<U256>, estimate: bool ) -> Result<Result<ExecutionInfo<Vec<u8, Global>>, DispatchError>, ApiError>
👎Deprecated
§fn call_before_version_4_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
from: H160,
to: H160,
data: Vec<u8, Global>,
value: U256,
gas_limit: U256,
max_fee_per_gas: Option<U256>,
max_priority_fee_per_gas: Option<U256>,
nonce: Option<U256>,
estimate: bool
) -> Result<Result<ExecutionInfo<Vec<u8, Global>>, DispatchError>, ApiError>
fn call_before_version_4_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext, from: H160, to: H160, data: Vec<u8, Global>, value: U256, gas_limit: U256, max_fee_per_gas: Option<U256>, max_priority_fee_per_gas: Option<U256>, nonce: Option<U256>, estimate: bool ) -> Result<Result<ExecutionInfo<Vec<u8, Global>>, DispatchError>, ApiError>
👎Deprecated
fn call( &self, __runtime_api_at_param__: &BlockId<Block>, from: H160, to: H160, data: Vec<u8, Global>, value: U256, gas_limit: U256, max_fee_per_gas: Option<U256>, max_priority_fee_per_gas: Option<U256>, nonce: Option<U256>, estimate: bool, access_list: Option<Vec<(H160, Vec<H256, Global>), Global>> ) -> Result<Result<ExecutionInfo<Vec<u8, Global>>, DispatchError>, ApiError>
fn call_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext, from: H160, to: H160, data: Vec<u8, Global>, value: U256, gas_limit: U256, max_fee_per_gas: Option<U256>, max_priority_fee_per_gas: Option<U256>, nonce: Option<U256>, estimate: bool, access_list: Option<Vec<(H160, Vec<H256, Global>), Global>> ) -> Result<Result<ExecutionInfo<Vec<u8, Global>>, DispatchError>, ApiError>
§fn create_before_version_2(
&self,
__runtime_api_at_param__: &BlockId<Block>,
from: H160,
data: Vec<u8, Global>,
value: U256,
gas_limit: U256,
gas_price: Option<U256>,
nonce: Option<U256>,
estimate: bool
) -> Result<Result<ExecutionInfo<H160>, DispatchError>, ApiError>
fn create_before_version_2( &self, __runtime_api_at_param__: &BlockId<Block>, from: H160, data: Vec<u8, Global>, value: U256, gas_limit: U256, gas_price: Option<U256>, nonce: Option<U256>, estimate: bool ) -> Result<Result<ExecutionInfo<H160>, DispatchError>, ApiError>
👎Deprecated
Returns a frame_ethereum::create response.
§fn create_before_version_2_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
from: H160,
data: Vec<u8, Global>,
value: U256,
gas_limit: U256,
gas_price: Option<U256>,
nonce: Option<U256>,
estimate: bool
) -> Result<Result<ExecutionInfo<H160>, DispatchError>, ApiError>
fn create_before_version_2_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext, from: H160, data: Vec<u8, Global>, value: U256, gas_limit: U256, gas_price: Option<U256>, nonce: Option<U256>, estimate: bool ) -> Result<Result<ExecutionInfo<H160>, DispatchError>, ApiError>
👎Deprecated
Returns a frame_ethereum::create response.
§fn create_before_version_4(
&self,
__runtime_api_at_param__: &BlockId<Block>,
from: H160,
data: Vec<u8, Global>,
value: U256,
gas_limit: U256,
max_fee_per_gas: Option<U256>,
max_priority_fee_per_gas: Option<U256>,
nonce: Option<U256>,
estimate: bool
) -> Result<Result<ExecutionInfo<H160>, DispatchError>, ApiError>
fn create_before_version_4( &self, __runtime_api_at_param__: &BlockId<Block>, from: H160, data: Vec<u8, Global>, value: U256, gas_limit: U256, max_fee_per_gas: Option<U256>, max_priority_fee_per_gas: Option<U256>, nonce: Option<U256>, estimate: bool ) -> Result<Result<ExecutionInfo<H160>, DispatchError>, ApiError>
👎Deprecated
§fn create_before_version_4_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
from: H160,
data: Vec<u8, Global>,
value: U256,
gas_limit: U256,
max_fee_per_gas: Option<U256>,
max_priority_fee_per_gas: Option<U256>,
nonce: Option<U256>,
estimate: bool
) -> Result<Result<ExecutionInfo<H160>, DispatchError>, ApiError>
fn create_before_version_4_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext, from: H160, data: Vec<u8, Global>, value: U256, gas_limit: U256, max_fee_per_gas: Option<U256>, max_priority_fee_per_gas: Option<U256>, nonce: Option<U256>, estimate: bool ) -> Result<Result<ExecutionInfo<H160>, DispatchError>, ApiError>
👎Deprecated
fn create( &self, __runtime_api_at_param__: &BlockId<Block>, from: H160, data: Vec<u8, Global>, value: U256, gas_limit: U256, max_fee_per_gas: Option<U256>, max_priority_fee_per_gas: Option<U256>, nonce: Option<U256>, estimate: bool, access_list: Option<Vec<(H160, Vec<H256, Global>), Global>> ) -> Result<Result<ExecutionInfo<H160>, DispatchError>, ApiError>
fn create_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext, from: H160, data: Vec<u8, Global>, value: U256, gas_limit: U256, max_fee_per_gas: Option<U256>, max_priority_fee_per_gas: Option<U256>, nonce: Option<U256>, estimate: bool, access_list: Option<Vec<(H160, Vec<H256, Global>), Global>> ) -> Result<Result<ExecutionInfo<H160>, DispatchError>, ApiError>
§fn current_block_before_version_2(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<Option<Block<LegacyTransaction>>, ApiError>
fn current_block_before_version_2( &self, __runtime_api_at_param__: &BlockId<Block> ) -> Result<Option<Block<LegacyTransaction>>, ApiError>
👎Deprecated
Return the current block. Legacy.
§fn current_block_before_version_2_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<Option<Block<LegacyTransaction>>, ApiError>
fn current_block_before_version_2_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext ) -> Result<Option<Block<LegacyTransaction>>, ApiError>
👎Deprecated
Return the current block. Legacy.
§fn current_block(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<Option<Block<TransactionV2>>, ApiError>
fn current_block( &self, __runtime_api_at_param__: &BlockId<Block> ) -> Result<Option<Block<TransactionV2>>, ApiError>
Return the current block.
§fn current_block_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<Option<Block<TransactionV2>>, ApiError>
fn current_block_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext ) -> Result<Option<Block<TransactionV2>>, ApiError>
Return the current block.
§fn current_receipts_before_version_4(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<Option<Vec<FrontierReceiptData, Global>>, ApiError>
fn current_receipts_before_version_4( &self, __runtime_api_at_param__: &BlockId<Block> ) -> Result<Option<Vec<FrontierReceiptData, Global>>, ApiError>
👎Deprecated
Return the current receipt.
§fn current_receipts_before_version_4_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<Option<Vec<FrontierReceiptData, Global>>, ApiError>
fn current_receipts_before_version_4_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext ) -> Result<Option<Vec<FrontierReceiptData, Global>>, ApiError>
👎Deprecated
Return the current receipt.
§fn current_receipts(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<Option<Vec<ReceiptV3, Global>>, ApiError>
fn current_receipts( &self, __runtime_api_at_param__: &BlockId<Block> ) -> Result<Option<Vec<ReceiptV3, Global>>, ApiError>
Return the current receipt.
§fn current_receipts_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<Option<Vec<ReceiptV3, Global>>, ApiError>
fn current_receipts_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext ) -> Result<Option<Vec<ReceiptV3, Global>>, ApiError>
Return the current receipt.
§fn current_transaction_statuses(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<Option<Vec<TransactionStatus, Global>>, ApiError>
fn current_transaction_statuses( &self, __runtime_api_at_param__: &BlockId<Block> ) -> Result<Option<Vec<TransactionStatus, Global>>, ApiError>
Return the current transaction status.
§fn current_transaction_statuses_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<Option<Vec<TransactionStatus, Global>>, ApiError>
fn current_transaction_statuses_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext ) -> Result<Option<Vec<TransactionStatus, Global>>, ApiError>
Return the current transaction status.
§fn current_all_before_version_2(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<(Option<Block<LegacyTransaction>>, Option<Vec<FrontierReceiptData, Global>>, Option<Vec<TransactionStatus, Global>>), ApiError>
fn current_all_before_version_2( &self, __runtime_api_at_param__: &BlockId<Block> ) -> Result<(Option<Block<LegacyTransaction>>, Option<Vec<FrontierReceiptData, Global>>, Option<Vec<TransactionStatus, Global>>), ApiError>
👎Deprecated
Return all the current data for a block in a single runtime call. Legacy.
§fn current_all_before_version_2_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<(Option<Block<LegacyTransaction>>, Option<Vec<FrontierReceiptData, Global>>, Option<Vec<TransactionStatus, Global>>), ApiError>
fn current_all_before_version_2_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext ) -> Result<(Option<Block<LegacyTransaction>>, Option<Vec<FrontierReceiptData, Global>>, Option<Vec<TransactionStatus, Global>>), ApiError>
👎Deprecated
Return all the current data for a block in a single runtime call. Legacy.
§fn current_all_before_version_4(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<(Option<Block<TransactionV2>>, Option<Vec<FrontierReceiptData, Global>>, Option<Vec<TransactionStatus, Global>>), ApiError>
fn current_all_before_version_4( &self, __runtime_api_at_param__: &BlockId<Block> ) -> Result<(Option<Block<TransactionV2>>, Option<Vec<FrontierReceiptData, Global>>, Option<Vec<TransactionStatus, Global>>), ApiError>
👎Deprecated
Return all the current data for a block in a single runtime call.
§fn current_all_before_version_4_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<(Option<Block<TransactionV2>>, Option<Vec<FrontierReceiptData, Global>>, Option<Vec<TransactionStatus, Global>>), ApiError>
fn current_all_before_version_4_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext ) -> Result<(Option<Block<TransactionV2>>, Option<Vec<FrontierReceiptData, Global>>, Option<Vec<TransactionStatus, Global>>), ApiError>
👎Deprecated
Return all the current data for a block in a single runtime call.
fn current_all( &self, __runtime_api_at_param__: &BlockId<Block> ) -> Result<(Option<Block<TransactionV2>>, Option<Vec<ReceiptV3, Global>>, Option<Vec<TransactionStatus, Global>>), ApiError>
fn current_all_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext ) -> Result<(Option<Block<TransactionV2>>, Option<Vec<ReceiptV3, Global>>, Option<Vec<TransactionStatus, Global>>), ApiError>
§fn extrinsic_filter_before_version_2(
&self,
__runtime_api_at_param__: &BlockId<Block>,
xts: Vec<<Block as Block>::Extrinsic, Global>
) -> Result<Vec<LegacyTransaction, Global>, ApiError>
fn extrinsic_filter_before_version_2( &self, __runtime_api_at_param__: &BlockId<Block>, xts: Vec<<Block as Block>::Extrinsic, Global> ) -> Result<Vec<LegacyTransaction, Global>, ApiError>
👎Deprecated
Receives a
Vec<OpaqueExtrinsic>
and filters all the ethereum transactions. Legacy.§fn extrinsic_filter_before_version_2_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
xts: Vec<<Block as Block>::Extrinsic, Global>
) -> Result<Vec<LegacyTransaction, Global>, ApiError>
fn extrinsic_filter_before_version_2_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext, xts: Vec<<Block as Block>::Extrinsic, Global> ) -> Result<Vec<LegacyTransaction, Global>, ApiError>
👎Deprecated
Receives a
Vec<OpaqueExtrinsic>
and filters all the ethereum transactions. Legacy.§fn extrinsic_filter(
&self,
__runtime_api_at_param__: &BlockId<Block>,
xts: Vec<<Block as Block>::Extrinsic, Global>
) -> Result<Vec<TransactionV2, Global>, ApiError>
fn extrinsic_filter( &self, __runtime_api_at_param__: &BlockId<Block>, xts: Vec<<Block as Block>::Extrinsic, Global> ) -> Result<Vec<TransactionV2, Global>, ApiError>
Receives a
Vec<OpaqueExtrinsic>
and filters all the ethereum transactions.§fn extrinsic_filter_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
xts: Vec<<Block as Block>::Extrinsic, Global>
) -> Result<Vec<TransactionV2, Global>, ApiError>
fn extrinsic_filter_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext, xts: Vec<<Block as Block>::Extrinsic, Global> ) -> Result<Vec<TransactionV2, Global>, ApiError>
Receives a
Vec<OpaqueExtrinsic>
and filters all the ethereum transactions.§fn elasticity(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<Option<Permill>, ApiError>
fn elasticity( &self, __runtime_api_at_param__: &BlockId<Block> ) -> Result<Option<Permill>, ApiError>
Return the elasticity multiplier.
§fn elasticity_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<Option<Permill>, ApiError>
fn elasticity_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext ) -> Result<Option<Permill>, ApiError>
Return the elasticity multiplier.
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__>>,
SetId: UnwindSafe + RefUnwindSafe,
GrandpaAuthorityList: UnwindSafe + RefUnwindSafe,
EquivocationProof<<__SR_API_BLOCK__ as BlockT>::Hash, NumberFor<__SR_API_BLOCK__>>: UnwindSafe + RefUnwindSafe,
OpaqueKeyOwnershipProof: UnwindSafe + RefUnwindSafe,
Option<()>: UnwindSafe + RefUnwindSafe,
GrandpaId: 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__>>, SetId: UnwindSafe + RefUnwindSafe, GrandpaAuthorityList: UnwindSafe + RefUnwindSafe, EquivocationProof<<__SR_API_BLOCK__ as BlockT>::Hash, NumberFor<__SR_API_BLOCK__>>: UnwindSafe + RefUnwindSafe, OpaqueKeyOwnershipProof: UnwindSafe + RefUnwindSafe, Option<()>: UnwindSafe + RefUnwindSafe, GrandpaId: 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
§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.§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.§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.§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.§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.
§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,
§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.
§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__, <Runtime as Config<()>>::Hash> for RuntimeApiImpl<__SR_API_BLOCK__, RuntimeApiImplCall>where
RuntimeApiImplCall::StateBackend: StateBackend<HashFor<__SR_API_BLOCK__>>,
LeafIndex: UnwindSafe + RefUnwindSafe,
Result<(EncodableOpaqueLeaf, Proof<<Runtime as Config>::Hash>), Error>: UnwindSafe + RefUnwindSafe,
EncodableOpaqueLeaf: UnwindSafe + RefUnwindSafe,
Proof<<Runtime as Config>::Hash>: UnwindSafe + RefUnwindSafe,
Result<(), Error>: UnwindSafe + RefUnwindSafe,
<Runtime as Config>::Hash: UnwindSafe + RefUnwindSafe,
Result<<Runtime as Config>::Hash, Error>: UnwindSafe + RefUnwindSafe,
Vec<LeafIndex>: UnwindSafe + RefUnwindSafe,
Result<(Vec<EncodableOpaqueLeaf>, BatchProof<<Runtime as Config>::Hash>), Error>: UnwindSafe + RefUnwindSafe,
Vec<EncodableOpaqueLeaf>: UnwindSafe + RefUnwindSafe,
BatchProof<<Runtime as Config>::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__, <Runtime as Config<()>>::Hash> for RuntimeApiImpl<__SR_API_BLOCK__, RuntimeApiImplCall>where RuntimeApiImplCall::StateBackend: StateBackend<HashFor<__SR_API_BLOCK__>>, LeafIndex: UnwindSafe + RefUnwindSafe, Result<(EncodableOpaqueLeaf, Proof<<Runtime as Config>::Hash>), Error>: UnwindSafe + RefUnwindSafe, EncodableOpaqueLeaf: UnwindSafe + RefUnwindSafe, Proof<<Runtime as Config>::Hash>: UnwindSafe + RefUnwindSafe, Result<(), Error>: UnwindSafe + RefUnwindSafe, <Runtime as Config>::Hash: UnwindSafe + RefUnwindSafe, Result<<Runtime as Config>::Hash, Error>: UnwindSafe + RefUnwindSafe, Vec<LeafIndex>: UnwindSafe + RefUnwindSafe, Result<(Vec<EncodableOpaqueLeaf>, BatchProof<<Runtime as Config>::Hash>), Error>: UnwindSafe + RefUnwindSafe, Vec<EncodableOpaqueLeaf>: UnwindSafe + RefUnwindSafe, BatchProof<<Runtime as Config>::Hash>: UnwindSafe + RefUnwindSafe, __SR_API_BLOCK__::Header: UnwindSafe + RefUnwindSafe,
§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.
§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.
§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
§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
§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
§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
§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.
§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.
§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.
§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.
§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
§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
§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
§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> 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,
§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.
§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.
§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.
§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> PoAApi<__SR_API_BLOCK__, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, u64> 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> PoAApi<__SR_API_BLOCK__, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, u64> 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 get_treasury_account(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<AccountId, ApiError>
fn get_treasury_account( &self, __runtime_api_at_param__: &BlockId<Block> ) -> Result<AccountId, ApiError>
Return account address of treasury. The account address can then be used to query the
chain for balance
source§fn get_treasury_account_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<AccountId, ApiError>
fn get_treasury_account_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext ) -> Result<AccountId, ApiError>
Return account address of treasury. The account address can then be used to query the
chain for balance
source§fn get_treasury_balance(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<Balance, ApiError>
fn get_treasury_balance( &self, __runtime_api_at_param__: &BlockId<Block> ) -> Result<Balance, ApiError>
Return free balance of treasury account. In the context of PoA, only free balance makes
sense for treasury. But just in case, to check all kinds of balance (locked, reserved, etc),
get the account address with above call and query the chain.
source§fn get_treasury_balance_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<Balance, ApiError>
fn get_treasury_balance_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext ) -> Result<Balance, ApiError>
Return free balance of treasury account. In the context of PoA, only free balance makes
sense for treasury. But just in case, to check all kinds of balance (locked, reserved, etc),
get the account address with above call and query the chain.
source§impl<__SR_API_BLOCK__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SR_API_BLOCK__> + 'static> PriceFeedApi<__SR_API_BLOCK__, <Runtime as Config>::BlockNumber> for RuntimeApiImpl<__SR_API_BLOCK__, RuntimeApiImplCall>where
RuntimeApiImplCall::StateBackend: StateBackend<HashFor<__SR_API_BLOCK__>>,
CurrencySymbolPair<String, String>: UnwindSafe + RefUnwindSafe,
Option<PriceRecord<<Runtime as Config>::BlockNumber>>: UnwindSafe + RefUnwindSafe,
__SR_API_BLOCK__::Header: UnwindSafe + RefUnwindSafe,
impl<__SR_API_BLOCK__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SR_API_BLOCK__> + 'static> PriceFeedApi<__SR_API_BLOCK__, <Runtime as Config>::BlockNumber> for RuntimeApiImpl<__SR_API_BLOCK__, RuntimeApiImplCall>where RuntimeApiImplCall::StateBackend: StateBackend<HashFor<__SR_API_BLOCK__>>, CurrencySymbolPair<String, String>: UnwindSafe + RefUnwindSafe, Option<PriceRecord<<Runtime as Config>::BlockNumber>>: UnwindSafe + RefUnwindSafe, __SR_API_BLOCK__::Header: UnwindSafe + RefUnwindSafe,
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,
§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
§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> StakingRewardsApi<__SR_API_BLOCK__, u64> for RuntimeApiImpl<__SR_API_BLOCK__, RuntimeApiImplCall>where
RuntimeApiImplCall::StateBackend: StateBackend<HashFor<__SR_API_BLOCK__>>,
Balance: UnwindSafe + RefUnwindSafe,
__SR_API_BLOCK__::Header: UnwindSafe + RefUnwindSafe,
impl<__SR_API_BLOCK__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SR_API_BLOCK__> + 'static> StakingRewardsApi<__SR_API_BLOCK__, u64> for RuntimeApiImpl<__SR_API_BLOCK__, RuntimeApiImplCall>where RuntimeApiImplCall::StateBackend: StateBackend<HashFor<__SR_API_BLOCK__>>, Balance: UnwindSafe + RefUnwindSafe, __SR_API_BLOCK__::Header: UnwindSafe + RefUnwindSafe,
source§fn yearly_emission(
&self,
__runtime_api_at_param__: &BlockId<Block>,
total_staked: Balance,
total_issuance: Balance
) -> Result<Balance, ApiError>
fn yearly_emission( &self, __runtime_api_at_param__: &BlockId<Block>, total_staked: Balance, total_issuance: Balance ) -> Result<Balance, ApiError>
Get emission rewards for the whole year given total staked tokens and total issuance.
Depends on the reward curve, decay percentage and remaining emission supply.
source§fn yearly_emission_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
total_staked: Balance,
total_issuance: Balance
) -> Result<Balance, ApiError>
fn yearly_emission_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext, total_staked: Balance, total_issuance: Balance ) -> Result<Balance, ApiError>
Get emission rewards for the whole year given total staked tokens and total issuance.
Depends on the reward curve, decay percentage and remaining emission supply.
source§fn max_yearly_emission(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<Balance, ApiError>
fn max_yearly_emission( &self, __runtime_api_at_param__: &BlockId<Block> ) -> Result<Balance, ApiError>
Get max emission rewards for the whole year and depends on decay percentage and remaining emission supply.
source§fn max_yearly_emission_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<Balance, ApiError>
fn max_yearly_emission_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext ) -> Result<Balance, ApiError>
Get max emission rewards for the whole year and depends on decay percentage and remaining emission supply.
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,
§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.
§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.
§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.
§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.
§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
§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__, u64> 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__, u64> 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>
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> CanUpdate<()> for T
impl<T> CanUpdate<()> for T
source§fn can_remove(&self, _entity: &()) -> bool
fn can_remove(&self, _entity: &()) -> bool
Checks whether the existing entity can be removed.
§impl<T> CheckedConversion for T
impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
Self: TryFrom<T>,
fn checked_from<T>(t: T) -> Option<Self>where Self: TryFrom<T>,
§fn checked_into<T>(self) -> Option<T>where
Self: TryInto<T>,
fn checked_into<T>(self) -> Option<T>where Self: TryInto<T>,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere T: Any,
§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
.§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
.§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.§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.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IsType<T> for T
impl<T> IsType<T> for T
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> SaturatedConversion for T
impl<T> SaturatedConversion for T
§fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
fn saturated_from<T>(t: T) -> Selfwhere Self: UniqueSaturatedFrom<T>,
§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 more§impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for Swhere T: UncheckedFrom<S>,
§fn unchecked_into(self) -> T
fn unchecked_into(self) -> T
The counterpart to
unchecked_from
.§impl<T, S> UniqueSaturatedInto<T> for Swhere
T: Bounded,
S: TryInto<T>,
impl<T, S> UniqueSaturatedInto<T> for Swhere T: Bounded, S: TryInto<T>,
§fn unique_saturated_into(self) -> T
fn unique_saturated_into(self) -> T
Consume self to return an equivalent value of
T
.