Skip to content
Snippets Groups Projects
  • Branislav Kontur's avatar
    Bridges lane id agnostic for backwards compatibility (#5649) · 710e74dd
    Branislav Kontur authored
    
    This PR primarily fixes the issue with
    `zombienet-bridges-0001-asset-transfer-works` (see:
    https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7404903).
    
    The PR looks large, but most of the changes involve splitting `LaneId`
    into `LegacyLaneId` and `HashedLaneId`. All pallets now use `LaneId` as
    a generic parameter.
    
    The actual bridging pallets are now backward compatible and work with
    actual **substrate-relay v1.6.10**, which does not even known anything
    about permissionless lanes or the new pallet changes.
    
    
    
    ## Important
    
    - [x] added migration for `pallet_bridge_relayers` and
    `RewardsAccountParams` change order of params, which generates different
    accounts
    
    ## Deployment follow ups
    - [ ] fix monitoring for
    `at_{}_relay_{}_reward_for_msgs_from_{}_on_lane_{}`
    - [ ] check sovereign reward accounts - because of changed
    `RewardsAccountParams`
    - [ ] deploy another messages instances for permissionless lanes - on
    BHs or AHs?
    - [ ] return back `open_and_close_bridge_works` for another
    `pallet-bridge-messages` instance
    
    ---------
    
    Signed-off-by: default avatarOliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
    Co-authored-by: default avatarAdrian Catangiu <adrian@parity.io>
    Co-authored-by: default avatarOliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
    Unverified
    710e74dd
Code owners
Assign users and groups as approvers for specific file changes. Learn more.

Bridges Tests for Local Rococo <> Westend Bridge

This folder contains zombienet based integration tests for both onchain and offchain bridges code.

Prerequisites for running the tests locally:

  • download latest zombienet release;

  • build Polkadot binary by running cargo build -p polkadot --release --features fast-runtime command in the polkadot-sdk repository clone;

  • build Polkadot Parachain binary by running cargo build -p polkadot-parachain-bin --release command in the polkadot-sdk repository clone;

  • ensure that you have node installed. Additionally, we'll need globally installed polkadot/api-cli package (use npm install -g @polkadot/api-cli@beta to install it);

  • build Substrate relay by running cargo build -p substrate-relay --release command in the parity-bridges-common repository clone;

  • copy the substrate-relay binary, built in the previous step, to ~/local_bridge_testing/bin/substrate-relay;

After that, any test can be run using the run-test.sh command. Example: ./run-test.sh 0001-asset-transfer

Hopefully, it'll show the "All tests have completed successfully" message in the end. Otherwise, it'll print paths to zombienet process logs, which, in turn, may be used to track locations of all spinned relay and parachain nodes.