pub trait Database {
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 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.