Skip to content

Commit

Permalink
!feat: Change cli from multi-staking-module cli to staking-module cli (
Browse files Browse the repository at this point in the history
…#109)

* change cli from multi-staking-cli to staking-cli

* lint

* add cli for multi-staking

* comment

* lint
  • Loading branch information
GNaD13 authored Jan 19, 2024
1 parent 4cd2564 commit b552265
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions x/multi-staking/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/module"
"github.com/cosmos/cosmos-sdk/x/staking"
stakingcli "github.com/cosmos/cosmos-sdk/x/staking/client/cli"
stakingkeeper "github.com/cosmos/cosmos-sdk/x/staking/keeper"
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
)
Expand Down Expand Up @@ -64,14 +65,19 @@ func (AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, config client.TxEncod
// RegisterGRPCGatewayRoutes registers the gRPC Gateway routes for the staking module.
func (AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *gwruntime.ServeMux) {}

// GetTxCmd returns the feeabs module's root tx command.
// GetTxCmd returns the staking module's root tx command.
func (AppModuleBasic) GetTxCmd() *cobra.Command {
return cli.NewTxCmd()
return stakingcli.NewTxCmd()
}

// GetQueryCmd returns the feeabs module's root query command.
func (AppModuleBasic) GetQueryCmd() *cobra.Command {
return cli.GetQueryCmd()
// GetQueryCmd returns the multi-staking and staking module's root query command.
func (AppModuleBasic) GetQueryCmd() (queryCmd *cobra.Command) {
queryCmd.AddCommand(
stakingcli.GetQueryCmd(),
cli.GetQueryCmd(),
)

return queryCmd
}

// AppModule embeds the Cosmos SDK's x/staking AppModule where we only override
Expand Down

0 comments on commit b552265

Please sign in to comment.