Available on crate feature
genesis
only.Expand description
§op-alloy-genesis
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§
- The set of network-specific contracts for a given chain.
- AltDA configuration.
- Defines core blockchain settings per block.
- Chain genesis information.
- Hardfork configuration.
- Optimism Base Fee Configuration
- The Rollup configuration.
- System accounts
- System configuration.
Enums§
- An error for updating the batcher address on the SystemConfig.
- An error for updating the EIP-1559 parameters on the SystemConfig.
- An error for updating the gas config on the SystemConfig.
- An error for updating the gas limit on the SystemConfig.
- An error occurred while processing the update log.
- Level of integration with the superchain.
- An error for processing the SystemConfig update log.
- Represents type of update to the system config.
Constants§
- Get the base fee parameters for Base Sepolia.
- Base fee max change denominator for Base Sepolia as defined in the Optimism transaction costs doc.
- The initial version of the system config event log.
keccak256("ConfigUpdate(uint256,uint8,bytes)")
- The max sequencer drift when the Fjord hardfork is active.
- The channel timeout once the Granite hardfork is active.
- The max rlp bytes per channel for the Bedrock hardfork.
- The max rlp bytes per channel for the Fjord hardfork.
- Get the base fee parameters for Optimism Mainnet.
- Base fee max change denominator for Optimism Mainnet as defined in the Optimism Canyon hardfork.
- Base fee max change denominator for Optimism Mainnet as defined in the Optimism transaction costs doc.
- Base fee max change denominator for Optimism Mainnet as defined in the Optimism transaction costs doc.
- Get the base fee parameters for Optimism Sepolia.
- Base fee max change denominator for Optimism Sepolia as defined in the Optimism Canyon hardfork.
- Base fee max change denominator for Optimism Sepolia as defined in the Optimism transaction costs doc.
- Base fee max change denominator for Optimism Sepolia as defined in the Optimism transaction costs doc.
Functions§
- Returns the BaseFeeParams for the given chain id.