This instruction simplifies the setup from bridge-hub repository.
mkdir -p ~/local_bridge_testing/bin
mkdir -p ~/local_bridge_testing/logs
Go to Zombienet Release page, copy the apropriate binary
(zombienet-linux
/zombienet-macos
) from the latest release to ~/local_bridge_testing/bin
,
and rename it to zombienet
.
git clone https://github.com/paritytech/polkadot.git
cd polkadot
git checkout 5d8164fdda
cargo build --release
cp target/release/polkadot ~/local_bridge_testing/bin/polkadot
git clone https://github.com/paritytech/cumulus.git
cd cumulus
git checkout bridges-task-force/transact-experiments
cargo build --release --locked -p polkadot-parachain-bin
cp target/release/polkadot-parachain ~/local_bridge_testing/bin/polkadot-parachain-mint
git clone https://github.com/paritytech/cumulus.git
cd cumulus
git checkout bridges-task-force/ethereum-playground
cargo build --release --locked -p polkadot-parachain-bin
cp target/release/polkadot-parachain ~/local_bridge_testing/bin/polkadot-parachain
git clone https://github.com/paritytech/parity-bridges-common.git
cd parity-bridges-common
git checkout 036e6696
cargo build --release -p substrate-relay
cp target/release/substrate-relay ~/local_bridge_testing/bin/substrate-relay
NOTE: cumulus repository must be on bridges-task-force/ethereum-playground
branch.
ln -s <path_to_cumulus_local_dir> cumulus
In a separated terminal run Kusama side:
./scripts/kusama.sh
In a separated terminal run Polkadot side:
./scripts/polkadot.sh
In a separated terminal run relayer for Kusama <> Polkadot:
./scripts/relay.sh
ln -s <path_to_ethereum_xcm_builder> ethereum_xcm_builder
Follow the instruction to install Python, venv & activate venv.
Remember to load venv for the project:
source venv/bin/activate
Install Python dependencies for the Ethereum -> Polkadot relayer:
pip3 install --upgrade pip
pip3 install -r requirements.txt
Remember to load venv for the project:
source venv/bin/activate
Run Python script for relayer:
python3 main.py
Check if everything works as expected following the instruction.