Module bal

Module bal 

Source
Expand description

Block Access List (BAL) data structures for efficient state access in blockchain execution.

This module provides types for managing Block Access Lists, which optimize state access by pre-computing and organizing data that will be accessed during block execution.

§Key Types

  • BalIndex: Block access index (0 for pre-execution, 1..n for transactions, n+1 for post-execution)
  • Bal: Main BAL structure containing a map of accounts
  • BalWrites<T>: Array of (index, value) pairs representing sequential writes to a state item
  • AccountBal: Complete BAL structure for an account (balance, nonce, code, and storage)
  • AccountInfoBal: Account info BAL data (nonce, balance, code)
  • StorageBal: Storage-level BAL data for an account

Re-exports§

pub use account::AccountBal;
pub use account::AccountInfoBal;
pub use account::StorageBal;
pub use writes::BalWrites;

Modules§

account
BAL builder module
alloy
Alloy BAL types conversions.
writes
BAL containing writes.

Structs§

Bal
BAL structure.

Enums§

BalError
BAL error.

Type Aliases§

BalIndex
Block access index (0 for pre-execution, 1..n for transactions, n+1 for post-execution)