feat(web3): Decentralized Autonomous Organization (DAO) Mandi Governance & Dispute Voting - #1341
Open
hrshjswniii wants to merge 1 commit into
Open
feat(web3): Decentralized Autonomous Organization (DAO) Mandi Governance & Dispute Voting#1341hrshjswniii wants to merge 1 commit into
hrshjswniii wants to merge 1 commit into
Conversation
…di Governance & Dispute Voting
|
@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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📌 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:
MandiGovernanceToken.sol] implementing an upgradeable ERC-20 Votes token (MNDI).MandiDAO.sol] implementing an OpenZeppelin Governor contract with 4% quorum fraction, voting delay/period controls, and dispute execution hooks.backend/services/daoService.js] formatting dispute proposal states and encoding vote transaction payloads.frontend/src/app/mandi/governance/page.tsx]rendering Mandi DAO Governance Portal UI with active dispute proposal cards, quorum progress bars, and voting controls.smart-contracts/test/mandiDAO.test.js] testing token minting, voting power delegation, proposal creation, and voting (2/2 tests passing).🛠️ Type of Change
🔗 Related Issue
Closes #1315
🧪 Testing & Verification
npx hardhat test test/mandiDAO.test.jspassed? (Yes) — 2/2 tests passing in 16s.daoService.jsproposal formatting verified? (Yes).mandi/governance/page.tsxportal rendering verified? (Yes).✅ PR Checklist
💬 Additional Notes
smart-contracts/contracts/MandiGovernanceToken.sol]smart-contracts/contracts/MandiDAO.sol]smart-contracts/test/mandiDAO.test.js]backend/services/daoService.js]frontend/src/app/mandi/governance/page.tsx]