model

package
v0.0.0-...-03f8187 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ETH   = "eth"
	ERC20 = "erc20"
)

Variables

This section is empty.

Functions

func ARankTop3

func ARankTop3(out io.Writer, tokenName string)

获取AR榜单

func AccountsRankTop

func AccountsRankTop(out io.Writer, number int)

func GetRankJson

func GetRankJson(arr []MyDocument) ([]byte, error)

Types

type MyDocument

type MyDocument struct {
	Number   int32   `json: "number"`
	Name     string  `json: "name""`
	Score    float64 `json: "score"`
	Median   float64 `json: "median"`
	Weight   float64 `json: "weight"`
	Datetime string  `json: "datetime"`
}

func ReadARankValue

func ReadARankValue(database string, table string, number int) ([]MyDocument, error)

从ArangoDB数据库读取AR榜单

type TokenId

type TokenId int
const (
	AOA TokenId = iota
	BAT
	BNB
	CRO
	DAI
	ENJ
	GNT
	HOT
	HT
	INB
	KCS
	LAMB
	LEO
	LINK
	MCO
	MKR
	NEXO
	NPXS
	PAX
	QNT
	REP
	SNT
	SNX
	TUSD
	USDC
	USDT
	ZB
	ZRX
	INVALID
)

func StrFormatTokenId

func StrFormatTokenId(tokenStr string) (TokenId, error)

func (TokenId) String

func (tokenId TokenId) String() (string, error)

Jump to

Keyboard shortcuts

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