Versions in this module Expand all Collapse all v0 v0.1.0 Jan 28, 2024 Changes in this version + const KeyPrefixTxHash + const KeyPrefixTxIndex + const TxIndexKeyLength + func LoadFirstBlock(db dbm.DB) (int64, error) + func LoadLastBlock(db dbm.DB) (int64, error) + func TxHashKey(hash common.Hash) []byte + func TxIndexKey(blockNumber int64, txIndex int32) []byte + type KVIndexer struct + func NewKVIndexer(db dbm.DB, logger log.Logger, clientCtx client.Context) *KVIndexer + func (kv *KVIndexer) FirstIndexedBlock() (int64, error) + func (kv *KVIndexer) GetByBlockAndIndex(blockNumber int64, txIndex int32) (*matchtypes.TxResult, error) + func (kv *KVIndexer) GetByTxHash(hash common.Hash) (*matchtypes.TxResult, error) + func (kv *KVIndexer) IndexBlock(block *tmtypes.Block, txResults []*abci.ResponseDeliverTx) error + func (kv *KVIndexer) LastIndexedBlock() (int64, error)