Add example zombienet network file and instructions (#1839)

* Add simple example on how to spin up network.

* Update readme

* Remove unnecessary prefix

* Improve folder structure

* Add link to file

* Fix paths in readme

* Update README.md

Co-authored-by: Bastian Köcher <git@kchr.de>

Co-authored-by: Bastian Köcher <git@kchr.de>
This commit is contained in:
Sebastian Kunert
2022-11-08 19:26:20 +01:00
committed by GitHub
parent 1e7948e66f
commit f68e124a96
18 changed files with 104 additions and 58 deletions
+9
View File
@@ -0,0 +1,9 @@
async function run(nodeName, networkInfo, args) {
const paraIdStr = args[0];
const para = networkInfo.paras[paraIdStr];
const relayNode = networkInfo.relay[0];
await zombie.registerParachain(parseInt(paraIdStr,10),para.wasmPath, para.statePath, relayNode.wsUri, "//Alice", true);
}
module.exports = { run }