paritytech / polkadot-sdk

The Parity Polkadot Blockchain SDK
https://polkadot.network/
1.85k stars 675 forks source link

[xcm-emulator] Allow Chains and Network imports from `integration-tests-common` crate #1383

Open NachoPal opened 1 year ago

NachoPal commented 1 year ago

More info here: https://github.com/paritytech/cumulus/issues/2987

It is currently not possible because of the implementation of the foreign NetworkComponent trait:

impl $crate::NetworkComponent for $relay_chain {
type Network = $name;
}

$(
impl $crate::NetworkComponent for $parachain {
    type Network = $name;
}
)*

We would need to find a workaround for implementing its methods. Maybe moving them directly to the Chain/Parachain implementations.

NachoPal commented 1 year ago

Being addressed in https://github.com/paritytech/polkadot-sdk/tree/nacho/xcm-emulator-generic-network-chain