The Governance OS is a set of pallets that can be used to allow the users of a Parity Substrate runtime to create fully customizable, decentralized, autonomous organizations.
If you do not have Rust installed simply install it via
curl https://sh.rustup.rs -sSf | sh
.
Our repo contains a rust-toolchain
file so that cargo
automatically selects the right version of rust to build the project without any issues. However, you still need to setup your toolchain to support Web Assembly builds, to do so, simply run the helper script:
./scripts/init.sh
Depending on your system, you may have to install a few packages and libraries for everything to work fine.
In case of any issues you may find the Substrate Informations useful.
For Mac (with brew)
brew update
brew install openssl cmake
sudo apt update
sudo apt install -y cmake pkg-config libssl-dev git build-essential clang libclang-dev curl
pacman -Syu --needed --noconfirm cmake gcc openssl-1.0 pkgconf git clang
export OPENSSL_LIB_DIR="/usr/lib/openssl-1.0"
export OPENSSL_INCLUDE_DIR="/usr/include/openssl-1.0"
You can easily run our unit testing suite via the following command:
cargo test --all
You can easily generate and open our code documentation via the following command:
cargo doc --open
Alternatively, you can access it online.
The easiest way to build the project is via the following command:
cargo build -p governance-os-node
You can run a freshly build development (and ephemeral) node via:
cargo run -- --dev --tmp
You should be able to interact with it via the Polkadot JS Interface. You may need to register some custom developer types though, to do so, head over to "Settings", then "Developer" and copy paste the content of the types.json file. Finally, click save and reload the page.