pub trait Database {
    type Error;

    fn basic(
        &mut self,
        address: B160
    ) -> Result<Option<AccountInfo>, Self::Error>; fn code_by_hash(&mut self, code_hash: B256) -> Result<Bytecode, Self::Error>; fn storage(&mut self, address: B160, index: U256) -> Result<U256, Self::Error>; fn block_hash(&mut self, number: U256) -> Result<B256, Self::Error>; }

Required Associated Types§

Required Methods§

Get basic account information.

Get account code by its hash

Get storage value of address at index.

Implementations on Foreign Types§

Implementors§