gnosis / gnosis/delegate-registry

Make it possible to query top delegates by the number of delegators

Open
#12 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
31
Forks
12
PR merge metrics
No merged PRs in 30d

Description

Currently, the only way to query top delegates is to get the top `n` delegates by vote weight. Like this:
```
api/delegates/top?space=gnosis.eth&limit=100
```

We must add the option of getting the top `n` delegates based on the number of delegations. The list should be returned in a sorted form.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing the api/delegates/top endpoint shown in the issue and identify how the current vote-weight ordering and limit are applied. Add a way to select ordering by the number of delegations while preserving the space and limit parameters. Done means the endpoint returns the requested top delegates sorted by delegator count.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api, backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.