cli

package
v1.7.9 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 License: Apache-2.0, Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

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 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 GetMigrationCallback

func GetMigrationCallback(version string) extypes.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(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 MigrateGenesisCmd

func MigrateGenesisCmd(_ *server.Context, cdc *codec.Codec) *cobra.Command

MigrateGenesisCmd returns a command to execute genesis state migration. nolint: funlen

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

Jump to

Keyboard shortcuts

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