pub trait BuilderDataSource<TYPES: NodeType> {
    // Required methods
    fn bundle<'life0, 'life1, 'async_trait>(
        &'life0 self,
        parent_view: u64,
        parent_hash: &'life1 VidCommitment,
        view_number: u64,
    ) -> Pin<Box<dyn Future<Output = Result<Bundle<TYPES>, BuildError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn builder_address<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<TYPES::BuilderSignatureKey, BuildError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

source

fn bundle<'life0, 'life1, 'async_trait>( &'life0 self, parent_view: u64, parent_hash: &'life1 VidCommitment, view_number: u64, ) -> Pin<Box<dyn Future<Output = Result<Bundle<TYPES>, BuildError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

To get the list of available blocks

source

fn builder_address<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<TYPES::BuilderSignatureKey, BuildError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

To get the builder’s address

Implementors§