mithril_common::signable_builder

Trait StakeDistributionRetriever

source
pub trait StakeDistributionRetriever: Send + Sync {
    // Required method
    fn retrieve<'life0, 'async_trait>(
        &'life0 self,
        epoch: Epoch,
    ) -> Pin<Box<dyn Future<Output = StdResult<Option<StakeDistribution>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Stake Distribution Retriever

Required Methods§

source

fn retrieve<'life0, 'async_trait>( &'life0 self, epoch: Epoch, ) -> Pin<Box<dyn Future<Output = StdResult<Option<StakeDistribution>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Retrieve the StakeDistribution for a given epoch

Implementors§