forked from paritytech/polkadot-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump bridges relay version + uncomment bridges zombeinet tests (parit…
…ytech#4289) TODOs: - [x] wait and see if test `1` works; - [x] ~think of whether we need remaining tests.~ I think we should keep it - will try to revive and update it
- Loading branch information
Showing
9 changed files
with
51 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
bridges/testing/tests/0002-free-headers-synced-while-idle/rococo-to-westend.zndsl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Description: While relayer is idle, we only sync free Rococo (and a single Rococo BH) headers to Westend BH. | ||
Network: {{ENV_PATH}}/bridge_hub_westend_local_network.toml | ||
Creds: config | ||
|
||
# local chain spec gives `1u64 << 60` tokens to every endowed account: if it'll ever | ||
# change, it'd need to be fixed here as well | ||
|
||
# //Charlie only submits free and mandatory relay chain headers, so the balance should stay the same | ||
bridge-hub-westend-collator1: js-script {{FRAMEWORK_PATH}}/js-helpers/native-asset-balance.js with "5FLSigC9HGRKVhB9FiEo4Y3koPsNmBmLJbpXg2mp1hXcS59Y" return is 1152921504606846976 within 30 seconds | ||
# //Dave only submits free parachain headers, so the balance should stay the same | ||
bridge-hub-westend-collator1: js-script {{FRAMEWORK_PATH}}/js-helpers/native-asset-balance.js with "5DAAnrj7VHTznn2AWBemMuyBwZWs6FNFjdyVXUeYum3PTXFy" return is 1152921504606846976 within 30 seconds | ||
|
||
# ensure that we have synced multiple relay and parachain headers while idle. This includes both | ||
# headers that were generated while relay was offline and those in the next 100 seconds while script is active. | ||
bridge-hub-westend-collator1: js-script {{FRAMEWORK_PATH}}/js-helpers/multiple-headers-synced.js with "300,rococo-at-westend" within 600 seconds | ||
|
||
# //Charlie only submits free and mandatory relay chain headers, so the balance should stay the same | ||
bridge-hub-westend-collator1: js-script {{FRAMEWORK_PATH}}/js-helpers/native-asset-balance.js with "5FLSigC9HGRKVhB9FiEo4Y3koPsNmBmLJbpXg2mp1hXcS59Y" return is 1152921504606846976 within 30 seconds | ||
# //Dave only submits free parachain headers, so the balance should stay the same | ||
bridge-hub-westend-collator1: js-script {{FRAMEWORK_PATH}}/js-helpers/native-asset-balance.js with "5DAAnrj7VHTznn2AWBemMuyBwZWs6FNFjdyVXUeYum3PTXFy" return is 1152921504606846976 within 30 seconds |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
bridges/testing/tests/0002-free-headers-synced-while-idle/westend-to-rococo.zndsl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Description: While relayer is idle, we only sync free Westend (and a single Westend BH) headers to Rococo BH. | ||
Network: {{ENV_PATH}}/bridge_hub_rococo_local_network.toml | ||
Creds: config | ||
|
||
# local chain spec gives `1u64 << 60` tokens to every endowed account: if it'll ever | ||
# change, it'd need to be fixed here as well | ||
|
||
# //Charlie has inital balance | ||
bridge-hub-rococo-collator1: js-script {{FRAMEWORK_PATH}}/js-helpers/native-asset-balance.js with "5FLSigC9HGRKVhB9FiEo4Y3koPsNmBmLJbpXg2mp1hXcS59Y" return is 1152921504606846976 within 30 seconds | ||
# //Dave has inital balance | ||
bridge-hub-rococo-collator1: js-script {{FRAMEWORK_PATH}}/js-helpers/native-asset-balance.js with "5DAAnrj7VHTznn2AWBemMuyBwZWs6FNFjdyVXUeYum3PTXFy" return is 1152921504606846976 within 30 seconds | ||
|
||
# ensure that we have synced multiple relay and parachain headers while idle. This includes both | ||
# headers that were generated while relay was offline and those in the next 100 seconds while script is active. | ||
bridge-hub-rococo-collator1: js-script {{FRAMEWORK_PATH}}/js-helpers/multiple-headers-synced.js with "300,westend-at-rococo" within 600 seconds | ||
|
||
# //Charlie only submits free and mandatory relay chain headers, so the balance should stay the same | ||
bridge-hub-rococo-collator1: js-script {{FRAMEWORK_PATH}}/js-helpers/native-asset-balance.js with "5FLSigC9HGRKVhB9FiEo4Y3koPsNmBmLJbpXg2mp1hXcS59Y" return is 1152921504606846976 within 30 seconds | ||
# //Dave only submits free parachain headers, so the balance should stay the same | ||
bridge-hub-rococo-collator1: js-script {{FRAMEWORK_PATH}}/js-helpers/native-asset-balance.js with "5DAAnrj7VHTznn2AWBemMuyBwZWs6FNFjdyVXUeYum3PTXFy" return is 1152921504606846976 within 30 seconds |
8 changes: 0 additions & 8 deletions
8
bridges/testing/tests/0002-mandatory-headers-synced-while-idle/rococo-to-westend.zndsl
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
bridges/testing/tests/0002-mandatory-headers-synced-while-idle/westend-to-rococo.zndsl
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters