Skip to main content
Hardforks are consensus layer types of the OP Stack. kona-hardforks most directly exports the Hardforks type that provides the network upgrade transactions for OP Stack hardforks including the following. Each hardfork has its own type in kona-hardforks that exposes the network upgrade transactions for that hardfork. For example, the Ecotone type can be used to retrieve the Ecotone network upgrade transactions through its txs() -> impl Iterator<Bytes> method.
Conveniently, the Hardforks type exposes each hardfork type as a field that can be directly referenced without needing to import all the different hardforks.