referrerpolicy=no-referrer-when-downgrade
staging_xcm_executor::traits

Trait FeeManager

Source
pub trait FeeManager {
    // Required methods
    fn is_waived(origin: Option<&Location>, r: FeeReason) -> bool;
    fn handle_fee(fee: Assets, context: Option<&XcmContext>, r: FeeReason);
}
Expand description

Handle stuff to do with taking fees in certain XCM instructions.

Required Methods§

Source

fn is_waived(origin: Option<&Location>, r: FeeReason) -> bool

Determine if a fee should be waived.

Source

fn handle_fee(fee: Assets, context: Option<&XcmContext>, r: FeeReason)

Do something with the fee which has been paid. Doing nothing here silently burns the fees.

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 FeeManager for ()

Source§

fn is_waived(_: Option<&Location>, _: FeeReason) -> bool

Source§

fn handle_fee(_: Assets, _: Option<&XcmContext>, _: FeeReason)

Implementors§

Source§

impl<Config: Config> FeeManager for XcmExecutor<Config>

impl<WaivedLocations: Contains<Location>, FeeHandler: HandleFee> FeeManager for XcmFeeManagerFromComponentsBridgeHub<WaivedLocations, FeeHandler>

impl FeeManager for MockXcmExecutor

impl<WaivedLocations: Contains<Location>, FeeHandler: HandleFee> FeeManager for XcmFeeManagerFromComponents<WaivedLocations, FeeHandler>