Versions in this module Expand all Collapse all v0 v0.17.2 May 20, 2018 Changes in this version + var DefaultAppInit = AppInit + func AddCommands(ctx *Context, cdc *wire.Codec, rootCmd *cobra.Command, appInit AppInit, ...) + func AppendJSON(cdc *wire.Codec, baseJSON []byte, key string, value json.RawMessage) (appended []byte, err error) + func ExportCmd(ctx *Context, cdc *wire.Codec, appExporter AppExporter) *cobra.Command + func FreeTCPAddr(t *testing.T) string + func GenTxCmd(ctx *Context, cdc *wire.Codec, appInit AppInit) *cobra.Command + func GenerateCoinKey() (sdk.Address, string, error) + func GenerateSaveCoinKey(clientRoot, keyName, keyPass string, overwrite bool) (sdk.Address, string, error) + func InitCmd(ctx *Context, cdc *wire.Codec, appInit AppInit) *cobra.Command + func PersistentPreRunEFn(context *Context) func(*cobra.Command, []string) error + func RunOrTimeout(cmd *cobra.Command, timeout time.Duration, t *testing.T) chan 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) (appGenTx, cliPrint json.RawMessage, validator tmtypes.GenesisValidator, ...) + func StartCmd(ctx *Context, appCreator AppCreator) *cobra.Command + func UnsafeResetAllCmd(ctx *Context) *cobra.Command + type AppCreator func(string, log.Logger) (abci.Application, error) + func ConstructAppCreator(appFn func(log.Logger, dbm.DB) abci.Application, name string) AppCreator + type AppExporter func(home string, log log.Logger) (json.RawMessage, error) + func ConstructAppExporter(appFn func(log.Logger, dbm.DB) (json.RawMessage, error), name string) AppExporter + type AppInit struct + AppGenState func(cdc *wire.Codec, appGenTxs []json.RawMessage) (appState json.RawMessage, err error) + AppGenTx func(cdc *wire.Codec, pk crypto.PubKey) (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 SimpleGenTx struct + Addr sdk.Address