vat_flux

package
v0.2.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetVatFluxConfig

func GetVatFluxConfig() shared_t.EventTransformerConfig

Types

type VatFluxConverter

type VatFluxConverter struct{}

func (VatFluxConverter) ToModels

func (VatFluxConverter) ToModels(ethLogs []types.Log) ([]interface{}, error)

type VatFluxModel

type VatFluxModel struct {
	Ilk              string `db:"ilk_id"`
	Src              string
	Dst              string
	Wad              string
	TransactionIndex uint   `db:"tx_idx"`
	LogIndex         uint   `db:"log_idx"`
	Raw              []byte `db:"raw_log"`
}

type VatFluxRepository

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

func (VatFluxRepository) Create

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

func (VatFluxRepository) MarkHeaderChecked

func (repository VatFluxRepository) MarkHeaderChecked(headerId int64) error

func (VatFluxRepository) MissingHeaders

func (repository VatFluxRepository) MissingHeaders(startingBlock, endingBlock int64) ([]core.Header, error)

func (VatFluxRepository) RecheckHeaders

func (repository VatFluxRepository) RecheckHeaders(startingBlock, endingBlock int64) ([]core.Header, error)

func (*VatFluxRepository) SetDB

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