ethhashlookup

package
v1.25.0-rc4 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: Apache-2.0, MIT Imports: 7 Imported by: 4

Documentation

Index

Constants

This section is empty.

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(path string) (*EthTxHashLookup, error)

func (*EthTxHashLookup) Close

func (ei *EthTxHashLookup) Close() 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