Batch Reader provides a function that iteratively consumes batches from the reader.
The L1Inclusion block is also provided at creation time.
Warning: the batch reader can read every batch-type.
The caller of the batch-reader should filter the results.
BatchTransaction is a set of
Frames that can be
Into::into Bytes.
if the size exceeds the desired threshold.
A batch with its inclusion block.
Block Header Info
The brotli compressor.
A Channel is a set of batches that are split into at least one, but possibly multiple frames.
ChannelOut constructs a channel from compressed, encoded batch data.
Configuration for the compressor itself.
Solidity event, emitted when a cross chain message is being executed.
A channel frame is a segment of a channel’s data.
An iterator over encoded frames.
Represents the fields within a Bedrock L1 block info transaction.
Represents the fields within an Ecotone L1 block info transaction.
A L1 info deposit transaction source.
L2 Block Header Info
A
MessageIdentifier
uniquely represents a log that is emitted from a chain within
the broader dependency set. It is included in the calldata of a transaction sent to the
CrossL2Inbox contract.
Ratio Compressor
Raw Span Batch
Shadow Compressor
Represents a single batch: a single encoded L2 block
The span batch contains the input to build a span of L2 blocks in derived form.
Type for span batch bits.
The transaction data for an EIP-1559 transaction within a span batch.
The transaction data for an EIP-2930 transaction within a span batch.
A single batch element is similar to the
SingleBatch type
but does not contain the parent hash and epoch hash since spans
do not contain this data for every block in the span.
The transaction data for a legacy transaction within a span batch.
Span Batch Payload
Span Batch Prefix
This struct contains the decoded information for transactions in a span batch.
An upgrade deposit transaction source.
A deposit transaction source.
The ZLIB compressor.
Calculate the gas cost of a transaction based on L1 block data posted on L2 post-bedrock.
Calculate the gas cost of a transaction based on L1 block data posted on L2, post-Ecotone.
Calculate the gas cost of a transaction based on L1 block data posted on L2, post-Fjord.
Calculate the gas cost of a transaction based on L1 block data posted on L2 post-regolith.
Method to compress data using ZLIB.
Calculate the data gas for posting the transaction on L1.
Calculate the data gas for posting the transaction on L1.
Calculate the data gas for posting the transaction on L1.
Derives a deposit transaction from an EVM log event emitted by the deposit contract.
Decompresses the given bytes data using the Brotli decompressor implemented
in the
brotli
crate.
Method to decompress data using ZLIB.
Reads transaction data from a reader.
Returns if the given value
is a deposit transaction.