pub trait AggregatorClient: Sync + Send {
// Required methods
fn retrieve_epoch_settings<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Option<SignerEpochSettings>, 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, 'life3, 'async_trait>(
&'life0 self,
signed_entity_type: &'life1 SignedEntityType,
signatures: &'life2 SingleSignatures,
protocol_message: &'life3 ProtocolMessage,
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait;
fn retrieve_aggregator_features<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<AggregatorFeaturesMessage, AggregatorClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: '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<SignerEpochSettings>, 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<SignerEpochSettings>, AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieves epoch settings 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, 'life3, 'async_trait>(
&'life0 self,
signed_entity_type: &'life1 SignedEntityType,
signatures: &'life2 SingleSignatures,
protocol_message: &'life3 ProtocolMessage,
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn register_signatures<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
signed_entity_type: &'life1 SignedEntityType,
signatures: &'life2 SingleSignatures,
protocol_message: &'life3 ProtocolMessage,
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Registers single signatures with the aggregator.
sourcefn retrieve_aggregator_features<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<AggregatorFeaturesMessage, AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn retrieve_aggregator_features<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<AggregatorFeaturesMessage, AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieves aggregator features message from the aggregator