@@ -20,6 +20,7 @@ import (
2020 servertypes "github.com/cosmos/cosmos-sdk/server/types"
2121 sdk "github.com/cosmos/cosmos-sdk/types"
2222 "github.com/cosmos/cosmos-sdk/types/module"
23+ authcmd "github.com/cosmos/cosmos-sdk/x/auth/client/cli"
2324
2425 genutilcli "github.com/cosmos/cosmos-sdk/x/genutil/client/cli"
2526)
@@ -38,6 +39,7 @@ func initRootCmd(rootCmd *cobra.Command, txConfig client.TxConfig, basicManager
3839
3940 rootCmd .AddCommand (
4041 genutilcli .Commands (txConfig , basicManager , simapp .DefaultNodeHome ),
42+ txCommand (),
4143 keys .Commands (),
4244 )
4345}
@@ -53,6 +55,32 @@ func newApp(logger log.Logger, db dbm.DB, traceStore io.Writer, appOpts serverty
5355 return app
5456}
5557
58+ func txCommand () * cobra.Command {
59+ cmd := & cobra.Command {
60+ Use : "tx" ,
61+ Short : "Transactions subcommands" ,
62+ DisableFlagParsing : false ,
63+ SuggestionsMinimumDistance : 2 ,
64+ RunE : client .ValidateCmd ,
65+ }
66+
67+ cmd .AddCommand (
68+ authcmd .GetSignCommand (),
69+ authcmd .GetSignBatchCommand (),
70+ authcmd .GetMultiSignCommand (),
71+ authcmd .GetMultiSignBatchCmd (),
72+ authcmd .GetValidateSignaturesCommand (),
73+ flags .LineBreak ,
74+ authcmd .GetBroadcastCommand (),
75+ authcmd .GetEncodeCommand (),
76+ authcmd .GetDecodeCommand (),
77+ authcmd .GetSimulateCmd (),
78+ )
79+ cmd .PersistentFlags ().String (flags .FlagChainID , "" , "The network chain ID" )
80+
81+ return cmd
82+ }
83+
5684// appExport creates a new app (optionally at a given height) and exports state.
5785func appExport (
5886 logger log.Logger ,
0 commit comments