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§
Functions§
- allow_
debug_ precompiles - Returns the
AllowDebugPrecompilesflag declared in the chain spec’sconfig.arbitrumsection, defaulting tofalse. - compute_
arbos_ alloc - Run
genesis::initialize_arbos_statein 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_statein 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.Marshalofparams.ChainConfigwould. Field order, address casing, and which fields are emitted (vs. dropped viaomitempty) match Go’s encoder so the resulting bytes are byte-identical to what ArbOS init stores in thechain_configsubspace at genesis.