cmd

package
v1.11.1-rc3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 23, 2022 License: Apache-2.0 Imports: 71 Imported by: 0

Documentation

Overview

Package cmd contains provenance daemon init functionality.

Index

Constants

View Source
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"
)
View Source
const (
	// EnvTypeFlag is a flag for indicating a testnet
	EnvTypeFlag = "testnet"
	// Flag used to indicate coin type.
	CoinTypeFlag = "coin-type"
)

Variables

View Source
var ChainID string

ChainID is the id of the running chain

Functions

func AddGenesisAccountCmd

func AddGenesisAccountCmd(defaultNodeHome string) *cobra.Command

AddGenesisAccountCmd returns add-genesis-account cobra Command.

func AddGenesisMarkerCmd

func AddGenesisMarkerCmd(defaultNodeHome string) *cobra.Command

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

func AddMetaAddressCmd() *cobra.Command

GetQueryCmd is the top-level command for name CLI queries.

func AddMetaAddressDecoder added in v1.1.0

func AddMetaAddressDecoder() *cobra.Command

AddMetaAddressDecoder returns metadata address parser cobra Command.

func AddMetaAddressEncoder added in v0.2.1

func AddMetaAddressEncoder() *cobra.Command

AddMetaAddressEncoder returns metadata address encoder cobra Command.

func AddRootDomainAccountCmd

func AddRootDomainAccountCmd(defaultNodeHome string) *cobra.Command

AddRootDomainAccountCmd returns add-genesis-root-name cobra command.

func ConfigChangedCmd added in v1.7.0

func ConfigChangedCmd() *cobra.Command

ConfigChangedCmd returns a CLI command to get config values different from their defaults.

func ConfigCmd added in v1.7.0

func ConfigCmd() *cobra.Command

ConfigCmd returns a CLI command to update config files.

func ConfigGetCmd added in v1.7.0

func ConfigGetCmd() *cobra.Command

ConfigGetCmd returns a CLI command to get config values.

func ConfigHomeCmd added in v1.9.0

func ConfigHomeCmd() *cobra.Command

ConfigHomeCmd returns a CLI command for ouputting the home directory

func ConfigPackCmd added in v1.7.0

func ConfigPackCmd() *cobra.Command

ConfigPackCmd returns a CLI command for creating a single packed json config file.

func ConfigSetCmd added in v1.7.0

func ConfigSetCmd() *cobra.Command

ConfigSetCmd returns a CLI command to set config values.

func ConfigUnpackCmd added in v1.7.0

func ConfigUnpackCmd() *cobra.Command

ConfigUnpackCmd returns a CLI command for creating the several config toml files.

func Execute

func Execute(rootCmd *cobra.Command) error

Execute executes the root command.

func GetCmdPioSimulateTx added in v1.8.0

func GetCmdPioSimulateTx() *cobra.Command

func Init

func Init(
	cmd *cobra.Command,
	mbm module.BasicManager,
	moniker string,
) error

Init initializes genesis and config files.

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() (*cobra.Command, params.EncodingConfig)

NewRootCmd creates a new root command for simd. It is called once in the main function.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL