op_alloy

Crate consensus

Source
Available on crate feature consensus only.
Expand description

§op-alloy-consensus

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

Optimism consensus interface.

This crate contains constants, types, and functions for implementing Optimism EL consensus and communication. This includes an extended OpTxEnvelope type with deposit transactions, and receipts containing OP Stack specific fields (deposit_nonce + deposit_receipt_version).

In general a type belongs in this crate if it exists in the alloy-consensus crate, but was modified from the base Ethereum protocol in the OP Stack. For consensus types that are not modified by the OP Stack, the alloy-consensus types should be used instead.

§Provenance

Much of this code was ported from reth-primitives as part of ongoing alloy migrations.

Modules§

  • Support for EIP-1559 parameters after holocene.

Structs§

Enums§

Constants§

Traits§

  • A trait representing a deposit transaction with specific attributes.
  • The trait abstraction for a Hardfork.
  • Receipt is the result of a transaction execution.

Functions§

Type Aliases§