Skip to content

Phucpt05/Voting-system-in-SUI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sui Voting App

A decentralized voting system built on the SUI blockchain, allowing users to create, manage, and vote on proposals using NFTs as proof of voting.

Features

  • Connect your wallet via Suiet or Slush extension.
  • Switch to Testnet and click Faucet to receive SUI balance.
  • Perform actions such as create, remove, delist, activate, and voting proposals.
  • View proposal rankings at /rankings.
  • View img through blob_id (walrus)
  • Check your wallet objects at /wallets.
  • After voting, see proof of voting NFTs in your wallet extension.

Development Setup

Clone the repository (no_admin_cap branch)

git clone -b no_admin_cap --single-branch https://github.com/Phucpt05/Voting-system-in-SUI.git
cd frontend
pnpm install
pnpm run dev

Access app at: http://localhost:5173 Navigate to the contracts folder

To moderate smartcontract:

  cd contracts/voting_system/

Publish the smart contract

sui client publish

After publishing, copy the following IDs:

  • package_id
  • dashboard_id
  • admin_cap_id

Update constants in:

  • frontend/constants.ts
  • generators/proposals.js

Initialize proposals ()

node generators/proposals.js

Copy generated SUI CLI commands and run in terminal to rapidly create proposals

About

Cast your vote and see which proposal leads the ranking!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors