referrerpolicy=no-referrer-when-downgrade
polkadot_runtime_common::xcm_sender

Trait PriceForMessageDelivery

Source
pub trait PriceForMessageDelivery {
    type Id;

    // Required method
    fn price_for_delivery(id: Self::Id, message: &Xcm<()>) -> Assets;
}
Expand description

Simple value-bearing trait for determining/expressing the assets required to be paid for a messages to be delivered to a parachain.

Required Associated Types§

Source

type Id

Type used for charging different prices to different destinations

Required Methods§

Source

fn price_for_delivery(id: Self::Id, message: &Xcm<()>) -> Assets

Return the assets required to deliver message to the given para destination.

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

Source§

type Id = ()

Source§

fn price_for_delivery(_: Self::Id, _: &Xcm<()>) -> Assets

Implementors§

Source§

impl<A: Get<AssetId>, B: Get<u128>, M: Get<u128>, F: FeeTracker> PriceForMessageDelivery for ExponentialPrice<A, B, M, F>

Source§

type Id = <F as FeeTracker>::Id

Source§

impl<Id> PriceForMessageDelivery for NoPriceForMessageDelivery<Id>

Source§

type Id = Id

Source§

impl<T: Get<Assets>> PriceForMessageDelivery for ConstantPrice<T>

Source§

type Id = ()