Constants§
- ADDRESS_
TABLE_ SUBSPACE - ARBOS_
STATE_ ADDRESS - ArbOS state storage address (NOT the ArbOS sender address 0xa4b05).
- BLOCKHASHES_
SUBSPACE - BROTLI_
COMPRESSION_ LEVEL_ OFFSET - CACHE_
MANAGERS_ KEY - CACHE_
MANAGERS_ SUBSPACE - Cache managers subspace within ArbOS (PROGRAMS → CACHE_MANAGERS).
Not a direct root subspace; derive at runtime via
programs_cache_managers_key(). - CHAIN_
CONFIG_ SUBSPACE - CHAIN_
ID_ OFFSET - CHAIN_
OWNER_ SUBSPACE - CURRENT_
REDEEMER_ OFFSET - Scratch slot for the current redeemer (refund_to address) during retry tx. Written by the executor before retry tx EVM execution so GetCurrentRedeemer can return the correct address.
- CURRENT_
RETRYABLE_ OFFSET - Scratch slot for the currently-executing retryable ticket ID. Written by the executor before retry tx EVM execution so the Redeem precompile can reject self-modification attempts. Zero means no retryable is executing.
- CURRENT_
TX_ POSTER_ FEE_ OFFSET - Scratch slot used to pass per-transaction L1 poster fee from the executor into the EVM where the ArbGasInfo precompile can read it. The value is written before EVM execution and has no long-term significance — it’s overwritten every transaction.
- FEATURES_
SUBSPACE - FILTERED_
FUNDS_ RECIPIENT_ OFFSET - FILTERED_
TX_ STATE_ ADDRESS - Filtered transactions backing storage account (separate from ArbOS state).
- GENESIS_
BLOCK_ NUM_ OFFSET - INFRA_
FEE_ ACCOUNT_ OFFSET - L1_
PRICING_ SUBSPACE - Subspace keys for ArbOS partitioned storage (matching arbos_state constants).
- L2_
PRICING_ SUBSPACE - NATIVE_
TOKEN_ ENABLED_ FROM_ TIME_ OFFSET - NATIVE_
TOKEN_ SUBSPACE - NETWORK_
FEE_ ACCOUNT_ OFFSET - PROGRAMS_
DATA_ KEY - PROGRAMS_
PARAMS_ KEY - Subspace keys within the PROGRAMS subspace.
- PROGRAMS_
SUBSPACE - RETRYABLES_
SUBSPACE - ROOT_
STORAGE_ KEY - The root storage key for ArbOS state (empty, since base_key is B256::ZERO).
- SEND_
MERKLE_ SUBSPACE - TRANSACTION_
FILTERER_ SUBSPACE - TX_
FILTERING_ ENABLED_ FROM_ TIME_ OFFSET - UPGRADE_
TIMESTAMP_ OFFSET - UPGRADE_
VERSION_ OFFSET - VERSION_
OFFSET - Root-level ArbOS state field offsets.
Functions§
- current_
redeemer_ slot - Compute the storage slot for the current redeemer address.
- current_
retryable_ slot - Compute the storage slot for the current retryable ticket ID.
- current_
tx_ poster_ fee_ slot - Compute the storage slot for the per-tx poster fee.
- derive_
subspace_ key - Derive a subspace storage key from a parent key and child key bytes.
- gas_
constraints_ vec_ key - Gas constraints vector key.
- l2_
pricing_ subspace - L2 pricing subspace key (root → L2_PRICING_SUBSPACE).
- map_
slot - Compute the EVM storage slot for an ArbOS field at a given offset
within a storage scope defined by
storage_key. - map_
slot_ b256 - Compute the EVM storage slot for a B256 key within a storage scope.
- multi_
gas_ base_ fees_ subspace - Multi-gas base fees subspace key.
- multi_
gas_ constraints_ vec_ key - Multi-gas constraints vector key.
- root_
slot - Compute a root-level ArbOS state slot.
- subspace_
slot - Compute a slot within a subspace of the root ArbOS state.
- vector_
element_ field - Slot for field
offsetwithin elementindexof a vector. - vector_
element_ key - Subspace key for element
indexwithin a vector. - vector_
length_ slot - Slot for the length of a sub-storage vector.