The community governance dApp provides an open source interface for ECO and ECOx holders to do community governance in the ECO protocol and upgrade any part of the system. The dApp also provides a single place to interact with the monetary levers present in the protocol.
- Website: eco.org
- Docs: docs.eco.org
- Discord: discord.eco.org
- Governance Discourse: https://forums.eco.org/c/egp/11
The dApp can be found deployed at: governance.eco.org. The subgraphs being used by the dApp can be found at: https://thegraph.com/hosted-service/subgraph/ecographs/the-eco-currency-subgraphs.
After cloning the repo, run npm install to install all required packages.
Next, be sure to set the required environment variables, notably the subgraph URI. See .env.example for more details.
To run the app locally:
npm run dev
# or
yarn dev
Open http://localhost:3000 with your browser to see the result.
In order to sync to a specific deployment of contracts, this app requires the following to be set up:
Use the env variable NEXT_PUBLIC_CHAIN
to set the network that the app will allow users to connect on, (examples: mainnet
, goerli
, localhost
)
This app uses the The ECO Currency Subgraphs to get information about the Eco Protocol, wherever the subgraph can be accessed for queries, assign that endpoint to the NEXT_PUBLIC_SUBGRAPH_URI
env variable.
To see a full list of the the env vars, check out the example here
Contributions are welcome. Please submit any issues as issues on GitHub, and open a pull request with any contributions.