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§
- Address
List - The set of network-specific contracts for a given chain.
- AltDA
Config - AltDA configuration.
- Chain
Config - Defines core blockchain settings per block.
- Chain
Genesis - Chain genesis information.
- Hard
Fork Configuration - Hardfork configuration.
- OpBase
FeeParams - Optimism Base Fee Configuration
- Rollup
Config - The Rollup configuration.
- System
Accounts - System accounts
- System
Config - System configuration.
Enums§
- Batcher
Update Error - An error for updating the batcher address on the SystemConfig.
- EIP1559
Update Error - An error for updating the EIP-1559 parameters on the SystemConfig.
- GasConfig
Update Error - An error for updating the gas config on the SystemConfig.
- GasLimit
Update Error - An error for updating the gas limit on the SystemConfig.
- LogProcessing
Error - An error occurred while processing the update log.
- Superchain
Level - Level of integration with the superchain.
- System
Config Update Error - An error for processing the SystemConfig update log.
- System
Config Update Type - 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.