Documentation ¶
Index ¶
- Constants
- func CollectGenTxsCmd(ctx *server.Context, cdc *codec.Codec, ...) *cobra.Command
- func CollectStdTxs(cdc *codec.Codec, moniker, genTxsDir string, genDoc tmtypes.GenesisDoc, ...) (appGenTxs []authtypes.StdTx, err error)
- func ExportGenesisFile(genDoc *tmtypes.GenesisDoc, genFile string) error
- func GenAppStateFromConfig(cdc *codec.Codec, config *cfg.Config, initCfg genutil.InitConfig, ...) (appState json.RawMessage, err error)
- func GenDeclareCandidateTxCmd(ctx *server.Context, cdc *codec.Codec, mbm module.BasicManager, ...) *cobra.Command
- func GenTxCmd(ctx *server.Context, cdc *codec.Codec, mbm module.BasicManager, ...) *cobra.Command
- func InitCmd(ctx *server.Context, cdc *codec.Codec, mbm module.BasicManager, ...) *cobra.Command
- func ValidateGenesisCmd(ctx *server.Context, cdc *codec.Codec, mbm module.BasicManager) *cobra.Command
- type StakingMsgBuildingHelpers
Constants ¶
const MainNetGenesis = `` /* 11802-byte string literal not displayed */
const TestNetGenesis = `` /* 10763-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
func CollectGenTxsCmd ¶
func CollectGenTxsCmd(ctx *server.Context, cdc *codec.Codec, genAccIterator types.GenesisAccountsIterator, defaultNodeHome string) *cobra.Command
CollectGenTxsCmd - return the cobra command to collect genesis transactions
func CollectStdTxs ¶
func CollectStdTxs(cdc *codec.Codec, moniker, genTxsDir string, genDoc tmtypes.GenesisDoc, genAccIterator types.GenesisAccountsIterator, ) (appGenTxs []authtypes.StdTx, err error)
CollectStdTxs processes and validates application's genesis StdTxs and returns the list of appGenTxs, and persistent peers required to generate genesis.json.
func ExportGenesisFile ¶
func ExportGenesisFile(genDoc *tmtypes.GenesisDoc, genFile string) error
ExportGenesisFile creates and writes the genesis configuration to disk. An error is returned if building or writing the configuration to file fails.
func GenAppStateFromConfig ¶
func GenAppStateFromConfig(cdc *codec.Codec, config *cfg.Config, initCfg genutil.InitConfig, genDoc tmtypes.GenesisDoc, genAccIterator types.GenesisAccountsIterator, ) (appState json.RawMessage, err error)
GenAppStateFromConfig gets the genesis app state from the config
func GenDeclareCandidateTxCmd ¶
func GenDeclareCandidateTxCmd(ctx *server.Context, cdc *codec.Codec, mbm module.BasicManager, smbh StakingMsgBuildingHelpers, genAccIterator types.GenesisAccountsIterator, defaultNodeHome, defaultCLIHome string) *cobra.Command
GenDeclareCandidateTxCmd builds and prints transaction to declare validator candidate. nolint: errcheck
func GenTxCmd ¶
func GenTxCmd(ctx *server.Context, cdc *codec.Codec, mbm module.BasicManager, smbh StakingMsgBuildingHelpers, genAccIterator types.GenesisAccountsIterator, defaultNodeHome, defaultCLIHome string) *cobra.Command
GenTxCmd builds the application's gentx command. nolint: errcheck
func InitCmd ¶
func InitCmd(ctx *server.Context, cdc *codec.Codec, mbm module.BasicManager, defaultNodeHome string) *cobra.Command
InitCmd returns a command that initializes all files needed for Tendermint and the respective application
func ValidateGenesisCmd ¶
func ValidateGenesisCmd(ctx *server.Context, cdc *codec.Codec, mbm module.BasicManager) *cobra.Command
Validate genesis command takes
Types ¶
type StakingMsgBuildingHelpers ¶
type StakingMsgBuildingHelpers interface { CreateValidatorMsgHelpers(ipDefault string) (fs *flag.FlagSet, nodeIDFlag, pubkeyFlag, amountFlag, defaultsDesc string) PrepareFlagsForTxCreateValidator(config *cfg.Config, nodeID, chainID string, valPubKey crypto.PubKey) BuildCreateValidatorMsg(cliCtx context.CLIContext, txBldr auth.TxBuilder) (auth.TxBuilder, sdk.Msg, error) }
StakingMsgBuildingHelpers helpers for message building gen-tx command