From 89a918e81bf84dd66606e0943d25deb29ccaecc2 Mon Sep 17 00:00:00 2001 From: jaypan Date: Wed, 7 Feb 2024 16:14:23 +0100 Subject: [PATCH] Add new scripts for new peaq 0.0.2 --- .../config.parachain.peaq.forked.v0.0.2.yml | 130 ++++++++++++++++++ scripts/forked-peaq.sh | 6 +- 2 files changed, 133 insertions(+), 3 deletions(-) create mode 100644 scripts/config.parachain.peaq.forked.v0.0.2.yml diff --git a/scripts/config.parachain.peaq.forked.v0.0.2.yml b/scripts/config.parachain.peaq.forked.v0.0.2.yml new file mode 100644 index 0000000..7dcdf77 --- /dev/null +++ b/scripts/config.parachain.peaq.forked.v0.0.2.yml @@ -0,0 +1,130 @@ +# Relaychain Configuration +relaychain: + image: parity/polkadot:v1.0.0 # the docker image to use + chain: rococo-local # the chain to use + runtimeGenesisConfig: # additonal genesis override + configuration: + config: + validation_upgrade_cooldown: 10 + validation_upgrade_delay: 10 + hrmp: + preopenHrmpChannels: + - sender: 3000 + recipient: 3338 + maxCapacity: 8 + maxMessageSize: 102400 + - sender: 3338 + recipient: 3000 + maxCapacity: 8 + maxMessageSize: 102400 + env: # environment variables for all relaychain nodes + RUST_LOG: parachain::candidate-backing=trace + flags: # additional CLI flags for all relaychain nodes + - --rpc-methods=unsafe + nodes: # nodes config + - name: alice # the node name and session key, this imply `--alice` + wsPort: 9944 # default ws port number is `9944 + global_node_index` + rpcPort: 9933 # default rpc port number is `9933 + global_node_index` + port: 30333 # default libp2p port number is `30333 + global_node_index` + flags: # additional CLI flags for this node + - --force-authoring + env: + RUST_LOG: babe=debug # environment varitables for this node + - name: bob + - name: charlie + +# Parachain Configuration +parachains: +# Config for first parachain +- image: peaq/parachain:peaq-v0.0.2 + chain: # this could be a string like `dev` or a config object + base: peaq-local # the chain to use + chainType: Development + collators: # override collators + # - alice + # - bob + - ferdie + sudo: alice # override sudo key to //Alice + runtimeGenesisConfig: # additonal genesis override + balances: + balances: + - [5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY, 1000000000000000000000] + - [5FHneW46xGXgs5mUiveU4sbTyGBzmstUspZC92UhjJM694ty, 1000000000000000000000] + - [5FLSigC9HGRKVhB9FiEo4Y3koPsNmBmLJbpXg2mp1hXcS59Y, 1000000000000000000000] + - [5DAAnrj7VHTznn2AWBemMuyBwZWs6FNFjdyVXUeYum3PTXFy, 1000000000000000000000] + - [5HGjWAeFDfFCWPsjFQdVV2Msvz2XtMktvgocEZcCj68kUMaw, 1000000000000000000000] + - [5CiPPseXPECbkjWCa6MnjNokrgYjMqmKndv2rSnekmSK2DjL, 1000000000000000000000] + id: 3338 # override parachain id + parachain: true # this is parachain, not parathread + flags: # CLI flags for this parachain nodes + - --rpc-methods=unsafe + # - --force-authoring + - --execution=wasm + - --state-pruning=archive + relaychainFlags: # CLI flags for the relaychain port + - --execution=wasm + env: # environment variables for this parachain nodes + RUST_LOG: sc_basic_authorship=trace + volumePath: /chain-data # The path to mount volume and base path, default to /data + nodes: # nodes config + - wsPort: 10044 + rpcPort: 10033 + port: 40336 + flags: # additional CLI flags for this node + - --ferdie + # - wsPort: 10045 + # rpcPort: 10034 + # port: 40337 + # flags: + # - --dave + # - wsPort: 10046 + # rpcPort: 10035 + # port: 40338 + # flags: # additional CLI flags for this node + # - --alice + # - wsPort: 10047 + # rpcPort: 10036 + # port: 40339 + # flags: + # - --bob + # - wsPort: 10048 + # rpcPort: 10037 + # port: 40340 + +- image: acala/acala-node:2.21.0 + chain: + base: acala-local + collators: + - bob + sudo: alice + runtimeGenesisConfig: # additonal genesis override + balances: + balances: + - [5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY, 1000000000000000000000] + - [5FHneW46xGXgs5mUiveU4sbTyGBzmstUspZC92UhjJM694ty, 1000000000000000000000] + - [5FLSigC9HGRKVhB9FiEo4Y3koPsNmBmLJbpXg2mp1hXcS59Y, 1000000000000000000000] + - [5DAAnrj7VHTznn2AWBemMuyBwZWs6FNFjdyVXUeYum3PTXFy, 1000000000000000000000] + - [5HGjWAeFDfFCWPsjFQdVV2Msvz2XtMktvgocEZcCj68kUMaw, 1000000000000000000000] + - [5CiPPseXPECbkjWCa6MnjNokrgYjMqmKndv2rSnekmSK2DjL, 1000000000000000000000] + id: 3000 + parachain: true + flags: + - --rpc-methods=unsafe + - --force-authoring + - --wasm-execution=compiled + - --execution=wasm + relaychainFlags: + - --wasm-execution=compiled + - --execution=wasm + env: + RUST_LOG: sc_basic_authorship=trace,cumulus-consensus=trace,cumulus-collator=trace,collator_protocol=trace,collation_generation=trace,aura=debug,xcm=trace + # Acala's path should be under the acala/data + volumePath: /acala/data + nodes: # nodes config + - name: bob # the node name and session key, this imply `--alice` + wsPort: 10144 # default ws port number is `9944 + global_node_index` + rpcPort: 10133 # default rpc port number is `9933 + global_node_index` + port: 30533 # default libp2p port number is `30333 + global_node_index` + flags: + - --bob + relaychainFlags: # additional CLI flags for relaychain part diff --git a/scripts/forked-peaq.sh b/scripts/forked-peaq.sh index c3de86a..6268c23 100644 --- a/scripts/forked-peaq.sh +++ b/scripts/forked-peaq.sh @@ -1,7 +1,7 @@ -FORKED_CONFIG_FILE="scripts/config.parachain.peaq.forked.v0.0.1.yml" \ +FORKED_CONFIG_FILE="scripts/config.parachain.peaq.forked.v0.0.2.yml" \ RPC_ENDPOINT="https://erpc-mpfn1.peaq.network" \ DOCKER_COMPOSE_FOLDER="yoyo" \ -FORK_FOLDER="/home/jaypan/Work/peaq/fork-test/fork-binary/peaq-v0.0.1" \ +FORK_FOLDER="/home/jaypan/Work/peaq/fork-test/fork-binary/peaq-v0.0.2" \ KEEP_COLLATOR="false" \ -KEEP_PARACHAIN="true" \ +KEEP_PARACHAIN="false" \ sh -e -x forked.generated.sh