Skip to main content

Module eip8037

Module eip8037 

Source
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_COST under 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.