Documentation ¶
Index ¶
- Variables
- type Indexer
- func (x *Indexer) DeleteTipBlock(blk *block.Block) error
- func (x *Indexer) GetEvmTransfersByActionHash(actionHash hash.Hash256) (*iotextypes.ActionEvmTransfer, error)
- func (x *Indexer) GetEvmTransfersByBlockHeight(blockHeight uint64) (*iotextypes.BlockEvmTransfer, error)
- func (x *Indexer) Height() (uint64, error)
- func (x *Indexer) PutBlock(_ context.Context, blk *block.Block) error
- func (x *Indexer) Start(ctx context.Context) error
- func (x *Indexer) Stop(ctx context.Context) error
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 (*Indexer) DeleteTipBlock ¶
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
Click to show internal directories.
Click to hide internal directories.