Edgeware is an:
- On-chain Governed,
- Proof-of-Stake (PoS) Blockchain
- with a WASM Runtime.
A getting started guide can be found at our Github Wiki, including guides for running a node, validating, and setting up basic monitoring tools to keep your node online.
For more details about the project, visit the Edgeware website, or check out the blog or Twitter. Finally, for discussion and governance, campaigns and proposals can be found on Commonwealth.
If your device is clean (such as a fresh cloud VM) you can use this script for an automated setup:
./setup.sh
Otherwise, proceed with the full instructions below.
Install system dependencies:
Linux:
sudo apt install cmake pkg-config libssl-dev git clang libclang-dev
Mac:
brew install cmake pkg-config openssl git llvm
Install Edgeware dependencies:
curl https://sh.rustup.rs -sSf | sh
rustup update stable
rustup update nightly
rustup target add wasm32-unknown-unknown --toolchain nightly
cargo install --git https://github.com/alexcrichton/wasm-gc
Build Edgeware:
cargo build --release
Ensure you have a fresh start if updating from another version:
./scripts/purge-chain.sh <NETWORK_NAME_ID>
To start up the Edgeware node and connect to the Mainnet, run:
./target/release/edgeware --chain=edgeware --name <INSERT_NAME> --wasm-execution Compiled
To start up the Edgeware node and connect to the Beresheet testnet, run:
./target/release/edgeware --chain=beresheet --name <INSERT_NAME>
To make it easier run Edgeware node on OSX, we have script that will use right .dockerignore.remotecargo
, use binary we have compiled in /target/release
, build image and then run it. You can read more about Remote Cargo, what we are doing to use this script.
./build_and_run_devnet.sh
It will on background create symlink from .dockerignore.remotecargo
to .dockerignore
If you previously build image cwl/edgeware
, you can use docker-compose as well
docker-compose up edgeware
You will have exposed ports 9933,9944 and 30333.