common

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2020 License: Apache-2.0 Imports: 10 Imported by: 2

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 GetNonce

func GetNonce() string

GetNonce get nonce value

func IsValidAmount

func IsValidAmount(amount string) (string, bool)

IsValidAmount judge whether the number is legal

func PathExistsAndMkdir

func PathExistsAndMkdir(path string) error

PathExistsAndMkdir judge whether path is existant or not

func SetSeed

func SetSeed() error

SetSeed set seed

Types

This section is empty.

Jump to

Keyboard shortcuts

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