Skip to content

Instantly share code, notes, and snippets.

@pepoviola
Last active February 19, 2022 12:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pepoviola/31b5cc06265313ff15f901cacb7be176 to your computer and use it in GitHub Desktop.
Save pepoviola/31b5cc06265313ff15f901cacb7be176 to your computer and use it in GitHub Desktop.
Zombienet example native provider
#!/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
[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