dent

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2019 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDentConfig

func GetDentConfig() shared_t.TransformerConfig

Types

type DentConverter

type DentConverter struct{}

func NewDentConverter

func NewDentConverter() DentConverter

func (DentConverter) ToModels

func (c DentConverter) ToModels(ethLogs []types.Log) (result []interface{}, err error)

type DentModel

type DentModel struct {
	BidId            string `db:"bid_id"`
	Lot              string
	Bid              string
	Guy              string
	LogIndex         uint   `db:"log_idx"`
	TransactionIndex uint   `db:"tx_idx"`
	Raw              []byte `db:"raw_log"`
}

type DentRepository

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

func (DentRepository) Create

func (repository DentRepository) Create(headerID int64, models []interface{}) error

func (DentRepository) MarkHeaderChecked

func (repository DentRepository) MarkHeaderChecked(headerId int64) error

func (DentRepository) MissingHeaders

func (repository DentRepository) MissingHeaders(startingBlockNumber, endingBlockNumber int64) ([]core.Header, error)

func (DentRepository) RecheckHeaders

func (repository DentRepository) RecheckHeaders(startingBlockNumber, endingBlockNumber int64) ([]core.Header, error)

func (*DentRepository) SetDB

func (repository *DentRepository) SetDB(db *postgres.DB)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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