@@ -12,12 +12,12 @@ use alloy_signer::SignerSync;
1212use alloy_signer_local:: PrivateKeySigner ;
1313use alloy_trie:: { EMPTY_ROOT_HASH , TrieAccount , root:: state_root_unhashed} ;
1414use base_alloy_chains:: BaseUpgrade ;
15- use base_alloy_consensus:: { EIP1559ParamError , OpBlock , OpTxEnvelope } ;
15+ use base_alloy_consensus:: { BaseBlock , EIP1559ParamError , OpTxEnvelope } ;
1616use base_alloy_rpc_types_engine:: { OpExecutionPayload , OpNetworkPayloadEnvelope , PayloadHash } ;
1717use base_consensus_genesis:: { RollupConfig , SystemConfig } ;
1818use base_evm:: { OpEvmConfig , OpTransaction } ;
1919use base_execution_chainspec:: OpChainSpecBuilder ;
20- use base_protocol:: { BlockInfo , L1BlockInfoTx , L2BlockInfo , OpAttributesWithParent } ;
20+ use base_protocol:: { AttributesWithParent , BlockInfo , L1BlockInfoTx , L2BlockInfo } ;
2121use reth_evm:: { ConfigureEvm , Evm as _, FromRecoveredTx } ;
2222use revm:: {
2323 DatabaseCommit ,
@@ -140,13 +140,13 @@ pub enum L2SequencerError {
140140 Evm ( String ) ,
141141}
142142
143- /// A pre-built queue of [`OpBlock `]s for the batcher to drain.
143+ /// A pre-built queue of [`BaseBlock `]s for the batcher to drain.
144144///
145145/// Tests push fully-formed blocks into the source, which the batcher
146146/// consumes one at a time via [`L2BlockProvider::next_block`].
147147#[ derive( Debug , Default ) ]
148148pub struct ActionL2Source {
149- blocks : VecDeque < OpBlock > ,
149+ blocks : VecDeque < BaseBlock > ,
150150}
151151
152152impl ActionL2Source {
@@ -156,7 +156,7 @@ impl ActionL2Source {
156156 }
157157
158158 /// Push a block to the back of the queue.
159- pub fn push ( & mut self , block : OpBlock ) {
159+ pub fn push ( & mut self , block : BaseBlock ) {
160160 self . blocks . push_back ( block) ;
161161 }
162162
@@ -172,7 +172,7 @@ impl ActionL2Source {
172172}
173173
174174impl L2BlockProvider for ActionL2Source {
175- fn next_block ( & mut self ) -> Option < OpBlock > {
175+ fn next_block ( & mut self ) -> Option < BaseBlock > {
176176 self . blocks . pop_front ( )
177177 }
178178}
@@ -240,7 +240,7 @@ impl SharedBlockHashRegistry {
240240 }
241241}
242242
243- /// Builds real [`OpBlock `]s for use in action tests.
243+ /// Builds real [`BaseBlock `]s for use in action tests.
244244///
245245/// Each block contains:
246246/// - A correct L1-info deposit transaction (type `0x7E`) as the first
@@ -373,7 +373,7 @@ impl L2Sequencer {
373373 /// validation.
374374 ///
375375 /// [`set_supervised_p2p`]: L2Sequencer::set_supervised_p2p
376- pub fn broadcast_unsafe_block ( & self , block : & OpBlock ) {
376+ pub fn broadcast_unsafe_block ( & self , block : & BaseBlock ) {
377377 let Some ( p2p) = & self . supervised_p2p else { return } ;
378378 let block_hash = block. header . hash_slow ( ) ;
379379 let ( execution_payload, _) = OpExecutionPayload :: from_block_unchecked ( block_hash, block) ;
@@ -397,12 +397,12 @@ impl L2Sequencer {
397397 /// Panics if the block cannot be built (e.g. missing L1 block data).
398398 ///
399399 /// [`build_next_block`]: L2Sequencer::build_next_block
400- pub fn build_empty_block ( & mut self ) -> OpBlock {
400+ pub fn build_empty_block ( & mut self ) -> BaseBlock {
401401 self . build_next_block_with_transactions ( vec ! [ ] )
402402 }
403403
404404 /// Build the next L2 block with a single transaction.
405- pub fn build_next_block_with_single_transaction ( & mut self ) -> OpBlock {
405+ pub fn build_next_block_with_single_transaction ( & mut self ) -> BaseBlock {
406406 let tx = {
407407 let mut account = self . test_account . lock ( ) . expect ( "test account lock poisoned" ) ;
408408 account. create_eip1559_tx ( self . rollup_config . l2_chain_id . id ( ) )
@@ -412,7 +412,7 @@ impl L2Sequencer {
412412
413413 /// Build the next L2 block and advance the internal head.
414414 ///
415- /// Returns a fully-formed [`OpBlock `] containing the L1-info deposit and
415+ /// Returns a fully-formed [`BaseBlock `] containing the L1-info deposit and
416416 /// any configured user transactions, with a real state root and block hash.
417417 ///
418418 /// # Panics
@@ -425,7 +425,7 @@ impl L2Sequencer {
425425 pub fn build_next_block_with_transactions (
426426 & mut self ,
427427 transactions : Vec < OpTxEnvelope > ,
428- ) -> OpBlock {
428+ ) -> BaseBlock {
429429 self . try_build_next_block_with_transactions ( transactions)
430430 . unwrap_or_else ( |e| panic ! ( "L2Sequencer::build_next_block failed: {e}" ) )
431431 }
@@ -439,7 +439,7 @@ impl L2Sequencer {
439439 pub fn try_build_next_block_with_transactions (
440440 & mut self ,
441441 transactions : Vec < OpTxEnvelope > ,
442- ) -> Result < OpBlock , L2SequencerError > {
442+ ) -> Result < BaseBlock , L2SequencerError > {
443443 let mut transactions = transactions;
444444 let next_number = self . head . block_info . number + 1 ;
445445 let next_timestamp = self . head . block_info . timestamp + self . rollup_config . block_time ;
@@ -508,7 +508,7 @@ impl L2Sequencer {
508508
509509 let block_hash = header. hash_slow ( ) ;
510510
511- let block = OpBlock {
511+ let block = BaseBlock {
512512 header,
513513 body : alloy_consensus:: BlockBody { transactions, ommers : vec ! [ ] , withdrawals : None } ,
514514 } ;
@@ -578,7 +578,7 @@ pub fn compute_state_root(db: &InMemoryDB) -> B256 {
578578}
579579
580580impl L2BlockProvider for L2Sequencer {
581- fn next_block ( & mut self ) -> Option < OpBlock > {
581+ fn next_block ( & mut self ) -> Option < BaseBlock > {
582582 Some ( self . build_next_block_with_single_transaction ( ) )
583583 }
584584}
@@ -641,7 +641,7 @@ impl StatefulL2Executor {
641641 /// mirror the sequencer's block-by-block execution.
642642 pub fn execute_attrs (
643643 & mut self ,
644- attrs : & OpAttributesWithParent ,
644+ attrs : & AttributesWithParent ,
645645 block_number : u64 ,
646646 parent_hash : B256 ,
647647 ) -> Result < B256 , L2SequencerError > {
0 commit comments