cli

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: Apache-2.0 Imports: 57 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OutputFormatText = "text"
	OutputFormatJSON = "json"
)

available output formats.

View Source
const (
	FlagLogFilter = "log_filter"
)

Variables

This section is empty.

Functions

func AddCmdLogWrapFilterLogType added in v1.1.2

func AddCmdLogWrapFilterLogType(cmd *cobra.Command) error

func AddGenesisAccountCmd

func AddGenesisAccountCmd(defaultNodeHome string) *cobra.Command

AddGenesisAccountCmd returns add-genesis-account cobra Command.

func AddrCmd

func AddrCmd() *cobra.Command

func AppTomlCmd

func AppTomlCmd() *cobra.Command

func Base64ToString

func Base64ToString() *cobra.Command

func BuildCreateValidatorMsg

func BuildCreateValidatorMsg(clientCtx client.Context, config cli.TxCreateValidatorConfig, txBldr tx.Factory) (tx.Factory, sdk.Msg, error)

BuildCreateValidatorMsg makes a new MsgCreateValidator.

func CollectGenTxsCmd

func CollectGenTxsCmd(genBalIterator types.GenesisBalancesIterator, defaultNodeHome string) *cobra.Command

CollectGenTxsCmd - return the cobra command to collect genesis transactions

func CollectTxs

func CollectTxs(cdc codec.JSONMarshaler, txJSONDecoder sdk.TxDecoder, moniker, genTxsDir string,
	genDoc tmtypes.GenesisDoc, genBalIterator types.GenesisBalancesIterator,
) (appGenTxs []sdk.Tx, persistentPeers string, err error)

CollectTxs processes and validates application's genesis Txs and returns the list of appGenTxs, and persistent peers required to generate genesis.json.

func ConfigTomlCmd

func ConfigTomlCmd() *cobra.Command

func CovertTxDataToHash

func CovertTxDataToHash() *cobra.Command

func Debug

func Debug() *cobra.Command

func GenAppStateFromConfig

func GenAppStateFromConfig(cdc codec.JSONMarshaler, txEncodingConfig client.TxEncodingConfig,
	config *cfg.Config, initCfg types.InitConfig, genDoc tmtypes.GenesisDoc, genBalIterator types.GenesisBalancesIterator,
) (appState json.RawMessage, err error)

GenAppStateFromConfig gets the genesis app state from the config

func GenTxCmd

func GenTxCmd(mbm module.BasicManager, txEncCfg client.TxEncodingConfig, genBalIterator types.GenesisBalancesIterator, defaultNodeHome string) *cobra.Command

GenTxCmd builds the application's gentx command.

func HexExternalAddress

func HexExternalAddress() *cobra.Command

func HexToString

func HexToString() *cobra.Command

func KeyCommands

func KeyCommands(defaultNodeHome string) *cobra.Command

KeyCommands registers a sub-tree of commands to interact with local private key storage.

func ModuleAddressCmd

func ModuleAddressCmd() *cobra.Command

func NewLegacyKeyBaseFromDir

func NewLegacyKeyBaseFromDir(rootDir string, opts ...cryptokeyring.KeybaseOption) (cryptokeyring.LegacyKeybase, error)

NewLegacyKeyBaseFromDir initializes a legacy keybase at the rootDir directory. Keybase options can be applied when generating this new Keybase.

func ParseTx

func ParseTx() *cobra.Command

func PrintOutput

func PrintOutput(ctx client.Context, out []byte) error

func PubkeyCmd

func PubkeyCmd() *cobra.Command

func QueryBlockResultsCmd

func QueryBlockResultsCmd() *cobra.Command

func QueryStoreCmd

func QueryStoreCmd() *cobra.Command

func RawBytesCmd

func RawBytesCmd() *cobra.Command

func UpdateNodeKeyCmd

func UpdateNodeKeyCmd() *cobra.Command

func UpdateValidatorKeyCmd

func UpdateValidatorKeyCmd() *cobra.Command

Types

type FxZeroLogWrapper added in v1.1.2

type FxZeroLogWrapper struct {
	server.ZeroLogWrapper
	// contains filtered or unexported fields
}

func NewFxZeroLogWrapper added in v1.1.2

func NewFxZeroLogWrapper(logger server.ZeroLogWrapper, logTypes []string) FxZeroLogWrapper

func (FxZeroLogWrapper) Info added in v1.1.2

func (z FxZeroLogWrapper) Info(msg string, keyVals ...interface{})

func (FxZeroLogWrapper) With added in v1.1.2

func (z FxZeroLogWrapper) With(keyVals ...interface{}) tmlog.Logger

With returns a new wrapped logger with additional context provided by a set of key/value tuples. The number of tuples must be even and the key of the tuple must be a string.

type PrintInfo

type PrintInfo struct {
	Moniker    string          `json:"moniker" yaml:"moniker"`
	ChainID    string          `json:"chain_id" yaml:"chain_id"`
	NodeID     string          `json:"node_id" yaml:"node_id"`
	GenTxsDir  string          `json:"gentxs_dir" yaml:"gentxs_dir"`
	AppMessage json.RawMessage `json:"app_message" yaml:"app_message"`
}

func NewPrintInfo

func NewPrintInfo(moniker, chainID, nodeID, genTxsDir string, appMessage json.RawMessage) PrintInfo

Jump to

Keyboard shortcuts

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