Module alloy_eips::eip1559
source · Expand description
EIP-1559 constants, helpers, and types.
Structs§
- BaseFeeParams contains the config parameters that control block base fee computation
Constants§
- Base fee max change denominator as defined in EIP-1559
- Elasticity multiplier as defined in EIP-1559
- The default Ethereum block gas limit.
- The bound divisor of the gas limit, used in update calculations.
- Initial base fee as defined in EIP-1559
- The minimum tx fee below which the txpool will reject the transaction.
- Same as MIN_PROTOCOL_BASE_FEE but as a U256.
Functions§
- Calculate the base fee for the next block based on the EIP-1559 specification.
- 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