feat(minibf): governance proposals withdrawals - #1279
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (5)
Included review availability: Your plan provides up to 2 included reviews per hour; 1 remains after this review. 📝 WalkthroughWalkthroughAdds two MiniBF governance withdrawal endpoints. The implementation parses proposal identifiers, reads treasury withdrawals, applies pagination, maps stake credentials to addresses, returns validation errors, registers routes, adds tests, and updates endpoint documentation. ChangesGovernance proposal withdrawals
Estimated code review effort: 3 (Moderate) | ~25 minutes Merge Risk: ⚪ Minimal · up to This PR adds read-only governance withdrawal endpoints without an identified correctness, security, availability, or deployment risk; it is merge-ready after normal checks and review. Sequence Diagram(s)sequenceDiagram
participant Client
participant Router
participant GovernanceHandlers
participant StateStore
Client->>Router: GET withdrawal endpoint
Router->>GovernanceHandlers: dispatch withdrawal handler
GovernanceHandlers->>StateStore: read ProposalState
StateStore-->>GovernanceHandlers: return proposal state
GovernanceHandlers-->>Client: return paginated withdrawal JSON
Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 73.91% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 23 functions across 4 files. (1 skipped: 1 unsupported.)
✨ Finishing Touches 💡 2📝 Generate docstrings 💡
🛠️ Fix failing CI checks 💡
🧪 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 |
|
@vladimirvolek |
New tests:
resolves: #1117
resolves: #1113
Summary by CodeRabbit
New Features
Documentation