feat: implement conversion of optimism deposit tx from alloy to reth (#8763)

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
Zach Obront
2024-06-18 07:33:19 -05:00
committed by GitHub
parent 3a1e4e9ad4
commit d786b459d9
2 changed files with 139 additions and 2 deletions

View File

@ -1,6 +1,6 @@
//! Ethereum protocol-related constants
use alloy_primitives::{b256, B256, U256};
use alloy_primitives::{address, b256, Address, B256, U256};
use core::time::Duration;
/// The client version: `reth/v{major}.{minor}.{patch}`
@ -131,6 +131,9 @@ pub const EMPTY_OMMER_ROOT_HASH: B256 =
pub const EMPTY_ROOT_HASH: B256 =
b256!("56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421");
/// From address from Optimism system txs: `0xdeaddeaddeaddeaddeaddeaddeaddeaddead0001`
pub const OP_SYSTEM_TX_FROM_ADDR: Address = address!("deaddeaddeaddeaddeaddeaddeaddeaddead0001");
/// Transactions root of empty receipts set.
pub const EMPTY_RECEIPTS: B256 = EMPTY_ROOT_HASH;