Trait frontier_template_node::eth::StorageOverride

source ·
pub trait StorageOverride<Block>: Send + Sync
where Block: Block,
{ // Required methods fn account_code_at( &self, at: <Block as Block>::Hash, address: H160, ) -> Option<Vec<u8>>; fn account_storage_at( &self, at: <Block as Block>::Hash, address: H160, index: U256, ) -> Option<H256>; fn current_block( &self, at: <Block as Block>::Hash, ) -> Option<Block<TransactionV2>>; fn current_receipts( &self, at: <Block as Block>::Hash, ) -> Option<Vec<ReceiptV3>>; fn current_transaction_statuses( &self, at: <Block as Block>::Hash, ) -> Option<Vec<TransactionStatus>>; fn elasticity(&self, at: <Block as Block>::Hash) -> Option<Permill>; fn is_eip1559(&self, at: <Block as Block>::Hash) -> bool; }
Expand description

This trait is used to obtain Ethereum-related data.

Required Methods§

source

fn account_code_at( &self, at: <Block as Block>::Hash, address: H160, ) -> Option<Vec<u8>>

Return the code with the given address.

source

fn account_storage_at( &self, at: <Block as Block>::Hash, address: H160, index: U256, ) -> Option<H256>

Return the storage data with the given address and storage index.

source

fn current_block( &self, at: <Block as Block>::Hash, ) -> Option<Block<TransactionV2>>

Return the current ethereum block.

source

fn current_receipts(&self, at: <Block as Block>::Hash) -> Option<Vec<ReceiptV3>>

Return the current ethereum transaction receipt.

source

fn current_transaction_statuses( &self, at: <Block as Block>::Hash, ) -> Option<Vec<TransactionStatus>>

Return the current ethereum transaction status.

source

fn elasticity(&self, at: <Block as Block>::Hash) -> Option<Permill>

Return the elasticity multiplier at the given post-eip1559 block.

source

fn is_eip1559(&self, at: <Block as Block>::Hash) -> bool

Return true if the request block is post-eip1559.

Implementors§

source§

impl<'a, B, C, BE> StorageOverride<B> for fc_storage::overrides::schema::v1::SchemaStorageOverrideRef<'a, B, C, BE>
where B: Block, C: StorageProvider<B, BE> + Send + Sync, BE: Backend<B>,

source§

impl<'a, B, C, BE> StorageOverride<B> for fc_storage::overrides::schema::v2::SchemaStorageOverrideRef<'a, B, C, BE>
where B: Block, C: StorageProvider<B, BE> + Send + Sync, BE: Backend<B>,

source§

impl<'a, B, C, BE> StorageOverride<B> for fc_storage::overrides::schema::v3::SchemaStorageOverrideRef<'a, B, C, BE>
where B: Block, C: StorageProvider<B, BE> + Send + Sync, BE: Backend<B>,

source§

impl<B, C> StorageOverride<B> for RuntimeApiStorageOverride<B, C>
where B: Block, C: ProvideRuntimeApi<B> + Send + Sync, <C as ProvideRuntimeApi<B>>::Api: EthereumRuntimeRPCApi<B>,

source§

impl<B, C, BE> StorageOverride<B> for fc_storage::overrides::schema::v1::SchemaStorageOverride<B, C, BE>
where B: Block, C: StorageProvider<B, BE> + Send + Sync, BE: Backend<B>,

source§

impl<B, C, BE> StorageOverride<B> for fc_storage::overrides::schema::v2::SchemaStorageOverride<B, C, BE>
where B: Block, C: StorageProvider<B, BE> + Send + Sync, BE: Backend<B>,

source§

impl<B, C, BE> StorageOverride<B> for fc_storage::overrides::schema::v3::SchemaStorageOverride<B, C, BE>
where B: Block, C: StorageProvider<B, BE> + Send + Sync, BE: Backend<B>,

source§

impl<B, C, BE> StorageOverride<B> for StorageOverrideHandler<B, C, BE>
where B: Block, C: ProvideRuntimeApi<B> + StorageProvider<B, BE> + Send + Sync + 'static, <C as ProvideRuntimeApi<B>>::Api: EthereumRuntimeRPCApi<B>, BE: Backend<B> + 'static,