Skip to content

Commit

Permalink
chore(protocol): Batch Transaction Mod (#284)
Browse files Browse the repository at this point in the history
### Description

Moves the `BatchTransaction` into the `batch` mod.
  • Loading branch information
refcell authored Nov 18, 2024
1 parent f1af8da commit 2dff760
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
3 changes: 3 additions & 0 deletions crates/protocol/src/batch/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
File renamed without changes.
15 changes: 6 additions & 9 deletions crates/protocol/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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,
Expand Down

0 comments on commit 2dff760

Please sign in to comment.