datastore

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2020 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddressRepository added in v0.0.10

type AddressRepository interface {
	GetOrCreateAddress(address string) (int, error)
}

type CheckedHeadersRepository added in v0.0.10

type CheckedHeadersRepository interface {
	MarkHeaderChecked(headerID int64) error
	MarkSingleHeaderUnchecked(blockNumber int64) error
	UncheckedHeaders(startingBlockNumber, endingBlockNumber, checkCount int64) ([]core.Header, error)
}

type CheckedLogsRepository added in v0.0.10

type CheckedLogsRepository interface {
	AlreadyWatchingLog(addresses []string, topic0 string) (bool, error)
	MarkLogWatched(addresses []string, topic0 string) error
}

type EventLogRepository added in v0.1.0

type EventLogRepository interface {
	GetUntransformedEventLogs(minID, limit int) ([]core.EventLog, error)
	CreateEventLogs(headerID int64, logs []types.Log) error
}

type HeaderRepository

type HeaderRepository interface {
	CreateOrUpdateHeader(header core.Header) (int64, error)
	CreateTransactions(headerID int64, transactions []core.TransactionModel) error
	CreateTransactionInTx(tx *sqlx.Tx, headerID int64, transaction core.TransactionModel) (int64, error)
	GetHeaderByBlockNumber(blockNumber int64) (core.Header, error)
	GetHeaderByID(id int64) (core.Header, error)
	GetHeadersInRange(startingBlock, endingBlock int64) ([]core.Header, error)
	MissingBlockNumbers(startingBlockNumber, endingBlockNumber int64) ([]int64, error)
	GetMostRecentHeaderBlockNumber() (int64, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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