29 releases (5 breaking)

new 0.6.3 Nov 8, 2024
0.5.2 Oct 29, 2024
0.1.4 Jul 16, 2024

#18 in Magic Beans

Download history 2556/week @ 2024-07-19 2517/week @ 2024-07-26 2850/week @ 2024-08-02 3593/week @ 2024-08-09 2892/week @ 2024-08-16 4437/week @ 2024-08-23 6813/week @ 2024-08-30 7495/week @ 2024-09-06 9240/week @ 2024-09-13 7561/week @ 2024-09-20 8852/week @ 2024-09-27 9809/week @ 2024-10-04 9834/week @ 2024-10-11 13433/week @ 2024-10-18 12912/week @ 2024-10-25 8902/week @ 2024-11-01

46,857 downloads per month
Used in 16 crates (11 directly)

MIT/Apache

125KB
2.5K SLoC

op-alloy-consensus

op-alloy-consensus crate

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.

Dependencies

~5.5–9MB
~183K SLoC