Trait bp_messages::ChainWithMessages

source ·
pub trait ChainWithMessages: Chain {
    const WITH_CHAIN_MESSAGES_PALLET_NAME: &'static str;
    const MAX_UNREWARDED_RELAYERS_IN_CONFIRMATION_TX: MessageNonce;
    const MAX_UNCONFIRMED_MESSAGES_IN_CONFIRMATION_TX: MessageNonce;
}
Expand description

Substrate-based chain with messaging support.

Required Associated Constants§

source

const WITH_CHAIN_MESSAGES_PALLET_NAME: &'static str

Name of the bridge messages pallet (used in construct_runtime macro call) that is deployed at some other chain to bridge with this ChainWithMessages.

We assume that all chains that are bridging with this ChainWithMessages are using the same name.

source

const MAX_UNREWARDED_RELAYERS_IN_CONFIRMATION_TX: MessageNonce

Maximal number of unrewarded relayers in a single confirmation transaction at this ChainWithMessages.

source

const MAX_UNCONFIRMED_MESSAGES_IN_CONFIRMATION_TX: MessageNonce

Maximal number of unconfirmed messages in a single confirmation transaction at this ChainWithMessages.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T> ChainWithMessages for T

source§

const WITH_CHAIN_MESSAGES_PALLET_NAME: &'static str = UnderlyingChainOf<T>::WITH_CHAIN_MESSAGES_PALLET_NAME

source§

const MAX_UNREWARDED_RELAYERS_IN_CONFIRMATION_TX: MessageNonce = UnderlyingChainOf<T>::MAX_UNREWARDED_RELAYERS_IN_CONFIRMATION_TX

source§

const MAX_UNCONFIRMED_MESSAGES_IN_CONFIRMATION_TX: MessageNonce = UnderlyingChainOf<T>::MAX_UNCONFIRMED_MESSAGES_IN_CONFIRMATION_TX