kona_derive_alloy::prelude

Trait L2ChainProvider

Source
pub trait L2ChainProvider: BatchValidationProviderDerive {
    type Error: Display + ToString + Into<PipelineErrorKind>;

    // Required method
    fn system_config_by_number<'life0, 'async_trait>(
        &'life0 mut self,
        number: u64,
        rollup_config: Arc<RollupConfig>,
    ) -> Pin<Box<dyn Future<Output = Result<SystemConfig, Self::Error>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;
}
Expand description

Describes the functionality of a data source that fetches safe blocks.

Required Associated Types§

Required Methods§

Source

fn system_config_by_number<'life0, 'async_trait>( &'life0 mut self, number: u64, rollup_config: Arc<RollupConfig>, ) -> Pin<Box<dyn Future<Output = Result<SystemConfig, Self::Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

Returns the SystemConfig by L2 number.

Implementors§