cumulus icon indicating copy to clipboard operation
cumulus copied to clipboard

Bridge hub kusama/polkadot runtime upgrade with bridging

Open bkontur opened this issue 2 years ago • 13 comments

Based on PoC for Rococo/Wococo Bridge. Relates to: https://github.com/paritytech/cumulus/pull/2762 (asset transfer with pallet_xcm over this bridge)

PR introduces:

  • bridging capabilities (pallets, cfg) to BridgeHubKusama to enable bridging to BridgeHubPolkadot
  • bridging capabilities (pallets, cfg) to BridgeHubPolkadot to enable bridging to BridgeHubKusama
  • support/configuration for bridging between Kusama:Statemine vs Polkadot:Statemint
  • tests for both runtimes
  • zombienets/scripts for local run for scenario: Move assets between AssetHubKusama local vs AssetHubPolkadot local networks over bridge (anybody can try https://github.com/paritytech/cumulus/pull/2528/files#diff-c0cdca6d4e2786a0c267c956c790fabaaa27c8a565e95f4b0ae6b49467bd763fR227)

Context:

  • Main goal of this first stage is to setup bridge between system parachains Kusama:AssetHub vs Polkadot:AssetHub. Next stage will be focused on adding support to allow bridging between arbitrary parachains here.
  • Another goal of this PR is to pass security audit
  • Even if we merge this and redeploy runtimes on live chains, the bridge wont work. The chain's governance needs to issue dedicated calls to start bridge working (more check cutover).

Tasks:

  • [ ] reonboard BridgeHubKusama with BridgeHubPolkadot on Westend
  • [ ] prepare cutover plan for initialization and deployment (governance calls, relayers, ...) - https://github.com/paritytech/parity-bridges-common/issues/2455

More about bridges: https://github.com/paritytech/parity-bridges-common/blob/master/docs/high-level-overview.md https://github.com/paritytech/parity-bridges-common/blob/master/docs/polkadot-kusama-bridge-overview.md https://forum.parity.io/t/bridges-team-updates/1403/11 https://forum.polkadot.network/t/bridge-hub-questions/2693/2 https://forum.polkadot.network/t/bridge-hub-questions/2693/5

bkontur avatar May 05 '23 13:05 bkontur

bot bench $ pallet bridge-hub-kusama bridge-hubs pallet_bridge_grandpa bot bench $ pallet bridge-hub-kusama bridge-hubs pallet_bridge_parachains bot bench $ pallet bridge-hub-kusama bridge-hubs pallet_bridge_messages bot bench $ pallet bridge-hub-kusama bridge-hubs pallet_bridge_relayers bot bench $ xcm bridge-hub-kusama bridge-hubs pallet_xcm_benchmarks::generic

bkontur avatar May 05 '23 13:05 bkontur

bot bench $ pallet bridge-hub-kusama bridge-hubs pallet_bridge_messages bot bench $ pallet bridge-hub-kusama bridge-hubs pallet_bridge_relayers bot bench $ xcm bridge-hub-kusama bridge-hubs pallet_xcm_benchmarks::generic

bkontur avatar May 09 '23 09:05 bkontur

bot bench $ pallet bridge-hub-polkadot bridge-hubs pallet_bridge_grandpa bot bench $ pallet bridge-hub-polkadot bridge-hubs pallet_bridge_parachains bot bench $ pallet bridge-hub-polkadot bridge-hubs pallet_bridge_messages bot bench $ pallet bridge-hub-polkadot bridge-hubs pallet_bridge_relayers bot bench $ xcm bridge-hub-polkadot bridge-hubs pallet_xcm_benchmarks::generic

bkontur avatar May 10 '23 14:05 bkontur

bot rebase

bkontur avatar May 19 '23 14:05 bkontur

bot rebase

bkontur avatar May 19 '23 15:05 bkontur

bot clean

bkontur avatar May 24 '23 10:05 bkontur

This pull request has been mentioned on Polkadot Forum. There might be relevant details there:

https://forum.polkadot.network/t/polkadot-kusama-bridge/2971/2

Polkadot-Forum avatar May 26 '23 14:05 Polkadot-Forum

bot rebase

bkontur avatar Jun 14 '23 12:06 bkontur

Rebased

bot rebase

bkontur avatar Jul 03 '23 13:07 bkontur

Rebased

bot rebase

bkontur avatar Jul 04 '23 15:07 bkontur

Rebased