Documentation ¶
Index ¶
- Constants
- func Confirm(initialPrompt string) bool
- func PrintTransactionHash(rp *rocketpool.Client, hash common.Hash)
- func PrintTransactionHashNoCancel(rp *rocketpool.Client, hash common.Hash)
- func Prompt(initialPrompt string, expectedFormat string, incorrectFormatPrompt string) string
- func PromptPassword(initialPrompt string, expectedFormat string, incorrectFormatPrompt string) string
- func Select(initialPrompt string, options []string) (int, string)
- func ValidateAddress(name, value string) (common.Address, error)
- func ValidateArgCount(c *cli.Context, count int) error
- func ValidateBool(name, value string) (bool, error)
- func ValidateBurnableTokenType(name, value string) (string, error)
- func ValidateDAOMemberEmail(name, value string) (string, error)
- func ValidateDAOMemberID(name, value string) (string, error)
- func ValidateDepositEthAmount(name, value string) (float64, error)
- func ValidateDepositWeiAmount(name, value string) (*big.Int, error)
- func ValidateEthAmount(name, value string) (float64, error)
- func ValidateFraction(name, value string) (float64, error)
- func ValidateNodePassword(name, value string) (string, error)
- func ValidatePercentage(name, value string) (float64, error)
- func ValidatePositiveEthAmount(name, value string) (float64, error)
- func ValidatePositiveUint(name, value string) (uint64, error)
- func ValidatePositiveWeiAmount(name, value string) (*big.Int, error)
- func ValidateTimezoneLocation(name, value string) (string, error)
- func ValidateTokenType(name, value string) (string, error)
- func ValidateTxHash(name, value string) (common.Hash, error)
- func ValidateUint(name, value string) (uint64, error)
- func ValidateWalletMnemonic(name, value string) (string, error)
- func ValidateWeiAmount(name, value string) (*big.Int, error)
Constants ¶
const ( MinDAOMemberIDLength = 3 MinDAOMemberEmailLength = 6 )
Config
Variables ¶
This section is empty.
Functions ¶
func PrintTransactionHash ¶ added in v1.0.0
func PrintTransactionHash(rp *rocketpool.Client, hash common.Hash)
Print a TX's details to the console.
func PrintTransactionHashNoCancel ¶ added in v1.0.0
func PrintTransactionHashNoCancel(rp *rocketpool.Client, hash common.Hash)
Print a TX's details to the console, but inform the user NOT to cancel it.
func PromptPassword ¶ added in v1.0.0
func PromptPassword(initialPrompt string, expectedFormat string, incorrectFormatPrompt string) string
Prompt for password input
func ValidateAddress ¶
Validate an address
func ValidateArgCount ¶
Validate command argument count
func ValidateBool ¶ added in v1.0.0
Validate a boolean value
func ValidateBurnableTokenType ¶
Validate a burnable token type
func ValidateDAOMemberEmail ¶
Validate a DAO member email
func ValidateDAOMemberID ¶ added in v1.0.0
Validate a DAO member ID
func ValidateDepositEthAmount ¶
Validate a deposit amount in ether
func ValidateDepositWeiAmount ¶
Validate a deposit amount in wei
func ValidateEthAmount ¶
Validate an ether amount
func ValidateFraction ¶
Validate a fraction
func ValidateNodePassword ¶
Validate a node password
func ValidatePercentage ¶ added in v0.0.7
Validate a percentage
func ValidatePositiveEthAmount ¶
Validate a positive ether amount
func ValidatePositiveUint ¶ added in v1.0.0
Validate a positive unsigned integer value
func ValidatePositiveWeiAmount ¶
Validate a positive wei amount
func ValidateTimezoneLocation ¶
Validate a timezone location
func ValidateTokenType ¶
Validate a token type
func ValidateTxHash ¶ added in v1.0.0
Validate a transaction hash
func ValidateUint ¶ added in v1.0.0
Validate an unsigned integer value
func ValidateWalletMnemonic ¶
Validate a wallet mnemonic phrase
Types ¶
This section is empty.