Skip to main content

BlockchainConfigExt

Trait BlockchainConfigExt 

Source
pub trait BlockchainConfigExt {
    // Required methods
    fn validate_params(&self) -> Result<()>;
    fn get_raw_cell(&self, id: u32) -> Result<Option<Cell>, Error>;

    // Provided methods
    fn get_prev_validator_set_raw(&self) -> Result<Option<Cell>, Error> { ... }
    fn get_current_validator_set_raw(&self) -> Result<Cell, Error> { ... }
    fn get_next_validator_set_raw(&self) -> Result<Option<Cell>, Error> { ... }
}

Required Methods§

Source

fn validate_params(&self) -> Result<()>

Check that config is valid.

Source

fn get_raw_cell(&self, id: u32) -> Result<Option<Cell>, Error>

Provided Methods§

Source

fn get_prev_validator_set_raw(&self) -> Result<Option<Cell>, Error>

Returns a cell with the previous validator set.

Uses ConfigParam33 (temp prev validators) or ConfigParam32 (prev validators).

Source

fn get_current_validator_set_raw(&self) -> Result<Cell, Error>

Returns a cell with the current validator set.

Uses ConfigParam35 (temp validators) or ConfigParam34 (current validators).

Source

fn get_next_validator_set_raw(&self) -> Result<Option<Cell>, Error>

Returns a cell with the next validator set.

Uses ConfigParam37 (temp next validators) or ConfigParam36 (next validators).

Implementations on Foreign Types§

Source§

impl BlockchainConfigExt for BlockchainConfig

Implementors§