partner_chains_dolos_data_sources/
candidate.rs1use crate::Result;
2use async_trait::async_trait;
3use authority_selection_inherents::*;
4use sidechain_domain::*;
5
6pub struct AuthoritySelectionDataSourceImpl {}
7
8impl AuthoritySelectionDataSourceImpl {
9 pub fn new() -> Self {
10 Self {}
11 }
12}
13
14#[async_trait]
15impl AuthoritySelectionDataSource for AuthoritySelectionDataSourceImpl {
16 async fn get_ariadne_parameters(
17 &self,
18 _epoch_number: McEpochNumber,
19 _d_parameter_validator: PolicyId,
20 _permissioned_candidates_validator: PolicyId,
21 ) -> Result<AriadneParameters> {
22 Err("not implemented".into())
23 }
24
25 async fn get_candidates(
26 &self,
27 _epoch: McEpochNumber,
28 _committee_candidate_address: MainchainAddress,
29 ) -> Result<Vec<CandidateRegistrations>> {
30 Err("not implemented".into())
31 }
32
33 async fn get_epoch_nonce(&self, _epoch_number: McEpochNumber) -> Result<Option<EpochNonce>> {
34 Err("not implemented".into())
35 }
36
37 async fn data_epoch(&self, _for_epoch: McEpochNumber) -> Result<McEpochNumber> {
38 Err("not implemented".into())
39 }
40}