CardanoStakeDistributionAggregatorRequest

Trait CardanoStakeDistributionAggregatorRequest 

Source
pub trait CardanoStakeDistributionAggregatorRequest: Send + Sync {
    // Required methods
    fn list_latest<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = MithrilResult<Vec<CardanoStakeDistributionListItem>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_by_hash<'life0, 'life1, 'async_trait>(
        &'life0 self,
        hash: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = MithrilResult<Option<CardanoStakeDistribution>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_by_epoch<'life0, 'async_trait>(
        &'life0 self,
        specifier: EpochSpecifier,
    ) -> Pin<Box<dyn Future<Output = MithrilResult<Option<CardanoStakeDistribution>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Define the requests against an aggregator related to Cardano stake distribution.

Required Methods§

Source

fn list_latest<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = MithrilResult<Vec<CardanoStakeDistributionListItem>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get the list of the latest Cardano stake distributions from the aggregator.

Source

fn get_by_hash<'life0, 'life1, 'async_trait>( &'life0 self, hash: &'life1 str, ) -> Pin<Box<dyn Future<Output = MithrilResult<Option<CardanoStakeDistribution>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Get a Cardano stake distribution for a given hash from the aggregator.

Source

fn get_by_epoch<'life0, 'async_trait>( &'life0 self, specifier: EpochSpecifier, ) -> Pin<Box<dyn Future<Output = MithrilResult<Option<CardanoStakeDistribution>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get a Cardano stake distribution for an EpochSpecifier from the aggregator.

Implementations on Foreign Types§

Source§

impl CardanoStakeDistributionAggregatorRequest for AggregatorHttpClient

Source§

fn list_latest<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = MithrilResult<Vec<CardanoStakeDistributionListItem>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn get_by_hash<'life0, 'life1, 'async_trait>( &'life0 self, hash: &'life1 str, ) -> Pin<Box<dyn Future<Output = MithrilResult<Option<CardanoStakeDistribution>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

fn get_by_epoch<'life0, 'async_trait>( &'life0 self, specifier: EpochSpecifier, ) -> Pin<Box<dyn Future<Output = MithrilResult<Option<CardanoStakeDistribution>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§