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

add grpc gateway get endpoint for validator distribution information #13077

Closed
gsk967 opened this issue Aug 29, 2022 · 0 comments · Fixed by #13144
Closed

add grpc gateway get endpoint for validator distribution information #13077

gsk967 opened this issue Aug 29, 2022 · 0 comments · Fixed by #13144
Labels
C:x/distribution distribution module related good first issue

Comments

@gsk967
Copy link
Contributor

gsk967 commented Aug 29, 2022

Summary

as per this issue add grpc gateway get endpoint for validator distribution info

Problem Definition

We need to call two endpoints for validator commission rewards and self-delegation rewards. add deprecated endpoint back to distribution module

Proposal

  1. Add get service (cosmos/distribution/v1beta1/validators/) in query.proto
  2. get service has to return this data
{
 "operator_address": "cosmos1jxv0u20scum4trha72c7ltfgfqef6nscj25050",
    "self_bond_rewards": [
      {
        "denom": "uatom",
        "amount": "188157319.117012814400000000"
      }
    ],
    "val_commission": {
      "commission": [
        {
          "denom": "uatom",
          "amount": "415585935.183993331563784133"
        }
      ]
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C:x/distribution distribution module related good first issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants