cli

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2020 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Confirm

func Confirm(initialPrompt string) bool

Prompt for confirmation

func Prompt

func Prompt(initialPrompt string, expectedFormat string, incorrectFormatPrompt string) string

Prompt for user input

func Select

func Select(initialPrompt string, options []string) (int, string)

Prompt for user selection

func ValidateAddress

func ValidateAddress(name, value string) (common.Address, error)

Validate an address

func ValidateArgCount

func ValidateArgCount(c *cli.Context, count int) error

Validate command argument count

func ValidateBurnableTokenType

func ValidateBurnableTokenType(name, value string) (string, error)

Validate a burnable token type

func ValidateDepositEthAmount

func ValidateDepositEthAmount(name, value string) (float64, error)

Validate a deposit amount in ether

func ValidateDepositWeiAmount

func ValidateDepositWeiAmount(name, value string) (*big.Int, error)

Validate a deposit amount in wei

func ValidateEthAmount

func ValidateEthAmount(name, value string) (float64, error)

Validate an ether amount

func ValidateFraction

func ValidateFraction(name, value string) (float64, error)

Validate a fraction

func ValidateNodePassword

func ValidateNodePassword(name, value string) (string, error)

Validate a node password

func ValidatePositiveEthAmount

func ValidatePositiveEthAmount(name, value string) (float64, error)

Validate a positive ether amount

func ValidatePositiveWeiAmount

func ValidatePositiveWeiAmount(name, value string) (*big.Int, error)

Validate a positive wei amount

func ValidateTimezoneLocation

func ValidateTimezoneLocation(name, value string) (string, error)

Validate a timezone location

func ValidateTokenType

func ValidateTokenType(name, value string) (string, error)

Validate a token type

func ValidateWalletMnemonic

func ValidateWalletMnemonic(name, value string) (string, error)

Validate a wallet mnemonic phrase

func ValidateWeiAmount

func ValidateWeiAmount(name, value string) (*big.Int, error)

Validate a wei amount

func ValidateWithdrawableTokenType

func ValidateWithdrawableTokenType(name, value string) (string, error)

Validate a withdrawable (from faucet) token type

Types

This section is empty.

Jump to

Keyboard shortcuts

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