Documentation ¶
Overview ¶
Package cmd provides the cli for running the story consensus client.
Package cmd provides commands for interacting with the Story consensus client.
Index ¶
- func CheckStatus(ctx context.Context, cfg StatusConfig) error
- func DefaultCometConfig(homeDir string) cfg.Config
- func InitFiles(ctx context.Context, initCfg InitConfig) error
- func MakeGenesis(network netconf.ID, valPubKeys ...crypto.PubKey) (*types.GenesisDoc, error)
- func New() *cobra.Command
- func SplitAndTrim(input string) []string
- type InitConfig
- type KeyInfo
- type StatusConfig
- type ValidatorKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckStatus ¶ added in v0.9.13
func CheckStatus(ctx context.Context, cfg StatusConfig) error
checkStatus queries the status endpoint of the Story chain and fetches the latest block height.
func DefaultCometConfig ¶
DefaultCometConfig returns the default cometBFT config.
func InitFiles ¶
func InitFiles(ctx context.Context, initCfg InitConfig) error
InitFiles initializes the files and folders required by story. It ensures a network and genesis file is generated/downloaded for the provided network.
func MakeGenesis ¶
func SplitAndTrim ¶
Types ¶
type InitConfig ¶
type InitConfig struct { HomeDir string Network netconf.ID TrustedSync bool Force bool Clean bool Cosmos bool ExecutionHash common.Hash RPCLaddr string ExternalAddress string Seeds string SeedMode bool Moniker string }
InitConfig is the config for the init command.
type StatusConfig ¶ added in v0.9.13
StatusConfig is the config for the status command.
type ValidatorKey ¶
Click to show internal directories.
Click to hide internal directories.