Crate op_alloy_genesis

Source
Expand description

§op-alloy-genesis

CI op-alloy-genesis crate MIT License Apache License Book

Genesis types for Optimism.

§Usage

By default, op-alloy-genesis enables both std and serde features.

If you’re working in a no_std environment (like kona), disable default features like so.

[dependencies]
op-alloy-genesis = { version = "x.y.z", default-features = false, features = ["serde"] }
§Rollup Config

op-alloy-genesis exports a RollupConfig, the primary genesis type for Optimism Consensus.

§Provenance

This is based off of alloy-genesis.

Structs§

AddressList
The set of network-specific contracts for a given chain.
AltDAConfig
AltDA configuration.
ChainConfig
Defines core blockchain settings per block.
ChainGenesis
Chain genesis information.
HardForkConfiguration
Hardfork configuration.
OpBaseFeeParams
Optimism Base Fee Configuration
RollupConfig
The Rollup configuration.
SystemAccounts
System accounts
SystemConfig
System configuration.

Enums§

BatcherUpdateError
An error for updating the batcher address on the SystemConfig.
EIP1559UpdateError
An error for updating the EIP-1559 parameters on the SystemConfig.
GasConfigUpdateError
An error for updating the gas config on the SystemConfig.
GasLimitUpdateError
An error for updating the gas limit on the SystemConfig.
LogProcessingError
An error occurred while processing the update log.
SuperchainLevel
Level of integration with the superchain.
SystemConfigUpdateError
An error for processing the SystemConfig update log.
SystemConfigUpdateType
Represents type of update to the system config.

Constants§

BASE_SEPOLIA_BASE_FEE_PARAMS
Get the base fee parameters for Base Sepolia.
BASE_SEPOLIA_EIP1559_DEFAULT_ELASTICITY_MULTIPLIER
Base fee max change denominator for Base Sepolia as defined in the Optimism transaction costs doc.
CONFIG_UPDATE_EVENT_VERSION_0
The initial version of the system config event log.
CONFIG_UPDATE_TOPIC
keccak256("ConfigUpdate(uint256,uint8,bytes)")
FJORD_MAX_SEQUENCER_DRIFT
The max sequencer drift when the Fjord hardfork is active.
GRANITE_CHANNEL_TIMEOUT
The channel timeout once the Granite hardfork is active.
MAX_RLP_BYTES_PER_CHANNEL_BEDROCK
The max rlp bytes per channel for the Bedrock hardfork.
MAX_RLP_BYTES_PER_CHANNEL_FJORD
The max rlp bytes per channel for the Fjord hardfork.
OP_MAINNET_BASE_FEE_PARAMS
Get the base fee parameters for Optimism Mainnet.
OP_MAINNET_EIP1559_BASE_FEE_MAX_CHANGE_DENOMINATOR_CANYON
Base fee max change denominator for Optimism Mainnet as defined in the Optimism Canyon hardfork.
OP_MAINNET_EIP1559_DEFAULT_BASE_FEE_MAX_CHANGE_DENOMINATOR
Base fee max change denominator for Optimism Mainnet as defined in the Optimism transaction costs doc.
OP_MAINNET_EIP1559_DEFAULT_ELASTICITY_MULTIPLIER
Base fee max change denominator for Optimism Mainnet as defined in the Optimism transaction costs doc.
OP_SEPOLIA_BASE_FEE_PARAMS
Get the base fee parameters for Optimism Sepolia.
OP_SEPOLIA_EIP1559_BASE_FEE_MAX_CHANGE_DENOMINATOR_CANYON
Base fee max change denominator for Optimism Sepolia as defined in the Optimism Canyon hardfork.
OP_SEPOLIA_EIP1559_DEFAULT_BASE_FEE_MAX_CHANGE_DENOMINATOR
Base fee max change denominator for Optimism Sepolia as defined in the Optimism transaction costs doc.
OP_SEPOLIA_EIP1559_DEFAULT_ELASTICITY_MULTIPLIER
Base fee max change denominator for Optimism Sepolia as defined in the Optimism transaction costs doc.

Functions§

base_fee_params
Returns the BaseFeeParams for the given chain id.