Documentation ¶
Overview ¶
package common is related to common variables and utils funcs
package common is related to common variables and utils funcs
Index ¶
Constants ¶
View Source
const (
// TxVersion tx version number
TxVersion = 1
)
Variables ¶
View Source
var ( // ErrInvalidAmount invalid amount ErrInvalidAmount = errors.New("invalid amount") // ErrTxNotFound tx is not found ErrTxNotFound = errors.New("tx not found") // ErrInvalidAccount invalid account ErrInvalidAccount = errors.New("invalid account") // ErrInvalidContractAccount ErrInvalidContractAccount = errors.New("conrtact account must be numbers of length 16") // ErrAmountNotEnough ErrAmountNotEnough = errors.New("Amount must be bigger than compliancecheck fee which is 10") )
Functions ¶
func IsValidAmount ¶
IsValidAmount judge whether the number is legal
func PathExistsAndMkdir ¶
PathExistsAndMkdir judge whether path is existant or not
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.