Documentation ¶
Index ¶
- func FreeTCPAddr(t *testing.T) string
- func GenerateCoinKey() (sdk.Address, string, error)
- func InitCmd(gen GenAppState, logger log.Logger) *cobra.Command
- func RunOrTimeout(cmd *cobra.Command, timeout time.Duration, t *testing.T) chan error
- func ShowNodeIdCmd(logger log.Logger) *cobra.Command
- func StartCmd(app appCreator, logger log.Logger) *cobra.Command
- func StartServer(t *testing.T) chan error
- func UnsafeResetAllCmd(logger log.Logger) *cobra.Command
- type GenAppState
- type GenesisDoc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FreeTCPAddr ¶ added in v0.12.0
Get a free address for a test tendermint server protocol is either tcp, http, etc
func GenerateCoinKey ¶
GenerateCoinKey returns the address of a public key, along with the secret phrase to recover the private key. You can give coins to this address and return the recovery phrase to the user to access them.
func InitCmd ¶
func InitCmd(gen GenAppState, logger log.Logger) *cobra.Command
InitCmd will initialize all files for tendermint, along with proper app_state. The application can pass in a function to generate proper state. And may want to use GenerateCoinKey to create default account(s).
func RunOrTimeout ¶ added in v0.12.0
Run or Timout RunE of command passed in
func ShowNodeIdCmd ¶ added in v0.12.0
ShowNodeIdCmd - ported from Tendermint, dump node ID to stdout
func StartCmd ¶
StartCmd runs the service passed in, either stand-alone, or in-process with tendermint
func StartServer ¶ added in v0.12.0
Begin the server pass up the channel to close NOTE pass up the channel so it can be closed at the end of the process
Types ¶
type GenAppState ¶ added in v0.12.0
type GenAppState func(args []string) (json.RawMessage, error)
GenAppState can parse command-line and flag to generate default app_state for the genesis file. This is application-specific
type GenesisDoc ¶
type GenesisDoc map[string]json.RawMessage
GenesisDoc involves some tendermint-specific structures we don't want to parse, so we just grab it into a raw object format, so we can add one line.