Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

add statemine parachain-launch config #1812

Closed
wants to merge 7 commits into from
Closed
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions scripts/parachain-launch/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# parachain-launch
samelamin marked this conversation as resolved.
Show resolved Hide resolved



# Introduction

[Parachain-launch](https://github.com/open-web3-stack/parachain-launch) is a script that generates a docker compose file allowing you to launch a testnet of multiple blockchain nodes.

To generate the compose file, first ensure `parachain-launch` is installed and run the following command

```
parachain-launch generate statemine.yml
```

This will produce an output directory that contains all the necessary files to run the testnet.

Once the run is successful, you can spin up the infrastructure using the below command

```
docker-compose -f output/docker-compose.yml up -d
```

# Requirements
[docker-compose](https://docs.docker.com/compose/install/) and [Parachain-launch](https://github.com/open-web3-stack/parachain-launch)
40 changes: 40 additions & 0 deletions scripts/parachain-launch/statemine.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
relaychain:
image: parity/polkadot:v0.9.29
chain: rococo-local
runtimeGenesisConfig:
configuration:
config:
validation_upgrade_cooldown: 10
validation_upgrade_delay: 10
env:
RUST_LOG: parachain::candidate-backing=trace,parachain::candidate-selection=trace,parachain::pvf=debug,parachain::provisioner=trace
samelamin marked this conversation as resolved.
Show resolved Hide resolved
flags:
- --rpc-methods=unsafe
- --wasm-execution=compiled
- --execution=wasm
samelamin marked this conversation as resolved.
Show resolved Hide resolved
nodes:
- name: alice
- name: bob

parachains:
- image: docker.io/parity/polkadot-parachain:latest
chain:
base: statemine-local
collators:
- alice
sudo: alice
id: 2000
parachain: true
flags:
- --rpc-methods=unsafe
- --force-authoring
- --wasm-execution=compiled
- --execution=wasm
relaychainFlags:
- --wasm-execution=compiled
- --execution=wasm
samelamin marked this conversation as resolved.
Show resolved Hide resolved
env:
RUST_LOG: sc_basic_authorship=trace,cumulus-consensus=trace,cumulus-collator=trace,collator_protocol=trace,collation_generation=trace,aura=debug
samelamin marked this conversation as resolved.
Show resolved Hide resolved
nodes:
- flags:
- --alice