pub struct EthereumDataSource<C, B>{
pub ecotone_timestamp: Option<u64>,
pub blob_source: BlobSource<C, B>,
pub calldata_source: CalldataSource<C>,
}
Expand description
A factory for creating an Ethereum data source provider.
Fields§
§ecotone_timestamp: Option<u64>
The ecotone timestamp.
blob_source: BlobSource<C, B>
The blob source.
calldata_source: CalldataSource<C>
The calldata source.
Implementations§
Source§impl<C, B> EthereumDataSource<C, B>
impl<C, B> EthereumDataSource<C, B>
Sourcepub const fn new(
blob_source: BlobSource<C, B>,
calldata_source: CalldataSource<C>,
cfg: &RollupConfig,
) -> EthereumDataSource<C, B>
pub const fn new( blob_source: BlobSource<C, B>, calldata_source: CalldataSource<C>, cfg: &RollupConfig, ) -> EthereumDataSource<C, B>
Instantiates a new EthereumDataSource.
Sourcepub fn new_from_parts(
provider: C,
blobs: B,
cfg: &RollupConfig,
) -> EthereumDataSource<C, B>
pub fn new_from_parts( provider: C, blobs: B, cfg: &RollupConfig, ) -> EthereumDataSource<C, B>
Instantiates a new EthereumDataSource from parts.
Trait Implementations§
Source§impl<C, B> Clone for EthereumDataSource<C, B>
impl<C, B> Clone for EthereumDataSource<C, B>
Source§fn clone(&self) -> EthereumDataSource<C, B>
fn clone(&self) -> EthereumDataSource<C, B>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<C, B> DataAvailabilityProvider for EthereumDataSource<C, B>where
C: ChainProvider + Send + Sync + Clone + Debug,
B: BlobProvider + Send + Sync + Clone + Debug,
impl<C, B> DataAvailabilityProvider for EthereumDataSource<C, B>where
C: ChainProvider + Send + Sync + Clone + Debug,
B: BlobProvider + Send + Sync + Clone + Debug,
Source§fn next<'life0, 'life1, 'async_trait>(
&'life0 mut self,
block_ref: &'life1 BlockInfo,
) -> Pin<Box<dyn Future<Output = Result<<EthereumDataSource<C, B> as DataAvailabilityProvider>::Item, PipelineErrorKind>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
EthereumDataSource<C, B>: 'async_trait,
fn next<'life0, 'life1, 'async_trait>(
&'life0 mut self,
block_ref: &'life1 BlockInfo,
) -> Pin<Box<dyn Future<Output = Result<<EthereumDataSource<C, B> as DataAvailabilityProvider>::Item, PipelineErrorKind>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
EthereumDataSource<C, B>: 'async_trait,
Returns the next data for the given BlockInfo.
Returns a
PipelineError::Eof
if there is no more data for the given block ref.Auto Trait Implementations§
impl<C, B> Freeze for EthereumDataSource<C, B>
impl<C, B> RefUnwindSafe for EthereumDataSource<C, B>where
C: RefUnwindSafe,
B: RefUnwindSafe,
impl<C, B> Send for EthereumDataSource<C, B>
impl<C, B> Sync for EthereumDataSource<C, B>
impl<C, B> Unpin for EthereumDataSource<C, B>
impl<C, B> UnwindSafe for EthereumDataSource<C, B>where
C: UnwindSafe,
B: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more