token

package
v0.0.0-...-422065e Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EthAddrTokenMap map[string]*config.TokenInfo = make(map[string]*config.TokenInfo) //eth addr-token map
View Source
var EthCategoryTokenMap map[int64]*config.TokenInfo = make(map[int64]*config.TokenInfo) //eth category-token map

Functions

func AddTokenMap

func AddTokenMap(tokenInfoD *config.TokenInfo, db localdb.Database) (bool, int)

新增或编辑代币

func DelTokenMap

func DelTokenMap(tokenInfoD *config.TokenInfo, db localdb.Database) (bool, int)

func GetTokenByAddr

func GetTokenByAddr(addr string) *config.TokenInfo

func GetTokenByCategory

func GetTokenByCategory(category int64) *config.TokenInfo

根据category获取token address

func LoadTokenFrom

func LoadTokenFrom(db localdb.Database)

db加载token信息

func TokenList

func TokenList(db localdb.Database) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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