Trait xcm::v0::prelude::ExecuteXcm

source ·
pub trait ExecuteXcm<RuntimeCall> {
    // Required method
    fn execute_xcm_in_credit(
        origin: MultiLocation,
        message: Xcm<RuntimeCall>,
        weight_limit: u64,
        weight_credit: u64
    ) -> Outcome;

    // Provided method
    fn execute_xcm(
        origin: MultiLocation,
        message: Xcm<RuntimeCall>,
        weight_limit: u64
    ) -> Outcome { ... }
}
Expand description

Type of XCM message executor.

Required Methods§

source

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

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: MultiLocation, message: Xcm<RuntimeCall>, weight_limit: u64 ) -> Outcome

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.

Implementations on Foreign Types§

source§

impl<C> ExecuteXcm<C> for ()

source§

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

Implementors§