#consensus #alloy #type #transaction #stack #receipt #optimism

no-std op-alloy-consensus

Optimism alloy consensus types

1 unstable release

0.1.0 Jun 22, 2024

#2247 in Magic Beans

Download history 722/week @ 2024-06-22

722 downloads per month
Used in 6 crates (5 directly)

MIT/Apache

60KB
1K SLoC

op-alloy-consensus

OP Stack 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.

Dependencies

~4.5–7.5MB
~162K SLoC