deal

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2019 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDealConfig

func GetDealConfig() shared_t.EventTransformerConfig

Types

type DealConverter

type DealConverter struct{}

func (DealConverter) ToModels

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

type DealModel

type DealModel struct {
	BidId            string `db:"bid_id"`
	ContractAddress  string `db:"contract_address"`
	LogIndex         uint   `db:"log_idx"`
	TransactionIndex uint   `db:"tx_idx"`
	Raw              []byte `db:"raw_log"`
}

type DealRepository

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

func (DealRepository) Create

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

func (DealRepository) MarkHeaderChecked

func (repository DealRepository) MarkHeaderChecked(headerID int64) error

func (DealRepository) MissingHeaders

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

func (DealRepository) RecheckHeaders

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

func (*DealRepository) SetDB

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