client

package
v1.7.7 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2023 License: Apache-2.0 Imports: 63 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddrCommands added in v1.1.1

func AddrCommands() *cobra.Command

AddrCommands registers a sub-tree of commands to interact with chain address

func ExportEthCompCommand added in v0.19.12

func ExportEthCompCommand() *cobra.Command

ExportEthCompCommand exports a key with the given name as a keystore file.

func ExportEthKeyStoreCommand added in v1.7.0

func ExportEthKeyStoreCommand() *cobra.Command

ExportEthKeyStoreCommand exports a key with the given name as a keystore file.

func GenerateSaveCoinKey

func GenerateSaveCoinKey(keybase keys.Keybase, keyName, keyPass string, overwrite bool, algo keys.SigningAlgo, mnemonic string) (sdk.AccAddress, string, error)

GenerateSaveCoinKey returns the address of a public key, along with the secret phrase to recover the private key.

func ImportEthKeyStoreCommand added in v1.7.0

func ImportEthKeyStoreCommand() *cobra.Command

ImportEthKeyStoreCommand import keystore file.

func InitConfig

func InitConfig(cmd *cobra.Command) error

InitConfig adds the chain-id, encoding and output flags to the persistent flag set.

func InitTestnet

func InitTestnet(
	cmd *cobra.Command,
	config *tmconfig.Config,
	cdc *codec.Codec,
	mbm module.BasicManager,
	genAccIterator authtypes.GenesisAccountIterator,
	outputDir,
	chainID,
	coinDenom,
	minGasPrices,
	nodeDirPrefix,
	nodeDaemonHome,
	nodeCLIHome,
	startingIPAddress string,
	ipAddresses []string,
	keyringBackend,
	algo string,
	numValidators int,
	isLocal bool,
	numRPCs int,
	isEqualVotingPower bool,
) error

InitTestnet initializes the testnet configuration 1.initializes the "validator" node configuration; 2.based the "validator" node, initializes the "rpc" node.

func KeyCommands

func KeyCommands() *cobra.Command

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

func RegisterAppFlag

func RegisterAppFlag(cmd *cobra.Command)

func TestnetCmd

func TestnetCmd(ctx *server.Context, cdc *codec.Codec,
	mbm module.BasicManager, genAccIterator authtypes.GenesisAccountIterator,
) *cobra.Command

TestnetCmd initializes all files for tendermint testnet and application

func UnsafeExportEthKeyCommand

func UnsafeExportEthKeyCommand() *cobra.Command

UnsafeExportEthKeyCommand exports a key with the given name as a private key in hex format.

func ValidateChainID

func ValidateChainID(baseCmd *cobra.Command) *cobra.Command

ValidateChainID wraps a cobra command with a RunE function with base 10 integer chain-id verification.

Types

This section is empty.

Jump to

Keyboard shortcuts

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