paritytech / polkadot-sdk

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

[P<>K bridge] Allow multiple assets to be transferred between AssetHubs over bridge #4286

Closed acatangiu closed 3 days ago

acatangiu commented 5 months ago

To be tested first on Rococo <> Westend, then also deployed to Polkadot <> Kusama.

Main change required is the IsReserve filter on the asset hubs. New filter suggestion:

On AssetHub Polkadot: trust AHK as reserve for all assets native to Kusama:

matches!(id, { 2, GlobalConsensus(Kusama), .. })

This will allow any Kusama-based asset to move into Polkadot.

On AssetHub Kusama: trust AHP as reserve for all assets not native to Kusama:

matches!(id, { 2, GlobalConsensus(ecosystem), .. } if ecosystem != Kusama)

This will allow any non-Kusama asset to come to Kusama through Polkadot. Not just Polkadot assets, but also assets bridged to Polkadot from Ethereum/etc.

acatangiu commented 3 days ago

Implemented in https://github.com/paritytech/polkadot-sdk/pull/4888 (testnets) and https://github.com/polkadot-fellows/runtimes/pull/421 (live networks).