Trait reth_storage_api::WithdrawalsProvider

source ·
pub trait WithdrawalsProvider: Send + Sync {
    // Required methods
    fn withdrawals_by_block(
        &self,
        id: BlockHashOrNumber,
        timestamp: u64,
    ) -> ProviderResult<Option<Withdrawals>>;
    fn latest_withdrawal(&self) -> ProviderResult<Option<Withdrawal>>;
}
Expand description

Client trait for fetching [Withdrawal] related data.

Required Methods§

source

fn withdrawals_by_block( &self, id: BlockHashOrNumber, timestamp: u64, ) -> ProviderResult<Option<Withdrawals>>

Get withdrawals by block id.

source

fn latest_withdrawal(&self) -> ProviderResult<Option<Withdrawal>>

Get latest withdrawal from this block or earlier .

Implementations on Foreign Types§

source§

impl<'a, T: 'a + WithdrawalsProvider + ?Sized> WithdrawalsProvider for &'a T
where &'a T: Send + Sync,

source§

fn withdrawals_by_block( &self, id: BlockHashOrNumber, timestamp: u64, ) -> ProviderResult<Option<Withdrawals>>

source§

fn latest_withdrawal(&self) -> ProviderResult<Option<Withdrawal>>

source§

impl<T: WithdrawalsProvider + ?Sized> WithdrawalsProvider for Arc<T>
where Arc<T>: Send + Sync,

source§

fn withdrawals_by_block( &self, id: BlockHashOrNumber, timestamp: u64, ) -> ProviderResult<Option<Withdrawals>>

source§

fn latest_withdrawal(&self) -> ProviderResult<Option<Withdrawal>>

Implementors§