Structs§
- GasConstraint
- A single-dimensional gas constraint with target, adjustment window, and backlog.
- L2Pricing
State - L2 pricing state manages gas pricing for L2 execution.
- Multi
GasConstraint - A multi-dimensional gas constraint with per-resource-kind weights.
- Multi
GasFees - Per-resource-kind base fee tracking for multi-dimensional gas pricing.
Enums§
- Backlog
Operation - 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