Skip to main content

Module gas

Module gas 

Source
Expand description

Gas-accounting constants shared with spec.rs.

Constants§

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.