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.
Click to show internal directories.
Click to hide internal directories.