Type Alias moonbeam_runtime::xcm_config::XcmRouter

source ·
pub type XcmRouter = WithUniqueTopic<(ParentAsUmp<ParachainSystem, PolkadotXcm, ()>, XcmpQueue)>;
Expand description

The means for routing XCM messages which are not for local execution into the right message queues.

Aliased Type§

struct XcmRouter(/* private fields */);

Trait Implementations

§

impl<Inner> InspectMessageQueues for WithUniqueTopic<Inner>
where Inner: InspectMessageQueues,

§

fn clear_messages()

Clear the queues at the beginning of Runtime API call, so that subsequent Self::get_messages() will return only messages generated by said Runtime API.
§

fn get_messages() -> Vec<(VersionedLocation, Vec<VersionedXcm<()>>)>

Get queued messages and their destinations.
§

impl<Inner> SendXcm for WithUniqueTopic<Inner>
where Inner: SendXcm,

§

type Ticket = (<Inner as SendXcm>::Ticket, [u8; 32])

Intermediate value which connects the two phases of the send operation.
§

fn validate( destination: &mut Option<Location>, message: &mut Option<Xcm<()>>, ) -> Result<(<WithUniqueTopic<Inner> as SendXcm>::Ticket, Assets), SendError>

Check whether the given _message is deliverable to the given _destination and if so determine the cost which will be paid by this chain to do so, returning a Validated token which can be used to enact delivery. Read more
§

fn deliver( ticket: <WithUniqueTopic<Inner> as SendXcm>::Ticket, ) -> Result<[u8; 32], SendError>

Actually carry out the delivery operation for a previously validated message sending.