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
- func WriteConfigFile(configFilePath string, config *cmtconfig.Config)
- type InitConfig
- type KeyInfo
- type StakingPeriod
- 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 ¶
func WriteConfigFile ¶ added in v0.14.0
WriteConfigFile renders config using the template and writes it to configFilePath.
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 PersistentPeers string }
InitConfig is the config for the init command.
type StakingPeriod ¶ added in v0.12.0
type StakingPeriod int
const ( FLEXIBLE StakingPeriod = iota SHORT MEDIUM LONG )
func (*StakingPeriod) Set ¶ added in v0.12.0
func (sp *StakingPeriod) Set(v string) error
func (*StakingPeriod) String ¶ added in v0.12.0
func (sp *StakingPeriod) String() string
func (*StakingPeriod) Type ¶ added in v0.12.0
func (*StakingPeriod) Type() string
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.