Last active
February 19, 2022 12:41
-
-
Save pepoviola/31b5cc06265313ff15f901cacb7be176 to your computer and use it in GitHub Desktop.
Zombienet example native provider
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
#!/usr/bin/env bash | |
set -euxo pipefail | |
# get zombienet | |
curl -L -O https://github.com/paritytech/zombienet/releases/download/v1.2.14/zombienet-linux | |
chmod +x zombienet-linux | |
# get polkadot | |
curl -L -O https://github.com/paritytech/polkadot/releases/download/v0.9.15-1/polkadot | |
chmod +x polkadot | |
# get adder-collator | |
curl -L -O https://gitlab.parity.io/parity/polkadot/-/jobs/1392394/artifacts/raw/artifacts/adder-collator | |
chmod +x adder-collator | |
#export PATH | |
export PATH=$(pwd):$PATH | |
# get the network file | |
curl -L -O https://gist.github.com/pepoviola/31b5cc06265313ff15f901cacb7be176/raw/network.toml | |
# run | |
./zombienet-linux -p native spawn ./network.toml |
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
[settings] | |
timeout = 1000 | |
[relaychain] | |
default_image = "docker.io/paritypr/synth-wave:4131-0.9.12-ccd09bbf-29a1ac18" | |
chain = "rococo-local" | |
command = "polkadot" | |
[[relaychain.nodes]] | |
name = "alice" | |
validator = true | |
extra_args = [ "--alice", "-lparachain=debug" ] | |
[[relaychain.nodes]] | |
name = "bob" | |
validator = true | |
extra_args = [ "--bob", "-lparachain=debug" ] | |
[[parachains]] | |
id = 100 | |
[parachains.collator] | |
name = "collator01" | |
image = "docker.io/paritypr/colander:4131-ccd09bbf" | |
command = "adder-collator" | |
[types.Header] | |
number = "u64" | |
parent_hash = "Hash" | |
post_state = "Hash" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment