referrerpolicy=no-referrer-when-downgrade
pub trait BenchmarkHelperTrait<AccountId, FunAssetIdParameter, AssetIdParameter> {
    // Required methods
    fn create_asset_id_parameter(
        id: u32,
    ) -> (FunAssetIdParameter, AssetIdParameter);
    fn setup_balances_and_pool(
        asset_id: FunAssetIdParameter,
        account: AccountId,
    );
}
Expand description

Helper trait to benchmark the ChargeAssetTxPayment transaction extension.

Required Methods§

source

fn create_asset_id_parameter(id: u32) -> (FunAssetIdParameter, AssetIdParameter)

Returns the AssetId to be used in the liquidity pool by the benchmarking code.

source

fn setup_balances_and_pool(asset_id: FunAssetIdParameter, account: AccountId)

Create a liquidity pool for a given asset and sufficiently endow accounts to benchmark the extension.

Object Safety§

This trait is not object safe.

Implementors§