Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/starlingvibes/dao-voting-program
https://github.com/starlingvibes/dao-voting-program
Last synced: about 5 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/starlingvibes/dao-voting-program
- Owner: starlingvibes
- Created: 2024-07-14T19:47:59.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-09-16T13:46:57.000Z (2 months ago)
- Last Synced: 2024-09-16T16:12:09.764Z (2 months ago)
- Language: Rust
- Size: 340 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```