referrerpolicy=no-referrer-when-downgrade

Trait pallet_asset_conversion::BenchmarkHelper

source ·
pub trait BenchmarkHelper<AssetKind> {
    // Required method
    fn create_pair(seed1: u32, seed2: u32) -> (AssetKind, AssetKind);
}
Expand description

Benchmark Helper

Required Methods§

source

fn create_pair(seed1: u32, seed2: u32) -> (AssetKind, AssetKind)

Returns a valid assets pair for the pool creation.

When a specific asset, such as the native asset, is required in every pool, it should be returned for each odd-numbered seed.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<AssetKind> BenchmarkHelper<AssetKind> for ()
where AssetKind: From<u32>,

Implementors§

source§

impl<AssetId: From<u32> + Ord> BenchmarkHelper<NativeOrWithId<AssetId>> for NativeOrWithIdFactory<AssetId>