cmd

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 14, 2019 License: Apache-2.0 Imports: 45 Imported by: 0

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 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