pub trait HashedCursorFactory {
type AccountCursor: HashedCursor<Value = Account>;
type StorageCursor: HashedStorageCursor<Value = U256>;
// Required methods
fn hashed_account_cursor(
&self,
) -> Result<Self::AccountCursor, DatabaseError>;
fn hashed_storage_cursor(
&self,
hashed_address: B256,
) -> Result<Self::StorageCursor, DatabaseError>;
}
Expand description
The factory trait for creating cursors over the hashed state.
Required Associated Types§
Sourcetype AccountCursor: HashedCursor<Value = Account>
type AccountCursor: HashedCursor<Value = Account>
The hashed account cursor type.
Sourcetype StorageCursor: HashedStorageCursor<Value = U256>
type StorageCursor: HashedStorageCursor<Value = U256>
The hashed storage cursor type.
Required Methods§
Sourcefn hashed_account_cursor(&self) -> Result<Self::AccountCursor, DatabaseError>
fn hashed_account_cursor(&self) -> Result<Self::AccountCursor, DatabaseError>
Returns a cursor for iterating over all hashed accounts in the state.
Sourcefn hashed_storage_cursor(
&self,
hashed_address: B256,
) -> Result<Self::StorageCursor, DatabaseError>
fn hashed_storage_cursor( &self, hashed_address: B256, ) -> Result<Self::StorageCursor, DatabaseError>
Returns a cursor for iterating over all hashed storage entries in the state.