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<__SrApiBlock__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SrApiBlock__> + 'static> AccountNonceApi<__SrApiBlock__, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, u32> for RuntimeApiImpl<__SrApiBlock__, RuntimeApiImplCall>where
RuntimeApiImplCall::StateBackend: StateBackend<HashingFor<__SrApiBlock__>>,
&'static RuntimeApiImplCall: Send,
AccountId: UnwindSafe + RefUnwindSafe,
Nonce: UnwindSafe + RefUnwindSafe,
__SrApiBlock__::Header: UnwindSafe + RefUnwindSafe,
impl<__SrApiBlock__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SrApiBlock__> + 'static> AccountNonceApi<__SrApiBlock__, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, u32> for RuntimeApiImpl<__SrApiBlock__, RuntimeApiImplCall>where
RuntimeApiImplCall::StateBackend: StateBackend<HashingFor<__SrApiBlock__>>,
&'static RuntimeApiImplCall: Send,
AccountId: UnwindSafe + RefUnwindSafe,
Nonce: UnwindSafe + RefUnwindSafe,
__SrApiBlock__::Header: UnwindSafe + RefUnwindSafe,
§fn account_nonce(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
account: AccountId,
) -> Result<Nonce, ApiError>
fn account_nonce( &self, __runtime_api_at_param__: <Block as Block>::Hash, account: AccountId, ) -> Result<Nonce, 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>
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: <Block as BlockT>::Hash,
) -> Result<bool, ApiError>where
Self: Sized,
fn has_api<A: RuntimeApiInfo + ?Sized>(
&self,
at: <Block as BlockT>::Hash,
) -> 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: <Block as BlockT>::Hash,
pred: P,
) -> Result<bool, ApiError>where
Self: Sized,
fn has_api_with<A: RuntimeApiInfo + ?Sized, P: Fn(u32) -> bool>(
&self,
at: <Block as BlockT>::Hash,
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: <Block as BlockT>::Hash,
) -> Result<Option<u32>, ApiError>where
Self: Sized,
fn api_version<A: RuntimeApiInfo + ?Sized>(
&self,
at: <Block as BlockT>::Hash,
) -> Result<Option<u32>, ApiError>where
Self: Sized,
Returns the version of the given api.
source§fn record_proof(&mut self)
fn record_proof(&mut self)
Start recording all accessed trie nodes for generating proofs.
source§fn proof_recorder(&self) -> Option<ProofRecorder<Block>>
fn proof_recorder(&self) -> Option<ProofRecorder<Block>>
Returns the current active proof recorder.
source§fn extract_proof(&mut self) -> Option<StorageProof>
fn extract_proof(&mut self) -> Option<StorageProof>
Extract the recorded proof. Read more
source§fn into_storage_changes<B: StateBackend<HashingFor<Block>>>(
&self,
backend: &B,
parent_hash: Block::Hash,
) -> Result<StorageChanges<Block>, String>where
Self: Sized,
fn into_storage_changes<B: StateBackend<HashingFor<Block>>>(
&self,
backend: &B,
parent_hash: Block::Hash,
) -> Result<StorageChanges<Block>, String>where
Self: Sized,
Convert the api object into the storage changes that were done while executing runtime
api functions. Read more
source§fn set_call_context(&mut self, call_context: CallContext)
fn set_call_context(&mut self, call_context: CallContext)
Set the [
CallContext
] to be used by the runtime api calls done by this instance.source§fn register_extension<E: Extension>(&mut self, extension: E)
fn register_extension<E: Extension>(&mut self, extension: E)
Register an [
Extension
] that will be accessible while executing a runtime api call.source§impl<__SrApiBlock__, RuntimeApiImplCall: CallApiAt<__SrApiBlock__> + 'static> BlockBuilder<__SrApiBlock__> for RuntimeApiImpl<__SrApiBlock__, RuntimeApiImplCall>where
RuntimeApiImplCall::StateBackend: StateBackend<HashingFor<__SrApiBlock__>>,
&'static RuntimeApiImplCall: Send,
<__SrApiBlock__ as BlockT>::Extrinsic: UnwindSafe + RefUnwindSafe,
ApplyExtrinsicResult: UnwindSafe + RefUnwindSafe,
<__SrApiBlock__ as BlockT>::Header: UnwindSafe + RefUnwindSafe,
InherentData: UnwindSafe + RefUnwindSafe,
Vec<<__SrApiBlock__ as BlockT>::Extrinsic>: UnwindSafe + RefUnwindSafe,
__SrApiBlock__: UnwindSafe + RefUnwindSafe + BlockT,
CheckInherentsResult: UnwindSafe + RefUnwindSafe,
__SrApiBlock__::Header: UnwindSafe + RefUnwindSafe,
impl<__SrApiBlock__, RuntimeApiImplCall: CallApiAt<__SrApiBlock__> + 'static> BlockBuilder<__SrApiBlock__> for RuntimeApiImpl<__SrApiBlock__, RuntimeApiImplCall>where
RuntimeApiImplCall::StateBackend: StateBackend<HashingFor<__SrApiBlock__>>,
&'static RuntimeApiImplCall: Send,
<__SrApiBlock__ as BlockT>::Extrinsic: UnwindSafe + RefUnwindSafe,
ApplyExtrinsicResult: UnwindSafe + RefUnwindSafe,
<__SrApiBlock__ as BlockT>::Header: UnwindSafe + RefUnwindSafe,
InherentData: UnwindSafe + RefUnwindSafe,
Vec<<__SrApiBlock__ as BlockT>::Extrinsic>: UnwindSafe + RefUnwindSafe,
__SrApiBlock__: UnwindSafe + RefUnwindSafe + BlockT,
CheckInherentsResult: UnwindSafe + RefUnwindSafe,
__SrApiBlock__::Header: UnwindSafe + RefUnwindSafe,
§fn apply_extrinsic(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
extrinsic: <Block as Block>::Extrinsic,
) -> Result<Result<Result<(), DispatchError>, TransactionValidityError>, ApiError>
fn apply_extrinsic( &self, __runtime_api_at_param__: <Block as Block>::Hash, 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__: <Block as Block>::Hash,
extrinsic: <Block as Block>::Extrinsic,
) -> Result<Result<Result<(), DispatchError>, TransactionValidityError>, ApiError>
fn apply_extrinsic_before_version_6( &self, __runtime_api_at_param__: <Block as Block>::Hash, extrinsic: <Block as Block>::Extrinsic, ) -> Result<Result<Result<(), DispatchError>, TransactionValidityError>, ApiError>
👎Deprecated
§fn finalize_block(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
) -> Result<<Block as Block>::Header, ApiError>
fn finalize_block( &self, __runtime_api_at_param__: <Block as Block>::Hash, ) -> Result<<Block as Block>::Header, ApiError>
Finish the current block.
§fn inherent_extrinsics(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
inherent: InherentData,
) -> Result<Vec<<Block as Block>::Extrinsic>, ApiError>
fn inherent_extrinsics( &self, __runtime_api_at_param__: <Block as Block>::Hash, inherent: InherentData, ) -> Result<Vec<<Block as Block>::Extrinsic>, ApiError>
Generate inherent extrinsics. The inherent data will vary from chain to chain.
§fn check_inherents(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
block: Block,
data: InherentData,
) -> Result<CheckInherentsResult, ApiError>
fn check_inherents( &self, __runtime_api_at_param__: <Block as Block>::Hash, block: Block, data: InherentData, ) -> Result<CheckInherentsResult, ApiError>
Check that the inherents are valid. The inherent data will vary from chain to chain.
source§impl<__SrApiBlock__, RuntimeApiImplCall: CallApiAt<__SrApiBlock__> + 'static> Core<__SrApiBlock__> for RuntimeApiImpl<__SrApiBlock__, RuntimeApiImplCall>where
RuntimeApiImplCall::StateBackend: StateBackend<HashingFor<__SrApiBlock__>>,
&'static RuntimeApiImplCall: Send,
RuntimeVersion: UnwindSafe + RefUnwindSafe,
__SrApiBlock__: UnwindSafe + RefUnwindSafe + BlockT,
<__SrApiBlock__ as BlockT>::Header: UnwindSafe + RefUnwindSafe,
ExtrinsicInclusionMode: UnwindSafe + RefUnwindSafe,
__SrApiBlock__::Header: UnwindSafe + RefUnwindSafe,
impl<__SrApiBlock__, RuntimeApiImplCall: CallApiAt<__SrApiBlock__> + 'static> Core<__SrApiBlock__> for RuntimeApiImpl<__SrApiBlock__, RuntimeApiImplCall>where
RuntimeApiImplCall::StateBackend: StateBackend<HashingFor<__SrApiBlock__>>,
&'static RuntimeApiImplCall: Send,
RuntimeVersion: UnwindSafe + RefUnwindSafe,
__SrApiBlock__: UnwindSafe + RefUnwindSafe + BlockT,
<__SrApiBlock__ as BlockT>::Header: UnwindSafe + RefUnwindSafe,
ExtrinsicInclusionMode: UnwindSafe + RefUnwindSafe,
__SrApiBlock__::Header: UnwindSafe + RefUnwindSafe,
§fn version(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
) -> Result<RuntimeVersion, ApiError>
fn version( &self, __runtime_api_at_param__: <Block as Block>::Hash, ) -> Result<RuntimeVersion, ApiError>
Returns the version of the runtime.
§fn execute_block(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
block: Block,
) -> Result<(), ApiError>
fn execute_block( &self, __runtime_api_at_param__: <Block as Block>::Hash, block: Block, ) -> Result<(), ApiError>
Execute the given block.
§fn initialize_block_before_version_5(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
header: &<Block as Block>::Header,
) -> Result<(), ApiError>
fn initialize_block_before_version_5( &self, __runtime_api_at_param__: <Block as Block>::Hash, header: &<Block as Block>::Header, ) -> Result<(), ApiError>
👎Deprecated
Initialize a block with the given header.
§fn initialize_block(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
header: &<Block as Block>::Header,
) -> Result<ExtrinsicInclusionMode, ApiError>
fn initialize_block( &self, __runtime_api_at_param__: <Block as Block>::Hash, header: &<Block as Block>::Header, ) -> Result<ExtrinsicInclusionMode, ApiError>
Initialize a block with the given header and return the runtime executive mode.
source§impl<__SrApiBlock__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SrApiBlock__> + 'static> DomainCoreApi<__SrApiBlock__> for RuntimeApiImpl<__SrApiBlock__, RuntimeApiImplCall>where
RuntimeApiImplCall::StateBackend: StateBackend<HashingFor<__SrApiBlock__>>,
&'static RuntimeApiImplCall: Send,
Vec<<__SrApiBlock__ as BlockT>::Extrinsic>: UnwindSafe + RefUnwindSafe,
Vec<(Option<AccountId>, <__SrApiBlock__ as BlockT>::Extrinsic)>: UnwindSafe + RefUnwindSafe,
<__SrApiBlock__ as BlockT>::Extrinsic: UnwindSafe + RefUnwindSafe,
U256: UnwindSafe + RefUnwindSafe,
bool: UnwindSafe + RefUnwindSafe,
Vec<[u8; 32]>: UnwindSafe + RefUnwindSafe,
<__SrApiBlock__ as BlockT>::Header: UnwindSafe + RefUnwindSafe,
Vec<u8>: UnwindSafe + RefUnwindSafe,
Moment: UnwindSafe + RefUnwindSafe,
BlockNumber: UnwindSafe + RefUnwindSafe,
<__SrApiBlock__ as BlockT>::Hash: UnwindSafe + RefUnwindSafe,
Result<(), CheckExtrinsicsValidityError>: UnwindSafe + RefUnwindSafe,
OpaqueExtrinsic: UnwindSafe + RefUnwindSafe,
Result<<__SrApiBlock__ as BlockT>::Extrinsic, DecodeExtrinsicError>: UnwindSafe + RefUnwindSafe,
Option<Era>: UnwindSafe + RefUnwindSafe,
Weight: UnwindSafe + RefUnwindSafe,
BlockFees<Balance>: UnwindSafe + RefUnwindSafe,
Digest: UnwindSafe + RefUnwindSafe,
Balance: UnwindSafe + RefUnwindSafe,
DomainAllowlistUpdates: UnwindSafe + RefUnwindSafe,
Transfers<Balance>: UnwindSafe + RefUnwindSafe,
__SrApiBlock__::Header: UnwindSafe + RefUnwindSafe,
impl<__SrApiBlock__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SrApiBlock__> + 'static> DomainCoreApi<__SrApiBlock__> for RuntimeApiImpl<__SrApiBlock__, RuntimeApiImplCall>where
RuntimeApiImplCall::StateBackend: StateBackend<HashingFor<__SrApiBlock__>>,
&'static RuntimeApiImplCall: Send,
Vec<<__SrApiBlock__ as BlockT>::Extrinsic>: UnwindSafe + RefUnwindSafe,
Vec<(Option<AccountId>, <__SrApiBlock__ as BlockT>::Extrinsic)>: UnwindSafe + RefUnwindSafe,
<__SrApiBlock__ as BlockT>::Extrinsic: UnwindSafe + RefUnwindSafe,
U256: UnwindSafe + RefUnwindSafe,
bool: UnwindSafe + RefUnwindSafe,
Vec<[u8; 32]>: UnwindSafe + RefUnwindSafe,
<__SrApiBlock__ as BlockT>::Header: UnwindSafe + RefUnwindSafe,
Vec<u8>: UnwindSafe + RefUnwindSafe,
Moment: UnwindSafe + RefUnwindSafe,
BlockNumber: UnwindSafe + RefUnwindSafe,
<__SrApiBlock__ as BlockT>::Hash: UnwindSafe + RefUnwindSafe,
Result<(), CheckExtrinsicsValidityError>: UnwindSafe + RefUnwindSafe,
OpaqueExtrinsic: UnwindSafe + RefUnwindSafe,
Result<<__SrApiBlock__ as BlockT>::Extrinsic, DecodeExtrinsicError>: UnwindSafe + RefUnwindSafe,
Option<Era>: UnwindSafe + RefUnwindSafe,
Weight: UnwindSafe + RefUnwindSafe,
BlockFees<Balance>: UnwindSafe + RefUnwindSafe,
Digest: UnwindSafe + RefUnwindSafe,
Balance: UnwindSafe + RefUnwindSafe,
DomainAllowlistUpdates: UnwindSafe + RefUnwindSafe,
Transfers<Balance>: UnwindSafe + RefUnwindSafe,
__SrApiBlock__::Header: UnwindSafe + RefUnwindSafe,
source§fn extract_signer(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
extrinsics: Vec<<Block as Block>::Extrinsic>,
) -> Result<Vec<(Option<Vec<u8>>, <Block as Block>::Extrinsic)>, ApiError>
fn extract_signer( &self, __runtime_api_at_param__: <Block as Block>::Hash, extrinsics: Vec<<Block as Block>::Extrinsic>, ) -> Result<Vec<(Option<Vec<u8>>, <Block as Block>::Extrinsic)>, ApiError>
Extracts the optional signer per extrinsic.
fn is_within_tx_range( &self, __runtime_api_at_param__: <Block as Block>::Hash, extrinsic: &<Block as Block>::Extrinsic, bundle_vrf_hash: &U256, tx_range: &U256, ) -> Result<bool, ApiError>
source§fn intermediate_roots(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
) -> Result<Vec<[u8; 32]>, ApiError>
fn intermediate_roots( &self, __runtime_api_at_param__: <Block as Block>::Hash, ) -> Result<Vec<[u8; 32]>, ApiError>
Returns the intermediate storage roots in an encoded form.
source§fn initialize_block_with_post_state_root(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
header: &<Block as Block>::Header,
) -> Result<Vec<u8>, ApiError>
fn initialize_block_with_post_state_root( &self, __runtime_api_at_param__: <Block as Block>::Hash, header: &<Block as Block>::Header, ) -> Result<Vec<u8>, ApiError>
Returns the storage root after initializing the block.
source§fn apply_extrinsic_with_post_state_root(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
extrinsic: <Block as Block>::Extrinsic,
) -> Result<Vec<u8>, ApiError>
fn apply_extrinsic_with_post_state_root( &self, __runtime_api_at_param__: <Block as Block>::Hash, extrinsic: <Block as Block>::Extrinsic, ) -> Result<Vec<u8>, ApiError>
Returns the storage root after applying the extrinsic.
source§fn construct_set_code_extrinsic(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
code: Vec<u8>,
) -> Result<Vec<u8>, ApiError>
fn construct_set_code_extrinsic( &self, __runtime_api_at_param__: <Block as Block>::Hash, code: Vec<u8>, ) -> Result<Vec<u8>, ApiError>
Returns an encoded extrinsic aiming to upgrade the runtime using given code.
source§fn construct_timestamp_extrinsic(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
moment: u64,
) -> Result<<Block as Block>::Extrinsic, ApiError>
fn construct_timestamp_extrinsic( &self, __runtime_api_at_param__: <Block as Block>::Hash, moment: u64, ) -> Result<<Block as Block>::Extrinsic, ApiError>
Returns an encoded extrinsic to set timestamp.
source§fn construct_consensus_chain_byte_fee_extrinsic(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
consensus_chain_byte_fee: u128,
) -> Result<<Block as Block>::Extrinsic, ApiError>
fn construct_consensus_chain_byte_fee_extrinsic( &self, __runtime_api_at_param__: <Block as Block>::Hash, consensus_chain_byte_fee: u128, ) -> Result<<Block as Block>::Extrinsic, ApiError>
Returns an encoded extrinsic to set domain transaction byte fee.
source§fn construct_domain_update_chain_allowlist_extrinsic(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
updates: DomainAllowlistUpdates,
) -> Result<<Block as Block>::Extrinsic, ApiError>
fn construct_domain_update_chain_allowlist_extrinsic( &self, __runtime_api_at_param__: <Block as Block>::Hash, updates: DomainAllowlistUpdates, ) -> Result<<Block as Block>::Extrinsic, ApiError>
Returns an extrinsic to update chain allowlist.
source§fn is_inherent_extrinsic(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
extrinsic: &<Block as Block>::Extrinsic,
) -> Result<bool, ApiError>
fn is_inherent_extrinsic( &self, __runtime_api_at_param__: <Block as Block>::Hash, extrinsic: &<Block as Block>::Extrinsic, ) -> Result<bool, ApiError>
Returns true if the extrinsic is an inherent extrinsic.
source§fn check_extrinsics_and_do_pre_dispatch(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
uxts: Vec<<Block as Block>::Extrinsic>,
block_number: <<Block as Block>::Header as Header>::Number,
block_hash: <Block as Block>::Hash,
) -> Result<Result<(), CheckExtrinsicsValidityError>, ApiError>
fn check_extrinsics_and_do_pre_dispatch( &self, __runtime_api_at_param__: <Block as Block>::Hash, uxts: Vec<<Block as Block>::Extrinsic>, block_number: <<Block as Block>::Header as Header>::Number, block_hash: <Block as Block>::Hash, ) -> Result<Result<(), CheckExtrinsicsValidityError>, ApiError>
Checks the validity of array of extrinsics + pre_dispatch
returning failure on first extrinsic that fails runtime call.
IMPORTANT: Change
CHECK_EXTRINSICS_AND_DO_PRE_DISPATCH_METHOD_NAME
constant when this method name is changedsource§fn decode_extrinsic(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
opaque_extrinsic: OpaqueExtrinsic,
) -> Result<Result<<Block as Block>::Extrinsic, DecodeExtrinsicError>, ApiError>
fn decode_extrinsic( &self, __runtime_api_at_param__: <Block as Block>::Hash, opaque_extrinsic: OpaqueExtrinsic, ) -> Result<Result<<Block as Block>::Extrinsic, DecodeExtrinsicError>, ApiError>
Decodes the domain specific extrinsic from the opaque extrinsic.
source§fn extrinsic_era(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
extrinsic: &<Block as Block>::Extrinsic,
) -> Result<Option<Era>, ApiError>
fn extrinsic_era( &self, __runtime_api_at_param__: <Block as Block>::Hash, extrinsic: &<Block as Block>::Extrinsic, ) -> Result<Option<Era>, ApiError>
Returns extrinsic Era if present.
source§fn extrinsic_weight(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
ext: &<Block as Block>::Extrinsic,
) -> Result<Weight, ApiError>
fn extrinsic_weight( &self, __runtime_api_at_param__: <Block as Block>::Hash, ext: &<Block as Block>::Extrinsic, ) -> Result<Weight, ApiError>
Returns the extrinsic weight.
source§fn block_fees(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
) -> Result<BlockFees<u128>, ApiError>
fn block_fees( &self, __runtime_api_at_param__: <Block as Block>::Hash, ) -> Result<BlockFees<u128>, ApiError>
The accumulated transaction fee of all transactions included in the block.
source§fn block_digest(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
) -> Result<Digest, ApiError>
fn block_digest( &self, __runtime_api_at_param__: <Block as Block>::Hash, ) -> Result<Digest, ApiError>
Returns the block digest.
source§fn block_weight(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
) -> Result<Weight, ApiError>
fn block_weight( &self, __runtime_api_at_param__: <Block as Block>::Hash, ) -> Result<Weight, ApiError>
Returns the consumed weight of the block.
source§fn transfers(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
) -> Result<Transfers<u128>, ApiError>
fn transfers( &self, __runtime_api_at_param__: <Block as Block>::Hash, ) -> Result<Transfers<u128>, ApiError>
Returns the transfers for this domain in the block.
source§impl<__SrApiBlock__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SrApiBlock__> + 'static> DomainSudoApi<__SrApiBlock__> for RuntimeApiImpl<__SrApiBlock__, RuntimeApiImplCall>where
RuntimeApiImplCall::StateBackend: StateBackend<HashingFor<__SrApiBlock__>>,
&'static RuntimeApiImplCall: Send,
Vec<u8>: UnwindSafe + RefUnwindSafe,
bool: UnwindSafe + RefUnwindSafe,
<__SrApiBlock__ as BlockT>::Extrinsic: UnwindSafe + RefUnwindSafe,
__SrApiBlock__::Header: UnwindSafe + RefUnwindSafe,
impl<__SrApiBlock__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SrApiBlock__> + 'static> DomainSudoApi<__SrApiBlock__> for RuntimeApiImpl<__SrApiBlock__, RuntimeApiImplCall>where
RuntimeApiImplCall::StateBackend: StateBackend<HashingFor<__SrApiBlock__>>,
&'static RuntimeApiImplCall: Send,
Vec<u8>: UnwindSafe + RefUnwindSafe,
bool: UnwindSafe + RefUnwindSafe,
<__SrApiBlock__ as BlockT>::Extrinsic: UnwindSafe + RefUnwindSafe,
__SrApiBlock__::Header: UnwindSafe + RefUnwindSafe,
source§impl<__SrApiBlock__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SrApiBlock__> + 'static> GenesisBuilder<__SrApiBlock__> for RuntimeApiImpl<__SrApiBlock__, RuntimeApiImplCall>where
RuntimeApiImplCall::StateBackend: StateBackend<HashingFor<__SrApiBlock__>>,
&'static RuntimeApiImplCall: Send,
Vec<u8>: UnwindSafe + RefUnwindSafe,
Result: UnwindSafe + RefUnwindSafe,
Option<PresetId>: UnwindSafe + RefUnwindSafe,
Option<Vec<u8>>: UnwindSafe + RefUnwindSafe,
Vec<PresetId>: UnwindSafe + RefUnwindSafe,
__SrApiBlock__::Header: UnwindSafe + RefUnwindSafe,
impl<__SrApiBlock__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SrApiBlock__> + 'static> GenesisBuilder<__SrApiBlock__> for RuntimeApiImpl<__SrApiBlock__, RuntimeApiImplCall>where
RuntimeApiImplCall::StateBackend: StateBackend<HashingFor<__SrApiBlock__>>,
&'static RuntimeApiImplCall: Send,
Vec<u8>: UnwindSafe + RefUnwindSafe,
Result: UnwindSafe + RefUnwindSafe,
Option<PresetId>: UnwindSafe + RefUnwindSafe,
Option<Vec<u8>>: UnwindSafe + RefUnwindSafe,
Vec<PresetId>: UnwindSafe + RefUnwindSafe,
__SrApiBlock__::Header: UnwindSafe + RefUnwindSafe,
§fn build_state(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
json: Vec<u8>,
) -> Result<Result<(), String>, ApiError>
fn build_state( &self, __runtime_api_at_param__: <Block as Block>::Hash, json: Vec<u8>, ) -> Result<Result<(), String>, ApiError>
Build
RuntimeGenesisConfig
from a JSON blob not using any defaults and store it in the
storage. Read moresource§impl<__SrApiBlock__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SrApiBlock__> + 'static> MessengerApi<__SrApiBlock__, u32, H256> for RuntimeApiImpl<__SrApiBlock__, RuntimeApiImplCall>where
RuntimeApiImplCall::StateBackend: StateBackend<HashingFor<__SrApiBlock__>>,
&'static RuntimeApiImplCall: Send,
<__SrApiBlock__ as BlockT>::Extrinsic: UnwindSafe + RefUnwindSafe,
Option<bool>: UnwindSafe + RefUnwindSafe,
Option<ConsensusChainMmrLeafProof<BlockNumber, Hash, H256>>: UnwindSafe + RefUnwindSafe,
DomainId: UnwindSafe + RefUnwindSafe,
Vec<u8>: UnwindSafe + RefUnwindSafe,
MessageKey: UnwindSafe + RefUnwindSafe,
Option<DomainAllowlistUpdates>: UnwindSafe + RefUnwindSafe,
__SrApiBlock__::Header: UnwindSafe + RefUnwindSafe,
impl<__SrApiBlock__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SrApiBlock__> + 'static> MessengerApi<__SrApiBlock__, u32, H256> for RuntimeApiImpl<__SrApiBlock__, RuntimeApiImplCall>where
RuntimeApiImplCall::StateBackend: StateBackend<HashingFor<__SrApiBlock__>>,
&'static RuntimeApiImplCall: Send,
<__SrApiBlock__ as BlockT>::Extrinsic: UnwindSafe + RefUnwindSafe,
Option<bool>: UnwindSafe + RefUnwindSafe,
Option<ConsensusChainMmrLeafProof<BlockNumber, Hash, H256>>: UnwindSafe + RefUnwindSafe,
DomainId: UnwindSafe + RefUnwindSafe,
Vec<u8>: UnwindSafe + RefUnwindSafe,
MessageKey: UnwindSafe + RefUnwindSafe,
Option<DomainAllowlistUpdates>: UnwindSafe + RefUnwindSafe,
__SrApiBlock__::Header: UnwindSafe + RefUnwindSafe,
source§fn is_xdm_mmr_proof_valid(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
ext: &<Block as Block>::Extrinsic,
) -> Result<Option<bool>, ApiError>
fn is_xdm_mmr_proof_valid( &self, __runtime_api_at_param__: <Block as Block>::Hash, ext: &<Block as Block>::Extrinsic, ) -> Result<Option<bool>, ApiError>
Returns
Some(true)
if valid XDM or Some(false)
if not
Returns None if this is not an XDMfn extract_xdm_mmr_proof( &self, __runtime_api_at_param__: <Block as Block>::Hash, ext: &<Block as Block>::Extrinsic, ) -> Result<Option<ConsensusChainMmrLeafProof<CNumber, CHash, H256>>, ApiError>
source§fn confirmed_domain_block_storage_key(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
domain_id: DomainId,
) -> Result<Vec<u8>, ApiError>
fn confirmed_domain_block_storage_key( &self, __runtime_api_at_param__: <Block as Block>::Hash, domain_id: DomainId, ) -> Result<Vec<u8>, ApiError>
Returns the confirmed domain block storage for given domain.
source§fn outbox_storage_key(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
message_key: (ChainId, U256, U256),
) -> Result<Vec<u8>, ApiError>
fn outbox_storage_key( &self, __runtime_api_at_param__: <Block as Block>::Hash, message_key: (ChainId, U256, U256), ) -> Result<Vec<u8>, ApiError>
Returns storage key for outbox for a given message_id.
source§fn inbox_response_storage_key(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
message_key: (ChainId, U256, U256),
) -> Result<Vec<u8>, ApiError>
fn inbox_response_storage_key( &self, __runtime_api_at_param__: <Block as Block>::Hash, message_key: (ChainId, U256, U256), ) -> Result<Vec<u8>, ApiError>
Returns storage key for inbox response for a given message_id.
source§fn domain_chains_allowlist_update(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
domain_id: DomainId,
) -> Result<Option<DomainAllowlistUpdates>, ApiError>
fn domain_chains_allowlist_update( &self, __runtime_api_at_param__: <Block as Block>::Hash, domain_id: DomainId, ) -> Result<Option<DomainAllowlistUpdates>, ApiError>
Returns any domain’s chains allowlist updates on consensus chain.
source§impl<__SrApiBlock__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SrApiBlock__> + 'static> Metadata<__SrApiBlock__> for RuntimeApiImpl<__SrApiBlock__, RuntimeApiImplCall>where
RuntimeApiImplCall::StateBackend: StateBackend<HashingFor<__SrApiBlock__>>,
&'static RuntimeApiImplCall: Send,
OpaqueMetadata: UnwindSafe + RefUnwindSafe,
u32: UnwindSafe + RefUnwindSafe,
Option<OpaqueMetadata>: UnwindSafe + RefUnwindSafe,
Vec<u32>: UnwindSafe + RefUnwindSafe,
__SrApiBlock__::Header: UnwindSafe + RefUnwindSafe,
impl<__SrApiBlock__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SrApiBlock__> + 'static> Metadata<__SrApiBlock__> for RuntimeApiImpl<__SrApiBlock__, RuntimeApiImplCall>where
RuntimeApiImplCall::StateBackend: StateBackend<HashingFor<__SrApiBlock__>>,
&'static RuntimeApiImplCall: Send,
OpaqueMetadata: UnwindSafe + RefUnwindSafe,
u32: UnwindSafe + RefUnwindSafe,
Option<OpaqueMetadata>: UnwindSafe + RefUnwindSafe,
Vec<u32>: UnwindSafe + RefUnwindSafe,
__SrApiBlock__::Header: UnwindSafe + RefUnwindSafe,
§fn metadata(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
) -> Result<OpaqueMetadata, ApiError>
fn metadata( &self, __runtime_api_at_param__: <Block as Block>::Hash, ) -> Result<OpaqueMetadata, ApiError>
Returns the metadata of a runtime.
source§impl<__SrApiBlock__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SrApiBlock__> + 'static> OffchainWorkerApi<__SrApiBlock__> for RuntimeApiImpl<__SrApiBlock__, RuntimeApiImplCall>where
RuntimeApiImplCall::StateBackend: StateBackend<HashingFor<__SrApiBlock__>>,
&'static RuntimeApiImplCall: Send,
<__SrApiBlock__ as BlockT>::Header: UnwindSafe + RefUnwindSafe,
__SrApiBlock__::Header: UnwindSafe + RefUnwindSafe,
impl<__SrApiBlock__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SrApiBlock__> + 'static> OffchainWorkerApi<__SrApiBlock__> for RuntimeApiImpl<__SrApiBlock__, RuntimeApiImplCall>where
RuntimeApiImplCall::StateBackend: StateBackend<HashingFor<__SrApiBlock__>>,
&'static RuntimeApiImplCall: Send,
<__SrApiBlock__ as BlockT>::Header: UnwindSafe + RefUnwindSafe,
__SrApiBlock__::Header: UnwindSafe + RefUnwindSafe,
§fn offchain_worker_before_version_2(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
number: <<Block as Block>::Header as Header>::Number,
) -> Result<(), ApiError>
fn offchain_worker_before_version_2( &self, __runtime_api_at_param__: <Block as Block>::Hash, 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__: <Block as Block>::Hash,
header: &<Block as Block>::Header,
) -> Result<(), ApiError>
fn offchain_worker( &self, __runtime_api_at_param__: <Block as Block>::Hash, header: &<Block as Block>::Header, ) -> Result<(), ApiError>
Starts the off-chain task for given block header.
source§impl<__SrApiBlock__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SrApiBlock__> + 'static> RelayerApi<__SrApiBlock__, u32, u32, H256> for RuntimeApiImpl<__SrApiBlock__, RuntimeApiImplCall>where
RuntimeApiImplCall::StateBackend: StateBackend<HashingFor<__SrApiBlock__>>,
&'static RuntimeApiImplCall: Send,
BlockMessagesWithStorageKey: UnwindSafe + RefUnwindSafe,
CrossDomainMessage<NumberFor<__SrApiBlock__>, <__SrApiBlock__ as BlockT>::Hash, <__SrApiBlock__ as BlockT>::Hash>: UnwindSafe + RefUnwindSafe,
Option<<__SrApiBlock__ as BlockT>::Extrinsic>: UnwindSafe + RefUnwindSafe,
ChainId: UnwindSafe + RefUnwindSafe,
MessageId: UnwindSafe + RefUnwindSafe,
bool: UnwindSafe + RefUnwindSafe,
BTreeSet<(ChainId, ChannelId)>: UnwindSafe + RefUnwindSafe,
ChannelId: UnwindSafe + RefUnwindSafe,
Vec<u8>: UnwindSafe + RefUnwindSafe,
__SrApiBlock__::Header: UnwindSafe + RefUnwindSafe,
impl<__SrApiBlock__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SrApiBlock__> + 'static> RelayerApi<__SrApiBlock__, u32, u32, H256> for RuntimeApiImpl<__SrApiBlock__, RuntimeApiImplCall>where
RuntimeApiImplCall::StateBackend: StateBackend<HashingFor<__SrApiBlock__>>,
&'static RuntimeApiImplCall: Send,
BlockMessagesWithStorageKey: UnwindSafe + RefUnwindSafe,
CrossDomainMessage<NumberFor<__SrApiBlock__>, <__SrApiBlock__ as BlockT>::Hash, <__SrApiBlock__ as BlockT>::Hash>: UnwindSafe + RefUnwindSafe,
Option<<__SrApiBlock__ as BlockT>::Extrinsic>: UnwindSafe + RefUnwindSafe,
ChainId: UnwindSafe + RefUnwindSafe,
MessageId: UnwindSafe + RefUnwindSafe,
bool: UnwindSafe + RefUnwindSafe,
BTreeSet<(ChainId, ChannelId)>: UnwindSafe + RefUnwindSafe,
ChannelId: UnwindSafe + RefUnwindSafe,
Vec<u8>: UnwindSafe + RefUnwindSafe,
__SrApiBlock__::Header: UnwindSafe + RefUnwindSafe,
source§fn block_messages(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
) -> Result<BlockMessagesWithStorageKey, ApiError>
fn block_messages( &self, __runtime_api_at_param__: <Block as Block>::Hash, ) -> Result<BlockMessagesWithStorageKey, ApiError>
Returns all the outbox and inbox responses to deliver.
Storage key is used to generate the storage proof for the message.
source§fn outbox_message_unsigned(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
msg: CrossDomainMessage<CNumber, CHash, H256>,
) -> Result<Option<<Block as Block>::Extrinsic>, ApiError>
fn outbox_message_unsigned( &self, __runtime_api_at_param__: <Block as Block>::Hash, msg: CrossDomainMessage<CNumber, CHash, H256>, ) -> Result<Option<<Block as Block>::Extrinsic>, ApiError>
Constructs an outbox message to the dst_chain as an unsigned extrinsic.
source§fn inbox_response_message_unsigned(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
msg: CrossDomainMessage<CNumber, CHash, H256>,
) -> Result<Option<<Block as Block>::Extrinsic>, ApiError>
fn inbox_response_message_unsigned( &self, __runtime_api_at_param__: <Block as Block>::Hash, msg: CrossDomainMessage<CNumber, CHash, H256>, ) -> Result<Option<<Block as Block>::Extrinsic>, ApiError>
Constructs an inbox response message to the dst_chain as an unsigned extrinsic.
source§fn should_relay_outbox_message(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
dst_chain_id: ChainId,
msg_id: (U256, U256),
) -> Result<bool, ApiError>
fn should_relay_outbox_message( &self, __runtime_api_at_param__: <Block as Block>::Hash, dst_chain_id: ChainId, msg_id: (U256, U256), ) -> Result<bool, ApiError>
Returns true if the outbox message is ready to be relayed to dst_chain.
source§fn should_relay_inbox_message_response(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
dst_chain_id: ChainId,
msg_id: (U256, U256),
) -> Result<bool, ApiError>
fn should_relay_inbox_message_response( &self, __runtime_api_at_param__: <Block as Block>::Hash, dst_chain_id: ChainId, msg_id: (U256, U256), ) -> Result<bool, ApiError>
Returns true if the inbox message response is ready to be relayed to dst_chain.
source§impl<__SrApiBlock__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SrApiBlock__> + 'static> SessionKeys<__SrApiBlock__> for RuntimeApiImpl<__SrApiBlock__, RuntimeApiImplCall>where
RuntimeApiImplCall::StateBackend: StateBackend<HashingFor<__SrApiBlock__>>,
&'static RuntimeApiImplCall: Send,
Option<Vec<u8>>: UnwindSafe + RefUnwindSafe,
Vec<u8>: UnwindSafe + RefUnwindSafe,
Option<Vec<(Vec<u8>, KeyTypeId)>>: UnwindSafe + RefUnwindSafe,
__SrApiBlock__::Header: UnwindSafe + RefUnwindSafe,
impl<__SrApiBlock__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SrApiBlock__> + 'static> SessionKeys<__SrApiBlock__> for RuntimeApiImpl<__SrApiBlock__, RuntimeApiImplCall>where
RuntimeApiImplCall::StateBackend: StateBackend<HashingFor<__SrApiBlock__>>,
&'static RuntimeApiImplCall: Send,
Option<Vec<u8>>: UnwindSafe + RefUnwindSafe,
Vec<u8>: UnwindSafe + RefUnwindSafe,
Option<Vec<(Vec<u8>, KeyTypeId)>>: UnwindSafe + RefUnwindSafe,
__SrApiBlock__::Header: UnwindSafe + RefUnwindSafe,
source§impl<__SrApiBlock__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SrApiBlock__> + 'static> TaggedTransactionQueue<__SrApiBlock__> for RuntimeApiImpl<__SrApiBlock__, RuntimeApiImplCall>where
RuntimeApiImplCall::StateBackend: StateBackend<HashingFor<__SrApiBlock__>>,
&'static RuntimeApiImplCall: Send,
TransactionSource: UnwindSafe + RefUnwindSafe,
<__SrApiBlock__ as BlockT>::Extrinsic: UnwindSafe + RefUnwindSafe,
<__SrApiBlock__ as BlockT>::Hash: UnwindSafe + RefUnwindSafe,
TransactionValidity: UnwindSafe + RefUnwindSafe,
__SrApiBlock__::Header: UnwindSafe + RefUnwindSafe,
impl<__SrApiBlock__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SrApiBlock__> + 'static> TaggedTransactionQueue<__SrApiBlock__> for RuntimeApiImpl<__SrApiBlock__, RuntimeApiImplCall>where
RuntimeApiImplCall::StateBackend: StateBackend<HashingFor<__SrApiBlock__>>,
&'static RuntimeApiImplCall: Send,
TransactionSource: UnwindSafe + RefUnwindSafe,
<__SrApiBlock__ as BlockT>::Extrinsic: UnwindSafe + RefUnwindSafe,
<__SrApiBlock__ as BlockT>::Hash: UnwindSafe + RefUnwindSafe,
TransactionValidity: UnwindSafe + RefUnwindSafe,
__SrApiBlock__::Header: UnwindSafe + RefUnwindSafe,
§fn validate_transaction_before_version_2(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
tx: <Block as Block>::Extrinsic,
) -> Result<Result<ValidTransaction, TransactionValidityError>, ApiError>
fn validate_transaction_before_version_2( &self, __runtime_api_at_param__: <Block as Block>::Hash, 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__: <Block as Block>::Hash,
source: TransactionSource,
tx: <Block as Block>::Extrinsic,
) -> Result<Result<ValidTransaction, TransactionValidityError>, ApiError>
fn validate_transaction_before_version_3( &self, __runtime_api_at_param__: <Block as Block>::Hash, source: TransactionSource, tx: <Block as Block>::Extrinsic, ) -> Result<Result<ValidTransaction, TransactionValidityError>, ApiError>
👎Deprecated
Validate the transaction.
§fn validate_transaction(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
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__: <Block as Block>::Hash, 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<__SrApiBlock__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SrApiBlock__> + 'static> TransactionPaymentApi<__SrApiBlock__, u128> for RuntimeApiImpl<__SrApiBlock__, RuntimeApiImplCall>where
RuntimeApiImplCall::StateBackend: StateBackend<HashingFor<__SrApiBlock__>>,
&'static RuntimeApiImplCall: Send,
<__SrApiBlock__ as BlockT>::Extrinsic: UnwindSafe + RefUnwindSafe,
u32: UnwindSafe + RefUnwindSafe,
RuntimeDispatchInfo<Balance>: UnwindSafe + RefUnwindSafe,
FeeDetails<Balance>: UnwindSafe + RefUnwindSafe,
Weight: UnwindSafe + RefUnwindSafe,
Balance: UnwindSafe + RefUnwindSafe,
__SrApiBlock__::Header: UnwindSafe + RefUnwindSafe,
impl<__SrApiBlock__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SrApiBlock__> + 'static> TransactionPaymentApi<__SrApiBlock__, u128> for RuntimeApiImpl<__SrApiBlock__, RuntimeApiImplCall>where
RuntimeApiImplCall::StateBackend: StateBackend<HashingFor<__SrApiBlock__>>,
&'static RuntimeApiImplCall: Send,
<__SrApiBlock__ as BlockT>::Extrinsic: UnwindSafe + RefUnwindSafe,
u32: UnwindSafe + RefUnwindSafe,
RuntimeDispatchInfo<Balance>: UnwindSafe + RefUnwindSafe,
FeeDetails<Balance>: UnwindSafe + RefUnwindSafe,
Weight: UnwindSafe + RefUnwindSafe,
Balance: UnwindSafe + RefUnwindSafe,
__SrApiBlock__::Header: UnwindSafe + RefUnwindSafe,
fn query_info( &self, __runtime_api_at_param__: <Block as Block>::Hash, uxt: <Block as Block>::Extrinsic, len: u32, ) -> Result<RuntimeDispatchInfo<Balance>, ApiError>
fn query_fee_details( &self, __runtime_api_at_param__: <Block as Block>::Hash, uxt: <Block as Block>::Extrinsic, len: u32, ) -> Result<FeeDetails<Balance>, ApiError>
fn query_weight_to_fee( &self, __runtime_api_at_param__: <Block as Block>::Hash, weight: Weight, ) -> Result<Balance, ApiError>
fn query_length_to_fee( &self, __runtime_api_at_param__: <Block as Block>::Hash, length: u32, ) -> Result<Balance, ApiError>
Auto Trait Implementations§
impl<Block, C> !Freeze for RuntimeApiImpl<Block, C>
impl<Block, C> !RefUnwindSafe for RuntimeApiImpl<Block, C>
impl<Block, C> Send for RuntimeApiImpl<Block, C>where
C: Sync,
impl<Block, C> !Sync for RuntimeApiImpl<Block, C>
impl<Block, C> Unpin for RuntimeApiImpl<Block, C>
impl<Block, C> !UnwindSafe for RuntimeApiImpl<Block, C>
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§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> 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>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more§impl<T> IsType<T> for T
impl<T> IsType<T> for T
§impl<T, Outer> IsWrappedBy<Outer> for T
impl<T, Outer> IsWrappedBy<Outer> 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<T, U> TryIntoKey<U> for Twhere
U: TryFromKey<T>,
impl<T, U> TryIntoKey<U> for Twhere
U: TryFromKey<T>,
type Error = <U as TryFromKey<T>>::Error
fn try_into_key(self) -> Result<U, <U as TryFromKey<T>>::Error>
§impl<S, T> UncheckedInto<T> for 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 S
impl<T, S> UniqueSaturatedInto<T> for S
§fn unique_saturated_into(self) -> T
fn unique_saturated_into(self) -> T
Consume self to return an equivalent value of
T
.