Skip to content

Commit

Permalink
fix rustup helper, add docs to demo scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Alain Brenzikofer committed May 30, 2021
1 parent 8be531e commit e72c585
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 1 deletion.
2 changes: 1 addition & 1 deletion client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ Includes
> encointer-client 127.0.0.1:9979 sign_claim 5EqvwjCA8mH6x9gWbSmcQhxDkYHJcUfwjaHHn9q1hBrKLL65 7af690ced4cd1e84a857d047b4fc93f3b4801f9a94c9a4d568a01bc435f5bae903000000000000000000000003000000
```

Find a full ceremony cycle demo [here](./demo_poc1.sh)
Find a full ceremony cycle demo [here](./bootstrap_demo_community.py)
11 changes: 11 additions & 0 deletions client/bootstrap_demo_community.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
#!/usr/bin/env python3
"""
Demonstrate the bootstrapping of an Encointer community on a *dev* chain.
start node with
../target/release/encointer-node-notee --dev --tmp --ws-port 9945 --enable-offchain-indexing true
then run this script
./bootstrap_demo_community.py --port 9945
"""

import argparse
import json

Expand Down
18 changes: 18 additions & 0 deletions client/bot-community.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,22 @@
#!/usr/bin/env python3
"""
Bootstrap and grow Encointer BOT communities on a *dev* chain or testnet
you may need to install a few packages first
pip3 install --upgrade pip
pip3 install randomwords geojson pyproj
then start a node with
../target/release/encointer-node-notee --dev --tmp --ws-port 9945 --enable-offchain-indexing true
and init and grow a community
./bot-community.py --port 9945 init
./bot-community.py --port 9945 benchmark
on testnet Gesell, run this script once per ceremony phase (after calling `init` first)
./bot-community.py --port 9945 run
"""
import argparse

import geojson
Expand Down
1 change: 1 addition & 0 deletions scripts/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ if [ -z $CI_PROJECT_NAME ] ; then
rustup update stable
fi

rustup target add wasm32-unknown-unknown --toolchain stable
rustup target add wasm32-unknown-unknown --toolchain nightly

0 comments on commit e72c585

Please sign in to comment.