1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use cfg_types::domain_address::DomainAddress;
use frame_support::pallet_prelude::{Decode, Encode, MaxEncodedLen, TypeInfo};

/// Message type used by the LP gateway.
#[derive(Debug, Encode, Decode, Clone, Eq, MaxEncodedLen, PartialEq, TypeInfo)]
pub enum GatewayMessage<Message, RouterId> {
	Inbound {
		domain_address: DomainAddress,
		message: Message,
		router_id: RouterId,
	},
	Outbound {
		message: Message,
		router_id: RouterId,
	},
}