Skip to content

Conversation

whankinsiv
Copy link
Collaborator

This PR adds the following 6 /governance/dreps endpoint handlers utilizing the recently expanded drep_state:

  • /governance/dreps: list all DReps
  • /governance/dreps/{drep_id}: return extended DRep info (retired/expired status, total delegation, etc.).
  • /governance/dreps/{drep_id}/delegators: list delegators and amounts.
  • /governance/dreps/{drep_id}/metadata: return metadata info (anchor URL, hash, fetched JSON metadata).
  • /governance/dreps/{drep_id}/updates: list registration, update, and deregistration history.
  • /governance/dreps/{drep_id}/votes: list votes with transaction hashes and cert indexes.

Additional changes:

  • Added TxHash type alias for [u8; 32] in /common/types.rs and replaced direct usages.

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.

1 participant