Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockTracker ¶ added in v0.1.1
type BlockTracker struct {
// contains filtered or unexported fields
}
* BlockTracker keeps a database record of the latest block that has been indexed for a contract address and allows the user to increase the value. *
func NewBlockTracker ¶ added in v0.1.1
func NewBlockTracker( ctx context.Context, contractAddress string, queries *queries.Queries, ) (*BlockTracker, error)
Return a new BlockTracker initialized to the latest block from the DB
func (*BlockTracker) GetLatestBlock ¶ added in v0.1.1
func (bt *BlockTracker) GetLatestBlock() uint64
func (*BlockTracker) UpdateLatestBlock ¶ added in v0.1.1
func (bt *BlockTracker) UpdateLatestBlock(ctx context.Context, block uint64) error
type IBlockTracker ¶ added in v0.1.1
type Indexer ¶ added in v0.1.1
type Indexer struct {
// contains filtered or unexported fields
}
func (*Indexer) StartIndexer ¶ added in v0.1.1
func (i *Indexer) StartIndexer( db *sql.DB, cfg config.ContractsOptions, validationService mlsvalidate.MLSValidationService) error
Click to show internal directories.
Click to hide internal directories.