Skip to content

feat(web3): Decentralized Autonomous Organization (DAO) Mandi Governance & Dispute Voting - #1341

Open
hrshjswniii wants to merge 1 commit into
Nitya-003:mainfrom
hrshjswniii:feature/mandi-dao-governance
Open

feat(web3): Decentralized Autonomous Organization (DAO) Mandi Governance & Dispute Voting#1341
hrshjswniii wants to merge 1 commit into
Nitya-003:mainfrom
hrshjswniii:feature/mandi-dao-governance

Conversation

@hrshjswniii

Copy link
Copy Markdown
Contributor

📌 Overview

This PR implements [feature] : Decentralized Autonomous Organization (DAO) Mandi Governance & Dispute Voting establishing transparent, on-chain Web3 governance for regional farmer cooperatives, Mandi inspectors, and transport lead delegates to vote on cold-chain dispute escrow resolution and protocol parameters.

Key Changes Introduced:

  1. Smart Contracts Architecture:
    • Created [MandiGovernanceToken.sol] implementing an upgradeable ERC-20 Votes token (MNDI).
    • Created [MandiDAO.sol] implementing an OpenZeppelin Governor contract with 4% quorum fraction, voting delay/period controls, and dispute execution hooks.
  2. Backend Service Layer:
    • Created [backend/services/daoService.js] formatting dispute proposal states and encoding vote transaction payloads.
  3. Frontend Governance Portal:
    • Created [frontend/src/app/mandi/governance/page.tsx]rendering Mandi DAO Governance Portal UI with active dispute proposal cards, quorum progress bars, and voting controls.
  4. Automated Unit Test Suite:
    • Created [smart-contracts/test/mandiDAO.test.js] testing token minting, voting power delegation, proposal creation, and voting (2/2 tests passing).

🛠️ Type of Change

  • ⛓️ Smart Contract (Solidity changes, Governor DAO, OpenZeppelin)
  • 💻 Frontend (UI/UX, Next.js page, Web3 voting portal)
  • ⚙️ Backend (Service helper, proposal encoding)
  • 📄 Documentation (README, Roadmap updates)
  • 🧪 Testing (Hardhat unit tests)

🔗 Related Issue

Closes #1315


🧪 Testing & Verification

  • Smart Contracts: npx hardhat test test/mandiDAO.test.js passed? (Yes) — 2/2 tests passing in 16s.
  • Backend: daoService.js proposal formatting verified? (Yes).
  • Frontend: mandi/governance/page.tsx portal rendering verified? (Yes).

✅ PR Checklist

  • My code follows the project's style guidelines.
  • I have commented my code, particularly in complex areas (e.g., GovernorUpgradeable initialization & proposal hashing).
  • I have updated the documentation accordingly.
  • My changes generate no new warnings.

💬 Additional Notes

  • Created [smart-contracts/contracts/MandiGovernanceToken.sol]
  • Created [smart-contracts/contracts/MandiDAO.sol]
  • Created [smart-contracts/test/mandiDAO.test.js]
  • Created [backend/services/daoService.js]
  • Created [frontend/src/app/mandi/governance/page.tsx]

@vercel

vercel Bot commented Aug 14, 2026

Copy link
Copy Markdown

@hrshjswniii is attempting to deploy a commit to the Nitya Gosain's projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[feature] : Decentralized Autonomous Organization (DAO) Mandi Governance & Dispute Voting

1 participant