Although tx CLI commands for the x/upgrade module are defined, they seem to not be exposed through the module's GetTxCmd:
// GetTxCmd returns the transaction commands for this module
func (AppModuleBasic) GetTxCmd(cdc *codec.Codec) *cobra.Command {
txCmd := &cobra.Command{
Use: "upgrade",
Short: "Upgrade transaction subcommands",
}
txCmd.AddCommand(flags.PostCommands()...)
return txCmd
}
Git hash e3dc0fd4a61f7771198477ef9ea247deb37ef4c2.
@aaronc @anilCSE does the upgrade module have any direct TX command(s)? I presumed the only tx command was the proposal creation which is mounted under tx gov ....
There are no other direct TX commands which needs to be exposed from upgrade module. tx gov ... covers both the commands from upgrade module.
I only see deposit, vote and submit-proposal commands in tx gov.
What's the recommended way to send x/upgrade messages via CLI? Using the submit-proposal gov subcommand?
$ gaiacli tx gov submit-proposal --help
You'll see the following:
Available Commands:
param-change Submit a parameter change proposal
community-pool-spend Submit a community pool spend proposal
software-upgrade Submit a software upgrade proposal
Most helpful comment
There are no other direct TX commands which needs to be exposed from upgrade module.
tx gov ...covers both the commands from upgrade module.