helper

package
v1.6.25 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MinPassLength = 4

	FlagBlocked  = "blocked"
	FlagHeight   = "height"
	FlagHomeDir  = "clihome"
	FlagVerbose  = "verbose"
	FlagNode     = "node"
	FlagAddress  = "address"
	FlagPassword = "password"

	FlagFile       = "file"
	FlagGas        = "gas"
	FlagPrivateKey = "privateKey"
	//FlagMsg = "msg"
	FlagArgs            = "args"
	FlagName            = "name"
	FlagCodeHash        = "codeHash"
	FlagVersion         = "version"
	FlagAuthor          = "author"
	FlagEmail           = "email"
	FlagDescribe        = "describe"
	FlagHash            = "codeHash"
	FlagFunds           = "funds"
	FlagContractAddress = "contractAddress"
)

Variables

This section is empty.

Functions

func BufferStdin

func BufferStdin() *bufio.Reader

Allows for reading prompts for stdin

func GetCheckPassword

func GetCheckPassword(prompt, prompt2 string, buf *bufio.Reader) (string, error)

Prompts for a password twice to verify they match

func GetPassphrase

func GetPassphrase(addr sdk.AccAddress) (string, error)

func GetPassword

func GetPassword(prompt string, buf *bufio.Reader) (pass string, err error)

Prompts for a password one-time Enforces minimum password length

func GetPasswordFromStd

func GetPasswordFromStd() (string, error)

func ParseAddrs

func ParseAddrs(addrStr string) ([]sdk.AccAddress, error)

func StrToAddress

func StrToAddress(addrStr string) (sdk.AccAddress, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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