Trait frontier_template_node::eth::StorageOverride
source · pub trait StorageOverride<Block>: Send + Syncwhere
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§
sourcefn account_code_at(
&self,
at: <Block as Block>::Hash,
address: H160,
) -> Option<Vec<u8>>
fn account_code_at( &self, at: <Block as Block>::Hash, address: H160, ) -> Option<Vec<u8>>
Return the code with the given address.
sourcefn account_storage_at(
&self,
at: <Block as Block>::Hash,
address: H160,
index: U256,
) -> Option<H256>
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.
sourcefn current_block(
&self,
at: <Block as Block>::Hash,
) -> Option<Block<TransactionV2>>
fn current_block( &self, at: <Block as Block>::Hash, ) -> Option<Block<TransactionV2>>
Return the current ethereum block.
sourcefn current_receipts(&self, at: <Block as Block>::Hash) -> Option<Vec<ReceiptV3>>
fn current_receipts(&self, at: <Block as Block>::Hash) -> Option<Vec<ReceiptV3>>
Return the current ethereum transaction receipt.
sourcefn current_transaction_statuses(
&self,
at: <Block as Block>::Hash,
) -> Option<Vec<TransactionStatus>>
fn current_transaction_statuses( &self, at: <Block as Block>::Hash, ) -> Option<Vec<TransactionStatus>>
Return the current ethereum transaction status.
sourcefn elasticity(&self, at: <Block as Block>::Hash) -> Option<Permill>
fn elasticity(&self, at: <Block as Block>::Hash) -> Option<Permill>
Return the elasticity multiplier at the given post-eip1559 block.
sourcefn is_eip1559(&self, at: <Block as Block>::Hash) -> bool
fn is_eip1559(&self, at: <Block as Block>::Hash) -> bool
Return true
if the request block is post-eip1559.