Skip to content

Commit

Permalink
Modified examples in distribution module (#5441)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaustubhkapatral authored and fedekunze committed Dec 21, 2019
1 parent 876beef commit d129199
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
12 changes: 6 additions & 6 deletions x/distribution/client/cli/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func GetCmdQueryValidatorOutstandingRewards(queryRoute string, cdc *codec.Codec)
for a validator and all their delegations.
Example:
$ %s query distr validator-outstanding-rewards cosmosvaloper1lwjmdnks33xwnmfayc64ycprww49n33mtm92ne
$ %s query distribution validator-outstanding-rewards cosmosvaloper1lwjmdnks33xwnmfayc64ycprww49n33mtm92ne
`,
version.ClientName,
),
Expand Down Expand Up @@ -113,7 +113,7 @@ func GetCmdQueryValidatorCommission(queryRoute string, cdc *codec.Codec) *cobra.
fmt.Sprintf(`Query validator commission rewards from delegators to that validator.
Example:
$ %s query distr commission cosmosvaloper1gghjut3ccd8ay0zduzj64hwre2fxs9ldmqhffj
$ %s query distribution commission cosmosvaloper1gghjut3ccd8ay0zduzj64hwre2fxs9ldmqhffj
`,
version.ClientName,
),
Expand Down Expand Up @@ -148,7 +148,7 @@ func GetCmdQueryValidatorSlashes(queryRoute string, cdc *codec.Codec) *cobra.Com
fmt.Sprintf(`Query all slashes of a validator for a given block range.
Example:
$ %s query distr slashes cosmosvaloper1gghjut3ccd8ay0zduzj64hwre2fxs9ldmqhffj 0 100
$ %s query distribution slashes cosmosvaloper1gghjut3ccd8ay0zduzj64hwre2fxs9ldmqhffj 0 100
`,
version.ClientName,
),
Expand Down Expand Up @@ -199,8 +199,8 @@ func GetCmdQueryDelegatorRewards(queryRoute string, cdc *codec.Codec) *cobra.Com
fmt.Sprintf(`Query all rewards earned by a delegator, optionally restrict to rewards from a single validator.
Example:
$ %s query distr rewards cosmos1gghjut3ccd8ay0zduzj64hwre2fxs9ld75ru9p
$ %s query distr rewards cosmos1gghjut3ccd8ay0zduzj64hwre2fxs9ld75ru9p cosmosvaloper1gghjut3ccd8ay0zduzj64hwre2fxs9ldmqhffj
$ %s query distribution rewards cosmos1gghjut3ccd8ay0zduzj64hwre2fxs9ld75ru9p
$ %s query distribution rewards cosmos1gghjut3ccd8ay0zduzj64hwre2fxs9ld75ru9p cosmosvaloper1gghjut3ccd8ay0zduzj64hwre2fxs9ldmqhffj
`,
version.ClientName, version.ClientName,
),
Expand Down Expand Up @@ -243,7 +243,7 @@ func GetCmdQueryCommunityPool(queryRoute string, cdc *codec.Codec) *cobra.Comman
fmt.Sprintf(`Query all coins in the community pool which is under Governance control.
Example:
$ %s query distr community-pool
$ %s query distribution community-pool
`,
version.ClientName,
),
Expand Down
10 changes: 5 additions & 5 deletions x/distribution/client/cli/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ func GetCmdWithdrawRewards(cdc *codec.Codec) *cobra.Command {
and optionally withdraw validator commission if the delegation address given is a validator operator.
Example:
$ %s tx distr withdraw-rewards cosmosvaloper1gghjut3ccd8ay0zduzj64hwre2fxs9ldmqhffj --from mykey
$ %s tx distr withdraw-rewards cosmosvaloper1gghjut3ccd8ay0zduzj64hwre2fxs9ldmqhffj --from mykey --commission
$ %s tx distribution withdraw-rewards cosmosvaloper1gghjut3ccd8ay0zduzj64hwre2fxs9ldmqhffj --from mykey
$ %s tx distribution withdraw-rewards cosmosvaloper1gghjut3ccd8ay0zduzj64hwre2fxs9ldmqhffj --from mykey --commission
`,
version.ClientName, version.ClientName,
),
Expand Down Expand Up @@ -134,7 +134,7 @@ func GetCmdWithdrawAllRewards(cdc *codec.Codec, queryRoute string) *cobra.Comman
fmt.Sprintf(`Withdraw all rewards for a single delegator.
Example:
$ %s tx distr withdraw-all-rewards --from mykey
$ %s tx distribution withdraw-all-rewards --from mykey
`,
version.ClientName,
),
Expand Down Expand Up @@ -176,7 +176,7 @@ func GetCmdSetWithdrawAddr(cdc *codec.Codec) *cobra.Command {
fmt.Sprintf(`Set the withdraw address for rewards associated with a delegator address.
Example:
$ %s tx set-withdraw-addr cosmos1gghjut3ccd8ay0zduzj64hwre2fxs9ld75ru9p --from mykey
$ %s tx distribution set-withdraw-addr cosmos1gghjut3ccd8ay0zduzj64hwre2fxs9ld75ru9p --from mykey
`,
version.ClientName,
),
Expand Down Expand Up @@ -272,7 +272,7 @@ func GetCmdFundCommunityPool(cdc *codec.Codec) *cobra.Command {
fmt.Sprintf(`Funds the community pool with the specified amount
Example:
$ %s tx fund-community-pool 100uatom --from mykey
$ %s tx distribution fund-community-pool 100uatom --from mykey
`,
version.ClientName,
),
Expand Down

0 comments on commit d129199

Please sign in to comment.