pub trait LpMessageForwarded: Sized {
    type Domain;

    // Required methods
    fn is_forwarded(&self) -> bool;
    fn unwrap_forwarded(self) -> Option<(Self::Domain, H160, Self)>;
    fn try_wrap_forward(
        domain: Self::Domain,
        forwarding_contract: H160,
        message: Self
    ) -> Result<Self, DispatchError>;
}
Expand description

Behavior of a message that can be forwarded

Required Associated Types§

Required Methods§

source

fn is_forwarded(&self) -> bool

Checks whether a message is a forwarded one.

source

fn unwrap_forwarded(self) -> Option<(Self::Domain, H160, Self)>

Unwraps a forwarded message.

source

fn try_wrap_forward( domain: Self::Domain, forwarding_contract: H160, message: Self ) -> Result<Self, DispatchError>

Attempts to wrap into a forwarded message.

Object Safety§

This trait is not object safe.

Implementors§