pub struct XcmExportFeeToSibling<Balance, AccountId, FeeAssetLocation, EthereumNetwork, AssetTransactor, FeeProvider>(/* private fields */);Expand description
A HandleFee implementation that takes fees from ExportMessage XCM instructions
to Snowbridge and splits off the remote fee and deposits it to the origin
parachain sovereign account. The local fee is then returned back to be handled by
the next fee handler in the chain. Most likely the treasury account.
Trait Implementations§
source§impl<Balance, AccountId, FeeAssetLocation, EthereumNetwork, AssetTransactor, FeeProvider> HandleFee for XcmExportFeeToSibling<Balance, AccountId, FeeAssetLocation, EthereumNetwork, AssetTransactor, FeeProvider>where
Balance: BaseArithmetic + Unsigned + Copy + From<u128> + Into<u128> + Debug,
AccountId: Clone + FullCodec,
FeeAssetLocation: Get<Location>,
EthereumNetwork: Get<NetworkId>,
AssetTransactor: TransactAsset,
FeeProvider: SendMessageFeeProvider<Balance = Balance>,
impl<Balance, AccountId, FeeAssetLocation, EthereumNetwork, AssetTransactor, FeeProvider> HandleFee for XcmExportFeeToSibling<Balance, AccountId, FeeAssetLocation, EthereumNetwork, AssetTransactor, FeeProvider>where
Balance: BaseArithmetic + Unsigned + Copy + From<u128> + Into<u128> + Debug,
AccountId: Clone + FullCodec,
FeeAssetLocation: Get<Location>,
EthereumNetwork: Get<NetworkId>,
AssetTransactor: TransactAsset,
FeeProvider: SendMessageFeeProvider<Balance = Balance>,
source§fn handle_fee(
fees: Assets,
context: Option<&XcmContext>,
reason: FeeReason
) -> Assets
fn handle_fee( fees: Assets, context: Option<&XcmContext>, reason: FeeReason ) -> Assets
Do something with the fee which has been paid. Doing nothing here silently burns the
fees. Read more
Auto Trait Implementations§
impl<Balance, AccountId, FeeAssetLocation, EthereumNetwork, AssetTransactor, FeeProvider> RefUnwindSafe for XcmExportFeeToSibling<Balance, AccountId, FeeAssetLocation, EthereumNetwork, AssetTransactor, FeeProvider>where
AccountId: RefUnwindSafe,
AssetTransactor: RefUnwindSafe,
Balance: RefUnwindSafe,
EthereumNetwork: RefUnwindSafe,
FeeAssetLocation: RefUnwindSafe,
FeeProvider: RefUnwindSafe,
impl<Balance, AccountId, FeeAssetLocation, EthereumNetwork, AssetTransactor, FeeProvider> Send for XcmExportFeeToSibling<Balance, AccountId, FeeAssetLocation, EthereumNetwork, AssetTransactor, FeeProvider>
impl<Balance, AccountId, FeeAssetLocation, EthereumNetwork, AssetTransactor, FeeProvider> Sync for XcmExportFeeToSibling<Balance, AccountId, FeeAssetLocation, EthereumNetwork, AssetTransactor, FeeProvider>
impl<Balance, AccountId, FeeAssetLocation, EthereumNetwork, AssetTransactor, FeeProvider> Unpin for XcmExportFeeToSibling<Balance, AccountId, FeeAssetLocation, EthereumNetwork, AssetTransactor, FeeProvider>
impl<Balance, AccountId, FeeAssetLocation, EthereumNetwork, AssetTransactor, FeeProvider> UnwindSafe for XcmExportFeeToSibling<Balance, AccountId, FeeAssetLocation, EthereumNetwork, AssetTransactor, FeeProvider>where
AccountId: UnwindSafe,
AssetTransactor: UnwindSafe,
Balance: UnwindSafe,
EthereumNetwork: UnwindSafe,
FeeAssetLocation: UnwindSafe,
FeeProvider: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CheckedConversion for T
impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
Self: TryFrom<T>,
fn checked_from<T>(t: T) -> Option<Self>where
Self: TryFrom<T>,
§fn checked_into<T>(self) -> Option<T>where
Self: TryInto<T>,
fn checked_into<T>(self) -> Option<T>where
Self: TryInto<T>,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T, Outer> IsWrappedBy<Outer> for T
impl<T, Outer> IsWrappedBy<Outer> for T
source§impl<T> SaturatedConversion for T
impl<T> SaturatedConversion for T
source§fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
source§fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
Consume self to return an equivalent value of
T. Read moresource§impl<T, U> TryIntoKey<U> for Twhere
U: TryFromKey<T>,
impl<T, U> TryIntoKey<U> for Twhere
U: TryFromKey<T>,
type Error = <U as TryFromKey<T>>::Error
fn try_into_key(self) -> Result<U, <U as TryFromKey<T>>::Error>
§impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
§fn unchecked_into(self) -> T
fn unchecked_into(self) -> T
The counterpart to
unchecked_from.source§impl<T, S> UniqueSaturatedInto<T> for S
impl<T, S> UniqueSaturatedInto<T> for S
source§fn unique_saturated_into(self) -> T
fn unique_saturated_into(self) -> T
Consume self to return an equivalent value of
T.