mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-02-06 21:15:27 -05:00
Co-authored-by: Oliver Nordbjerg <onbjerg@users.noreply.github.com> Co-authored-by: Dan Cline <6798349+Rjected@users.noreply.github.com> Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
14 lines
418 B
Rust
14 lines
418 B
Rust
use reth_primitives::{BlockHashOrNumber, Requests};
|
|
use reth_storage_errors::provider::ProviderResult;
|
|
|
|
/// Client trait for fetching EIP-7685 [Requests] for blocks.
|
|
#[auto_impl::auto_impl(&, Arc)]
|
|
pub trait RequestsProvider: Send + Sync {
|
|
/// Get withdrawals by block id.
|
|
fn requests_by_block(
|
|
&self,
|
|
id: BlockHashOrNumber,
|
|
timestamp: u64,
|
|
) -> ProviderResult<Option<Requests>>;
|
|
}
|