Structs§
- Batch
Data Stats - Statistics about a batch of data (for L1 cost estimation).
- Batch
Posting Report Fields - Fields extracted from a batch posting report.
- L1Incoming
Message - An L1 incoming message containing the header and L2 payload.
- L1Incoming
Message Header - Header of an L1 incoming message.
- Message
With Metadata - An L1 incoming message with additional metadata.
- Message
With Metadata AndBlock Info - Extended message info including block hash and metadata.
- Parsed
Init Message - Parsed initialization message from the first L1 message.
Constants§
- DEFAULT_
INITIAL_ L1_ BASE_ FEE - Default initial L1 base fee (used when chain config doesn’t specify one).
- L1_
MESSAGE_ TYPE_ BATCH_ FOR_ GAS_ ESTIMATION - L1_
MESSAGE_ TYPE_ BATCH_ POSTING_ REPORT - L1_
MESSAGE_ TYPE_ END_ OF_ BLOCK - L1_
MESSAGE_ TYPE_ ETH_ DEPOSIT - L1_
MESSAGE_ TYPE_ INITIALIZE - L1_
MESSAGE_ TYPE_ INVALID - L1_
MESSAGE_ TYPE_ L2_ FUNDED_ BY_ L1 - L1_
MESSAGE_ TYPE_ L2_ MESSAGE - L1 message type constants.
- L1_
MESSAGE_ TYPE_ ROLLUP_ EVENT - L1_
MESSAGE_ TYPE_ SUBMIT_ RETRYABLE - MAX_
L2_ MESSAGE_ SIZE - Maximum size of an L2 message payload.
Functions§
- get_
data_ stats - Returns data statistics (total bytes and non-zero byte count).
- legacy_
cost_ for_ stats - Estimates L1 gas cost using legacy pricing model.
- parse_
batch_ posting_ report_ fields - Parses fields from a batch posting report message.
- parse_
incoming_ l1_ message - Parses an L1 incoming message from raw bytes.
- parse_
init_ message - Parses an initialization message to extract chain ID and initial L1 base fee.