Skip to content

feat(governor): add get_config view - #615

Merged
techisigu merged 4 commits into
stellar-vortex-protocol:mainfrom
gabrielujelistic-collab:fix/issue-532-get-config-governor
Oct 24, 2026
Merged

techisigu merged 4 commits into
stellar-vortex-protocol:mainfrom
gabrielujelistic-collab:fix/issue-532-get-config-governor

Conversation

@gabrielujelistic-collab

Copy link
Copy Markdown
Contributor

Summary

Adds a public get_config view function to the governor contract for issue #532.

Changes

  • Added get_config(env: Env) -> Result<GovernorConfig, GovernorError> function
  • Returns the current GovernorConfig including:
    • registry: Address of the solver registry
    • timelock: Address of the timelock controller
    • voting_delay: Delay before voting starts
    • voting_period: Duration of the voting period
    • proposal_threshold: Minimum voting power to create a proposal
    • quorum: Minimum total votes for a proposal to succeed

Testing

This is a simple read-only view function. The existing test suite covers the internal config() function it wraps.

Use Cases

  • Off-chain tooling and governance dashboards
  • Programmatic discovery of governance parameters
  • Integration with governor UIs

Closes #532

@drips-wave

drips-wave Bot commented Oct 22, 2026

Copy link
Copy Markdown

@gabrielujelistic-collab Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

techisigu and others added 4 commits October 24, 2026 10:40
… (Simple agent)

- governor/src/lib.rs: merged [markers] — model resolved the conflict markers

Co-authored-by: Simple Agent <agent@simple.dev>
… (Simple agent)

- governor/src/lib.rs: merged [markers] — model resolved the conflict markers

Co-authored-by: Simple Agent <agent@simple.dev>
… (Simple agent)

- governor/src/lib.rs: merged [markers] — model resolved the conflict markers

Co-authored-by: Simple Agent <agent@simple.dev>
… (Simple agent)

- governor/src/lib.rs: merged [markers] — model resolved the conflict markers

Co-authored-by: Simple Agent <agent@simple.dev>
@techisigu
techisigu merged commit 44762c9 into stellar-vortex-protocol:main Oct 24, 2026
0 of 32 checks passed
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.

[High] Add a get_config() view to governor

2 participants