Trait bp_relayers::PaymentProcedure
source · pub trait PaymentProcedure<Relayer, Reward> {
type Error: Debug;
type LaneId: Decode + Encode;
// Required method
fn pay_reward(
relayer: &Relayer,
rewards_account_params: RewardsAccountParams<Self::LaneId>,
reward: Reward,
) -> Result<(), Self::Error>;
}
Expand description
Reward payment procedure.
Required Associated Types§
Required Methods§
sourcefn pay_reward(
relayer: &Relayer,
rewards_account_params: RewardsAccountParams<Self::LaneId>,
reward: Reward,
) -> Result<(), Self::Error>
fn pay_reward( relayer: &Relayer, rewards_account_params: RewardsAccountParams<Self::LaneId>, reward: Reward, ) -> Result<(), Self::Error>
Pay reward to the relayer from the account with provided params.
Object Safety§
This trait is not object safe.