systemlog

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Indexer

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

Indexer is the indexer for system log

func NewIndexer

func NewIndexer(kv db.KVStore) (*Indexer, error)

NewIndexer creates a new indexer

func (*Indexer) DeleteTipBlock

func (x *Indexer) DeleteTipBlock(blk *block.Block) error

DeleteTipBlock deletes a block's evm transfer

func (*Indexer) GetEvmTransferByActionHash

func (x *Indexer) GetEvmTransferByActionHash(actionHash hash.Hash256) (*systemlogpb.ActionEvmTransfer, error)

GetEvmTransferByActionHash queries evm transfers by action hash

func (*Indexer) GetEvmTransferByBlockHeight

func (x *Indexer) GetEvmTransferByBlockHeight(blockHeight uint64) (*systemlogpb.BlockEvmTransfer, error)

GetEvmTransferByBlockHeight queries evm transfers by block height

func (*Indexer) PutBlock

func (x *Indexer) PutBlock(blk *block.Block) error

PutBlock indexes the block

func (*Indexer) Start

func (x *Indexer) Start(ctx context.Context) error

Start starts the indexer

func (*Indexer) Stop

func (x *Indexer) Stop(ctx context.Context) error

Stop stops the indexer

func (*Indexer) TipHeight

func (x *Indexer) TipHeight() (uint64, error)

TipHeight returns the tip height of the indexer

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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