sp_messenger

Trait OnXDMRewards

source
pub trait OnXDMRewards<Balance> {
    // Required methods
    fn on_xdm_rewards(rewards: Balance);
    fn on_chain_protocol_fees(chain_id: ChainId, fees: Balance);
}
Expand description

Trait to handle XDM rewards.

Required Methods§

source

fn on_xdm_rewards(rewards: Balance)

source

fn on_chain_protocol_fees(chain_id: ChainId, fees: Balance)

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<Balance> OnXDMRewards<Balance> for ()

source§

fn on_xdm_rewards(_: Balance)

source§

fn on_chain_protocol_fees(_chain_id: ChainId, _fees: Balance)

Implementors§