retriever

package
v0.0.11-rc.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockRetriever

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

BlockRetriever 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

func NewBlockRetriever

func NewBlockRetriever(db *postgres.DB) BlockRetriever

NewBlockRetriever returns a new BlockRetriever

Jump to

Keyboard shortcuts

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