vat_grab

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: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetVatGrabConfig

func GetVatGrabConfig() shared_t.EventTransformerConfig

Types

type VatGrabConverter

type VatGrabConverter struct{}

func (VatGrabConverter) ToModels

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

type VatGrabModel

type VatGrabModel struct {
	Ilk              string
	Urn              string `db:"urn_id"`
	V                string
	W                string
	Dink             string
	Dart             string
	LogIndex         uint   `db:"log_idx"`
	TransactionIndex uint   `db:"tx_idx"`
	Raw              []byte `db:"raw_log"`
}

type VatGrabRepository

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

func (VatGrabRepository) Create

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

func (VatGrabRepository) MarkHeaderChecked

func (repository VatGrabRepository) MarkHeaderChecked(headerID int64) error

func (VatGrabRepository) MissingHeaders

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

func (VatGrabRepository) RecheckHeaders

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

func (*VatGrabRepository) SetDB

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