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§
sourcefn prepare_rewards_account(
account_params: RewardsAccountParams<Self::LaneId>,
reward: Self::Reward,
)
fn prepare_rewards_account( account_params: RewardsAccountParams<Self::LaneId>, reward: Self::Reward, )
Prepare environment for paying given reward for serving given lane.
sourcefn deposit_account(account: Self::AccountId, balance: Self::Reward)
fn deposit_account(account: Self::AccountId, balance: Self::Reward)
Give enough balance to given account.
Provided Methods§
sourcefn bench_lane_id() -> Self::LaneId
fn bench_lane_id() -> Self::LaneId
Lane id to use in benchmarks.
Object Safety§
This trait is not object safe.