Introduce GovActionsDoNotExist Logic - #1139
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
WalkthroughVoting procedures now validate governance-action references against initial and same-block proposal state. Missing actions produce the ChangesGovernance action validation
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant Transaction
participant VotingProcedures
participant ProposalsSlice
participant Predicate
Transaction->>VotingProcedures: execute voting procedures
VotingProcedures->>ProposalsSlice: validate governance-action references
ProposalsSlice-->>VotingProcedures: return missing proposal IDs
VotingProcedures->>Predicate: map GovActionsDoNotExist
Predicate-->>Transaction: return validation failure
Possibly related issues
Possibly related PRs
Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
ad65047 to
d36d452
Compare
d36d452 to
f2de9fb
Compare
f2de9fb to
861d2b5
Compare
Signed-off-by: yHSJ <josh@securitybot.info>
Signed-off-by: yHSJ <josh@securitybot.info>
Signed-off-by: yHSJ <josh@securitybot.info>
Signed-off-by: yHSJ <josh@securitybot.info>
861d2b5 to
aae0a9a
Compare
Closes #924.
This PR introduces logic to validate that gov actions which are being voted on actually exist at the time of voting. It is also my first use of the new GitHub stacks feature!
Stack created with GitHub Stacks CLI • Give Feedback 💬
Summary by CodeRabbit
Bug Fixes
Tests
Documentation