pub trait StateRef {
    type Error;

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

Required Associated Types§

Required Methods§

Whether account at address exists. Get basic account information.

Get account code by its hash

Get storage value of address at index.

Implementations on Foreign Types§

Implementors§