DAO Vote is a minimal, dark-themed, on-chain governance application built using Sui Move (smart contracts) and React + TypeScript (frontend). It allows users to create DAOs, join them, create proposals, and vote with a simple and modern UI.
DAO Vote is designed to be an easy-to-use governance platform on the Sui blockchain. Any user can create a DAO, add members, create proposals, and allow voting. The frontend is built using React, Tailwind CSS, shadcn/ui, Lucide icons, and TypeScript with a fully modular file structure. The backend smart contract is written in Sui Move and includes DAO management, proposal creation, voting, and membership logic.
You can use the full application or only the frontend by plugging in your own Sui package ID and object IDs.
- Create DAOs
- Add members to a DAO
- Promote members to admin
- Create proposals
- Vote on proposals (Yes/No)
- Automatic vote tracking
- Deadlines for proposals
- Ownership and admin capabilities
- Minimalistic dark UI with glass-effect
- Tailwind CSS with zinc theme
- shadcn/ui components
- Lucide icons
- React Router navigation
- React Hot Toast notifications
- Dedicated Components for DAOs, proposals, cards & Detailed Pages
- Skeleton loaders
- Fully responsive
- Clean code architecture with reusable components
If you want to compile, test, or publish the Sui smart contract, you must install the Sui CLI.
You can install it from the official documentation: https://docs.sui.io/guides/developer/getting-started/sui-install
If you only want to run the frontend and interact with an already deployed contract, you do not need Sui CLI.
Use the following values in your .env file:
VITE_DAO_LIST_ID = 0x6dbaf95cff4c53a8896701fe75dbec82dec9aa0daa495f1e92e2a5f50e8ff9d1
VITE_SMART_CONTRACT_PACKAGE_ID = 0x3cf39514ac503ecbbfebafa8e1994092190d8e586ac2d69503e76773d9224282
VITE_DAO_CAP_TYPE = 0x3cf39514ac503ecbbfebafa8e1994092190d8e586ac2d69503e76773d9224282::dao::DAOCap
VITE_ADMIN_CAP_TYPE = 0x3cf39514ac503ecbbfebafa8e1994092190d8e586ac2d69503e76773d9224282::dao::ADMINCap
Replace them with your contract values if you deployed your own.
Navigate to the smart contract folder:
sui move build
To execute all test cases:
sui move test
To publish the package on Devnet/Testnet/Mainnet:
sui client publish --gas-budget 100000000
Copy the published package ID and update your .env file in the frontend accordingly.
Navigate to the frontend directory and run:
npm install
Start the project:
npm run dev
Your application will be available on:
http://localhost:3000
DAO Vote is a clean, developer-friendly project showcasing how to build a complete DAO governance system on the Sui blockchain using modern frontend architecture. You can extend it further, integrate wallet signing, or deploy it publicly.
If you need improvements, deployment instructions, TypeScript API services, or UI polishing, you can get here with a PR anytime. PR are welcomed! 🤝
