-
Notifications
You must be signed in to change notification settings - Fork 11
chore(packages): add and update status/states doc #439
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR enhances the documentation for delegation states throughout the codebase by adding comprehensive documentation, improving code comments, and reorganizing state ordering to match logical categories.
- Adds a comprehensive 496-line delegation status guide explaining all 15 possible states
- Reorganizes SLASHED state in swagger files to the "Special States" category for better logical grouping
- Updates code comments in delegation_states.go with clearer descriptions and category organization
Reviewed Changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
| internal/v2/types/delegation_states.go | Enhanced documentation comments for all delegation states, added category grouping (Setup, Unbonding, Withdrawable, Withdrawn, Special), and added reference link to detailed documentation |
| docs/swagger.yaml | Reordered SLASHED enum value from position 4 to position 14 to match the "Special States" category grouping |
| docs/swagger.json | Reordered SLASHED enum value from position 4 to position 14 to match the "Special States" category grouping |
| docs/docs.go | Reordered SLASHED enum value from position 4 to position 14 to match the "Special States" category grouping |
| docs/delegation-statuses.md | Added comprehensive new documentation explaining all delegation statuses, state architecture across different layers, common user journeys, and API integration guidance |
| README.md | Added new "Documentation" section with reference to delegation status guide and instructions for regenerating swagger documentation |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
README.md
Outdated
| 📖 **[Complete Delegation Status Guide](docs/delegation-statuses.md)** | ||
|
|
||
| This guide explains: | ||
| - All 14 possible delegation status values |
Copilot
AI
Nov 21, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The documentation states there are "14 possible delegation status values", but there are actually 15 states as shown in the code and the Quick Reference section below (Setup: 3, Unbonding: 2, Withdrawable: 4, Withdrawn: 4, Special: 2 = 15 total).
Please update "All 14 possible delegation status values" to "All 15 possible delegation status values".
| - All 14 possible delegation status values | |
| - All 15 possible delegation status values |
a88292b to
946bf91
Compare
946bf91 to
c454e79
Compare
No description provided.