Module chainspec

Module chainspec 

Source
Expand description

Chain spec parser that pre-populates the genesis alloc with ArbOS state when the spec declares config.arbitrum.InitialArbOSVersion but does not include the ArbOS state account in the alloc.

Structs§

ArbChainSpecParser

Functions§

allow_debug_precompiles
Returns the AllowDebugPrecompiles flag declared in the chain spec’s config.arbitrum section, defaulting to false.
compute_arbos_alloc
Run genesis::initialize_arbos_state in a scratch in-memory state and dump the resulting account/storage map. Returns one entry per account touched (the ArbOS state address plus all genesis precompile markers).
compute_arbos_alloc_with_config
Run genesis::initialize_arbos_state in a scratch in-memory state using a caller-supplied serialized chain config and initial L1 base fee.
serialize_chain_config_go_style
Serialize a chain-config JSON object the way Go’s json.Marshal of params.ChainConfig would. Field order, address casing, and which fields are emitted (vs. dropped via omitempty) match Go’s encoder so the resulting bytes are byte-identical to what ArbOS init stores in the chain_config subspace at genesis.