Trait BlockParticipationDataSource

Source
pub trait BlockParticipationDataSource {
    // Required method
    fn get_stake_pool_delegation_distribution_for_pools<'life0, 'life1, 'async_trait>(
        &'life0 self,
        epoch: McEpochNumber,
        pool_hashes: &'life1 [MainchainKeyHash],
    ) -> Pin<Box<dyn Future<Output = Result<StakeDistribution, Box<dyn Error + Send + Sync>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Cardano observability data source providing queries required by BlockParticipationInherentDataProvider.

Required Methods§

Source

fn get_stake_pool_delegation_distribution_for_pools<'life0, 'life1, 'async_trait>( &'life0 self, epoch: McEpochNumber, pool_hashes: &'life1 [MainchainKeyHash], ) -> Pin<Box<dyn Future<Output = Result<StakeDistribution, Box<dyn Error + Send + Sync>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Retrieves stake pool delegation distribution for provided epoch and pools

Implementors§