wormhole-explorer/contract-watcher/watcher/contract_tracker.go

14 lines
417 B
Go

package watcher
import "context"
// ContractTracker is an interface for tracking contracts
// It Tracks contract operations and persist the tx data
// Backfill is used to backfill the contract data from the past
type ContractWatcher interface {
GetBlockchain() string
Start(ctx context.Context) error
Close()
Backfill(ctx context.Context, fromBlock uint64, toBlock uint64, pageSize uint64, persistBlock bool)
}