Expand description
Gas-accounting constants shared with spec.rs.
Constantsยง
- COLD_
SLOAD ๐ - SSTORE_
CREATE_ COST - TIP-1000 storage creation component for a zero-to-nonzero SSTORE.
- SSTORE_
SET_ COST - TIP-1060 SSTORE residual: EVM
0โxbase cost paid even when a credit applies. - STORAGE_
CREDIT_ VALUE - TIP-1060 value credited for clearing one occupied storage slot.
- T1_
SSTORE_ ๐SET - TEMPO_
T0_ BASE_ FEE - T0 base fee: 10 billion attodollars (1ร10^10).
- TEMPO_
T1_ BASE_ FEE - T1 base fee: 20 billion attodollars (2ร10^10).
- TEMPO_
T1_ EXISTING_ NONCE_ KEY_ GAS - Gas cost for using an existing 2D nonce key (cold SLOAD + warm SSTORE reset).
- TEMPO_
T1_ GENERAL_ GAS_ LIMIT - TIP-1010 general (non-payment) gas limit: 30 million gas per block. Cap for non-payment transactions.
- TEMPO_
T1_ NEW_ NONCE_ KEY_ GAS - Gas cost for using a new 2D nonce key (cold SLOAD + SSTORE set for 0 -> non-zero).
- TEMPO_
T1_ TX_ GAS_ LIMIT_ CAP - TIP-1010 per-transaction gas limit cap: 30 million gas. Allows maximum-sized contract deployments under TIP-1000 state creation costs.
- TEMPO_
T2_ EXISTING_ NONCE_ KEY_ GAS - T2 adds 2 warm SLOADs for the extended nonce key lookup.
- TEMPO_
T2_ NEW_ NONCE_ KEY_ GAS - T2 adds 2 warm SLOADs for the extended nonce key lookup.
- TEMPO_
T7_ BASE_ FEE_ CAP - TIP-1067 base fee cap: below the T1 fixed base fee.
- TEMPO_
T7_ BASE_ FEE_ FLOOR - TIP-1067 base fee floor: one twentieth of the TIP-1067 cap.
- TEMPO_
T7_ BASE_ FEE_ GAS_ TARGET - TIP-1067 gas target for the dynamic base fee controller.
- TEMPO_
T7_ BASE_ FEE_ PARAMS - TIP-1067 uses EIP-1559โs base-fee update formula with a fixed 10M gas target.
- WARM_
SLOAD ๐ - WARM_
SSTORE_ ๐RESET
Functionsยง
- tempo_
t7_ next_ block_ base_ fee - Returns the TIP-1067 base fee for the child of a block.