Trait frame_system_benchmarking::Config
source · 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§
sourcefn prepare_set_code_data() -> Vec<u8> ⓘ
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
.
sourcefn setup_set_code_requirements(_code: &Vec<u8>) -> Result<(), BenchmarkError>
fn setup_set_code_requirements(_code: &Vec<u8>) -> Result<(), BenchmarkError>
Adds ability to the Runtime to prepare/initialize before running benchmark set_code
.
sourcefn verify_set_code()
fn verify_set_code()
Adds ability to the Runtime to do custom validation after benchmark.
Default is checking for CodeUpdated
event .