referrerpolicy=no-referrer-when-downgrade

Trait pallet_bridge_relayers::benchmarking::Config

source ·
pub trait Config<I: 'static = ()>: Config<I> {
    // Required methods
    fn prepare_rewards_account(
        account_params: RewardsAccountParams<Self::LaneId>,
        reward: Self::Reward,
    );
    fn deposit_account(account: Self::AccountId, balance: Self::Reward);

    // Provided method
    fn bench_lane_id() -> Self::LaneId { ... }
}
Expand description

Trait that must be implemented by runtime.

Required Methods§

source

fn prepare_rewards_account( account_params: RewardsAccountParams<Self::LaneId>, reward: Self::Reward, )

Prepare environment for paying given reward for serving given lane.

source

fn deposit_account(account: Self::AccountId, balance: Self::Reward)

Give enough balance to given account.

Provided Methods§

source

fn bench_lane_id() -> Self::LaneId

Lane id to use in benchmarks.

Object Safety§

This trait is not object safe.

Implementors§