vat_fold

package
v0.1.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetVatFoldConfig

func GetVatFoldConfig() shared_t.TransformerConfig

Types

type VatFoldConverter

type VatFoldConverter struct{}

func (VatFoldConverter) ToModels

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

type VatFoldModel

type VatFoldModel struct {
	Ilk              string
	Urn              string
	Rate             string
	LogIndex         uint   `db:"log_idx"`
	TransactionIndex uint   `db:"tx_idx"`
	Raw              []byte `db:"raw_log"`
}

type VatFoldRepository

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

func (VatFoldRepository) Create

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

func (VatFoldRepository) MarkHeaderChecked

func (repository VatFoldRepository) MarkHeaderChecked(headerID int64) error

func (VatFoldRepository) MissingHeaders

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

func (VatFoldRepository) RecheckHeaders

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

func (*VatFoldRepository) SetDB

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