alloy_eip7928/constants.rs
1//! Constants for eip-7928. Chosen to support a 630 million gas limit.
2
3use alloy_primitives::{B256, b256};
4
5/// Maximum number of transactions per block.
6pub const MAX_TXS_PER_BLOCK: usize = 30_000;
7
8/// Maximum number of unique storage slots modified in a block.
9pub const MAX_SLOTS: usize = 300_000;
10
11/// Maximum number of unique accounts accessed in a block.
12pub const MAX_ACCOUNTS: usize = 300_000;
13
14/// Maximum contract bytecode size in bytes.
15pub const MAX_CODE_SIZE: usize = 24_576;
16
17/// Type alias for block index for eip-7928.
18pub type BlockAccessIndex = u64;
19
20/// The empty block access list hash.
21pub const EMPTY_BLOCK_ACCESS_LIST_HASH: B256 =
22 b256!("0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347");