Octant is a community-driven platform for experiments in decentralized governance.
Developed by the Golem Foundation to test various hypotheses around user control, voter engagement, and community funding, the platform allows for running various governance experiments in a real-life environment and rewards user participation with ETH.
Documentation is available here.
Below is development setup instructions. More documentation, configuration, deployment information is available in directories of this repository.
For the first build of contracts it is highly recommended to run the following command first (this step will require having configured gcloud docker authentication or local build of anvil's fork):
yarn localenv:build-anvil
Build images with the following command:
yarn localenv:build-images
Run local environment
yarn localenv:up
To stop the environment, simply, run:
yarn localenv:down
Local environemnt is available at http://octant.localhost:8080 and at http://localhost:8080.
NOTICE: in order to make it work using octant.localhost domain one should add the following lines
to /ect/hosts
or C:\Windows\system32\drivers\etc\hosts
file.
127.0.0.1 octant.localhost
127.0.0.1 rpc.octant.localhost
127.0.0.1 graph.octant.localhost
127.0.0.1 backend.octant.localhost
127.0.0.1 client.octant.localhost
Full web client documentation is available here.
- go to
client
directory - copy
.env.localenv-template
to.env
- Run client
yarn dev
- Go to client webpage
TL;DR version:
cd client
cp .env.localenv-template .env
yarn dev
Please notice, that for the time being, we are using our own fork of foundry
(especially anvil
),
and we have a pre-built image stored at Google Cloud.
In order to configure access to this image one should have gcloud
configured and then run command:
$ gcloud auth configure-docker europe-docker.pkg.dev
If you don't have access to Golem Foundation image repository you can build image yourself from
branch foundry-4129/trace-filter-support
of our foundry
fork.
git clone https://github.com/golemfoundation/foundry.git --branch=foundry-4129/trace-filter-support --single-branch
cd foundry
docker build -t europe-docker.pkg.dev/wildland-dev/octant-test/foundry:latest .
In order to be able to contribute to any Wildland repository, you will need to agree to the terms of the Wildland Contributor Agreement. By contributing to any such repository, you agree that your contributions will be licensed under the GPLv3 License.