mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 17:31:03 +00:00
Bridge zombienet tests - move all test scripts to the same folder (#3333)
Related to https://github.com/paritytech/polkadot-sdk/issues/3242
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
Description: User is able to transfer ROC from Rococo Asset Hub to Westend Asset Hub and back
|
||||
Network: ../../environments/rococo-westend/bridge_hub_westend_local_network.toml
|
||||
Creds: config
|
||||
|
||||
# send ROC to //Alice from Rococo AH to Westend AH
|
||||
asset-hub-westend-collator1: run ../../environments/rococo-westend/helper.sh with "reserve-transfer-assets-from-asset-hub-rococo-local" within 120 seconds
|
||||
|
||||
# check that //Alice received the ROC on Westend AH
|
||||
asset-hub-westend-collator1: js-script ../../js-helpers/wrapped-assets-balance.js with "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY,0,Rococo" within 300 seconds
|
||||
|
||||
# check that the relayer //Charlie is rewarded by Westend AH
|
||||
bridge-hub-westend-collator1: js-script ../../js-helpers/relayer-rewards.js with "5FLSigC9HGRKVhB9FiEo4Y3koPsNmBmLJbpXg2mp1hXcS59Y,0x00000002,0x6268726F,ThisChain,0" within 30 seconds
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
source "${BASH_SOURCE%/*}/../../utils/common.sh"
|
||||
source "${BASH_SOURCE%/*}/../../utils/zombienet.sh"
|
||||
|
||||
${BASH_SOURCE%/*}/../../environments/rococo-westend/spawn.sh --init --start-relayer &
|
||||
env_pid=$!
|
||||
|
||||
ensure_process_file $env_pid $TEST_DIR/rococo.env 400
|
||||
rococo_dir=`cat $TEST_DIR/rococo.env`
|
||||
echo
|
||||
|
||||
ensure_process_file $env_pid $TEST_DIR/westend.env 180
|
||||
westend_dir=`cat $TEST_DIR/westend.env`
|
||||
echo
|
||||
|
||||
run_zndsl ${BASH_SOURCE%/*}/roc-reaches-westend.zndsl $westend_dir
|
||||
run_zndsl ${BASH_SOURCE%/*}/wnd-reaches-rococo.zndsl $rococo_dir
|
||||
|
||||
run_zndsl ${BASH_SOURCE%/*}/wroc-reaches-rococo.zndsl $rococo_dir
|
||||
run_zndsl ${BASH_SOURCE%/*}/wwnd-reaches-westend.zndsl $westend_dir
|
||||
@@ -0,0 +1,12 @@
|
||||
Description: User is able to transfer WND from Westend Asset Hub to Rococo Asset Hub and back
|
||||
Network: ../../environments/rococo-westend/bridge_hub_rococo_local_network.toml
|
||||
Creds: config
|
||||
|
||||
# send WND to //Alice from Westend AH to Rococo AH
|
||||
asset-hub-rococo-collator1: run ../../environments/rococo-westend/helper.sh with "reserve-transfer-assets-from-asset-hub-westend-local" within 120 seconds
|
||||
|
||||
# check that //Alice received the WND on Rococo AH
|
||||
asset-hub-rococo-collator1: js-script ../../js-helpers/wrapped-assets-balance.js with "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY,0,Westend" within 300 seconds
|
||||
|
||||
# check that the relayer //Charlie is rewarded by Rococo AH
|
||||
bridge-hub-rococo-collator1: js-script ../../js-helpers/relayer-rewards.js with "5FLSigC9HGRKVhB9FiEo4Y3koPsNmBmLJbpXg2mp1hXcS59Y,0x00000002,0x62687764,ThisChain,0" within 30 seconds
|
||||
@@ -0,0 +1,10 @@
|
||||
Description: User is able to transfer ROC from Rococo Asset Hub to Westend Asset Hub and back
|
||||
Network: ../../environments/rococo-westend/bridge_hub_westend_local_network.toml
|
||||
Creds: config
|
||||
|
||||
# send wROC back to Alice from Westend AH to Rococo AH
|
||||
asset-hub-rococo-collator1: run ../../environments/rococo-westend/helper.sh with "withdraw-reserve-assets-from-asset-hub-westend-local" within 120 seconds
|
||||
|
||||
# check that //Alice received the wROC on Rococo AH
|
||||
# (we wait until //Alice account increases here - there are no other transactions that may increase it)
|
||||
asset-hub-rococo-collator1: js-script ../../js-helpers/native-assets-balance-increased.js with "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY" within 300 seconds
|
||||
@@ -0,0 +1,10 @@
|
||||
Description: User is able to transfer ROC from Rococo Asset Hub to Westend Asset Hub and back
|
||||
Network: ../../environments/rococo-westend/bridge_hub_westend_local_network.toml
|
||||
Creds: config
|
||||
|
||||
# send wWND back to Alice from Rococo AH to Westend AH
|
||||
asset-hub-westend-collator1: run ../../environments/rococo-westend/helper.sh with "withdraw-reserve-assets-from-asset-hub-rococo-local" within 120 seconds
|
||||
|
||||
# check that //Alice received the wWND on Westend AH
|
||||
# (we wait until //Alice account increases here - there are no other transactions that may increase it)
|
||||
asset-hub-westend-collator1: js-script ../../js-helpers/native-assets-balance-increased.js with "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY" within 300 seconds
|
||||
Reference in New Issue
Block a user