cli

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2022 License: Apache-2.0 Imports: 77 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FlagHeight           = "height"
	FlagForZeroHeight    = "for-zero-height"
	FlagJailAllowedAddrs = "jail-allowed-addrs"
)
View Source
const (
	FlagLogFilter = "log_filter"
)

Variables

This section is empty.

Functions

func AddGenesisAccountCmd

func AddGenesisAccountCmd(defaultNodeHome string) *cobra.Command

AddGenesisAccountCmd returns add-genesis-account cobra Command.

func AppTomlCmd

func AppTomlCmd() *cobra.Command

func AttributesToMap

func AttributesToMap(attrs []types.EventAttribute) []map[string]interface{}

func Base64ToString

func Base64ToString() *cobra.Command

func BlockCommand

func BlockCommand() *cobra.Command

BlockCommand returns the verified block data for a given heights

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.Codec, 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 DataCmd

func DataCmd() *cobra.Command

func Debug

func Debug() *cobra.Command

func ExportSateCmd

func ExportSateCmd(appExporter types.AppExporter, defaultNodeHome string) *cobra.Command

ExportSateCmd dumps app state to JSON.

func GenAppStateFromConfig

func GenAppStateFromConfig(cdc codec.Codec, 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 HexToString

func HexToString() *cobra.Command

func ModuleAddressCmd

func ModuleAddressCmd() *cobra.Command

func ParseBlockResults

func ParseBlockResults(cdc codec.JSONCodec, blockResults *coretypes.ResultBlockResults) (interface{}, error)

func PreUpgradeCmd added in v0.2.0

func PreUpgradeCmd() *cobra.Command

PreUpgradeCmd called by cosmovisor

func PrintOutput

func PrintOutput(ctx client.Context, any interface{}) error

func PubkeyCmd

func PubkeyCmd() *cobra.Command

func QueryBlockResultsCmd

func QueryBlockResultsCmd() *cobra.Command

func QueryStoreCmd

func QueryStoreCmd() *cobra.Command

func QueryTxCmd

func QueryTxCmd() *cobra.Command

QueryTxCmd implements the default command for a tx query.

func QueryTxsByEventsCmd

func QueryTxsByEventsCmd() *cobra.Command

QueryTxsByEventsCmd returns a command to search through transactions by events.

func QueryValidatorByConsAddr

func QueryValidatorByConsAddr() *cobra.Command

func StatusCommand

func StatusCommand() *cobra.Command

StatusCommand returns the command to return the status of the network.

func StringToBytes32

func StringToBytes32() *cobra.Command

func TxResponseToMap

func TxResponseToMap(cdc codec.JSONCodec, txResponse *sdk.TxResponse) map[string]interface{}

func TxResultToMap

func TxResultToMap(txResult *types.ResponseDeliverTx) map[string]interface{}

func UnsafeResetNodeKeyCmd

func UnsafeResetNodeKeyCmd() *cobra.Command

func UnsafeRestPrivValidatorCmd

func UnsafeRestPrivValidatorCmd() *cobra.Command

func UpdateCfgCmd added in v0.2.0

func UpdateCfgCmd() *cobra.Command

func ValidatorCommand

func ValidatorCommand() *cobra.Command

ValidatorCommand returns the validator set for a given height

func VerifyTx

func VerifyTx() *cobra.Command

Types

type FxZeroLogWrapper

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

func NewFxZeroLogWrapper

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

func (FxZeroLogWrapper) Info

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

func (FxZeroLogWrapper) With

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