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.
- 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
- Rust
- Solana CLI
- Anchor
git clone git@github.com:HongThaiPham/talent-olympics-dao-voting.git
cd talent-olympics-dao-voting
anchor build
anchor test
Test case:
- Should init a proposal successfully
- Should vote on a proposal successfully
- Should vote fail if maximum votes reached
- Should creator close proposal fail when proposal not expired
- Should creator close proposal successfully when proposal expired
anchor deploy