Versions in this module Expand all Collapse all v0 v0.23.1 Jul 27, 2018 Changes in this version + var DefaultAppInit = AppInit + var FlagChainID = "chain-id" + var FlagClientHome = "home-client" + var FlagGenTxs = "gen-txs" + var FlagIP = "ip" + var FlagName = "name" + var FlagOWK = "owk" + var FlagOverwrite = "overwrite" + func AddCommands(ctx *Context, cdc *wire.Codec, rootCmd *cobra.Command, appInit AppInit, ...) + func ExportCmd(ctx *Context, cdc *wire.Codec, appExporter AppExporter) *cobra.Command + func FreeTCPAddr() (addr, port string, err error) + func GenTxCmd(ctx *Context, cdc *wire.Codec, appInit AppInit) *cobra.Command + func GenerateCoinKey() (sdk.AccAddress, string, error) + func GenerateSaveCoinKey(clientRoot, keyName, keyPass string, overwrite bool) (sdk.AccAddress, string, error) + func InitCmd(ctx *Context, cdc *wire.Codec, appInit AppInit) *cobra.Command + func InsertKeyJSON(cdc *wire.Codec, baseJSON []byte, key string, value json.RawMessage) ([]byte, error) + func PersistentPreRunEFn(context *Context) func(*cobra.Command, []string) error + func ShowNodeIDCmd(ctx *Context) *cobra.Command + func ShowValidatorCmd(ctx *Context) *cobra.Command + func SimpleAppGenState(cdc *wire.Codec, appGenTxs []json.RawMessage) (appState json.RawMessage, err error) + func SimpleAppGenTx(cdc *wire.Codec, pk crypto.PubKey, genTxConfig serverconfig.GenTx) (appGenTx, cliPrint json.RawMessage, validator tmtypes.GenesisValidator, ...) + func StartCmd(ctx *Context, appCreator AppCreator) *cobra.Command + func TestnetFilesCmd(ctx *Context, cdc *wire.Codec, appInit AppInit) *cobra.Command + func UnsafeResetAllCmd(ctx *Context) *cobra.Command + type AppCreator func(home string, logger log.Logger, traceStore string) (abci.Application, error) + func ConstructAppCreator(appFn AppCreatorInit, name string) AppCreator + type AppCreatorInit func(log.Logger, dbm.DB, io.Writer) abci.Application + type AppExporter func(home string, logger log.Logger, traceStore string) (json.RawMessage, []tmtypes.GenesisValidator, error) + func ConstructAppExporter(appFn AppExporterInit, name string) AppExporter + type AppExporterInit func(log.Logger, dbm.DB, io.Writer) (json.RawMessage, []tmtypes.GenesisValidator, error) + type AppInit struct + AppGenState func(cdc *wire.Codec, appGenTxs []json.RawMessage) (appState json.RawMessage, err error) + AppGenTx func(cdc *wire.Codec, pk crypto.PubKey, genTxConfig serverconfig.GenTx) (appGenTx, cliPrint json.RawMessage, validator tmtypes.GenesisValidator, ...) + FlagsAppGenState *pflag.FlagSet + FlagsAppGenTx *pflag.FlagSet + type Context struct + Config *cfg.Config + Logger log.Logger + func NewContext(config *cfg.Config, logger log.Logger) *Context + func NewDefaultContext() *Context + type GenesisTx struct + AppGenTx json.RawMessage + IP string + NodeID string + Validator tmtypes.GenesisValidator + type InitConfig struct + ChainID string + GenTxs bool + GenTxsDir string + Overwrite bool + type SimpleGenTx struct + Addr sdk.AccAddress