ExecuteXcm

Trait ExecuteXcm 

Source
pub trait ExecuteXcm<RuntimeCall> {
    // Required method
    fn execute_xcm_in_credit(
        origin: impl Into<MultiLocation>,
        message: Xcm<RuntimeCall>,
        weight_limit: Weight,
        weight_credit: Weight,
    ) -> Outcome;

    // Provided method
    fn execute_xcm(
        origin: impl Into<MultiLocation>,
        message: Xcm<RuntimeCall>,
        weight_limit: Weight,
    ) -> Outcome { ... }
}
👎Deprecated: XCMv2 will be removed once XCMv5 is released. Please use XCMv3 or XCMv4 instead.
Expand description

Type of XCM message executor.

Required Methods§

Source

fn execute_xcm_in_credit( origin: impl Into<MultiLocation>, message: Xcm<RuntimeCall>, weight_limit: Weight, weight_credit: Weight, ) -> Outcome

👎Deprecated: XCMv2 will be removed once XCMv5 is released. Please use XCMv3 or XCMv4 instead.

Execute some XCM message from origin using no more than weight_limit weight.

Some amount of weight_credit may be provided which, depending on the implementation, may allow execution without associated payment.

Provided Methods§

Source

fn execute_xcm( origin: impl Into<MultiLocation>, message: Xcm<RuntimeCall>, weight_limit: Weight, ) -> Outcome

👎Deprecated: XCMv2 will be removed once XCMv5 is released. Please use XCMv3 or XCMv4 instead.

Execute some XCM message from origin using no more than weight_limit weight. The weight limit is a basic hard-limit and the implementation may place further restrictions or requirements on weight and other aspects.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<C> ExecuteXcm<C> for ()

Source§

fn execute_xcm_in_credit( _origin: impl Into<MultiLocation>, _message: Xcm<C>, _weight_limit: Weight, _weight_credit: Weight, ) -> Outcome

👎Deprecated: XCMv2 will be removed once XCMv5 is released. Please use XCMv3 or XCMv4 instead.

Implementors§