utils

package
v1.65.1 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2020 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Addr2DecimalsKey = []byte("prefix_for_Addr2Decimals")
)

Addr2DecimalsKey ...

Functions

func CalAddr2DecimalsPrefix

func CalAddr2DecimalsPrefix(tokenAddr string) []byte

CalAddr2DecimalsPrefix ...

func GetDecimalsFromDB

func GetDecimalsFromDB(addr string, db dbm.DB) (int64, error)

GetDecimalsFromDB ...

func GetDecimalsFromNode

func GetDecimalsFromNode(addr string, nodeAddr string) (int64, error)

GetDecimalsFromNode ...

func IsValidPassWord

func IsValidPassWord(password string) bool

IsValidPassWord 密码合法性校验,密码长度在8-30位之间。必须是数字+字母的组合

func IsZeroAddress

func IsZeroAddress(address common.Address) bool

IsZeroAddress : checks an Ethereum address and returns a bool which indicates if it is the null address

func LoadInt64FromDB

func LoadInt64FromDB(key []byte, db dbm.DB) (int64, error)

LoadInt64FromDB ...

func QueryTxhashes

func QueryTxhashes(prefix []byte, db dbm.DB) []string

QueryTxhashes ...

Types

This section is empty.

Jump to

Keyboard shortcuts

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