pub trait ChainHeadCoordinatorExt: 'static + Send + Sync + ChainHeadCoordinator<Item = SignedHashed<Action>> {
    // Required method
    fn signing_info(&self) -> (MetaLairClient, HoloHash<Agent>);

    // Provided methods
    fn add_records(
        self: Arc<Self>,
        records: Vec<Record>
    ) -> MustBoxFuture<'static, Result<(), ChcError>>  { ... }
    fn get_record_data(
        self: Arc<Self>,
        since_hash: Option<HoloHash<Action>>
    ) -> MustBoxFuture<'static, Result<Vec<Record>, ChcError>>  { ... }
}
Expand description

Add some convenience methods to the CHC trait

Required Methods§

source

fn signing_info(&self) -> (MetaLairClient, HoloHash<Agent>)

Get info necessary for signing

Provided Methods§

source

fn add_records( self: Arc<Self>, records: Vec<Record> ) -> MustBoxFuture<'static, Result<(), ChcError>>

More convenient way to call add_records_request

source

fn get_record_data( self: Arc<Self>, since_hash: Option<HoloHash<Action>> ) -> MustBoxFuture<'static, Result<Vec<Record>, ChcError>>

More convenient way to call get_record_data_request

Implementors§