fuel-core 0.28.0

Fuel client library is aggregation of all fuels service. It contains the all business logic of the fuel protocol.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::fuel_core_graphql_api::ports::OnChainDatabase;
use fuel_core_storage::Result as StorageResult;
use fuel_core_types::blockchain::primitives::DaBlockHeight;

pub trait ChainQueryData: Send + Sync {
    fn da_height(&self) -> StorageResult<DaBlockHeight>;
}

impl<D: OnChainDatabase + ?Sized> ChainQueryData for D {
    fn da_height(&self) -> StorageResult<DaBlockHeight> {
        self.da_height()
    }
}