mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat(isthmus): withdrawals root in block building (#14209)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
@ -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)]
|
||||
|
||||
8
crates/optimism/primitives/src/predeploys.rs
Normal file
8
crates/optimism/primitives/src/predeploys.rs
Normal 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");
|
||||
Reference in New Issue
Block a user