Skip to content

feat(governance): make governance parameters configurable with valida… - #17

Merged
Meshmulla merged 1 commit into
stellar-kracken:mainfrom
deborah111haruna:feature/configurable-governance-params
Jul 22, 2026
Merged

feat(governance): make governance parameters configurable with valida…#17
Meshmulla merged 1 commit into
stellar-kracken:mainfrom
deborah111haruna:feature/configurable-governance-params

Conversation

@deborah111haruna

Copy link
Copy Markdown
Contributor

Governance Parameters Configuration

Make governance quorum, voting delay, voting period, and approval thresholds configurable with comprehensive validation and event emissions.

Changes

  • Add parameter validation for all governance config values
  • Emit events when parameters are modified
  • Enforce constraints: quorum/threshold bounds (0-100%), non-zero voting period
  • Support zero values for voting_delay and timelock_delay
  • Add 21 test cases for parameter validation and edge cases
  • Document parameter units and constraints inline

Testing

  • Parameter validation edge cases (invalid ranges, boundary conditions)
  • Proposal lifecycle under various quorum and threshold configurations
  • Multiple sequential parameter updates
  • Quorum and threshold enforcement scenarios

Closes #9

…tion and events

- Add comprehensive validation for all governance parameters (quorum, threshold, voting periods)
- Emit events when configuration parameters are updated via update_config()
- Enforce constraints: quorum/threshold in 0-100%, voting_period > 0, non-negative delays
- Add new GovernanceEventType enum for parameter change notifications
- Support initialization with zero voting_delay and zero timelock_delay
- Add 21 new test cases covering parameter validation and edge cases
- Test proposal lifecycles under different quorum and threshold configurations
- Document parameter units and constraints with inline comments

Fixes: stellar-kracken#9
@Meshmulla
Meshmulla merged commit e91b253 into stellar-kracken:main Jul 22, 2026
1 check failed
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.

Make governance quorum, voting delay, and thresholds configurable

2 participants