backfill

package
v0.0.58 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2023 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

This section is empty.

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, fetcher fetcher.ScribeFetcher, chainConfig config.ChainConfig) *ChainBackfiller

NewChainBackfiller creates a new backfiller for a chain.

func (*ChainBackfiller) Backfill

func (c *ChainBackfiller) Backfill(ctx context.Context) (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