brc20

package
v0.3.0-brc20-1 Latest Latest
Warning

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

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

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func New

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

Types

type Processor

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

func NewProcessor

func NewProcessor(brc20Dg datagateway.BRC20DataGateway, indexerInfoDg datagateway.IndexerInfoDataGateway, btcClient btcclient.Contract, network common.Network, cleanupFuncs []func(context.Context) error) (*Processor, error)

func (*Processor) CurrentBlock

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

CurrentBlock implements indexer.Processor.

func (*Processor) GetIndexedBlock

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

GetIndexedBlock implements indexer.Processor.

func (*Processor) Name

func (p *Processor) Name() string

Name implements indexer.Processor.

func (*Processor) Process

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

Process implements indexer.Processor.

func (*Processor) RevertData

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

RevertData implements indexer.Processor.

func (*Processor) Shutdown

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

func (*Processor) VerifyStates

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

VerifyStates implements indexer.Processor.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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