Documentation ¶
Index ¶
- Constants
- func CollectGenTxsCmd(genBalIterator types.GenesisBalancesIterator, defaultNodeHome string) *cobra.Command
- func GenTxCmd(mbm module.BasicManager, txEncCfg client.TxEncodingConfig, ...) *cobra.Command
- func GetMigrationCallback(version string) types.MigrationCallback
- func GetMigrationVersions() []string
- func InitCmd(mbm module.BasicManager, defaultNodeHome string) *cobra.Command
- func MigrateGenesisCmd() *cobra.Command
- func MigrateHandler(cmd *cobra.Command, args []string, migrations types.MigrationMap) error
- func ValidateGenesisCmd(mbm module.BasicManager) *cobra.Command
Constants ¶
View Source
const ( // FlagOverwrite defines a flag to overwrite an existing genesis JSON file. FlagOverwrite = "overwrite" // FlagSeed defines a flag to initialize the private validator key from a specific seed. FlagRecover = "recover" // FlagStakingBondDenom defines a flag to specify the staking token in the genesis file. FlagStakingBondDenom = "staking-bond-denom" )
Variables ¶
This section is empty.
Functions ¶
func CollectGenTxsCmd ¶
func CollectGenTxsCmd(genBalIterator types.GenesisBalancesIterator, defaultNodeHome string) *cobra.Command
CollectGenTxsCmd - return the cobra command to collect genesis transactions
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 GetMigrationCallback ¶
func GetMigrationCallback(version string) types.MigrationCallback
GetMigrationCallback returns a MigrationCallback for a given version.
func GetMigrationVersions ¶
func GetMigrationVersions() []string
GetMigrationVersions get all migration version in a sorted slice.
func InitCmd ¶
func InitCmd(mbm module.BasicManager, defaultNodeHome string) *cobra.Command
InitCmd returns a command that initializes all files needed for Tendermint and the respective application.
func MigrateGenesisCmd ¶
MigrateGenesisCmd returns a command to execute genesis state migration.
func MigrateHandler ¶ added in v0.46.15
MigrateHandler handles the migration command with a migration map as input, returning an error upon failure.
func ValidateGenesisCmd ¶
func ValidateGenesisCmd(mbm module.BasicManager) *cobra.Command
ValidateGenesisCmd takes a genesis file, and makes sure that it is valid.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.