44 releases (7 breaking)

new 0.8.5 Dec 19, 2024
0.7.3 Dec 4, 2024
0.7.1 Nov 28, 2024
0.1.4 Jul 16, 2024

#176 in Magic Beans

Download history 6603/week @ 2024-08-29 7964/week @ 2024-09-05 8897/week @ 2024-09-12 7611/week @ 2024-09-19 8459/week @ 2024-09-26 9717/week @ 2024-10-03 9730/week @ 2024-10-10 13025/week @ 2024-10-17 13575/week @ 2024-10-24 10558/week @ 2024-10-31 12423/week @ 2024-11-07 13141/week @ 2024-11-14 13947/week @ 2024-11-21 13854/week @ 2024-11-28 12762/week @ 2024-12-05 10780/week @ 2024-12-12

54,185 downloads per month
Used in 18 crates (13 directly)

MIT/Apache

145KB
3K SLoC

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.

Dependencies

~7–10MB
~202K SLoC