Expand description
EIP-1559 constants, helpers, and types.
Structs§
- Base
FeeParams - BaseFeeParams contains the config parameters that control block base fee computation
- Eip1559
Estimation - 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_ LIMIT Deprecated - 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