https://github.com/hongthaipham/talent-olympics-dao-voting
Develop a DAO voting program using Anchor. This program should allow users to vote on proposals and display results. Optionally, implement "privacy" voting using Zero-Knowledge (ZK) proofs or verifiable compute. Reward points should be given to users for participation.
https://github.com/hongthaipham/talent-olympics-dao-voting
superteam superteam-earn talent-olympics
Last synced: 2 months ago
JSON representation
Develop a DAO voting program using Anchor. This program should allow users to vote on proposals and display results. Optionally, implement "privacy" voting using Zero-Knowledge (ZK) proofs or verifiable compute. Reward points should be given to users for participation.
- Host: GitHub
- URL: https://github.com/hongthaipham/talent-olympics-dao-voting
- Owner: HongThaiPham
- Created: 2024-07-14T15:23:55.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-07-14T16:45:33.000Z (11 months ago)
- Last Synced: 2025-02-20T04:37:01.794Z (4 months ago)
- Topics: superteam, superteam-earn, talent-olympics
- Language: Rust
- Homepage:
- Size: 49.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DAO Voting Program
### SOLANA - The Talent Olympics
## Introduction
Develop a DAO voting program using Anchor. This program should allow users to vote on proposals and display results. Optionally, implement "privacy" voting using Zero-Knowledge (ZK) proofs or verifiable compute. Reward points should be given to users for participation.
- Create a DAO voting system using Anchor.
- Implement a voting system and display the results.
- Optionally, add privacy voting using ZK proofs or verifiable compute.
- Reward points to users for voting participation.
## Features
- Init a proposal with content and maximun votes
- Vote for or agains proposal, one per user in timeframe
- Result show how many vote for/agains proposal## How to use
### Install the required dependencies:
- Rust
- Solana CLI
- Anchor### Clone the repository:
```bash
git clone [email protected]:HongThaiPham/talent-olympics-dao-voting.gitcd talent-olympics-dao-voting
```### Build the program:
```bash
anchor build
```### Run the tests:
```bash
anchor test
```Test case:
- [x] Should init a proposal successfully
- [x] Should vote on a proposal successfully
- [x] Should vote fail if maximum votes reached
- [x] Should creator close proposal fail when proposal not expired
- [x] Should creator close proposal successfully when proposal expired### Deploy the program:
```bash
anchor deploy
```## Video demo
[](https://www.loom.com/share/a37370bae08f47e2835b65d772152118)