34 releases (5 breaking)

new 0.6.8 Nov 20, 2024
0.5.2 Oct 29, 2024
0.1.4 Jul 16, 2024

#168 in Magic Beans

Download history 2824/week @ 2024-07-31 3614/week @ 2024-08-07 2747/week @ 2024-08-14 3628/week @ 2024-08-21 6037/week @ 2024-08-28 8087/week @ 2024-09-04 7868/week @ 2024-09-11 8502/week @ 2024-09-18 8217/week @ 2024-09-25 8872/week @ 2024-10-02 10164/week @ 2024-10-09 12733/week @ 2024-10-16 14022/week @ 2024-10-23 9931/week @ 2024-10-30 12859/week @ 2024-11-06 12155/week @ 2024-11-13

51,264 downloads per month
Used in 18 crates (12 directly)

MIT/Apache

120KB
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
~182K SLoC