tend

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2019 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTendConfig

func GetTendConfig() shared_t.EventTransformerConfig

Types

type TendConverter

type TendConverter struct{}

func (TendConverter) ToModels

func (TendConverter) ToModels(ethLogs []types.Log) (results []interface{}, err error)

type TendModel

type TendModel 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 TendRepository

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

func (TendRepository) Create

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

func (TendRepository) MarkHeaderChecked

func (repository TendRepository) MarkHeaderChecked(headerId int64) error

func (TendRepository) MissingHeaders

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

func (TendRepository) RecheckHeaders

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

func (*TendRepository) SetDB

func (repository *TendRepository) 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