Module layout

Module layout 

Source
Expand description

ArbOS storage layout primitives — subspace keys and slot derivation.

Modules§

programs
Partition keys within the programs subspace.

Constants§

ADDRESS_TABLE_SUBSPACE
BLOCKHASHES_SUBSPACE
BROTLI_COMPRESSION_LEVEL_OFFSET
CHAIN_CONFIG_SUBSPACE
CHAIN_ID_OFFSET
CHAIN_OWNER_SUBSPACE
COLLECT_TIPS_OFFSET
FEATURES_SUBSPACE
FILTERED_FUNDS_RECIPIENT_OFFSET
GENESIS_BLOCK_NUM_OFFSET
INFRA_FEE_ACCOUNT_OFFSET
L1_PRICING_SUBSPACE
L2_PRICING_SUBSPACE
NATIVE_TOKEN_ENABLED_FROM_TIME_OFFSET
NATIVE_TOKEN_SUBSPACE
NETWORK_FEE_ACCOUNT_OFFSET
PROGRAMS_SUBSPACE
RETRYABLES_SUBSPACE
ROOT_STORAGE_KEY
SEND_MERKLE_SUBSPACE
TRANSACTION_FILTERER_SUBSPACE
TRANSACTION_FILTERING_ENABLED_FROM_TIME_OFFSET
UPGRADE_TIMESTAMP_OFFSET
UPGRADE_VERSION_OFFSET
VERSION_OFFSET

Functions§

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).
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.
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.