From 39d6bdd036a8d629d08f377df0ce3f052940c0d7 Mon Sep 17 00:00:00 2001 From: Damilare Date: Thu, 3 Aug 2023 21:58:39 +0100 Subject: [PATCH] polkadot launch --- .../polkadot-launch/{dev.json => dev_1.json} | 0 scripts/polkadot-launch/dev_2.json | 115 ++++++++++++++++++ scripts/polkadot-launch/package.json | 4 +- 3 files changed, 117 insertions(+), 2 deletions(-) rename scripts/polkadot-launch/{dev.json => dev_1.json} (100%) create mode 100644 scripts/polkadot-launch/dev_2.json diff --git a/scripts/polkadot-launch/dev.json b/scripts/polkadot-launch/dev_1.json similarity index 100% rename from scripts/polkadot-launch/dev.json rename to scripts/polkadot-launch/dev_1.json diff --git a/scripts/polkadot-launch/dev_2.json b/scripts/polkadot-launch/dev_2.json new file mode 100644 index 000000000..0ef3a71ed --- /dev/null +++ b/scripts/polkadot-launch/dev_2.json @@ -0,0 +1,115 @@ +{ + "relaychain": { + "bin": "../../../polkadot/target/release/polkadot", + "chain": "rococo-local", + "genesis": { + "runtime": { + "runtime_genesis_config": { + "configuration": { + "config": { + "validation_upgrade_frequency": 2, + "validation_upgrade_delay": 2 + } + } + } + } + }, + "nodes": [ + { + "name": "alice", + "wsPort": 8944, + "port": 20444, + "basePath": "/tmp/polkadot-launch/relaychains/alice", + "flags": ["--rpc-cors=all", "--beefy", "--enable-offchain-indexing=true"] + }, + { + "name": "bob", + "wsPort": 8955, + "port": 20555, + "basePath": "/tmp/polkadot-launch/relaychains/bob", + "flags": ["--beefy"] + }, + { + "name": "charlie", + "wsPort": 8966, + "port": 20666, + "basePath": "/tmp/polkadot-launch/relaychains/charlie", + "flags": ["--rpc-cors=all", "--beefy"] + }, + { + "name": "dave", + "wsPort": 8977, + "basePath": "/tmp/polkadot-launch/relaychains/dave", + "port": 20777, + "flags": ["--rpc-cors=all", "--beefy"] + }, + { + "name": "eve", + "wsPort": 8377, + "basePath": "/tmp/polkadot-launch/relaychains/eve", + "port": 20778, + "flags": ["--rpc-cors=all", "--beefy"] + }, + { + "name": "ferdie", + "basePath": "/tmp/polkadot-launch/relaychains/ferdie", + "wsPort": 8978, + "port": 20779, + "flags": ["--rpc-cors=all", "--beefy"] + } + ] + }, + "parachains": [ + { + "bin": "../../target/release/hyperbridge", + "chain": "dev-2000", + "nodes": [ + { + "wsPort": 8988, + "port": 21200, + "basePath": "/tmp/polkadot-launch/parachains/alice", + "flags": ["--alice", "--rpc-cors=all", "--execution=wasm", "--wasmtime-instantiation-strategy=recreate-instance-copy-on-write", "--log=runtime::mmr=trace,runtime::mmr::offchain=debug,runtime=trace", "--enable-offchain-indexing=true", "--pruning=archive", "--", "--base-path=/tmp/polkadot-launch/relaychains/alice-1"] + }, + { + "wsPort": 8989, + "port": 21201, + "basePath": "/tmp/polkadot-launch/parachains/bob", + "flags": ["--bob", "--rpc-cors=all", "--execution=wasm", "--wasmtime-instantiation-strategy=recreate-instance-copy-on-write", "--enable-offchain-indexing=true", "--", "--base-path=/tmp/polkadot-launch/relaychains/bob-1"] + }, + { + "wsPort": 8990, + "port": 21202, + "basePath": "/tmp/polkadot-launch/parachains/charlie", + "flags": ["--charlie", "--rpc-cors=all", "--execution=wasm", "--wasmtime-instantiation-strategy=recreate-instance-copy-on-write", "--enable-offchain-indexing=true", "--", "--base-path=/tmp/polkadot-launch/relaychains/charlie-1"] + } + ] + }, + { + "bin": "../../target/release/hyperbridge", + "chain": "dev-2001", + "nodes": [ + { + "wsPort": 8188, + "port": 22200, + "basePath": "/tmp/polkadot-launch/parachains/prime-alice", + "flags": ["--alice", "--rpc-cors=all", "--execution=wasm", "--wasmtime-instantiation-strategy=recreate-instance-copy-on-write", "--log=runtime::mmr=trace,runtime::mmr::offchain=debug,runtime=trace", "--enable-offchain-indexing=true", "--pruning=archive", "--", "--base-path=/tmp/polkadot-launch/relaychains/prime-alice-1"] + }, + { + "wsPort": 8189, + "port": 22201, + "basePath": "/tmp/polkadot-launch/parachains/prime-bob", + "flags": ["--bob", "--rpc-cors=all", "--execution=wasm", "--wasmtime-instantiation-strategy=recreate-instance-copy-on-write", "--enable-offchain-indexing=true", "--", "--base-path=/tmp/polkadot-launch/relaychains/prime-bob-1"] + }, + { + "wsPort": 8190, + "port": 22202, + "basePath": "/tmp/polkadot-launch/parachains/prime-charlie", + "flags": ["--charlie", "--rpc-cors=all", "--execution=wasm", "--wasmtime-instantiation-strategy=recreate-instance-copy-on-write", "--enable-offchain-indexing=true", "--", "--base-path=/tmp/polkadot-launch/relaychains/prime-charlie-1"] + } + ] + } + ], + "types": {}, + "finalization": false, + "simpleParachains": [] +} diff --git a/scripts/polkadot-launch/package.json b/scripts/polkadot-launch/package.json index 1882f7734..a8767320f 100644 --- a/scripts/polkadot-launch/package.json +++ b/scripts/polkadot-launch/package.json @@ -4,7 +4,7 @@ "description": "", "main": "index.js", "scripts": { - "dev": "rm -rf /tmp/polkadot-launch && polkadot-launch dev.json --verbose" + "dev": "rm -rf /tmp/polkadot-launch && polkadot-launch dev_1.json dev_2.json --verbose" }, "keywords": [], "author": "", @@ -14,4 +14,4 @@ "polkadot-launch": "^2.3.0", "typescript": "^4.7.3" } -} \ No newline at end of file +}