An open API service indexing awesome lists of open source software.

https://github.com/redsteep/dfinity-icp-governor


https://github.com/redsteep/dfinity-icp-governor

Last synced: 16 days ago
JSON representation

Awesome Lists containing this project

README

        

# ICP Governance Canister

Governor is a canister and a frontend for a single DAO management Dapp

## Overview

* Principals can create a proposal when having enough tokens above the DAO-wide threshold
* Principals can cast a vote on a proposal when having any tokens, there's no voting threshold
* Voting weight for each principal equals to it's token balance
* Principals can queue a proposal that reaches a DAO-wide quorum for an execution
* A queued for an execution proposal gets time-locked until a specified DAO-wide amount of time exceeds

## Admins — Guardian

* Guardian can cancel a proposal at any time before it gets executed

## Prerequisites

This project requires an installation of:

- [x] Install the [IC SDK](https://internetcomputer.org/docs/current/developer-docs/setup/install/index.mdx);
- [x] Install [Mops package manager](https://docs.mops.one/quick-start): `pnpm i -g ic-mops`.

## Getting started

Navigate into the folder containing the project's files and run the following commands:

```bash
dfx start --clean --background # Run dfx in the background
pnpm install # Install dependencies
pnpm run deploy # Build + test + deploy canisters locally
```

## Contributing

```bash
pnpm run dev # Start the development server
pnpm run test # Run integration tests
pnpm run build # Build the canisters, generate Candid declarations
```