pip_log_value

package
v0.2.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoMatchingLog = errors.New("no matching log")
	Ether            = big.NewFloat(1e18)
	Ray              = big.NewFloat(1e27)
)

Functions

func GetPipLogValueConfig

func GetPipLogValueConfig() shared_t.EventTransformerConfig

Types

type PipLogValueConverter

type PipLogValueConverter struct{}

func (PipLogValueConverter) ToModels

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

type PipLogValueModel

type PipLogValueModel struct {
	BlockNumber      uint64 `db:"block_number"`
	ContractAddress  string `db:"contract_address"`
	Value            string `db:"val"`
	LogIndex         uint   `db:"log_idx"`
	TransactionIndex uint   `db:"tx_idx"`
	Raw              []byte `db:"raw_log"`
}

type PipLogValueRepository

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

func (PipLogValueRepository) Create

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

func (PipLogValueRepository) MarkHeaderChecked

func (repository PipLogValueRepository) MarkHeaderChecked(headerID int64) error

func (PipLogValueRepository) MissingHeaders

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

func (PipLogValueRepository) RecheckHeaders

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

func (*PipLogValueRepository) SetDB

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