Module l2_pricing

Module l2_pricing 

Source

Structs§

GasConstraint
A single-dimensional gas constraint with target, adjustment window, and backlog.
L2PricingState
L2 pricing state manages gas pricing for L2 execution.
MultiGasConstraint
A multi-dimensional gas constraint with per-resource-kind weights.
MultiGasFees
Per-resource-kind base fee tracking for multi-dimensional gas pricing.

Enums§

BacklogOperation
Whether a backlog update grows or shrinks the backlog.
GasModel
Which gas pricing model to use.

Constants§

GAS_CONSTRAINTS_MAX_NUM
GETH_BLOCK_GAS_LIMIT
INITIAL_BACKLOG_TOLERANCE
INITIAL_BASE_FEE_WEI
INITIAL_MINIMUM_BASE_FEE_WEI
INITIAL_PER_BLOCK_GAS_LIMIT_V0
INITIAL_PER_BLOCK_GAS_LIMIT_V6
INITIAL_PER_TX_GAS_LIMIT_V50
INITIAL_PRICING_INERTIA
INITIAL_SPEED_LIMIT_PER_SECOND_V0
INITIAL_SPEED_LIMIT_PER_SECOND_V6
MAX_PRICING_EXPONENT_BIPS
MULTI_CONSTRAINT_STATIC_BACKLOG_UPDATE_COST
STORAGE_READ_COST
STORAGE_WRITE_COST

Functions§

apply_gas_delta
Apply a gas delta to a backlog value (signed).
initialize_l2_pricing_state
open_gas_constraint
open_l2_pricing_state
open_multi_gas_constraint