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

Implement tests for new staking endpoints #1939

Closed
4 tasks
fedekunze opened this issue Aug 8, 2018 · 0 comments
Closed
4 tasks

Implement tests for new staking endpoints #1939

fedekunze opened this issue Aug 8, 2018 · 0 comments

Comments

@fedekunze
Copy link
Collaborator

Summary

As for #1880, we originally left 2 endpoints commented since @faboweb and I agreed on having them for later. Handler logic is done, just need to create some tests.

Problem Definition

The new endpoints are the following and are needed to query each of the validators that a delegator is bonded to.

// x/stake/client/rest/query.go
GET /stake/delegators/{delegatorAddr}/validators // Query all validators that a delegator is bonded to
GET /stake/delegators/{delegatorAddr}/validators/{validatorAddr} // Query a validator that a delegator is bonded to

Proposal

Implement tests for delegatorValidatorsHandlerFn and delegatorValidatorHandlerFn respectively.


For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant