curl https://sh.rustup.rs -sSf | sh
Install required tools:
Build the node:
cargo build --release
Run Dev Node
You can start a development chain with:
export RUST_LOG=INFO,parity_ws=WARN,sc_basic_authorship=warn,aura=warn,encointer=debug ./target/release/encointer-node-notee --dev --enable-offchain-indexing true
Offchain-indexing is needed for the custom rpc
encointer_getAllCommunities. If you don't want it, omit the flag.
--rpc-methods unsafe is needed for the bazaar's business and offering aggregation rpcs.
Additional CLI usage options are available and may be shown by running
Run Testnet Gesell Node
Join our testnet as a full node with
./target/release/encointer-node-notee --chain gesellv4SpecRaw.json --name giveyournodeaname
We currently have limited support for the polkadot-js apps UI. Encointer comes with a cli application instead that supports all interactions with the chain
encointer-node/client> cargo build --release encointer-node/client> ../target/release/encointer-client-notee transfer //Alice 5GziKpBELV7fuYNy7quQfWGgVARn8onchS86azuPQkFj9nEZ 1000000 encointer-node/client> ../target/release/encointer-client-notee list_participant_registry encointer-node/client> ../target/release/encointer-client-notee list_meetup_registry encointer-node/client> ../target/release/encointer-client-notee list_witnesses_registry encointer-node/client> ../target/release/encointer-client-notee --help
The master of ceremony can play fast-forward for demo purposes (ceremonies only happen ~monthly. not good for demos)
encointer-node/client> ./encointer-client-notee next_phase
To run a full demo (you may need to fix ports in the scripts if you change them):
Grow Bot Community
Assuming a local node is running with default ports:
pip3 install random_word pyproj geojson # in first terminal, do this to accelerate phase progress ./phase.py --idle-blocks 3 # in second terminal, launch faucet service ./faucet.py # in third terminal, populate your bot community ./bot-community.py init ./bot-community.py benchmark
There is no fully featured UI yet, but you can use polkadot-js apps. This allows you to explore chain state but it doesn't support all types of extrinsic parameters needed. Use our CLI client instead.
The PoC1 Android App doesn't work with this release anymore, but you can watch progress at encointer-app
For benchmarking a new pallet you need to do the following:
- Add the new pallet to be benchmarked to the
define_benchmarks!macro in the runtime.
- Make sure you enable the pallet's benchmark by enabling its runtime-benchmark feature in the runtime's toml.
- Compile the node with
- Add it to the benchmark script:
This will automatically generate the new/updated weight file in