Documentation ¶
Index ¶
- Constants
- func ValidateAddress(name, value string) (common.Address, error)
- func ValidateBatch[ReturnType any](name string, value string, validate func(string, string) (ReturnType, error)) ([]ReturnType, error)
- func ValidateBigInt(name, value string) (*big.Int, error)
- func ValidateBool(name, value string) (bool, error)
- func ValidateByteArray(name, value string) ([]byte, error)
- func ValidateDuration(name, value string) (time.Duration, error)
- func ValidateEthAmount(name, value string) (float64, error)
- func ValidateFraction(name, value string) (float64, error)
- func ValidateHash(name, value string) (common.Hash, error)
- func ValidateNodePassword(name string, value string) (string, error)
- func ValidatePercentage(name, value string) (float64, error)
- func ValidatePositiveEthAmount(name, value string) (float64, error)
- func ValidatePositiveOrZeroWeiAmount(name, value string) (*big.Int, error)
- func ValidatePositiveUint(name, value string) (uint64, error)
- func ValidatePositiveUint32(name, value string) (uint32, error)
- func ValidatePositiveWeiAmount(name, value string) (*big.Int, error)
- func ValidatePubkey(name, value string) (beacon.ValidatorPubkey, error)
- func ValidateTime(name, value string) (time.Time, error)
- func ValidateTimezoneLocation(name, value string) (string, error)
- func ValidateTxInfo(name string, value string) (*eth.TransactionInfo, error)
- func ValidateUint(name, value string) (uint64, error)
- func ValidateUint32(name, value string) (uint32, error)
- func ValidateWalletMnemonic(name, value string) (string, error)
- func ValidateWeiAmount(name, value string) (*big.Int, error)
Constants ¶
View Source
const (
MinPasswordLength int = 12
)
Config
Variables ¶
This section is empty.
Functions ¶
func ValidateAddress ¶
Validate an address
func ValidateBatch ¶
func ValidateBatch[ReturnType any](name string, value string, validate func(string, string) (ReturnType, error)) ([]ReturnType, error)
Validate a comma-delimited batch of inputs
func ValidateByteArray ¶
Validate a hex-encoded byte array
func ValidateDuration ¶
Validate a duration
func ValidateEthAmount ¶
Validate an ether amount
func ValidateFraction ¶
Validate a fraction
func ValidateNodePassword ¶
Validate a node password
func ValidatePercentage ¶
Validate a percentage
func ValidatePositiveEthAmount ¶
Validate a positive ether amount
func ValidatePositiveOrZeroWeiAmount ¶
Validate a positive or zero wei amount
func ValidatePositiveUint ¶
Validate a positive unsigned integer value
func ValidatePositiveUint32 ¶
Validate a positive 32-bit unsigned integer value
func ValidatePositiveWeiAmount ¶
Validate a positive wei amount
func ValidatePubkey ¶
func ValidatePubkey(name, value string) (beacon.ValidatorPubkey, error)
Validate a validator pubkey
func ValidateTime ¶
Validate a timestamp using RFC3339
func ValidateTimezoneLocation ¶
Validate a timezone location
func ValidateTxInfo ¶
func ValidateTxInfo(name string, value string) (*eth.TransactionInfo, error)
Validate TX info
func ValidateUint ¶
Validate an unsigned integer value
func ValidateUint32 ¶
Validate an unsigned integer value
func ValidateWalletMnemonic ¶
Validate a wallet mnemonic phrase
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.