Skip to main content

Module fees

Module fees 

Source

Structs§

FeeDetails
FeeHistoryCacheItem
A single item in the whole fee history cache
FeeHistoryService
An async service that takes care of the FeeHistory cache
FeeManager
Stores the fee related information

Constants§

BASE_FEE_CHANGE_DENOMINATOR
Bounds the amount the base fee can change between blocks.
INITIAL_BASE_FEE
Initial base fee for EIP-1559 blocks.
INITIAL_GAS_PRICE
Initial default gas price for the first block
MAX_FEE_HISTORY_CACHE_SIZE
Maximum number of entries in the fee history cache
MIN_SUGGESTED_PRIORITY_FEE
Minimum suggested priority fee

Statics§

REWARD_PERCENTILES 🔒
Percentile list from 0.0 to 100.0 with a 0.5 resolution (201 points).

Functions§

create_fee_history_cache_item 🔒
Builds the FeeHistoryCacheItem for a single block.
insert_fee_history_cache_item 🔒
Inserts an entry into the fee history cache and trims it back to fee_history_limit.
reward_percentiles 🔒
Calculates percentile rewards from transactions sorted by effective reward.
tempo_next_block_base_fee 🔒
Computes the next block’s base fee for a Tempo chain.

Type Aliases§

FeeHistoryCache