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