referrerpolicy=no-referrer-when-downgrade
pallet_bridge_messages

Trait 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.

Implementors§

Source§

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

Source§

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

Source§

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