feat(isthmus): withdrawals root in block building (#14209)

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
Emilia Hane
2025-02-04 19:31:00 +01:00
committed by GitHub
parent f43cf9c18a
commit ad503a08fa
3 changed files with 49 additions and 26 deletions

View File

@ -12,9 +12,11 @@
extern crate alloc;
pub mod bedrock;
pub mod transaction;
use reth_primitives_traits::Block;
pub mod predeploys;
pub use predeploys::ADDRESS_L2_TO_L1_MESSAGE_PASSER;
pub mod transaction;
pub use transaction::{signed::OpTransactionSigned, tx_type::OpTxType};
mod receipt;
@ -24,7 +26,7 @@ pub use receipt::{DepositReceipt, OpReceipt};
pub type OpBlock = alloy_consensus::Block<OpTransactionSigned>;
/// Optimism-specific block body type.
pub type OpBlockBody = <OpBlock as Block>::Body;
pub type OpBlockBody = <OpBlock as reth_primitives_traits::Block>::Body;
/// Primitive types for Optimism Node.
#[derive(Debug, Default, Clone, PartialEq, Eq)]

View File

@ -0,0 +1,8 @@
//! Addresses of OP pre-deploys.
// todo: move to op-alloy
use alloy_primitives::{address, Address};
/// The L2 contract `L2ToL1MessagePasser`, stores commitments to withdrawal transactions.
pub const ADDRESS_L2_TO_L1_MESSAGE_PASSER: Address =
address!("4200000000000000000000000000000000000016");