Available on crate feature
protocol
only.Expand description
Structs§
- 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. - A
MessagePayload
is the raw payload of an initiating message. - 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.
Enums§
- A Batch.
- An error decoding a batch.
- An error encoding a batch.
- The Batch Type.
- Batch Validity
- An error type for parsing L1 block info transactions.
- A Brotli Compression Error.
- A frame decompression error.
- The brotli encoding level used in Optimism.
- An error returned when adding a frame to a channel.
- An error returned by the ChannelOut when adding single batches.
- The compression algorithm type.
- An error returned by the compressor.
- The type of compressor to use.
- An error decoding an L1 block info transaction.
- An op_alloy_consensus::TxDeposit validation error.
- Source domains for deposit transactions.
- Source domain identifiers for deposit transactions.
- A frame decoding error.
- Frame parsing error.
- An error that can occur when converting an OpBlock to an L2BlockInfo.
- The L1BlockInfoTx enum contains variants for the different versions of the L1 block info transaction on OP Stack chains.
- An error encountered during OpBlock conversion.
- The safety level of a message.
- Span Batch Errors
- The typed transaction data for a transaction within a span batch.
- Decoding Error
- The channel compressor wraps the brotli and zlib compressor types, implementing the ChannelCompressor trait itself.
Constants§
- CHANNEL_ID_LENGTH is the length of the channel ID.
- Deposit log event abi signature.
- Deposit event abi hash.
- The initial version of the deposit event log.
- The version of the derivation pipeline.
- FJORD_MAX_RLP_BYTES_PER_CHANNEL is the maximum amount of bytes that will be read from a channel when the Fjord Hardfork is activated. This limit is set when decoding the RLP.
- Count the tagging info as 200 in terms of buffer size.
- Frames cannot be larger than 1MB.
- MAX_RLP_BYTES_PER_CHANNEL is the maximum amount of bytes that will be read from a channel. This limit is set when decoding the RLP.
- MAX_SPAN_BATCH_ELEMENTS is the maximum number of blocks, transactions in total, or transaction per block allowed in a span batch.
- The single batch type identifier.
- The span batch type identifier.
Traits§
- Describes the functionality of a data source that fetches safe blocks.
- Channel Compressor
- Compressor Writer
Functions§
- 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. - Converts the OpBlock to a partial SystemConfig.
Type Aliases§
- ChannelId is an opaque identifier for a channel.
- The result from compressing data.