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

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

Add some convenience methods to the CHC trait

Required Methods§

source

fn signing_info(&self) -> (MetaLairClient, AgentPubKey)

Get info necessary for signing

Provided Methods§

source

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

More convenient way to call add_records_request

source

fn get_record_data( self: Arc<Self>, since_hash: Option<ActionHash> ) -> MustBoxFuture<'static, ChcResult<Vec<Record>>>

More convenient way to call get_record_data_request

source

fn head( self: Arc<Self> ) -> MustBoxFuture<'static, ChcResult<Option<ActionHash>>>

Just a convenience for testing. Should not be used otherwise.

Implementors§