Documentation ¶
Index ¶
- Constants
- Variables
- func BroadcastTx(tx []byte) (*ctypes.ResultBroadcastTxCommit, error)
- func BufferStdin() *bufio.Reader
- func GetCheckPassword(prompt, prompt2 string, buf *bufio.Reader) (string, error)
- func GetCommands(cmds ...*cobra.Command) []*cobra.Command
- func GetKeyBase(db dbm.DB) keys.Keybase
- func GetNode() (rpcclient.Client, error)
- func GetPassword(prompt string, buf *bufio.Reader) (pass string, err error)
- func GetSeed(prompt string, buf *bufio.Reader) (seed string, err error)
- func MockKeyBase() keys.Keybase
- func PostCommands(cmds ...*cobra.Command) []*cobra.Command
- func Query(key cmn.HexBytes, storeName string) (res []byte, err error)
Constants ¶
const ( FlagChainID = "chain-id" FlagNode = "node" FlagHeight = "height" FlagTrustNode = "trust-node" FlagName = "name" )
nolint
const MinPassLength = 8
MinPassLength is the minimum acceptable password length
Variables ¶
LineBreak can be included in a command list to provide a blank line to help with readability
Functions ¶
func BroadcastTx ¶ added in v0.11.0
func BroadcastTx(tx []byte) (*ctypes.ResultBroadcastTxCommit, error)
Broadcast the transaction bytes to Tendermint
func BufferStdin ¶ added in v0.2.0
BufferStdin is used to allow reading prompts for stdin multiple times, when we read from non-tty
func GetCheckPassword ¶ added in v0.2.0
GetCheckPassword will prompt for a password twice to verify they match (for creating a new password). It enforces the password length. Only parses password once if input is piped in.
func GetCommands ¶ added in v0.2.0
GetCommands adds common flags to query commands
func GetKeyBase ¶ added in v0.2.0
GetKeyBase initializes a keybase based on the configuration
func GetPassword ¶ added in v0.2.0
GetPassword will prompt for a password one-time (to sign a tx) It enforces the password length
func GetSeed ¶ added in v0.2.0
GetSeed will request a seed phrase from stdin and trims off leading/trailing spaces
func MockKeyBase ¶ added in v0.2.0
MockKeyBase generates an in-memory keybase that will be discarded useful for --dry-run to generate a seed phrase without storing the key
func PostCommands ¶ added in v0.2.0
PostCommands adds common flags for commands to post tx
Types ¶
This section is empty.