Documentation
      ¶
    
    
  
    
  
    Index ¶
- Constants
 - func AddGenesisAccountCmd(defaultNodeHome string) *cobra.Command
 - func AddrCmd() *cobra.Command
 - func AttributesToMap(attrs []types.EventAttribute) []map[string]interface{}
 - func BlockCommand() *cobra.Command
 - func BuildCreateValidatorMsg(clientCtx client.Context, config cli.TxCreateValidatorConfig, ...) (tx.Factory, sdk.Msg, error)
 - func ChecksumEthAddressCmd() *cobra.Command
 - func CollectGenTxsCmd(genBalIterator types.GenesisBalancesIterator, defaultNodeHome string) *cobra.Command
 - func CollectTxs(cdc codec.JSONCodec, txJSONDecoder sdk.TxDecoder, genTxsDir string, ...) (appGenTxs []sdk.Tx, persistentPeers string, err error)
 - func CovertTxDataToHashCmd() *cobra.Command
 - func DataCmd() *cobra.Command
 - func Debug() *cobra.Command
 - func DecodeSimulateTxCmd() *cobra.Command
 - func ExportSateCmd(appExporter types.AppExporter, defaultNodeHome string) *cobra.Command
 - func GenAppStateFromConfig(cdc codec.JSONCodec, txEncodingConfig client.TxEncodingConfig, ...) (appState json.RawMessage, err error)
 - func GenTxCmd(mbm module.BasicManager, txEncCfg client.TxEncodingConfig, ...) *cobra.Command
 - func InitCmd(nodeHome string, genesisState map[string]json.RawMessage, ...) *cobra.Command
 - func ModuleAddressCmd() *cobra.Command
 - func ParseBlockResults(cdc codec.JSONCodec, blockResults *coretypes.ResultBlockResults) (interface{}, error)
 - func PrintOutput(ctx client.Context, any interface{}) error
 - func PubkeyCmd() *cobra.Command
 - func QueryBlockResultsCmd() *cobra.Command
 - func QueryStoreCmd() *cobra.Command
 - func QueryTxCmd() *cobra.Command
 - func QueryTxsByEventsCmd() *cobra.Command
 - func QueryValidatorByConsAddr() *cobra.Command
 - func ReplayCmd() *cobra.Command
 - func ReplayConsoleCmd() *cobra.Command
 - func RunConfigCmd(cmd *cobra.Command, args []string) error
 - func StatusCommand() *cobra.Command
 - func ToBytes32Cmd() *cobra.Command
 - func ToStringCmd() *cobra.Command
 - func TxResponseToMap(cdc codec.JSONCodec, txResponse *sdk.TxResponse) map[string]interface{}
 - func TxResultToMap(txResult *types.ResponseDeliverTx) map[string]interface{}
 - func UnsafeResetNodeKeyCmd() *cobra.Command
 - func UnsafeRestPrivValidatorCmd() *cobra.Command
 - func ValidatorCommand() *cobra.Command
 - func VerifyTxCmd() *cobra.Command
 - type FxZeroLogWrapper
 - type PrintInfo
 
Constants ¶
const ( FlagHeight = "height" FlagForZeroHeight = "for-zero-height" FlagJailAllowedAddrs = "jail-allowed-addrs" )
const ( // FlagOverwrite defines a flag to overwrite an existing genesis JSON file. FlagOverwrite = "overwrite" // FlagRecover defines a flag to initialize the private validator key from a specific seed. FlagRecover = "recover" // FlagDenom defines a flag to set the default coin denomination FlagDenom = "denom" )
const (
	FlagLogFilter = "log_filter"
)
    Variables ¶
This section is empty.
Functions ¶
func AddGenesisAccountCmd ¶
AddGenesisAccountCmd returns add-genesis-account cobra Command.
func AttributesToMap ¶
func AttributesToMap(attrs []types.EventAttribute) []map[string]interface{}
func BlockCommand ¶
BlockCommand returns the verified block data for a given heights
func BuildCreateValidatorMsg ¶
func BuildCreateValidatorMsg(clientCtx client.Context, config cli.TxCreateValidatorConfig, txFactory tx.Factory) (tx.Factory, sdk.Msg, error)
BuildCreateValidatorMsg makes a new MsgCreateValidator.
func ChecksumEthAddressCmd ¶
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 DecodeSimulateTxCmd ¶
func ExportSateCmd ¶
func ExportSateCmd(appExporter types.AppExporter, defaultNodeHome string) *cobra.Command
ExportSateCmd dumps app state to JSON.
func GenAppStateFromConfig ¶
func GenAppStateFromConfig(cdc codec.JSONCodec, 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 InitCmd ¶
func InitCmd(nodeHome string, genesisState map[string]json.RawMessage, consensusParams *tmproto.ConsensusParams) *cobra.Command
InitCmd returns a command that initializes all files needed for Tendermint and the respective application.
func ModuleAddressCmd ¶
func ParseBlockResults ¶
func ParseBlockResults(cdc codec.JSONCodec, blockResults *coretypes.ResultBlockResults) (interface{}, error)
func PrintOutput ¶
func QueryBlockResultsCmd ¶
func QueryStoreCmd ¶
func QueryTxCmd ¶
QueryTxCmd implements the default command for a tx query.
func QueryTxsByEventsCmd ¶
QueryTxsByEventsCmd returns a command to search through transactions by events.
func ReplayConsoleCmd ¶
ReplayConsoleCmd allows replaying of messages from the WAL in a console.
func StatusCommand ¶
StatusCommand returns the command to return the status of the network.
func ToBytes32Cmd ¶
func ToStringCmd ¶
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 ValidatorCommand ¶
ValidatorCommand returns the validator set for a given height
func VerifyTxCmd ¶
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) Debug ¶
func (z FxZeroLogWrapper) Debug(msg string, keyVals ...interface{})
func (FxZeroLogWrapper) Error ¶
func (z FxZeroLogWrapper) Error(msg string, keyVals ...interface{})
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