kona_derive_alloy::prelude

Trait L1RetrievalProvider

Source
pub trait L1RetrievalProvider {
    // Required methods
    fn next_l1_block<'life0, 'async_trait>(
        &'life0 mut self,
    ) -> Pin<Box<dyn Future<Output = Result<Option<BlockInfo>, PipelineErrorKind>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;
    fn batcher_addr(&self) -> Address;
}
Expand description

Provides L1 blocks for the L1Retrieval stage. This is the previous stage in the pipeline.

Required Methods§

Source

fn next_l1_block<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<Option<BlockInfo>, PipelineErrorKind>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

Returns the next L1 BlockInfo in the L1Traversal stage, if the stage is not complete. This function can only be called once while the stage is in progress, and will return None on subsequent calls unless the stage is reset or complete. If the stage is complete and the BlockInfo has been consumed, an PipelineError::Eof error is returned.

Source

fn batcher_addr(&self) -> Address

Returns the batcher Address from the op_alloy_genesis::SystemConfig.

Implementors§