Skip to content
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

Update what data is returned by /api/delegates/top #11

Open
asgeir-s opened this issue May 2, 2023 · 0 comments
Open

Update what data is returned by /api/delegates/top #11

asgeir-s opened this issue May 2, 2023 · 0 comments
Milestone

Comments

@asgeir-s
Copy link

asgeir-s commented May 2, 2023

Currently, a request to /api/delegates/top, for instance

GET http://localhost:3000/api/delegates/top?space=gnosis.eth&limit=100

returns

{
  "delegates": [
    [
      "0x7ef021f62E3E7975FBC21d3202C5A1F19D53bB47",
      "3856606662913366179"
    ],
    [
      "0x6cc5b30Cd0A93C1F85C7868f5F2620AB8c458190",
      "16390578317381805817"
    ],
    [
      "0xDE1e8A7E184Babd9F0E3af18f40634e9Ed6F0905",
      "12533971654468439638"
    ]
  ],
  "updateTime": 1683028849
}

Instead, it should return something like this:

{
  "delegates": [
    {
      "address": "0x7ef021f62E3E7975FBC21d3202C5A1F19D53bB47",
      "delegatedVoteWeight": 3856606662913366179,
      "numberOfDelegates": 3
    }
    ...
  ],
  "updateTime": 1683028849
}
@asgeir-s asgeir-s added this to the v2 milestone May 2, 2023
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

No branches or pull requests

1 participant