XCMv5: add ExecuteWithOrigin instruction (#6304)
Added `ExecuteWithOrigin` instruction according to the old XCM RFC 38: https://github.com/polkadot-fellows/xcm-format/pull/38. This instruction allows you to descend or clear while going back again. ## TODO - [x] Implementation - [x] Unit tests - [x] Integration tests - [x] Benchmarks - [x] PRDoc ## Future work Modify `WithComputedOrigin` barrier to allow, for example, fees to be paid with a descendant origin using this instruction. --------- Signed-off-by:Adrian Catangiu <adrian@parity.io> Co-authored-by:
Adrian Catangiu <adrian@parity.io> Co-authored-by:
Andrii <ndk@parity.io> Co-authored-by:
Branislav Kontur <bkontur@gmail.com> Co-authored-by:
Joseph Zhao <65984904+programskillforverification@users.noreply.github.com> Co-authored-by:
Nazar Mokrynskyi <nazar@mokrynskyi.com> Co-authored-by:
Bastian Köcher <git@kchr.de> Co-authored-by:
Shawn Tabrizi <shawntabrizi@gmail.com> Co-authored-by: command-bot <>
Showing
- Cargo.lock 6 additions, 5 deletionsCargo.lock
- cumulus/parachains/integration-tests/emulated/tests/assets/asset-hub-westend/Cargo.toml 1 addition, 0 deletions...-tests/emulated/tests/assets/asset-hub-westend/Cargo.toml
- cumulus/parachains/integration-tests/emulated/tests/assets/asset-hub-westend/src/tests/claim_assets.rs 82 additions, 0 deletions.../tests/assets/asset-hub-westend/src/tests/claim_assets.rs
- cumulus/parachains/runtimes/assets/asset-hub-rococo/src/weights/xcm/mod.rs 3 additions, 0 deletions...s/runtimes/assets/asset-hub-rococo/src/weights/xcm/mod.rs
- cumulus/parachains/runtimes/assets/asset-hub-rococo/src/weights/xcm/pallet_xcm_benchmarks_generic.rs 7 additions, 0 deletions...b-rococo/src/weights/xcm/pallet_xcm_benchmarks_generic.rs
- cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/xcm/mod.rs 3 additions, 0 deletions.../runtimes/assets/asset-hub-westend/src/weights/xcm/mod.rs
- cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/xcm/pallet_xcm_benchmarks_generic.rs 7 additions, 0 deletions...-westend/src/weights/xcm/pallet_xcm_benchmarks_generic.rs
- cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/weights/xcm/mod.rs 3 additions, 0 deletions...imes/bridge-hubs/bridge-hub-rococo/src/weights/xcm/mod.rs
- cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/weights/xcm/pallet_xcm_benchmarks_generic.rs 7 additions, 0 deletions...b-rococo/src/weights/xcm/pallet_xcm_benchmarks_generic.rs
- cumulus/parachains/runtimes/bridge-hubs/bridge-hub-westend/src/weights/xcm/mod.rs 3 additions, 0 deletions...mes/bridge-hubs/bridge-hub-westend/src/weights/xcm/mod.rs
- cumulus/parachains/runtimes/bridge-hubs/bridge-hub-westend/src/weights/xcm/pallet_xcm_benchmarks_generic.rs 7 additions, 0 deletions...-westend/src/weights/xcm/pallet_xcm_benchmarks_generic.rs
- cumulus/parachains/runtimes/coretime/coretime-rococo/src/weights/xcm/mod.rs 3 additions, 0 deletions.../runtimes/coretime/coretime-rococo/src/weights/xcm/mod.rs
- cumulus/parachains/runtimes/coretime/coretime-rococo/src/weights/xcm/pallet_xcm_benchmarks_generic.rs 7 additions, 0 deletions...e-rococo/src/weights/xcm/pallet_xcm_benchmarks_generic.rs
- cumulus/parachains/runtimes/coretime/coretime-westend/src/weights/xcm/mod.rs 3 additions, 0 deletions...runtimes/coretime/coretime-westend/src/weights/xcm/mod.rs
- cumulus/parachains/runtimes/coretime/coretime-westend/src/weights/xcm/pallet_xcm_benchmarks_generic.rs 7 additions, 0 deletions...-westend/src/weights/xcm/pallet_xcm_benchmarks_generic.rs
- cumulus/parachains/runtimes/people/people-rococo/src/weights/xcm/mod.rs 3 additions, 0 deletions...ains/runtimes/people/people-rococo/src/weights/xcm/mod.rs
- cumulus/parachains/runtimes/people/people-rococo/src/weights/xcm/pallet_xcm_benchmarks_generic.rs 7 additions, 0 deletions...e-rococo/src/weights/xcm/pallet_xcm_benchmarks_generic.rs
- cumulus/parachains/runtimes/people/people-westend/src/weights/xcm/mod.rs 3 additions, 0 deletions...ins/runtimes/people/people-westend/src/weights/xcm/mod.rs
- cumulus/parachains/runtimes/people/people-westend/src/weights/xcm/pallet_xcm_benchmarks_generic.rs 7 additions, 0 deletions...-westend/src/weights/xcm/pallet_xcm_benchmarks_generic.rs
- polkadot/runtime/rococo/src/weights/pallet_xcm_benchmarks_generic.rs 7 additions, 0 deletions...ntime/rococo/src/weights/pallet_xcm_benchmarks_generic.rs
Please register or sign in to comment