Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xcm: support unpaid asset transfers #4854

Open
acatangiu opened this issue Jun 21, 2024 · 0 comments
Open

xcm: support unpaid asset transfers #4854

acatangiu opened this issue Jun 21, 2024 · 0 comments
Assignees
Labels
T6-XCM This PR/Issue is related to XCM.

Comments

@acatangiu
Copy link
Contributor

acatangiu commented Jun 21, 2024

UnpaidExecution barriers expect UnpaidExecution instruction as the first instruction in a program.

Options for unpaid execution asset transfers:

  1. use InitiateTeleport, InitiateReserveWithdraw, DepositReserveAsset - not possible without Asset transfer instructions should have a way to support UnpaidExecution transfers polkadot-fellows/xcm-format#64,
  2. use pallet-xcm or some other "helper" pallet that is plugged in all the Runtime configurables and will build and correctly execute the local side and also build and send the remote side,
  3. build custom local XCM, custom local logic (like asset transactions), build custom remote XCM.

We currently only have option 3 available, but it is error prone and not future proof (#4811 (comment)).

Option 1 requires new XCM version (XCMv5).

Option 2 can be done by adding new "unpaid" flavor of pallet_xcm::transfer_assets() extrinsic.


Option 4: Use polkadot-fellows/RFCs#100 when it is available in XCMv5 which supports this.

@acatangiu acatangiu added the T6-XCM This PR/Issue is related to XCM. label Jun 21, 2024
@acatangiu acatangiu moved this to Todo in Bridges + XCM Jun 21, 2024
@acatangiu acatangiu self-assigned this Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T6-XCM This PR/Issue is related to XCM.
Projects
Status: Todo
Development

No branches or pull requests

1 participant