cli

package
v7.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 59 Imported by: ? modules, 0 packages

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

This section is empty.

Variables

This section is empty.

Functions

func AddGenesisAccountCmd

func AddGenesisAccountCmd(defaultNodeHome string) *cobra.Command

AddGenesisAccountCmd returns add-genesis-account cobra Command.

func AddrCmd

func AddrCmd() *cobra.Command

func BlockCommand

func BlockCommand() *cobra.Command

BlockCommand returns the verified block data for a given heights

func ChecksumEthAddressCmd

func ChecksumEthAddressCmd() *cobra.Command

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.JSONCodec, txJSONDecoder sdk.TxDecoder, 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 CovertTxDataToHashCmd

func CovertTxDataToHashCmd() *cobra.Command

func Debug

func Debug() *cobra.Command

func DecodeSimulateTxCmd

func DecodeSimulateTxCmd() *cobra.Command

func GenAppStateFromConfig

func GenAppStateFromConfig(cdc codec.JSONCodec, txEncodingConfig client.TxEncodingConfig,
	config *tmcfg.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, genBalIterator types.GenesisBalancesIterator, defaultNodeHome string) *cobra.Command

GenTxCmd builds the application's gentx command.

func GenesisCoreCommand

func GenesisCoreCommand(moduleBasics module.BasicManager, defaultNodeHome string) *cobra.Command

GenesisCoreCommand adds core sdk's sub-commands into genesis command: -> gentx, migrate, collect-gentxs, validate-genesis, add-genesis-account

func InitCmd

func InitCmd(nodeHome string, genesisState map[string]json.RawMessage, consensusParams *tmtypes.ConsensusParams) *cobra.Command

InitCmd returns a command that initializes all files needed for Tendermint and the respective application.

func ModuleAddressCmd

func ModuleAddressCmd() *cobra.Command

ModuleAddressCmd Deprecated: please use `fxcored query auth module-account`

func PubkeyCmd

func PubkeyCmd() *cobra.Command

func QueryGasPricesCmd

func QueryGasPricesCmd() *cobra.Command

func QueryStoreCmd

func QueryStoreCmd() *cobra.Command

func QueryValidatorByConsAddr

func QueryValidatorByConsAddr() *cobra.Command

func StatusCommand

func StatusCommand() *cobra.Command

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

func ToBytes32Cmd

func ToBytes32Cmd() *cobra.Command

func ToStringCmd

func ToStringCmd() *cobra.Command

func ValidateAccountInGenesis

func ValidateAccountInGenesis(
	appGenesisState map[string]json.RawMessage, genBalIterator types.GenesisBalancesIterator,
	addr sdk.Address, coins sdk.Coins, cdc codec.JSONCodec,
) error

ValidateAccountInGenesis checks that the provided account has a sufficient balance in the set of genesis accounts.

func VerifyTxCmd

func VerifyTxCmd() *cobra.Command

Types

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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