verifiedTokens

package
v1.1.0-rc-9 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2021 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TokenList

type TokenList struct {
	Name      string    `json:"name"`
	Timestamp time.Time `json:"timestamp"`
	Version   struct {
		Major int `json:"major"`
		Minor int `json:"minor"`
		Patch int `json:"patch"`
	} `json:"version"`
	Keywords []string `json:"keywords"`
	Tokens   []struct {
		Address  string `json:"address"`
		ChainID  int    `json:"chainId"`
		Name     string `json:"name"`
		Symbol   string `json:"symbol"`
		Decimals int    `json:"decimals"`
		LogoURI  string `json:"logoURI"`
	} `json:"tokens"`
	LogoURI string `json:"logoURI"`
}

type VerifiedTokens

type VerifiedTokens struct {
	// contains filtered or unexported fields
}

func New

func New() (*VerifiedTokens, error)

func (*VerifiedTokens) AppendVerifiedTokens

func (vt *VerifiedTokens) AppendVerifiedTokens(assets []dia.Asset)

func (*VerifiedTokens) Get

func (vt *VerifiedTokens) Get() map[string]dia.Asset

func (*VerifiedTokens) IsExists

func (vt *VerifiedTokens) IsExists(asset dia.Asset) bool

Jump to

Keyboard shortcuts

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