spot_poke

package
v0.2.7 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	InsertSpotPokeQuery = `` /* 248-byte string literal not displayed */

)

Variables

This section is empty.

Functions

func GetSpotPokeConfig

func GetSpotPokeConfig() transformer.EventTransformerConfig

Types

type SpotPokeConverter

type SpotPokeConverter struct{}

func (SpotPokeConverter) ToEntities

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

func (SpotPokeConverter) ToModels

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

type SpotPokeEntity

type SpotPokeEntity struct {
	Ilk              [32]byte
	Val              [32]byte
	Spot             *big.Int
	LogIndex         uint
	TransactionIndex uint
	Raw              types.Log
}

type SpotPokeModel

type SpotPokeModel struct {
	Ilk              string `db:"ilk_id"`
	Value            string
	Spot             string
	LogIndex         uint   `db:"log_idx"`
	TransactionIndex uint   `db:"tx_idx"`
	Raw              []byte `db:"raw_log"`
}

type SpotPokeRepository

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

func (*SpotPokeRepository) Create

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

func (SpotPokeRepository) MarkHeaderChecked

func (repository SpotPokeRepository) MarkHeaderChecked(headerID int64) error

func (*SpotPokeRepository) SetDB

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