//! Contains RPC handler implementations for fee history. use reth_provider::{BlockIdReader, BlockReaderIdExt, ChainSpecProvider, HeaderProvider}; use reth_rpc_eth_api::helpers::{EthFees, LoadBlock, LoadFee}; use reth_rpc_eth_types::{EthStateCache, FeeHistoryCache, GasPriceOracle}; use crate::EthApi; impl EthFees for EthApi where Self: LoadFee { } impl LoadFee for EthApi where Self: LoadBlock, Provider: BlockReaderIdExt + HeaderProvider + ChainSpecProvider, { #[inline] fn provider(&self) -> impl BlockIdReader + HeaderProvider + ChainSpecProvider { self.inner.provider() } #[inline] fn cache(&self) -> &EthStateCache { self.inner.cache() } #[inline] fn gas_oracle(&self) -> &GasPriceOracle { self.inner.gas_oracle() } #[inline] fn fee_history_cache(&self) -> &FeeHistoryCache { self.inner.fee_history_cache() } }