runes

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: GPL-3.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Version          = "v0.0.1"
	DBVersion        = 1
	EventHashVersion = 1
)

Variables

View Source
var (
	ErrDBVersionMismatch        = errors.New("db version mismatch: please migrate db")
	ErrEventHashVersionMismatch = errors.New("event hash version mismatch: please reset db and reindex")
)

Functions

func New added in v0.2.0

func New(injector do.Injector) (indexer.IndexerWorker, error)

Types

type Processor

type Processor struct {
	// contains filtered or unexported fields
}

func NewProcessor

func NewProcessor(runesDg datagateway.RunesDataGateway, indexerInfoDg datagateway.IndexerInfoDataGateway, bitcoinClient btcclient.Contract, network common.Network, reportingClient *reportingclient.ReportingClient, cleanupFuncs []func(context.Context) error) *Processor

func (*Processor) CurrentBlock

func (p *Processor) CurrentBlock(ctx context.Context) (types.BlockHeader, error)

func (*Processor) GetIndexedBlock

func (p *Processor) GetIndexedBlock(ctx context.Context, height int64) (types.BlockHeader, error)

warning: GetIndexedBlock currently returns a types.BlockHeader with only Height, Hash fields populated. This is because it is known that all usage of this function only requires these fields. In the future, we may want to populate all fields for type safety.

func (*Processor) Name

func (p *Processor) Name() string

func (*Processor) Process

func (p *Processor) Process(ctx context.Context, blocks []*types.Block) error

func (*Processor) RevertData

func (p *Processor) RevertData(ctx context.Context, from int64) error

func (*Processor) Shutdown added in v0.2.1

func (p *Processor) Shutdown(ctx context.Context) error

func (*Processor) VerifyStates

func (p *Processor) VerifyStates(ctx context.Context) error

Directories

Path Synopsis
api
internal
repository

Jump to

Keyboard shortcuts

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