referrerpolicy=no-referrer-when-downgrade
pallet_staking_async_rc_client

Trait SendToRelayChain

Source
pub trait SendToRelayChain {
    type AccountId;

    // Required method
    fn validator_set(report: ValidatorSetReport<Self::AccountId>);
}
Expand description

The communication trait of pallet-staking-async-rc-client -> relay-chain.

This trait should only encapsulate our outgoing communication to the RC. Any incoming communication comes it directly via our calls.

In a real runtime, this is implemented via XCM calls, much like how the core-time pallet works. In a test runtime, it can be wired to direct function calls.

Required Associated Types§

Source

type AccountId

The validator account ids.

Required Methods§

Source

fn validator_set(report: ValidatorSetReport<Self::AccountId>)

Send a new validator set report to relay chain.

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.

Implementors§