Trait revm::Database [−][src]
pub trait Database {
fn exists(&mut self, address: H160) -> Option<AccountInfo>;
fn basic(&mut self, address: H160) -> AccountInfo;
fn code_by_hash(&mut self, code_hash: H256) -> Bytes;
fn storage(&mut self, address: H160, index: U256) -> U256;
fn block_hash(&mut self, number: U256) -> H256;
}
Required methods
fn exists(&mut self, address: H160) -> Option<AccountInfo>
fn exists(&mut self, address: H160) -> Option<AccountInfo>
Whether account at address exists.
fn basic(&mut self, address: H160) -> AccountInfo
fn basic(&mut self, address: H160) -> AccountInfo
Get basic account information.
fn code_by_hash(&mut self, code_hash: H256) -> Bytes
fn code_by_hash(&mut self, code_hash: H256) -> Bytes
Get account code by its hash
Get storage value of address at index.