pub trait StorageOverride<Block: BlockT>: Send + Sync {
// Required methods
fn account_code_at(
&self,
at: Block::Hash,
address: Address,
) -> Option<Vec<u8>>;
fn account_storage_at(
&self,
at: Block::Hash,
address: Address,
index: U256,
) -> Option<H256>;
fn current_block(&self, at: Block::Hash) -> Option<BlockV3>;
fn current_receipts(&self, at: Block::Hash) -> Option<Vec<ReceiptV4>>;
fn current_transaction_statuses(
&self,
at: Block::Hash,
) -> Option<Vec<TransactionStatus>>;
fn elasticity(&self, at: Block::Hash) -> Option<Permill>;
fn is_eip1559(&self, at: Block::Hash) -> bool;
}
Expand description
This trait is used to obtain Ethereum-related data.
Required Methods§
Sourcefn account_code_at(&self, at: Block::Hash, address: Address) -> Option<Vec<u8>>
fn account_code_at(&self, at: Block::Hash, address: Address) -> Option<Vec<u8>>
Return the code with the given address.
Sourcefn account_storage_at(
&self,
at: Block::Hash,
address: Address,
index: U256,
) -> Option<H256>
fn account_storage_at( &self, at: Block::Hash, address: Address, index: U256, ) -> Option<H256>
Return the storage data with the given address and storage index.
Sourcefn current_block(&self, at: Block::Hash) -> Option<BlockV3>
fn current_block(&self, at: Block::Hash) -> Option<BlockV3>
Return the current ethereum block.
Sourcefn current_receipts(&self, at: Block::Hash) -> Option<Vec<ReceiptV4>>
fn current_receipts(&self, at: Block::Hash) -> Option<Vec<ReceiptV4>>
Return the current ethereum transaction receipt.
Sourcefn current_transaction_statuses(
&self,
at: Block::Hash,
) -> Option<Vec<TransactionStatus>>
fn current_transaction_statuses( &self, at: Block::Hash, ) -> Option<Vec<TransactionStatus>>
Return the current ethereum transaction status.
Sourcefn elasticity(&self, at: Block::Hash) -> Option<Permill>
fn elasticity(&self, at: Block::Hash) -> Option<Permill>
Return the elasticity multiplier at the given post-eip1559 block.
Sourcefn is_eip1559(&self, at: Block::Hash) -> bool
fn is_eip1559(&self, at: Block::Hash) -> bool
Return true
if the request block is post-eip1559.