Skip to content

feat(governor): implement on-chain governance proposal and voting logic - #184

Open
shobhamerabacha-star wants to merge 1 commit into
BETAIL-BOYS:mainfrom
shobhamerabacha-star:feat/issue-180-governor-proposal-voting
Open

shobhamerabacha-star wants to merge 1 commit into
BETAIL-BOYS:mainfrom
shobhamerabacha-star:feat/issue-180-governor-proposal-voting

Conversation

@shobhamerabacha-star

Copy link
Copy Markdown

Closes #180

Overview

This PR introduces the on-chain Governor contract for decentralized proposal submission and vote tabulation.

Key Deliverables

  • Implemented Soroban governor contract in contracts/governor/src/lib.rs.
  • Added proposal lifecycle management (Pending, Active, Defeated, Succeeded, Executed).
  • Integrated threshold tallying and execution delay guard.
  • Soroban contract compiled and verified.

- Implement propose, cast_vote, and execute contract functions
- Support full proposal lifecycle states: Pending, Active, Defeated, Succeeded, Executed
- Enforce proposal creation minimum token threshold
- Prevent double-voting by tracking per-voter vote state in persistent storage
- Support staking/unstaking voting power and execution of administrative parameters
- Add 11 comprehensive automated tests covering full lifecycle and edge cases

Closes BETAIL-BOYS#180
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] On-Chain Governance Proposal Logic

1 participant