retriever

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 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() (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