Struct gekko::runtime::kusama::extrinsics::xcm_pallet::TeleportAssets [−][src]
pub struct TeleportAssets<A, B, C, D> where
A: Encode + Decode,
B: Encode + Decode,
C: Encode + Decode,
D: Encode + Decode, {
pub dest: A,
pub beneficiary: B,
pub assets: C,
pub dest_weight: D,
}
Expand description
Teleport some assets from the local chain to some destination chain.
Documentation (provided by the runtime metadata)
Teleport some assets from the local chain to some destination chain.
origin
: Must be capable of withdrawing theassets
and executing XCM.dest
: Destination context for the assets. Will typically beX2(Parent, Parachain(..))
to send from parachain to parachain, orX1(Parachain(..))
to send from relay to parachain.beneficiary
: A beneficiary location for the assets in the context ofdest
. Will generally be anAccountId32
value.assets
: The assets to be withdrawn. This should include the assets used to pay the fee on thedest
side.dest_weight
: Equal to the total weight ondest
of the XCM messageTeleport { assets, effects: [ BuyExecution{..}, DepositAsset{..} ] }
.
Type Disclaimer
This library makes no assumptions about parameter types and must be specified manually as generic types. Each field contains a type description which can serve as a hint on what type is being expected, as provided by the runtime meatadata. See the common
module for common types which can be used.
Fields
dest: A
Type description: MultiLocation
beneficiary: B
Type description: MultiLocation
assets: C
Type description: Vec<MultiAsset>
dest_weight: D
Type description: Weight
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
impl<A: Eq, B: Eq, C: Eq, D: Eq> Eq for TeleportAssets<A, B, C, D> where
A: Encode + Decode,
B: Encode + Decode,
C: Encode + Decode,
D: Encode + Decode,
impl<A, B, C, D> StructuralEq for TeleportAssets<A, B, C, D> where
A: Encode + Decode,
B: Encode + Decode,
C: Encode + Decode,
D: Encode + Decode,
Auto Trait Implementations
impl<A, B, C, D> RefUnwindSafe for TeleportAssets<A, B, C, D> where
A: RefUnwindSafe,
B: RefUnwindSafe,
C: RefUnwindSafe,
D: RefUnwindSafe,
impl<A, B, C, D> UnwindSafe for TeleportAssets<A, B, C, D> where
A: UnwindSafe,
B: UnwindSafe,
C: UnwindSafe,
D: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
The counterpart to unchecked_from
.