mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
40 lines
1.0 KiB
Rust
40 lines
1.0 KiB
Rust
//! Contains RPC handler implementations for fee history.
|
|
|
|
use reth_provider::{BlockIdReader, BlockReaderIdExt, ChainSpecProvider, HeaderProvider};
|
|
|
|
use crate::{
|
|
servers::{EthFees, LoadBlock, LoadFee},
|
|
EthApi, EthStateCache, FeeHistoryCache, GasPriceOracle,
|
|
};
|
|
|
|
impl<Provider, Pool, Network, EvmConfig> EthFees for EthApi<Provider, Pool, Network, EvmConfig> where
|
|
Self: LoadFee
|
|
{
|
|
}
|
|
|
|
impl<Provider, Pool, Network, EvmConfig> LoadFee for EthApi<Provider, Pool, Network, EvmConfig>
|
|
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<impl BlockReaderIdExt> {
|
|
self.inner.gas_oracle()
|
|
}
|
|
|
|
#[inline]
|
|
fn fee_history_cache(&self) -> &FeeHistoryCache {
|
|
self.inner.fee_history_cache()
|
|
}
|
|
}
|