services

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildByBlockRange

func BuildByBlockRange(
	url string,
	blockFrom uint64,
	blockTo uint64,
	onlyThisTokenAddress string,
	doNotFetchMissingMasterData bool,
	forceSerialExecution bool,
	clearTokenCache bool)

BuildByBlockRange is entry point for building graph based on block selection. Note injection of url string not a client, because later on in concurrent execution we want to create many clients

func BuildMasterData

func BuildMasterData(url string, blockFrom uint64, blockTo uint64)

func GetLatestBlockNumber

func GetLatestBlockNumber(url string)

func GetTimeToIndexMap

func GetTimeToIndexMap(events []*chain.TransferEvent) (timeToIndexMap map[time.Time]uint)

GetTimeToIndexMap takes the events.TransactionTimestampEstimate field, makes a unique list of them, and assigns an index counter to them 0, 1, 2 etc.

Types

This section is empty.

Jump to

Keyboard shortcuts

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