Module eip1559

Source
Expand description

EIP-1559 constants, helpers, and types.

Structs§

BaseFeeParams
BaseFeeParams contains the config parameters that control block base fee computation
Eip1559Estimation
Return type of EIP1155 gas fee estimator.

Constants§

DEFAULT_BASE_FEE_MAX_CHANGE_DENOMINATOR
Base fee max change denominator as defined in EIP-1559
DEFAULT_ELASTICITY_MULTIPLIER
Elasticity multiplier as defined in EIP-1559
ETHEREUM_BLOCK_GAS_LIMITDeprecated
The default Ethereum block gas limit: 30M
ETHEREUM_BLOCK_GAS_LIMIT_30M
The default Ethereum block gas limit: 30M
ETHEREUM_BLOCK_GAS_LIMIT_36M
The default Ethereum block gas limit: 36M
GAS_LIMIT_BOUND_DIVISOR
The bound divisor of the gas limit, used in update calculations.
INITIAL_BASE_FEE
Initial base fee as defined in EIP-1559
MIN_PROTOCOL_BASE_FEE
The minimum tx fee below which the txpool will reject the transaction.
MIN_PROTOCOL_BASE_FEE_U256
Same as MIN_PROTOCOL_BASE_FEE but as a U256.

Functions§

calc_next_block_base_fee
Calculate the base fee for the next block based on the EIP-1559 specification.
calculate_block_gas_limit
Calculate the gas limit for the next block based on parent and desired gas limits. Ref: https://github.com/ethereum/go-ethereum/blob/88cbfab332c96edfbe99d161d9df6a40721bd786/core/block_validator.go#L166