Expand description
EIP-8037: State Creation Gas Cost Increase
Introduces a reservoir model that separates state gas (storage/code/account
creation) from regular execution gas. State-gas charges are expressed as
a number of “state bytes” that get multiplied by cost_per_state_byte (CPSB).
In bal-devnet-7 / Glamsterdam, CPSB is fixed at 1530.
Constants§
- AUTH_
BASE_ BYTES - State bytes charged per EIP-7702 authorization base cost.
- BLOCKS_
PER_ YEAR - Blocks per year at a 12-second block time (used by the CPSB formula).
- CODE_
DEPOSIT_ PER_ BYTE - State bytes charged per byte of deployed code.
- CPSB_
GLAMSTERDAM - Cost per state byte (CPSB) for Glamsterdam.
- CPSB_
OFFSET - Offset subtracted after rounding in the CPSB formula.
- CPSB_
SIGNIFICANT_ BITS - Number of high-order bits retained when rounding CPSB.
- EIP7702_
PER_ EMPTY_ ACCOUNT_ REGULAR - Regular gas component of EIP-7702
PER_EMPTY_ACCOUNT_COSTunder EIP-8037. - NEW_
ACCOUNT_ BYTES - State bytes charged when creating a new account.
- SSTORE_
SET_ BYTES - State bytes charged per SSTORE 0→non-zero.
- TARGET_
STATE_ GROWTH_ PER_ YEAR - Target yearly state growth budget, in bytes.