Trait fuel_chain_config::config::ChainConfigDb
source · pub trait ChainConfigDb {
fn get_coin_config(&self) -> Result<Option<Vec<CoinConfig>>>;
fn get_contract_config(&self) -> Result<Option<Vec<ContractConfig>>, Error>;
fn get_message_config(&self) -> Result<Option<Vec<MessageConfig>>, Error>;
fn get_block_height(&self) -> Result<Option<BlockHeight>, Error>;
}
Required Methods§
sourcefn get_coin_config(&self) -> Result<Option<Vec<CoinConfig>>>
fn get_coin_config(&self) -> Result<Option<Vec<CoinConfig>>>
Returns all unspent coin configs available in the database.
sourcefn get_contract_config(&self) -> Result<Option<Vec<ContractConfig>>, Error>
fn get_contract_config(&self) -> Result<Option<Vec<ContractConfig>>, Error>
Returns alive contract configs available in the database.
sourcefn get_message_config(&self) -> Result<Option<Vec<MessageConfig>>, Error>
fn get_message_config(&self) -> Result<Option<Vec<MessageConfig>>, Error>
Returns all unspent message configs available in the database.
sourcefn get_block_height(&self) -> Result<Option<BlockHeight>, Error>
fn get_block_height(&self) -> Result<Option<BlockHeight>, Error>
Returns the last available block height.