Skip to content

Commit

Permalink
feat(x/distribution): add rewards-by-validator autocli config (backport
Browse files Browse the repository at this point in the history
cosmos#19707) (cosmos#19714)

Co-authored-by: Julien Robert <julien@rbrt.fr>
  • Loading branch information
mergify[bot] and julienrbrt authored Mar 11, 2024
1 parent f055cde commit c382225
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions x/distribution/autocli.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,24 @@ func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions {
},
{
RpcMethod: "DelegationRewards",
Use: "rewards [delegator-addr] [validator-addr]",
Short: "Query all distribution delegator rewards or rewards from a particular validator",
Long: "Query all rewards earned by a delegator, optionally restrict to rewards from a single validator.",
Use: "rewards-by-validator [delegator-addr] [validator-addr]",
Short: "Query all distribution delegator from a particular validator",
Example: fmt.Sprintf("$ %s query distribution rewards [delegator-address] [validator-address]", version.AppName),
PositionalArgs: []*autocliv1.PositionalArgDescriptor{
{ProtoField: "delegator_address"},
{ProtoField: "validator_address"},
},
},
{
RpcMethod: "DelegationTotalRewards",
Use: "rewards [delegator-addr]",
Short: "Query all distribution delegator rewards",
Long: "Query all rewards earned by a delegator",
Example: fmt.Sprintf("$ %s query distribution rewards [delegator-address]", version.AppName),
PositionalArgs: []*autocliv1.PositionalArgDescriptor{
{ProtoField: "delegator_address"},
},
},
{
RpcMethod: "CommunityPool",
Use: "community-pool",
Expand Down

0 comments on commit c382225

Please sign in to comment.