Trait mithril_signer::AggregatorClient
source · pub trait AggregatorClient: Sync + Send {
// Required methods
fn retrieve_epoch_settings<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn retrieve_pending_certificate<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn register_signer<'life0, 'life1, 'async_trait>(
&'life0 self,
epoch: Epoch,
signer: &'life1 Signer
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn register_signatures<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
signed_entity_type: &'life1 SignedEntityType,
signatures: &'life2 SingleSignatures
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
}
Expand description
Trait for mocking and testing a AggregatorClient
Required Methods§
sourcefn retrieve_epoch_settings<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn retrieve_epoch_settings<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieves epoch settings from the aggregator
sourcefn retrieve_pending_certificate<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn retrieve_pending_certificate<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieves a pending certificate from the aggregator
sourcefn register_signer<'life0, 'life1, 'async_trait>(
&'life0 self,
epoch: Epoch,
signer: &'life1 Signer
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn register_signer<'life0, 'life1, 'async_trait>(
&'life0 self,
epoch: Epoch,
signer: &'life1 Signer
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Registers signer with the aggregator.
sourcefn register_signatures<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
signed_entity_type: &'life1 SignedEntityType,
signatures: &'life2 SingleSignatures
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn register_signatures<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
signed_entity_type: &'life1 SignedEntityType,
signatures: &'life2 SingleSignatures
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Registers single signatures with the aggregator.