referrerpolicy=no-referrer-when-downgrade

Trait pallet_bridge_messages::InboundLaneStorage

source ·
pub trait InboundLaneStorage {
    type Relayer: Clone + PartialEq;
    type LaneId: Encode;

    // Required methods
    fn id(&self) -> Self::LaneId;
    fn max_unrewarded_relayer_entries(&self) -> MessageNonce;
    fn max_unconfirmed_messages(&self) -> MessageNonce;
    fn data(&self) -> InboundLaneData<Self::Relayer>;
    fn set_data(&mut self, data: InboundLaneData<Self::Relayer>);
    fn purge(self);
}
Expand description

Inbound lane storage.

Required Associated Types§

source

type Relayer: Clone + PartialEq

Id of relayer on source chain.

source

type LaneId: Encode

Lane identifier type.

Required Methods§

source

fn id(&self) -> Self::LaneId

Lane id.

source

fn max_unrewarded_relayer_entries(&self) -> MessageNonce

Return maximal number of unrewarded relayer entries in inbound lane.

source

fn max_unconfirmed_messages(&self) -> MessageNonce

Return maximal number of unconfirmed messages in inbound lane.

source

fn data(&self) -> InboundLaneData<Self::Relayer>

Get lane data from the storage.

source

fn set_data(&mut self, data: InboundLaneData<Self::Relayer>)

Update lane data in the storage.

source

fn purge(self)

Purge lane data from the storage.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T: Config<I>, I: 'static> InboundLaneStorage for RuntimeInboundLaneStorage<T, I>

§

type Relayer = <<T as Config<I>>::BridgedChain as Chain>::AccountId

§

type LaneId = <T as Config<I>>::LaneId