flip_kick

package
v0.2.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFlipKickConfig

func GetFlipKickConfig() shared_t.EventTransformerConfig

Types

type FlipKickConverter

type FlipKickConverter struct{}

func (FlipKickConverter) ToEntities

func (FlipKickConverter) ToEntities(contractAbi string, ethLogs []types.Log) ([]interface{}, error)

func (FlipKickConverter) ToModels

func (FlipKickConverter) ToModels(entities []interface{}) ([]interface{}, error)

type FlipKickEntity

type FlipKickEntity struct {
	Id               *big.Int
	Lot              *big.Int
	Bid              *big.Int
	Gal              common.Address
	End              *big.Int
	Urn              [32]byte
	Tab              *big.Int
	TransactionIndex uint
	LogIndex         uint
	Raw              types.Log
}

type FlipKickModel

type FlipKickModel struct {
	BidId            string `db:"bid_id"`
	Lot              string
	Bid              string
	Gal              string
	End              time.Time
	Urn              string
	Tab              string
	TransactionIndex uint   `db:"tx_idx"`
	LogIndex         uint   `db:"log_idx"`
	Raw              []byte `db:"raw_log"`
}

type FlipKickRepository

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

func (FlipKickRepository) Create

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

func (FlipKickRepository) MarkHeaderChecked

func (repository FlipKickRepository) MarkHeaderChecked(headerId int64) error

func (FlipKickRepository) MissingHeaders

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

func (FlipKickRepository) RecheckHeaders

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

func (*FlipKickRepository) SetDB

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