tokeninfo

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReserveCrawler

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

ReserveCrawler gets the tokeninfo reserve mapping information from blockchain.

func NewReserveCrawler

func NewReserveCrawler(sugar *zap.SugaredLogger, internalNetworkClient *contracts.InternalNetwork) (*ReserveCrawler, error)

NewReserveCrawler creates a new ReserveCrawler instance.

func (*ReserveCrawler) Fetch

func (f *ReserveCrawler) Fetch() (map[string][]*ReserveInfo, error)

Fetch returns the reserve information of all tokens.

type ReserveInfo

type ReserveInfo struct {
	Name    string
	Address common.Address
}

ReserveInfo is the information of a KyberNetwork reserve.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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