From 2dff760eed1c48d715687131955fd0312c0167d7 Mon Sep 17 00:00:00 2001 From: refcell Date: Mon, 18 Nov 2024 07:57:17 -0500 Subject: [PATCH] chore(protocol): Batch Transaction Mod (#284) ### Description Moves the `BatchTransaction` into the `batch` mod. --- crates/protocol/src/batch/mod.rs | 3 +++ crates/protocol/src/{batch_tx.rs => batch/tx.rs} | 0 crates/protocol/src/lib.rs | 15 ++++++--------- 3 files changed, 9 insertions(+), 9 deletions(-) rename crates/protocol/src/{batch_tx.rs => batch/tx.rs} (100%) diff --git a/crates/protocol/src/batch/mod.rs b/crates/protocol/src/batch/mod.rs index 163c974b..13080a8f 100644 --- a/crates/protocol/src/batch/mod.rs +++ b/crates/protocol/src/batch/mod.rs @@ -6,6 +6,9 @@ pub use r#type::*; mod reader; pub use reader::BatchReader; +mod tx; +pub use tx::BatchTransaction; + mod core; pub use core::Batch; diff --git a/crates/protocol/src/batch_tx.rs b/crates/protocol/src/batch/tx.rs similarity index 100% rename from crates/protocol/src/batch_tx.rs rename to crates/protocol/src/batch/tx.rs diff --git a/crates/protocol/src/lib.rs b/crates/protocol/src/lib.rs index 25f573cc..94ef513b 100644 --- a/crates/protocol/src/lib.rs +++ b/crates/protocol/src/lib.rs @@ -11,12 +11,12 @@ extern crate alloc; mod batch; pub use batch::{ - Batch, BatchDecodingError, BatchEncodingError, BatchReader, BatchType, BatchValidationProvider, - BatchValidity, BatchWithInclusionBlock, RawSpanBatch, SingleBatch, SpanBatch, SpanBatchBits, - SpanBatchEip1559TransactionData, SpanBatchEip2930TransactionData, SpanBatchElement, - SpanBatchError, SpanBatchLegacyTransactionData, SpanBatchPayload, SpanBatchPrefix, - SpanBatchTransactionData, SpanBatchTransactions, SpanDecodingError, MAX_SPAN_BATCH_ELEMENTS, - SINGLE_BATCH_TYPE, SPAN_BATCH_TYPE, + Batch, BatchDecodingError, BatchEncodingError, BatchReader, BatchTransaction, BatchType, + BatchValidationProvider, BatchValidity, BatchWithInclusionBlock, RawSpanBatch, SingleBatch, + SpanBatch, SpanBatchBits, SpanBatchEip1559TransactionData, SpanBatchEip2930TransactionData, + SpanBatchElement, SpanBatchError, SpanBatchLegacyTransactionData, SpanBatchPayload, + SpanBatchPrefix, SpanBatchTransactionData, SpanBatchTransactions, SpanDecodingError, + MAX_SPAN_BATCH_ELEMENTS, SINGLE_BATCH_TYPE, SPAN_BATCH_TYPE, }; mod errors; @@ -25,9 +25,6 @@ pub use errors::OpBlockConversionError; mod block; pub use block::{BlockInfo, FromBlockError, L2BlockInfo}; -mod batch_tx; -pub use batch_tx::BatchTransaction; - mod frame; pub use frame::{ Frame, FrameDecodingError, FrameParseError, DERIVATION_VERSION_0, FRAME_OVERHEAD, MAX_FRAME_LEN,