retriever

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2019 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBlockRetriever

func NewBlockRetriever(db *postgres.DB) (r *blockRetriever)

Types

type BlockRetriever

type BlockRetriever interface {
	RetrieveFirstBlock(contractAddr string) (int64, error)
	RetrieveMostRecentBlock() (int64, error)
}

Block retriever is used to retrieve the first block for a given contract and the most recent block It requires a vDB synced database with blocks, transactions, receipts, and logs

Jump to

Keyboard shortcuts

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