Skip to content

[Feature]: Query liquidValidators in x/liquid #3758

Closed
@arlai-mk

Description

@arlai-mk

Summary

In order to query the liquid shares of validators, the current x/liquid implementation only supports the liquidValidator query, which allows querying a specific validator.

However, there is no existing query to allow querying for all validators.

For optimal querying, would it be possible to create a liquidValidators query in x/liquid (with pagination), similar to how x/staking has both a validator (validator-specific) and a validators (with pagination) query.

Thank you.

Problem Definition

I have a frontend app that uses the LSM and used to retrieve the amount of liquid staked tokens for all validators.

It was previously easily retrievable using x/staking validators query, however since the LSM code is now moved to a new standalone module x/liquid, this possibility has been removed.

As I'd still would like to be able to show the information on my frontend app, without having to run hundreds of queries for each single validator, having this liquidvalidators query would be very helpful.

I don't see any disadvantage of including this feature. Also, it should not pose any security risk as it's only a query.

Proposed Feature

Adding a liquidvalidators query in x/liquid to retrieve the list of validators (with pagination) would be meeting my needs.

Work Breakdown

#### Must have
- [ ] add a `liquidvalidators` query in `x/liquid`

Metadata

Metadata

Assignees

Labels

admin: epicAn EPIC -- meta issue used to track a body of workstatus: waiting-triageThis issue/PR has not yet been triaged by the team.type: feature-requestNew feature or request improvement

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions