Setup testnet system parachain runtimes benchmarking for delivering to sibling parachains instead of Parent
#7211
Labels
C1-mentor
A task where a mentor is available. Please indicate in the issue who the mentor could be.
C2-good-first-issue
A task for a first time contributor to become familiar with the Polkadot-SDK.
T6-XCM
This PR/Issue is related to XCM.
T12-benchmarks
This PR/Issue is related to benchmarking and weights.
Description
Currently, all system parachains benchmarking setups for
pallet_xcm::benchmarking::Config
orpallet_xcm_benchmarks::Config
are written to deliver to theParent
(i.e., the relay chain), such as for all asset transfers.As we are transitioning functionality, like balances, from the relay chain to the asset hubs, we need to update these benchmarks to reflect this migration.
Relevant Changes
Delivery Helpers:
Replace
DeliveryHelper
s that usecumulus_primitives_utility::ToParentDeliveryHelper
(example) withpolkadot_runtime_common::xcm_sender::ToParachainDeliveryHelper
(example).Destination Updates:
Review and update all destinations used in the benchmarks, including:
fn valid_destination()
fn subscribe_origin()
fn set_up_complex_asset_transfer()
TrustedTeleporter
This ensures the benchmarks are aligned with the changes in architecture and accurately reflect the new delivery paths.
TODO/Progress
pallet_xcm::benchmarking::Config
pallet_xcm_benchmarks::Config
Follow-up
Tracking issue for polkadot-fellows: polkadot-fellows/runtimes#546
The text was updated successfully, but these errors were encountered: