flop_kick

package
v0.2.8 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const InsertFlopKickQuery = `` /* 315-byte string literal not displayed */

Variables

This section is empty.

Functions

func GetFlopKickConfig

func GetFlopKickConfig() shared_t.EventTransformerConfig

Types

type Entity

type Entity struct {
	Id               *big.Int
	Lot              *big.Int
	Bid              *big.Int
	Gal              common.Address
	TransactionIndex uint
	LogIndex         uint
	Raw              types.Log
}

type FlopKickConverter

type FlopKickConverter struct{}

func (FlopKickConverter) ToEntities

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

func (FlopKickConverter) ToModels

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

type FlopKickRepository

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

func (FlopKickRepository) Create

func (repo FlopKickRepository) Create(headerID int64, models []interface{}) error

func (FlopKickRepository) MarkHeaderChecked

func (repo FlopKickRepository) MarkHeaderChecked(headerId int64) error

func (*FlopKickRepository) SetDB

func (repo *FlopKickRepository) SetDB(db *postgres.DB)

type Model

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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