partner_chains_dolos_data_sources/
mc_hash.rs1use crate::Result;
2use async_trait::async_trait;
3use sidechain_domain::*;
4
5pub struct McHashDataSourceImpl {}
6
7impl McHashDataSourceImpl {
8 pub fn new() -> Self {
9 Self {}
10 }
11}
12
13#[async_trait]
14impl sidechain_mc_hash::McHashDataSource for McHashDataSourceImpl {
15 async fn get_latest_stable_block_for(
16 &self,
17 _reference_timestamp: sp_timestamp::Timestamp,
18 ) -> Result<Option<MainchainBlock>> {
19 Err("not implemented".into())
20 }
21
22 async fn get_stable_block_for(
23 &self,
24 _hash: McBlockHash,
25 _reference_timestamp: sp_timestamp::Timestamp,
26 ) -> Result<Option<MainchainBlock>> {
27 Err("not implemented".into())
28 }
29
30 async fn get_block_by_hash(&self, _hash: McBlockHash) -> Result<Option<MainchainBlock>> {
31 Err("not implemented".into())
32 }
33}