cmd

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2022 License: Apache-2.0 Imports: 94 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultPointDenom   = "point"
	DefaultPointMinUnit = "upoint"
	NewEvmDenom         = "gas"
	DefaultEvmMinUnit   = "ugas"
)
View Source
const DefaultEvmDenom = "ugas"

Variables

View Source
var PowerReduction = sdk.NewIntFromUint64(1000000000000000000)

Functions

func AddGenesisAccountCmd

func AddGenesisAccountCmd(defaultNodeHome string, defaultCliHome string) *cobra.Command

AddGenesisAccountCmd returns add-genesis-account cobra Command.

func AddGenesisValidatorCmd

func AddGenesisValidatorCmd(
	mbm module.BasicManager, smbh ValidatorMsgBuildingHelpers, defaultNodeHome, defaultCLIHome string,
) *cobra.Command

AddGenesisValidatorCmd returns add-genesis-validator cobra Command.

func AddrCmd

func AddrCmd() *cobra.Command

func DebugCmd

func DebugCmd() *cobra.Command

DebugCmd creates a main CLI command

func GenAppStateFromConfig

func GenAppStateFromConfig(
	cdc codec.JSONCodec,
	txEncodingConfig client.TxEncodingConfig,
	config *cfg.Config,
	genDoc tmtypes.GenesisDoc,
	nodeID string,
	peers []string,
) (appState json.RawMessage, err error)

GenAppStateFromConfig gets the genesis app state from the config

func GetBroadcastCommand

func GetBroadcastCommand() *cobra.Command

GetBroadcastCommand returns the tx broadcast command.

func InitTestnet

func InitTestnet(
	clientCtx client.Context, cmd *cobra.Command,
	config *tmconfig.Config, mbm module.BasicManager,
	genBalIterator banktypes.GenesisBalancesIterator,
	outputDir, chainID, minGasPrices, nodeDirPrefix,
	nodeDaemonHome, nodeCLIHome, startingIPAddress string,
	numValidators int, algoStr string,
) error

Initialize the testnet

func KeyCommand

func KeyCommand(defaultNodeHome string) *cobra.Command

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

func NewCmdConfig

func NewCmdConfig() *cmdConfig

func NewRootCmd

func NewRootCmd() (*cobra.Command, params.EncodingConfig)

NewRootCmd creates a new root command for simd. It is called once in the main function.

func NodeCmd

func NodeCmd() *cobra.Command

NodeCmd creates a main CLI command

func PubkeyCmd

func PubkeyCmd() *cobra.Command

func RawBytesCmd

func RawBytesCmd() *cobra.Command

func Recover

func Recover(bs store.BlockStore, ss state.Store) (int64, error)

Recover overwrites the current Tendermint state (height n) with the most recent previous state (height n - 1). Note that this function does not affect application state.

func SignCmd

func SignCmd() *cobra.Command

func Snapshot

func Snapshot(dataDir, targetDir string) error

func SnapshotCmd

func SnapshotCmd() *cobra.Command

SnapshotCmd delete historical block data and index data

func VerifyCmd

func VerifyCmd() *cobra.Command

Types

type SignInfo

type SignInfo struct {
	NodeID    string `json:"node_id"`
	PubKey    string `json:"pub_key"`
	Signature []byte `json:"signature"`
}

type ValidatorMsgBuildingHelpers

type ValidatorMsgBuildingHelpers interface {
	CreateValidatorMsgHelpers(ipDefault string) (fs *flag.FlagSet, certFlag, powerFlag, defaultsDesc string)
	PrepareFlagsForTxCreateValidator(config *cfg.Config, nodeID, chainID string, cert string)
	BuildCreateValidatorMsg(cliCtx client.Context, txBldr tx.Factory) (tx.Factory, sdk.Msg, error)
}

ValidatorMsgBuildingHelpers helpers for message building gen-tx command

Jump to

Keyboard shortcuts

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