-
Notifications
You must be signed in to change notification settings - Fork 43
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
Feature suggestion , "AndThen" instruction #46
Comments
@MrishoLukamba may you format it and expand please? How it will work and interaction with other XCM things? |
For now follow up XCM instructions are only limited to asset transfers, thus includes
|
@MrishoLukamba |
The only nested instructions are of asset transfers. But it without that it is not possible |
You don't need to nest XCMs to achieve running multiple things. You can put a lot of instructions for creating complex programs. If you want to expand more on this suggestion, I suggest you write an RFC for it and I'd be happy to take a look at it. You can see some RFCs that have passed already, like ExecuteWithOrigin and SetAssetClaimer. |
Okey I will create an RFC as I do believe nested Xcm instructions with different destination context is necessary for flexibility. Thanks @franciscoaguirre for the mentioned RFC especially the executewithOrgin |
We have nested Xcm instruction whereby the preceding instruction will be executed using certain origin in a certain destination environment.
For example, TransferReserveAsset instruction.
But the existing nested xcm instructions they are rigid in terms of working with Assets.
Suggestions: What is there is a " AndThen" instruction whereby you can nest xcm instructions while be flexible on whether you should work with Assets or just Transact instructions.
AndThen {
.. Instruction {
... The following instruction with other asset perhaps and different destination.
}
}
The text was updated successfully, but these errors were encountered: