pub trait RelaychainStateProvider {
    // Required method
    fn current_relay_chain_state() -> RelayChainState;
}
Expand description

This exposes the RelayChainState to other runtime modules.

Enables parachains to read relay chain state via state proofs.

Required Methods§

source

fn current_relay_chain_state() -> RelayChainState

May be called by any runtime module to obtain the current state of the relay chain.

NOTE: This is not guaranteed to return monotonically increasing relay parents.

Implementors§