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§
Sourcefn validate_params(&self) -> Result<()>
fn validate_params(&self) -> Result<()>
Check that config is valid.
fn get_raw_cell(&self, id: u32) -> Result<Option<Cell>, Error>
Provided Methods§
Sourcefn get_prev_validator_set_raw(&self) -> Result<Option<Cell>, Error>
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).
Sourcefn get_current_validator_set_raw(&self) -> Result<Cell, Error>
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).
Sourcefn get_next_validator_set_raw(&self) -> Result<Option<Cell>, Error>
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).