-
Notifications
You must be signed in to change notification settings - Fork 416
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0bd932d
commit fed76b0
Showing
6 changed files
with
129 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"name": "Rust", | ||
"image": "mcr.microsoft.com/devcontainers/rust:latest", | ||
"runArgs": ["--platform=linux/amd64"] | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
if [ $(arch) != "x86_64" ] | ||
then | ||
echo "Runs only on x86_64 architecture" | ||
exit 1 | ||
fi | ||
|
||
if ! command -v ./astar-collator &> /dev/null | ||
then | ||
echo "No executable astar-collator binary in zombienet directory" | ||
exit 1 | ||
fi | ||
|
||
ZOMBINET_VERSION=v1.3.106 | ||
|
||
if ! command -v zombienet &> /dev/null | ||
then | ||
echo "Install zombienet $ZOMBINET_VERSION" | ||
mkdir -p $HOME/.local/bin | ||
wget -q -O $HOME/.local/bin/zombienet https://github.com/paritytech/zombienet/releases/download/$ZOMBINET_VERSION/zombienet-linux-x64 | ||
chmod a+x $HOME/.local/bin/zombienet | ||
PATH=$HOME/.local/bin:$PATH | ||
zombienet version | ||
fi | ||
|
||
echo "Pull polkadot binaries" | ||
zombienet setup polkadot -y & SETUP_PID=$! | ||
while ps $SETUP_PID > /dev/null ; do | ||
sleep 1 | ||
done | ||
chmod +x polkadot polkadot-execute-worker polkadot-prepare-worker |
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,39 @@ | ||
[settings] | ||
timeout = 1000 | ||
|
||
# Used to start 4 validator nodes and 2 collator nodes for a single parachain. | ||
|
||
[relaychain] | ||
default_command = "./polkadot" | ||
chain = "rococo-local" | ||
|
||
[[relaychain.nodes]] | ||
name = "alice" | ||
validator = true | ||
|
||
[[relaychain.nodes]] | ||
name = "bob" | ||
validator = true | ||
|
||
[[relaychain.nodes]] | ||
name = "charlie" | ||
validator = true | ||
|
||
[[relaychain.nodes]] | ||
name = "dave" | ||
validator = true | ||
|
||
[[parachains]] | ||
# Right now this has to be 2000 but soon we might be able to use arbitrary para-id | ||
id = 2000 | ||
chain = "{{CHAIN}}" | ||
cumulus_based = true | ||
|
||
[[parachains.collators]] | ||
name = "collator1" | ||
command = "./astar-collator" | ||
ws_port=9944 | ||
|
||
[[parachains.collators]] | ||
name = "collator2" | ||
command = "./astar-collator" |
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,11 @@ | ||
Description: Parachain build blocks | ||
Network: ./smoke.toml | ||
Creds: config | ||
|
||
alice: is up | ||
collator1: is up | ||
collator2: is up | ||
|
||
## test the block height | ||
collator1: reports block height is greater than 5 within 200 seconds | ||
collator2: reports block height is greater than 5 within 200 seconds |