fuel_chain_config::config

Trait ChainConfigDb

Source
pub trait ChainConfigDb {
    // Required methods
    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§

Source

fn get_coin_config(&self) -> Result<Option<Vec<CoinConfig>>>

Returns all unspent coin configs available in the database.

Source

fn get_contract_config(&self) -> Result<Option<Vec<ContractConfig>>, Error>

Returns alive contract configs available in the database.

Source

fn get_message_config(&self) -> Result<Option<Vec<MessageConfig>>, Error>

Returns all unspent message configs available in the database.

Source

fn get_block_height(&self) -> Result<Option<BlockHeight>, Error>

Returns the last available block height.

Implementors§