pallet_parachain_staking::traits

Trait OnCollatorPayout

Source
pub trait OnCollatorPayout<AccountId, Balance> {
    // Required method
    fn on_collator_payout(
        for_round: RoundIndex,
        collator_id: AccountId,
        amount: Balance,
    ) -> Weight;
}

Required Methods§

Source

fn on_collator_payout( for_round: RoundIndex, collator_id: AccountId, amount: Balance, ) -> Weight

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<AccountId, Balance> OnCollatorPayout<AccountId, Balance> for ()

Source§

fn on_collator_payout( _for_round: RoundIndex, _collator_id: AccountId, _amount: Balance, ) -> Weight

Implementors§