Documentation ¶
Overview ¶
Package cmd contains provenance daemon init functionality.
Index ¶
- Constants
- Variables
- func AddGenesisAccountCmd(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, interfaceRegistry types.InterfaceRegistry) *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 GetCmdPioSimulateTx() *cobra.Command
- func GetDocGenCmd() *cobra.Command
- func GetPreUpgradeCmd() *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 *tmconfig.Config, ...) error
- func NewRootCmd(sealConfig bool) (*cobra.Command, params.EncodingConfig)
- func SafeSaveConfigs(cmd *cobra.Command, appConfig *serverconfig.Config, tmConfig *tmconfig.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" )
const ( // EnvTypeFlag is a flag for indicating a testnet EnvTypeFlag = "testnet" // Flag used to indicate coin type. CoinTypeFlag = "coin-type" )
Variables ¶
Functions ¶
func AddGenesisAccountCmd ¶
AddGenesisAccountCmd returns add-genesis-account cobra Command.
func AddGenesisCustomFloorPriceDenomCmd ¶ added in v1.13.0
AddGenesisCustomFloorPriceDenomCmd returns add-genesis-msg-fee cobra command.
func AddGenesisCustomMarketCmd ¶ added in v1.17.1
AddGenesisCustomMarketCmd returns add-genesis-custom-market cobra command.
func AddGenesisDefaultMarketCmd ¶ added in v1.17.1
AddGenesisDefaultMarketCmd returns add-genesis-default-market cobra command.
func AddGenesisMarkerCmd ¶
AddGenesisMarkerCmd configures a marker account and adds it to the list of genesis accounts
func AddGenesisMsgFeeCmd ¶ added in v1.9.0
func AddGenesisMsgFeeCmd(defaultNodeHome string, interfaceRegistry types.InterfaceRegistry) *cobra.Command
AddGenesisMsgFeeCmd returns add-genesis-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-genesis-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 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 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 *tmconfig.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, tmConfig *tmconfig.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.