systemlog

package
v1.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrHeightNotReached defines the error when query's block height is higher than tip height
	ErrHeightNotReached = errors.New("query's block height is higher than tip height")
)

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) GetEvmTransfersByActionHash added in v1.0.0

func (x *Indexer) GetEvmTransfersByActionHash(actionHash hash.Hash256) (*iotextypes.ActionEvmTransfer, error)

GetEvmTransfersByActionHash queries evm transfers by action hash

func (*Indexer) GetEvmTransfersByBlockHeight added in v1.0.0

func (x *Indexer) GetEvmTransfersByBlockHeight(blockHeight uint64) (*iotextypes.BlockEvmTransfer, error)

GetEvmTransfersByBlockHeight queries evm transfers by block height

func (*Indexer) Height added in v1.0.0

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

Height returns the tip height of the indexer

func (*Indexer) PutBlock

func (x *Indexer) PutBlock(_ context.Context, 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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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