tokens

package
v0.0.0-...-dee77e4 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2021 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddLpTokenInfo

func AddLpTokenInfo(exchange string, address string, name string, code string)

Types

type Erc20

type Erc20 interface {
	LogoUrl() string
	Code() string
	Name() string
	Address() string
	BalanceOf(client *ethclient.Client, account common.Address) (uint64, error)
	FormattedBalance(client *ethclient.Client, account common.Address) (float64, error)
}

func NewErc20

func NewErc20(address string, name string, code string, logoUrl string) Erc20

func SupportedTokens

func SupportedTokens() []Erc20

type LpToken

type LpToken struct {
	Erc20
	// contains filtered or unexported fields
}

func NewLpTokenInfo

func NewLpTokenInfo(exchange string, address string, name string, code string, token0Address string, token1Address string) *LpToken

func SupportedLpTokens

func SupportedLpTokens() []LpToken

func (*LpToken) Tokens

func (t *LpToken) Tokens(client *ethclient.Client) ([]Erc20, error)

func (*LpToken) TransactionHistory

func (t *LpToken) TransactionHistory(ctx context.Context, client *ethclient.Client) error

Jump to

Keyboard shortcuts

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