validator

package
v0.5.0-rc4 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// IoAddrLen defines length of IoTeX address
	IoAddrLen = 41
)

Variables

View Source
var (
	// ErrInvalidAddr indicates error for an invalid address
	ErrInvalidAddr = errors.New("invalid IoTeX address")
	// ErrLongName indicates error for a long name more than 40 characters
	ErrLongName = errors.New("invalid long name that is more than 40 characters")
	// ErrMinusAmount indicates error for an monus amount
	ErrMinusAmount = errors.New("invalid amount that is minus")
)

Errors

Functions

func ValidateAddress

func ValidateAddress(addr string) error

ValidateAddress validates IoTeX address

func ValidateAmount

func ValidateAmount(amount int64) error

ValidateAmount validates amount for action

func ValidateName

func ValidateName(name string) error

ValidateName validates name for account

Types

This section is empty.

Jump to

Keyboard shortcuts

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