Module l1_pricing

Module l1_pricing 

Source

Structs§

BatchPosterState
BatchPostersTable
FundsDueItem
L1PricingState
L1 pricing state manages the cost model for L1 data posting.

Enums§

L1PricingError
Errors raised by the L1 pricing subsystem (batch poster table and update model).

Constants§

AMORTIZED_COST_CAP_BIPS_OFFSET
BATCH_POSTER_ADDRESS
BATCH_POSTER_PAY_TO_ADDRESS
BATCH_POSTER_TABLE_KEY
EQUILIBRATION_UNITS_OFFSET
ESTIMATION_PADDING_BASIS_POINTS
ESTIMATION_PADDING_UNITS
FUNDS_DUE_FOR_REWARDS_OFFSET
GAS_FLOOR_PER_TOKEN_OFFSET
INERTIA_OFFSET
INITIAL_EQUILIBRATION_UNITS_V0
INITIAL_EQUILIBRATION_UNITS_V6
INITIAL_INERTIA
INITIAL_PER_BATCH_GAS_COST_V6
INITIAL_PER_BATCH_GAS_COST_V12
INITIAL_PER_UNIT_REWARD
L1_FEES_AVAILABLE_OFFSET
L1_PRICER_FUNDS_POOL_ADDRESS
LAST_SURPLUS_OFFSET
LAST_UPDATE_TIME_OFFSET
PAY_REWARDS_TO_OFFSET
PAY_TO_OFFSET
PER_BATCH_GAS_COST_OFFSET
PER_UNIT_REWARD_OFFSET
POSTER_ADDRS_KEY
POSTER_INFO_KEY
PRICE_PER_UNIT_OFFSET
TOTAL_FUNDS_DUE_OFFSET
TX_DATA_NON_ZERO_GAS_EIP2028
UNITS_SINCE_OFFSET

Functions§

byte_count_after_brotli_level
Computes the brotli-compressed size at a given compression level.
compute_poster_cost_standalone
Compute poster cost and calldata units from pre-loaded pricing parameters.
initialize_batch_posters_table
initialize_l1_pricing_state
open_batch_posters_table
open_l1_pricing_state
poster_units_from_bytes
Compute calldata units from tx bytes using brotli compression.