reth_rpc/eth/helpers/
fees.rs1use reth_rpc_convert::RpcConvert;
4use reth_rpc_eth_api::{
5 helpers::{EthFees, LoadFee},
6 FromEvmError, RpcNodeCore,
7};
8use reth_rpc_eth_types::{EthApiError, FeeHistoryCache, GasPriceOracle};
9use reth_storage_api::ProviderHeader;
10
11use crate::EthApi;
12
13impl<N, Rpc> EthFees for EthApi<N, Rpc>
14where
15 N: RpcNodeCore,
16 EthApiError: FromEvmError<N::Evm>,
17 Rpc: RpcConvert<Primitives = N::Primitives, Error = EthApiError>,
18{
19}
20
21impl<N, Rpc> LoadFee for EthApi<N, Rpc>
22where
23 N: RpcNodeCore,
24 EthApiError: FromEvmError<N::Evm>,
25 Rpc: RpcConvert<Primitives = N::Primitives, Error = EthApiError>,
26{
27 #[inline]
28 fn gas_oracle(&self) -> &GasPriceOracle<Self::Provider> {
29 self.inner.gas_oracle()
30 }
31
32 #[inline]
33 fn fee_history_cache(&self) -> &FeeHistoryCache<ProviderHeader<N::Provider>> {
34 self.inner.fee_history_cache()
35 }
36}