cli

package
v1.0.0-rc1 Latest Latest
Warning

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

Go to latest
Published: May 17, 2021 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MinDAOMemberIDLength    = 3
	MinDAOMemberEmailLength = 6
)

Config

Variables

This section is empty.

Functions

func Confirm

func Confirm(initialPrompt string) bool

Prompt for confirmation

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 Prompt

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

Prompt for user input

func PromptPassword added in v1.0.0

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

Prompt for password 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 ValidateBool added in v1.0.0

func ValidateBool(name, value string) (bool, error)

Validate a boolean value

func ValidateBurnableTokenType

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

Validate a burnable token type

func ValidateDAOMemberEmail

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

Validate a DAO member email

func ValidateDAOMemberID added in v1.0.0

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

Validate a DAO member ID

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 ValidatePercentage added in v0.0.7

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

Validate a percentage

func ValidatePositiveEthAmount

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

Validate a positive ether amount

func ValidatePositiveUint added in v1.0.0

func ValidatePositiveUint(name, value string) (uint64, error)

Validate a positive unsigned integer value

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 ValidateTxHash added in v1.0.0

func ValidateTxHash(name, value string) (common.Hash, error)

Validate a transaction hash

func ValidateUint added in v1.0.0

func ValidateUint(name, value string) (uint64, error)

Validate an unsigned integer value

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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