Skip to content

Conversation

@jrwbabylonlab
Copy link
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings November 21, 2025 08:34
Copilot finished reviewing on behalf of jrwbabylonlab November 21, 2025 08:36
Copy link

Copilot AI left a 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
Copy link

Copilot AI Nov 21, 2025

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".

Suggested change
- All 14 possible delegation status values
- All 15 possible delegation status values

Copilot uses AI. Check for mistakes.
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.

3 participants