referrerpolicy=no-referrer-when-downgrade

Macro xcm_simulator::decl_test_parachain

source ·
macro_rules! decl_test_parachain {
    (
		pub struct $name:ident {
			Runtime = $runtime:path,
			XcmpMessageHandler = $xcmp_message_handler:path,
			DmpMessageHandler = $dmp_message_handler:path,
			new_ext = $new_ext:expr,
		}
	) => { ... };
}
Expand description

The macro is implementing the XcmMessageHandlerT and DmpMessageHandlerT traits for the provided parachain struct. Expects the provided parachain struct to define the XcmpMessageHandler and DmpMessageHandler pallets that contain the message handling logic.

decl_test_parachain! {
	    pub struct ParaA {
	        Runtime = parachain::Runtime,
	        XcmpMessageHandler = parachain::MsgQueue,
	        DmpMessageHandler = parachain::MsgQueue,
	        new_ext = para_ext(),
	    }
}