R4R: Fix repeated cmds in CLI for staking (v.0.24.0 release) (#2043)
* Cherry picked commits * Update CHANGELOG.md
This commit is contained in:
parent
1ae546610c
commit
c9358ec198
|
@ -56,6 +56,7 @@ FEATURES
|
|||
|
||||
* Gaia CLI (`gaiacli`)
|
||||
- [x/gov] added `query-proposals` command. Can filter by `depositer`, `voter`, and `status`
|
||||
- [x/stake] \#2043 Added staking query cli cmds for unbonding-delegations and redelegations
|
||||
|
||||
* Gaia
|
||||
- [networks] Added ansible scripts to upgrade seed nodes on a network
|
||||
|
@ -95,6 +96,7 @@ BUG FIXES
|
|||
|
||||
* Gaia CLI (`gaiacli`)
|
||||
- \#1766 Fixes bad example for keybase identity
|
||||
- [x/stake] \#2021 Fixed repeated CLI commands in staking
|
||||
|
||||
* Gaia
|
||||
- \#1804 Fixes gen-tx genesis generation logic temporarily until upstream updates
|
||||
|
|
|
@ -88,6 +88,10 @@ func main() {
|
|||
stakecmd.GetCmdQueryValidators("stake", cdc),
|
||||
stakecmd.GetCmdQueryDelegation("stake", cdc),
|
||||
stakecmd.GetCmdQueryDelegations("stake", cdc),
|
||||
stakecmd.GetCmdQueryUnbondingDelegation("stake", cdc),
|
||||
stakecmd.GetCmdQueryUnbondingDelegations("stake", cdc),
|
||||
stakecmd.GetCmdQueryRedelegation("stake", cdc),
|
||||
stakecmd.GetCmdQueryRedelegations("stake", cdc),
|
||||
slashingcmd.GetCmdQuerySigningInfo("slashing", cdc),
|
||||
)...)
|
||||
stakeCmd.AddCommand(
|
||||
|
|
|
@ -312,11 +312,11 @@ func GetCmdQueryUnbondingDelegations(storeName string, cdc *wire.Codec) *cobra.C
|
|||
}
|
||||
|
||||
// GetCmdQueryRedelegation implements the command to query a single
|
||||
// unbonding-delegation record.
|
||||
// redelegation record.
|
||||
func GetCmdQueryRedelegation(storeName string, cdc *wire.Codec) *cobra.Command {
|
||||
cmd := &cobra.Command{
|
||||
Use: "unbonding-delegation",
|
||||
Short: "Query an unbonding-delegation record based on delegator and validator address",
|
||||
Use: "redelegation",
|
||||
Short: "Query a redelegation record based on delegator and a source and destination validator address",
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
valSrcAddr, err := sdk.AccAddressFromBech32(viper.GetString(FlagAddressValidatorSrc))
|
||||
if err != nil {
|
||||
|
@ -373,11 +373,11 @@ func GetCmdQueryRedelegation(storeName string, cdc *wire.Codec) *cobra.Command {
|
|||
}
|
||||
|
||||
// GetCmdQueryRedelegations implements the command to query all the
|
||||
// unbonding-delegation records for a delegator.
|
||||
// redelegation records for a delegator.
|
||||
func GetCmdQueryRedelegations(storeName string, cdc *wire.Codec) *cobra.Command {
|
||||
cmd := &cobra.Command{
|
||||
Use: "unbonding-delegations [delegator-addr]",
|
||||
Short: "Query all unbonding-delegations records for one delegator",
|
||||
Use: "redelegations [delegator-addr]",
|
||||
Short: "Query all redelegations records for one delegator",
|
||||
Args: cobra.ExactArgs(1),
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
delegatorAddr, err := sdk.AccAddressFromBech32(args[0])
|
||||
|
|
Loading…
Reference in New Issue