Skip to content

Commit

Permalink
add cli for multi-staking
Browse files Browse the repository at this point in the history
  • Loading branch information
GNaD13 committed Jan 17, 2024
1 parent 5545bdc commit b203a8e
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions x/multi-staking/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"fmt"

gwruntime "github.com/grpc-ecosystem/grpc-gateway/runtime"
"github.com/realio-tech/multi-staking-module/x/multi-staking/client/cli"
multistakingkeeper "github.com/realio-tech/multi-staking-module/x/multi-staking/keeper"
multistakingtypes "github.com/realio-tech/multi-staking-module/x/multi-staking/types"
"github.com/spf13/cobra"
Expand All @@ -16,7 +17,8 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/module"
"github.com/cosmos/cosmos-sdk/x/staking"
"github.com/cosmos/cosmos-sdk/x/staking/client/cli"

Check failure on line 20 in x/multi-staking/module.go

View workflow job for this annotation

GitHub Actions / lint

File is not `gci`-ed with --skip-generated -s standard -s default -s blank -s dot -s prefix(cosmossdk.io) -s prefix(github.com/cosmos/cosmos-sdk) -s prefix(github.com/cometbft/cometbft) -s prefix(github.com/cosmos/ibc-go) --custom-order (gci)
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 @@ -66,12 +68,17 @@ func (AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *g

// GetTxCmd returns the feeabs 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()
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 b203a8e

Please sign in to comment.