crawler

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: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResreveRatesCrawler

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

ResreveRatesCrawler contains two wrapper contracts for V1 and V2 contract, a set of addresses to crawl rates from and setting object to query for reserve's token settings

func NewReserveRatesCrawler

func NewReserveRatesCrawler(sugar *zap.SugaredLogger, addrs []string, client *ethclient.Client, coreClient core.Interface, internalReserveAddr ethereum.Address) (*ResreveRatesCrawler, error)

NewReserveRatesCrawler returns an instant of ReserveRatesCrawler.

func (*ResreveRatesCrawler) GetReserveRates

func (rrc *ResreveRatesCrawler) GetReserveRates(block uint64) (map[string]map[string]rsvRateCommon.ReserveRateEntry, error)

GetReserveRates returns the map[ReserveAddress]ReserveRates at the given block number. It will only return rates from the set of addresses within its definition.

Jump to

Keyboard shortcuts

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