wrapper

package
v0.0.0-...-d077d45 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromBigIntToString

func FromBigIntToString(args []*big.Int) []string

func FromStringToCommonAddress

func FromStringToCommonAddress(args []string) []common.Address

func GetTokenBalance

func GetTokenBalance(userAddress, tokenAddress string) error

func GetTokensBalancesByAddress

func GetTokensBalancesByAddress(user common.Address, endpoint string, tokens []Token, result chan []TokenInfo)

Types

type Token

type Token struct {
	Name     string `json:"name"`
	Symbol   string `json:"symbol"`
	Decimals int    `json:"decimals"`
	TokenID  string `json:"token_id"`
	Coin     int    `json:"coin"`
}

type TokenInfo

type TokenInfo struct {
	Token    string  `json:"token"`
	Amount   float64 `json:"amount"`
	Currency string  `json:"currency"`
	Decimals int     `json:"decimals"`
}

Jump to

Keyboard shortcuts

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