Documentation ¶
Index ¶
- Constants
- Variables
- func AddGenesisAccountCmd(defaultNodeHome string, defaultCliHome string) *cobra.Command
- func AddGenesisValidatorCmd(mbm module.BasicManager, smbh ValidatorMsgBuildingHelpers, ...) *cobra.Command
- func AddrCmd() *cobra.Command
- func DebugCmd() *cobra.Command
- func GenAppStateFromConfig(cdc codec.JSONCodec, txEncodingConfig client.TxEncodingConfig, ...) (appState json.RawMessage, err error)
- func GetBroadcastCommand() *cobra.Command
- func InitTestnet(clientCtx client.Context, cmd *cobra.Command, config *tmconfig.Config, ...) error
- func KeyCommand(defaultNodeHome string) *cobra.Command
- func NewCmdConfig() *cmdConfig
- func NewRootCmd() (*cobra.Command, params.EncodingConfig)
- func NodeCmd() *cobra.Command
- func PubkeyCmd() *cobra.Command
- func RawBytesCmd() *cobra.Command
- func Recover(bs store.BlockStore, ss state.Store) (int64, error)
- func SignCmd() *cobra.Command
- func Snapshot(dataDir, targetDir string) error
- func SnapshotCmd() *cobra.Command
- func VerifyCmd() *cobra.Command
- type SignInfo
- type ValidatorMsgBuildingHelpers
Constants ¶
const ( DefaultPointDenom = "point" DefaultPointMinUnit = "upoint" NewEvmDenom = "gas" DefaultEvmMinUnit = "ugas" )
const DefaultEvmDenom = "ugas"
Variables ¶
var PowerReduction = sdk.NewIntFromUint64(1000000000000000000)
Functions ¶
func AddGenesisAccountCmd ¶
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 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 ¶
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 ¶
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 RawBytesCmd ¶
func Recover ¶
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 SnapshotCmd ¶
SnapshotCmd delete historical block data and index data
Types ¶
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