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§

source

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

Returns all unspent coin configs available in the database.

source

fn get_contract_config(&self) -> StorageResult<Option<Vec<ContractConfig>>>

Returns alive contract configs available in the database.

source

fn get_message_config(&self) -> StorageResult<Option<Vec<MessageConfig>>>

Returns all unspent message configs available in the database.

source

fn get_block_height(&self) -> StorageResult<BlockHeight>

Returns the last available block height.

Implementors§