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