Module arbos_types

Module arbos_types 

Source

Structs§

BatchDataStats
Statistics about a batch of data (for L1 cost estimation).
BatchPostingReportFields
Fields extracted from a batch posting report.
L1IncomingMessage
An L1 incoming message containing the header and L2 payload.
L1IncomingMessageHeader
Header of an L1 incoming message.
MessageWithMetadata
An L1 incoming message with additional metadata.
MessageWithMetadataAndBlockInfo
Extended message info including block hash and metadata.
ParsedInitMessage
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.