ethhashlookup

package
v1.30.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: Apache-2.0, MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultDbFilename = "txhash.db"

Variables

View Source
var ErrNotFound = errors.New("not found")

Functions

This section is empty.

Types

type EthTxHashLookup

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

func NewTransactionHashLookup

func NewTransactionHashLookup(ctx context.Context, path string) (*EthTxHashLookup, error)

func (*EthTxHashLookup) Close

func (ei *EthTxHashLookup) Close() (err error)

func (*EthTxHashLookup) DeleteEntriesOlderThan

func (ei *EthTxHashLookup) DeleteEntriesOlderThan(days int) (int64, error)

func (*EthTxHashLookup) GetCidFromHash

func (ei *EthTxHashLookup) GetCidFromHash(txHash ethtypes.EthHash) (cid.Cid, error)

func (*EthTxHashLookup) GetHashFromCid

func (ei *EthTxHashLookup) GetHashFromCid(c cid.Cid) (ethtypes.EthHash, error)

func (*EthTxHashLookup) UpsertHash

func (ei *EthTxHashLookup) UpsertHash(txHash ethtypes.EthHash, c cid.Cid) error

Jump to

Keyboard shortcuts

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