Struct fc_storage::RuntimeApiStorageOverride
source · pub struct RuntimeApiStorageOverride<B: BlockT, C> { /* private fields */ }
Expand description
A wrapper type for the Runtime API. This type implements StorageOverride
, so it can be used
when calling the runtime API is desired but a dyn StorageOverride
is required.
Implementations§
Trait Implementations§
source§impl<Block, C> StorageOverride<Block> for RuntimeApiStorageOverride<Block, C>
impl<Block, C> StorageOverride<Block> for RuntimeApiStorageOverride<Block, C>
source§fn account_code_at(
&self,
block_hash: Block::Hash,
address: H160
) -> Option<Vec<u8>>
fn account_code_at( &self, block_hash: Block::Hash, address: H160 ) -> Option<Vec<u8>>
For a given account address, returns pallet_evm::AccountCodes.
source§fn storage_at(
&self,
block_hash: Block::Hash,
address: H160,
index: U256
) -> Option<H256>
fn storage_at( &self, block_hash: Block::Hash, address: H160, index: U256 ) -> Option<H256>
For a given account address and index, returns pallet_evm::AccountStorages.
source§fn current_block(&self, block_hash: Block::Hash) -> Option<BlockV2>
fn current_block(&self, block_hash: Block::Hash) -> Option<BlockV2>
Return the current block.
source§fn current_receipts(&self, block_hash: Block::Hash) -> Option<Vec<ReceiptV3>>
fn current_receipts(&self, block_hash: Block::Hash) -> Option<Vec<ReceiptV3>>
Return the current receipt.
source§fn current_transaction_statuses(
&self,
block_hash: Block::Hash
) -> Option<Vec<TransactionStatus>>
fn current_transaction_statuses( &self, block_hash: Block::Hash ) -> Option<Vec<TransactionStatus>>
Return the current transaction status.
source§fn elasticity(&self, block_hash: Block::Hash) -> Option<Permill>
fn elasticity(&self, block_hash: Block::Hash) -> Option<Permill>
Return the elasticity multiplier at the give post-eip1559 height.
source§fn is_eip1559(&self, block_hash: Block::Hash) -> bool
fn is_eip1559(&self, block_hash: Block::Hash) -> bool
Return
true
if the request BlockId is post-eip1559.Auto Trait Implementations§
impl<B, C> RefUnwindSafe for RuntimeApiStorageOverride<B, C>where
B: RefUnwindSafe,
C: RefUnwindSafe,
impl<B, C> Send for RuntimeApiStorageOverride<B, C>
impl<B, C> Sync for RuntimeApiStorageOverride<B, C>
impl<B, C> Unpin for RuntimeApiStorageOverride<B, C>where
B: Unpin,
impl<B, C> UnwindSafe for RuntimeApiStorageOverride<B, C>where
B: UnwindSafe,
C: RefUnwindSafe,
Blanket Implementations§
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>,
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§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
.