Documentation ¶
Overview ¶
Package cmd contains provenance daemon init functionality.
Index ¶
- Constants
- Variables
- func AddGenesisAccountCmd(txConfig client.TxConfig, defaultNodeHome string) *cobra.Command
- func AddGenesisCustomFloorPriceDenomCmd(defaultNodeHome string) *cobra.Command
- func AddGenesisCustomMarketCmd(defaultNodeHome string) *cobra.Command
- func AddGenesisDefaultMarketCmd(defaultNodeHome string) *cobra.Command
- func AddGenesisMarkerCmd(defaultNodeHome string) *cobra.Command
- func AddGenesisMsgFeeCmd(defaultNodeHome string) *cobra.Command
- func AddMetaAddressCmd() *cobra.Command
- func AddMetaAddressDecoder() *cobra.Command
- func AddMetaAddressEncoder() *cobra.Command
- func AddRootDomainAccountCmd(defaultNodeHome string) *cobra.Command
- func ConfigChangedCmd() *cobra.Command
- func ConfigCmd() *cobra.Command
- func ConfigGetCmd() *cobra.Command
- func ConfigHomeCmd() *cobra.Command
- func ConfigPackCmd() *cobra.Command
- func ConfigSetCmd() *cobra.Command
- func ConfigUnpackCmd() *cobra.Command
- func Execute(rootCmd *cobra.Command) error
- func GenesisCmd(txConfig client.TxConfig, moduleBasics module.BasicManager, ...) *cobra.Command
- func GetCmdPioSimulateTx() *cobra.Command
- func GetDocGenCmd() *cobra.Command
- func GetPreUpgradeCmd() *cobra.Command
- func GetTreeCmd() *cobra.Command
- func Init(cmd *cobra.Command, mbm module.BasicManager, moniker string) error
- func InitCmd(mbm module.BasicManager) *cobra.Command
- func InitTestnet(clientCtx client.Context, cmd *cobra.Command, nodeConfig *cmtconfig.Config, ...) error
- func NewRootCmd(sealConfig bool) (*cobra.Command, params.EncodingConfig)
- func SafeSaveConfigs(cmd *cobra.Command, appConfig *serverconfig.Config, ...) (err error)
- func UpdateConfig(cmd *cobra.Command) error
Constants ¶
const ( FlagMarkdown = "markdown" FlagYaml = "yaml" FlagRst = "rst" FlagManpage = "manpage" )
const ( // FlagOverwrite defines a flag to overwrite an existing genesis JSON file. FlagOverwrite = "overwrite" // FlagRecover defines a flag to initialize the private validator key from a specific seed. FlagRecover = "recover" // FlagTimeoutCommit is the flag string for providing a consensus.timeout_commit setting. FlagTimeoutCommit = "timeout-commit" )
Variables ¶
var ( ErrFail error = cmderrors.ExitCodeError(30) ErrFailRetry error = cmderrors.ExitCodeError(31) )
Functions ¶
func AddGenesisAccountCmd ¶
AddGenesisAccountCmd returns add-account cobra command.
func AddGenesisCustomFloorPriceDenomCmd ¶ added in v1.13.0
AddGenesisCustomFloorPriceDenomCmd returns add-msg-fee cobra command.
func AddGenesisCustomMarketCmd ¶ added in v1.17.1
AddGenesisCustomMarketCmd returns add-custom-market cobra command.
func AddGenesisDefaultMarketCmd ¶ added in v1.17.1
AddGenesisDefaultMarketCmd returns add-default-market cobra command.
func AddGenesisMarkerCmd ¶
AddGenesisMarkerCmd returns add-marker cobra command.
func AddGenesisMsgFeeCmd ¶ added in v1.9.0
AddGenesisMsgFeeCmd returns add-msg-fee cobra command.
func AddMetaAddressCmd ¶ added in v1.1.0
GetQueryCmd is the top-level command for name CLI queries.
func AddMetaAddressDecoder ¶ added in v1.1.0
AddMetaAddressDecoder returns metadata address parser cobra Command.
func AddMetaAddressEncoder ¶ added in v0.2.1
AddMetaAddressEncoder returns metadata address encoder cobra Command.
func AddRootDomainAccountCmd ¶
AddRootDomainAccountCmd returns add-root-name cobra command.
func ConfigChangedCmd ¶ added in v1.7.0
ConfigChangedCmd returns a CLI command to get config values different from their defaults.
func ConfigGetCmd ¶ added in v1.7.0
ConfigGetCmd returns a CLI command to get config values.
func ConfigHomeCmd ¶ added in v1.9.0
ConfigHomeCmd returns a CLI command for ouputting the home directory
func ConfigPackCmd ¶ added in v1.7.0
ConfigPackCmd returns a CLI command for creating a single packed json config file.
func ConfigSetCmd ¶ added in v1.7.0
ConfigSetCmd returns a CLI command to set config values.
func ConfigUnpackCmd ¶ added in v1.7.0
ConfigUnpackCmd returns a CLI command for creating the several config toml files.
func GenesisCmd ¶ added in v1.19.0
func GenesisCmd(txConfig client.TxConfig, moduleBasics module.BasicManager, defaultNodeHome string) *cobra.Command
GenesisCmd creates the genesis command with sub-commands for adding things to the genesis file.
func GetCmdPioSimulateTx ¶ added in v1.8.0
func GetDocGenCmd ¶ added in v1.17.0
func GetPreUpgradeCmd ¶ added in v1.16.0
GetPreUpgradeCmd returns the pre-upgrade command which cosmovisor runs before starting a node after an upgrade. Anyone not using cosmovisor should manually run this after swapping executables and before restarting the node.
func GetTreeCmd ¶ added in v1.19.0
GetTreeCmd gets the tree command that will output all the commands available.
func InitCmd ¶
func InitCmd(mbm module.BasicManager) *cobra.Command
InitCmd Creates a command for generating genesis and config files.
func InitTestnet ¶
func InitTestnet( clientCtx client.Context, cmd *cobra.Command, nodeConfig *cmtconfig.Config, mbm module.BasicManager, genBalIterator banktypes.GenesisBalancesIterator, outputDir, chainID, minGasPrices, nodeDirPrefix, nodeDaemonHome, startingIPAddress, keyringBackend, algoStr string, numValidators int, ) error
InitTestnet initializes the testnet
func NewRootCmd ¶
func NewRootCmd(sealConfig bool) (*cobra.Command, params.EncodingConfig)
NewRootCmd creates a new root command for provenanced. It is called once in the main function. Providing sealConfig = false is only for unit tests that want to run multiple commands.
func SafeSaveConfigs ¶ added in v1.16.0
func SafeSaveConfigs(cmd *cobra.Command, appConfig *serverconfig.Config, cmtConfig *cmtconfig.Config, clientConfig *config.ClientConfig, verbose bool, ) (err error)
SafeSaveConfigs calls config.SaveConfigs but returns an error instead of panicking.
func UpdateConfig ¶ added in v1.16.0
UpdateConfig writes the current config to files. During a pre-upgrade, this, at the very least, updates the config file using the most recent template. It might also force-change some config values.
Types ¶
This section is empty.