Documentation ¶
Index ¶
- Constants
- func AddCmdLogWrapFilterLogType(cmd *cobra.Command) error
- func AddGenesisAccountCmd(defaultNodeHome string) *cobra.Command
- func AddrCmd() *cobra.Command
- func AppTomlCmd() *cobra.Command
- func Base64ToString() *cobra.Command
- func BuildCreateValidatorMsg(clientCtx client.Context, config cli.TxCreateValidatorConfig, ...) (tx.Factory, sdk.Msg, error)
- func CollectGenTxsCmd(genBalIterator types.GenesisBalancesIterator, defaultNodeHome string) *cobra.Command
- func CollectTxs(cdc codec.JSONMarshaler, txJSONDecoder sdk.TxDecoder, ...) (appGenTxs []sdk.Tx, persistentPeers string, err error)
- func ConfigTomlCmd() *cobra.Command
- func CovertTxDataToHash() *cobra.Command
- func Debug() *cobra.Command
- func GenAppStateFromConfig(cdc codec.JSONMarshaler, txEncodingConfig client.TxEncodingConfig, ...) (appState json.RawMessage, err error)
- func GenTxCmd(mbm module.BasicManager, txEncCfg client.TxEncodingConfig, ...) *cobra.Command
- func HexExternalAddress() *cobra.Command
- func HexToString() *cobra.Command
- func KeyCommands(defaultNodeHome string) *cobra.Command
- func ModuleAddressCmd() *cobra.Command
- func NewLegacyKeyBaseFromDir(rootDir string, opts ...cryptokeyring.KeybaseOption) (cryptokeyring.LegacyKeybase, error)
- func ParseTx() *cobra.Command
- func PrintOutput(ctx client.Context, out []byte) error
- func PubkeyCmd() *cobra.Command
- func QueryBlockResultsCmd() *cobra.Command
- func QueryStoreCmd() *cobra.Command
- func RawBytesCmd() *cobra.Command
- func UpdateNodeKeyCmd() *cobra.Command
- func UpdateValidatorKeyCmd() *cobra.Command
- type FxZeroLogWrapper
- type PrintInfo
Constants ¶
const ( OutputFormatText = "text" OutputFormatJSON = "json" )
available output formats.
const (
FlagLogFilter = "log_filter"
)
Variables ¶
This section is empty.
Functions ¶
func AddCmdLogWrapFilterLogType ¶ added in v1.1.2
func AddGenesisAccountCmd ¶
AddGenesisAccountCmd returns add-genesis-account cobra Command.
func AppTomlCmd ¶
func Base64ToString ¶
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 CovertTxDataToHash ¶
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 HexToString ¶
func KeyCommands ¶
KeyCommands registers a sub-tree of commands to interact with local private key storage.
func ModuleAddressCmd ¶
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 QueryBlockResultsCmd ¶
func QueryStoreCmd ¶
func RawBytesCmd ¶
func UpdateNodeKeyCmd ¶
func UpdateValidatorKeyCmd ¶
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