Documentation ¶
Overview ¶
The root command contains everything under `$ althea`, notably the `tx` and `q` commands, the `start` command for validators, and all defaults are set here
Index ¶
- func AddGenesisAccountCmd(defaultNodeHome string) *cobra.Command
- func AddKeyCommand() *cobra.Command
- func Commands(defaultNodeHome string) *cobra.Command
- func Execute(rootCmd *cobra.Command) error
- func InitCmd(mbm module.BasicManager, defaultNodeHome string) *cobra.Command
- func InitTestnet(clientCtx client.Context, cmd *cobra.Command, nodeConfig *tmconfig.Config, ...) error
- func NewRootCmd() (*cobra.Command, params.EncodingConfig)
- func ValidateGenesisCmd(mbm module.BasicManager) *cobra.Command
- func ValidateMintGenesis(cdc codec.JSONCodec, ctx client.Context, genesis json.RawMessage) error
- type EthereumKeyOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddGenesisAccountCmd ¶
AddGenesisAccountCmd returns add-genesis-account cobra Command.
func AddKeyCommand ¶ added in v0.2.2
AddKeyCommand defines a keys command to generate a key
func Commands ¶ added in v0.2.2
Commands registers a sub-tree of commands to interact with local private key storage.
func InitCmd ¶ added in v0.3.1
func InitCmd(mbm module.BasicManager, defaultNodeHome string) *cobra.Command
InitCmd returns a command that initializes all files needed for Tendermint and the respective application. Note that this is mostly a copy of the default InitCmd found in genutil, however we need to overwrite the default chain id to one which will not cause a panic in ethermint/x/evm/genesis.go
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
Initialize the testnet
func NewRootCmd ¶
func NewRootCmd() (*cobra.Command, params.EncodingConfig)
NewRootCmd creates a new root command for althea. It is called once in the main function. The name of the binary is controlled by the Makefile in the project root. Most everything else is controlled here via cobra. The module subcommands are automatically created by passing the ModuleBasics (from app.go) in initRootCmd(). The module subcommands should be in x/{module}/client/cli
func ValidateGenesisCmd ¶ added in v0.4.0
func ValidateGenesisCmd(mbm module.BasicManager) *cobra.Command
ValidateGenesisCmd takes a genesis file, and makes sure that it is valid.
func ValidateMintGenesis ¶ added in v0.4.0
ValidateMintGenesis will assert that the config's NativeToken constant and the mint MintDenom match before the chain starts up. We have an assertion at chain runtime to ensure this, but a genesis check leads to easier chain launch.