Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Create GET /api/voters #5289

Closed
shuse2 opened this issue May 4, 2020 · 0 comments · Fixed by #5575
Closed

Create GET /api/voters #5289

shuse2 opened this issue May 4, 2020 · 0 comments · Fixed by #5575

Comments

@shuse2
Copy link
Collaborator

shuse2 commented May 4, 2020

Description

  • Add /api/voters which returns the below JSON:
[{
  address: '',
  username: '',
  totalVotesReceived: '',
  voters: [{ address: '', amount: '' }],
}]

Motivation

The forging helper should return the votes each delegate received.

Acceptance Criteria

  • Add unit test to check if the return value is as described above
  • Check if the response is return as expected by registering to the framework

Additional Information

Related issues: #5215

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants