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§
Sourcetype Error: Display + ToString + Into<PipelineErrorKind>
type Error: Display + ToString + Into<PipelineErrorKind>
The error type for the L2ChainProvider.
Required Methods§
Sourcefn 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,
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.