mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-17 03:11:01 +00:00
Add claim_assets extrinsic to pallet-xcm (#3403)
If an XCM execution fails or ends with leftover assets, these will be trapped. In order to claim them, a custom XCM has to be executed, with the `ClaimAsset` instruction. However, arbitrary XCM execution is not allowed everywhere yet and XCM itself is still not easy enough to use for users out there with trapped assets. This new extrinsic in `pallet-xcm` will allow these users to easily claim their assets, without concerning themselves with writing arbitrary XCMs. Part of fixing https://github.com/paritytech/polkadot-sdk/issues/3495 --------- Co-authored-by: command-bot <> Co-authored-by: Adrian Catangiu <adrian@parity.io>
This commit is contained in:
committed by
GitHub
parent
c0e52a9ed6
commit
650886683d
@@ -0,0 +1,22 @@
|
||||
# Schema: Polkadot SDK PRDoc Schema (prdoc) v1.0.0
|
||||
# See doc at https://raw.githubusercontent.com/paritytech/polkadot-sdk/master/prdoc/schema_user.json
|
||||
|
||||
title: "Add `claim_assets` extrinsic to `pallet-xcm`"
|
||||
|
||||
doc:
|
||||
- audience: Runtime User
|
||||
description: |
|
||||
There's a new extrinsic in `pallet-xcm` for claiming assets.
|
||||
This means that if your assets ever get trapped while teleporting or doing reserve asset transfers,
|
||||
you can easily claim them by calling this new extrinsic.
|
||||
- audience: Runtime Dev
|
||||
description: |
|
||||
There's a new extrinsic in `pallet-xcm` that needs a new configuration item for its benchmarks.
|
||||
It's a simple function in `pallet_xcm::benchmarking::Config`, `get_asset`, that returns a valid asset
|
||||
handled by the AssetTransactor of the chain.
|
||||
If you're already using `pallet-xcm-benchmarks`, then you already have this function there and can
|
||||
just copy and paste it.
|
||||
|
||||
crates:
|
||||
- name: pallet-xcm
|
||||
- name: staging-xcm
|
||||
Reference in New Issue
Block a user