partner_chains_dolos_data_sources/
stake_distribution.rs1use sidechain_domain::*;
2use sp_block_participation::inherent_data::BlockParticipationDataSource;
3
4pub struct StakeDistributionDataSourceImpl;
5
6impl StakeDistributionDataSourceImpl {
7 pub fn new() -> Self {
8 Self {}
9 }
10}
11
12#[async_trait::async_trait]
13impl BlockParticipationDataSource for StakeDistributionDataSourceImpl {
14 async fn get_stake_pool_delegation_distribution_for_pools(
15 &self,
16 _epoch: McEpochNumber,
17 _pool_hashes: &[MainchainKeyHash],
18 ) -> Result<StakeDistribution, Box<dyn std::error::Error + Send + Sync>> {
19 Err("not implemented".into())
20 }
21}