pub trait Config: Config {
    // Provided methods
    fn prepare_set_code_data() -> Vec<u8>  { ... }
    fn setup_set_code_requirements(
        _code: &Vec<u8>
    ) -> Result<(), BenchmarkError> { ... }
    fn verify_set_code() { ... }
}

Provided Methods§

source

fn prepare_set_code_data() -> Vec<u8>

Adds ability to the Runtime to test against their sample code.

Default is ../res/kitchensink_runtime.compact.compressed.wasm.

source

fn setup_set_code_requirements(_code: &Vec<u8>) -> Result<(), BenchmarkError>

Adds ability to the Runtime to prepare/initialize before running benchmark set_code.

source

fn verify_set_code()

Adds ability to the Runtime to do custom validation after benchmark.

Default is checking for CodeUpdated event .

Implementors§