cmd

package
v0.4.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 16, 2019 License: Apache-2.0 Imports: 45 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const Bech32PrefixConsPub = "cosmosvalconspub"
View Source
const (
	FlagJson = "json"
)

Variables

View Source
var (
	FlagName       = "name"
	FlagClientHome = "home-client"
	FlagOWK        = "owk"
)

Parameter names, for init gen-tx command

View Source
var (
	FlagOverwrite = "overwrite"
	FlagWithTxs   = "with-txs"
	FlagIP        = "ip"
	FlagChainID   = "chain-id"
)

parameter names, init command

Functions

func AddServerCommands

func AddServerCommands(
	ctx *app.Context, cdc *amino.Codec,
	rootCmd *cobra.Command, appInit app.AppInit,
	appCreator app.AppCreator, appExport app.AppExporter)

add server commands

func Bech32ifyConsPub

func Bech32ifyConsPub(pub crypto.PubKey) (string, error)

Bech32ifyConsPub returns a Bech32 encoded string containing the Bech32PrefixConsPub prefixfor a given consensus node's PubKey.

func GenTxCmd

func GenTxCmd(ctx *app.Context, cdc *amino.Codec, appInit app.AppInit) *cobra.Command

get cmd to initialize all files for tendermint and application

func GetVersion

func GetVersion() string

return version of CLI/node and commit hash

func InitWithConfig added in v0.3.0

func InitWithConfig(cdc *amino.Codec, appInit app.AppInit, c *cfg.Config, initConfig InitConfig) (
	chainID string, nodeID string, appMessage json.RawMessage, err error)

func StartInProcess added in v0.3.0

func StartInProcess(ctx *app.Context, appCreator app.AppCreator) (*node.Node, error)

func UnsafeResetAllCmd

func UnsafeResetAllCmd(ctx *app.Context) *cobra.Command

UnsafeResetAllCmd - extension of the tendermint command, resets initialization

Types

type GenesisTx

type GenesisTx struct {
	NodeID    string                   `json:"node_id"`
	IP        string                   `json:"ip"`
	Validator tmtypes.GenesisValidator `json:"validator"`
	AppGenTx  json.RawMessage          `json:"app_gen_tx"`
}

genesis piece structure for creating combined genesis

type InitConfig

type InitConfig struct {
	ChainID     string
	GenTxs      bool
	GenTxsDir   string
	Overwrite   bool
	GenesisTime time.Time
}

Storage for init command input parameters

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL