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") // ErrLongAlias indicates error for a long alias more than 40 characters ErrLongAlias = errors.New("invalid long alias that is more than 40 characters") // ErrNonPositiveNumber indicates error for a non-positive number ErrNonPositiveNumber = errors.New("invalid number that is not positive") // ErrInvalidStakeDuration indicates error for invalid stake duration ErrInvalidStakeDuration = errors.New("stake duration must be within 0 and 1050 and in multiples of 7") )
Errors
Functions ¶
func ValidateAddress ¶
ValidateAddress validates IoTeX address
func ValidateAlias ¶
ValidateAlias validates alias for account
func ValidatePositiveNumber ¶
ValidatePositiveNumber validates positive Number for action
func ValidateStakeDuration ¶ added in v0.11.0
ValidateStakeDuration validates stake duration for native staking
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.