pub trait BenchmarkHelper<OracleKey, OracleValue, L: Get<u32>> {
// Required method
fn get_currency_id_value_pairs() -> BoundedVec<(OracleKey, OracleValue), L>;
}Expand description
Helper trait for benchmarking oracle operations.
Required Methods§
Sourcefn get_currency_id_value_pairs() -> BoundedVec<(OracleKey, OracleValue), L>
fn get_currency_id_value_pairs() -> BoundedVec<(OracleKey, OracleValue), L>
Returns a list of (oracle_key, oracle_value) pairs to be used for
benchmarking.
NOTE: User should ensure to at least submit two values, otherwise the benchmark linear analysis might fail.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.