backfill

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2022 License: MIT Imports: 11 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 {
	// contains filtered or unexported fields
}

ChainBackfiller is an explorer backfiller for a chain.

func NewChainBackfiller

func NewChainBackfiller(chainID uint32, consumerDB db.ConsumerDB, fetchBlockIncrement uint64, bridgeParser *consumer.BridgeParser, bridgeAddress common.Address, swapParsers map[common.Address]*consumer.SwapParser, fetcher consumer.Fetcher, bridgeConfigAddress common.Address) *ChainBackfiller

NewChainBackfiller creates a new backfiller for a chain.

func (*ChainBackfiller) Backfill

func (c *ChainBackfiller) Backfill(ctx context.Context, startHeight, endHeight uint64) error

Backfill fetches logs from the GraphQL database, parses them, and stores them in the consumer database.

Jump to

Keyboard shortcuts

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