backfill

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package backfill provides a command to backfill the consumer database.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProcessLogs added in v0.0.176

func ProcessLogs(ctx context.Context, logs []ethTypes.Log, chainID uint32, eventParser parser.Parser) (parsedLogs []interface{}, _ error)

ProcessLogs processes the logs and stores them in the consumer database.

Types

type ChainBackfiller

type ChainBackfiller struct {

	// Fetcher is the Fetcher to use to fetch logs.
	Fetcher fetcher.ScribeFetcher
	// contains filtered or unexported fields
}

ChainBackfiller is an explorer backfiller for a chain.

func NewChainBackfiller

func NewChainBackfiller(consumerDB db.ConsumerDB, bridgeParser *parser.BridgeParser, swapParsers map[common.Address]*parser.SwapParser, messageBusParser *parser.MessageBusParser, cctpParser *parser.CCTPParser, rfqParser *parser.RFQParser, fetcher fetcher.ScribeFetcher, chainConfig indexerconfig.ChainConfig) *ChainBackfiller

NewChainBackfiller creates a new backfiller for a chain.

func (*ChainBackfiller) Backfill

func (c *ChainBackfiller) Backfill(ctx context.Context, livefill bool, refreshRate int) (err error)

Backfill fetches logs from the GraphQL database, parses them, and stores them in the consumer database. nolint:cyclop,gocognit

Jump to

Keyboard shortcuts

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