kona_derive_alloy::prelude

Trait BlobProvider

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

    // Required method
    fn get_blobs<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 mut self,
        block_ref: &'life1 BlockInfo,
        blob_hashes: &'life2 [IndexedBlobHash],
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Box<FixedBytes<alloy_eips::::eip4844::Blob::{constant#0}>>>, Self::Error>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             Self: 'async_trait;
}
Expand description

The BlobProvider trait specifies the functionality of a data source that can provide blobs.

Required Associated Types§

Source

type Error: Display + ToString + Into<PipelineErrorKind>

The error type for the BlobProvider.

Required Methods§

Source

fn get_blobs<'life0, 'life1, 'life2, 'async_trait>( &'life0 mut self, block_ref: &'life1 BlockInfo, blob_hashes: &'life2 [IndexedBlobHash], ) -> Pin<Box<dyn Future<Output = Result<Vec<Box<FixedBytes<alloy_eips::::eip4844::Blob::{constant#0}>>>, Self::Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, Self: 'async_trait,

Fetches blobs for a given block ref and the blob hashes.

Implementors§