Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/starlingvibes/dao-voting-program


https://github.com/starlingvibes/dao-voting-program

Last synced: about 5 hours ago
JSON representation

Awesome Lists containing this project

README

        

# DaoVotingProgram
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.

## Requirements


  • Rust installation: here

  • Solana installation: here

  • Yarn installation: here

  • Anchor installation: here

  • Git installation: here

## Getting Started

### Cloning project

```bash
git clone https://github.com/starlingvibes/dao-voting-program.git
code dao-voting-program
```
### Creating local wallet

```bash
solana-keygen new
```

Verify keypair

```bash
solana-keygen pubkey ~/.config/solana/id.json
```

Output

```bash
GLjfcSPTeV6toZf7ju64boymUFrgLj6HvARfDLtNhNTC
```

```bash
solana-keygen verify ~/.config/solana/id.json
```

Anchor.toml

```
[provider]
cluster = "localnet"
wallet = "~/.config/solana/id.json"
```

### Building

```bash
yarn
```

```bash
anchor build
anchor keys list
```
Take the output of program id. Copy and paste it into Anchor.toml ```dao_voting_program = "624QkTgSZBWeJHm9aeNuANTJY67M4742zCnEfACg2wnM"``` and ```declare_id!("624QkTgSZBWeJHm9aeNuANTJY67M4742zCnEfACg2wnM");``` here.

Build again

```bash
anchor build
```

### Test

```bash
anchor test
```