Add aliasers to westend chains (#6814)
`InitiateTransfer`, the new instruction introduced in XCMv5, allows
preserving the origin after a cross-chain transfer via the usage of the
`AliasOrigin` instruction. The receiving chain needs to be configured to
allow such this instruction to have its intended effect and not just
throw an error.
In this PR, I add the alias rules specified in the [RFC for origin
preservation](https://github.com/polkadot-fellows/RFCs/blob/main/text/0122-alias-origin-on-asset-transfers.md)
to westend chains so we can test these scenarios in the testnet.
The new scenarios include:
- Sending a cross-chain transfer from one system chain to another and
doing a Transact on the same message (1 hop)
- Sending a reserve asset transfer from one chain to another going
through asset hub and doing Transact on the same message (2 hops)
The updated chains are:
- Relay: added `AliasChildLocation`
- Collectives: added `AliasChildLocation` and
`AliasOriginRootUsingFilter<AssetHubLocation, Everything>`
- People: added `AliasChildLocation` and
`AliasOriginRootUsingFilter<AssetHubLocation, Everything>`
- Coretime: added `AliasChildLocation` and
`AliasOriginRootUsingFilter<AssetHubLocation, Everything>`
AssetHub already has `AliasChildLocation` and doesn't need the other
config item.
BridgeHub is not intended to be used by end users so I didn't add any
config item.
Only added `AliasChildOrigin` to the relay since we intend for it to be
used less.
---------
Co-authored-by:
GitHub Action <action@github.com>
Co-authored-by: command-bot <>
Showing
- cumulus/parachains/runtimes/collectives/collectives-westend/src/xcm_config.rs 7 additions, 2 deletions...untimes/collectives/collectives-westend/src/xcm_config.rs
- cumulus/parachains/runtimes/coretime/coretime-westend/src/lib.rs 3 additions, 1 deletion.../parachains/runtimes/coretime/coretime-westend/src/lib.rs
- cumulus/parachains/runtimes/coretime/coretime-westend/src/weights/xcm/mod.rs 1 addition, 2 deletions...runtimes/coretime/coretime-westend/src/weights/xcm/mod.rs
- cumulus/parachains/runtimes/coretime/coretime-westend/src/weights/xcm/pallet_xcm_benchmarks_generic.rs 91 additions, 78 deletions...-westend/src/weights/xcm/pallet_xcm_benchmarks_generic.rs
- cumulus/parachains/runtimes/coretime/coretime-westend/src/xcm_config.rs 8 additions, 2 deletions...ains/runtimes/coretime/coretime-westend/src/xcm_config.rs
- cumulus/parachains/runtimes/people/people-westend/src/lib.rs 3 additions, 1 deletioncumulus/parachains/runtimes/people/people-westend/src/lib.rs
- cumulus/parachains/runtimes/people/people-westend/src/weights/xcm/mod.rs 1 addition, 2 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 99 additions, 86 deletions...-westend/src/weights/xcm/pallet_xcm_benchmarks_generic.rs
- cumulus/parachains/runtimes/people/people-westend/src/xcm_config.rs 8 additions, 2 deletions...rachains/runtimes/people/people-westend/src/xcm_config.rs
- polkadot/runtime/westend/src/lib.rs 3 additions, 2 deletionspolkadot/runtime/westend/src/lib.rs
- polkadot/runtime/westend/src/weights/xcm/mod.rs 1 addition, 2 deletionspolkadot/runtime/westend/src/weights/xcm/mod.rs
- polkadot/runtime/westend/src/weights/xcm/pallet_xcm_benchmarks_generic.rs 81 additions, 72 deletions.../westend/src/weights/xcm/pallet_xcm_benchmarks_generic.rs
- polkadot/runtime/westend/src/xcm_config.rs 14 additions, 8 deletionspolkadot/runtime/westend/src/xcm_config.rs
- polkadot/xcm/pallet-xcm-benchmarks/src/generic/benchmarking.rs 1 addition, 1 deletion...dot/xcm/pallet-xcm-benchmarks/src/generic/benchmarking.rs
- prdoc/pr_6814.prdoc 32 additions, 0 deletionsprdoc/pr_6814.prdoc
Please register or sign in to comment