referrerpolicy=no-referrer-when-downgrade
pallet_asset_conversion

Trait 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.

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.

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>

impl<Target: Get<L>, SelfParaId: Get<ParaId>, PalletId: Get<u32>, L: TryFrom<Location> + Debug> BenchmarkHelper<L> for AssetPairFactory<Target, SelfParaId, PalletId, L>
where <L as TryFrom<Location>>::Error: Debug,