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,
) -> Self
pub const fn new( blob_source: BlobSource<C, B>, calldata_source: CalldataSource<C>, cfg: &RollupConfig, ) -> Self
Instantiates a new EthereumDataSource.
Sourcepub fn new_from_parts(provider: C, blobs: B, cfg: &RollupConfig) -> Self
pub fn new_from_parts(provider: C, blobs: B, cfg: &RollupConfig) -> Self
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 = PipelineResult<Self::Item>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn next<'life0, 'life1, 'async_trait>(
&'life0 mut self,
block_ref: &'life1 BlockInfo,
) -> Pin<Box<dyn Future<Output = PipelineResult<Self::Item>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: '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
)