Documentation
¶
Index ¶
- func AddGenesisAccountCmd(defaultNodeHome string) *cobra.Command
- func AddKeyCommand() *cobra.Command
- func CollectGenTxsCmd(genBalIterator types.GenesisBalancesIterator, defaultNodeHome string) *cobra.Command
- func CollectTxs(cdc codec.JSONMarshaler, txJSONDecoder sdk.TxDecoder, ...) (appGenTxs []sdk.Tx, persistentPeers string, err error)
- func Commands(defaultNodeHome string) *cobra.Command
- func Execute(rootCmd *cobra.Command) error
- func GenAppStateFromConfig(cdc codec.JSONMarshaler, txEncodingConfig client.TxEncodingConfig, ...) (appState json.RawMessage, err error)
- func GenTxCmd(mbm module.BasicManager, txEncCfg client.TxEncodingConfig, ...) *cobra.Command
- func InitTestnet(clientCtx client.Context, cmd *cobra.Command, nodeConfig *tmconfig.Config, ...) error
- func NewRootCmd() (*cobra.Command, params.EncodingConfig)
- type EthereumKeyOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddGenesisAccountCmd ¶
AddGenesisAccountCmd returns add-genesis-account cobra Command.
func AddKeyCommand ¶
AddKeyCommand defines a keys command to generate a key
func CollectGenTxsCmd ¶
func CollectGenTxsCmd(genBalIterator types.GenesisBalancesIterator, defaultNodeHome string) *cobra.Command
CollectGenTxsCmd - return the cobra command to collect genesis transactions
func CollectTxs ¶
func CollectTxs(cdc codec.JSONMarshaler, txJSONDecoder sdk.TxDecoder, moniker, genTxsDir string, genDoc tmtypes.GenesisDoc, genBalIterator types.GenesisBalancesIterator, ) (appGenTxs []sdk.Tx, persistentPeers string, err error)
CollectTxs processes and validates application's genesis Txs and returns the list of appGenTxs, and persistent peers required to generate genesis.json.
func Commands ¶
Commands registers a sub-tree of commands to interact with local private key storage.
func GenAppStateFromConfig ¶
func GenAppStateFromConfig(cdc codec.JSONMarshaler, txEncodingConfig client.TxEncodingConfig, config *cfg.Config, initCfg types.InitConfig, genDoc tmtypes.GenesisDoc, genBalIterator types.GenesisBalancesIterator, ) (appState json.RawMessage, err error)
GenAppStateFromConfig gets the genesis app state from the config
func GenTxCmd ¶
func GenTxCmd(mbm module.BasicManager, txEncCfg client.TxEncodingConfig, genBalIterator types.GenesisBalancesIterator, defaultNodeHome string) *cobra.Command
GenTxCmd builds the application's gentx command.
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.