Skip to content

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.

Notifications You must be signed in to change notification settings

HongThaiPham/talent-olympics-dao-voting

Repository files navigation

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:

git clone git@github.com:HongThaiPham/talent-olympics-dao-voting.git

cd talent-olympics-dao-voting

Build the program:

anchor build

Run the tests:

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

Deploy the program:

anchor deploy

Video demo

Watch the video

About

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published