Module storage_slot

Module storage_slot 

Source

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 offset within element index of a vector.
vector_element_key
Subspace key for element index within a vector.
vector_length_slot
Slot for the length of a sub-storage vector.