referrerpolicy=no-referrer-when-downgrade
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.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl PriceForMessageDelivery for ()

§

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>

§

type Id = <F as FeeTracker>::Id

source§

impl<Id> PriceForMessageDelivery for NoPriceForMessageDelivery<Id>

§

type Id = Id

source§

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

§

type Id = ()