new_cdp

package
v0.2.11-docker Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const InsertNewCdpQuery = `` /* 211-byte string literal not displayed */

Variables

This section is empty.

Functions

This section is empty.

Types

type NewCdpConverter

type NewCdpConverter struct{}

func (NewCdpConverter) ToEntities

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

func (NewCdpConverter) ToModels

func (converter NewCdpConverter) ToModels(entities []interface{}) ([]interface{}, error)

type NewCdpEntity

type NewCdpEntity struct {
	Usr              common.Address
	Own              common.Address
	Cdp              *big.Int
	LogIndex         uint
	TransactionIndex uint
	Raw              types.Log
}

type NewCdpModel

type NewCdpModel struct {
	Usr              string
	Own              string
	Cdp              string
	LogIndex         uint   `db:"log_idx"`
	TransactionIndex uint   `db:"tx_idx"`
	Raw              []byte `db:"raw_log"`
}

type NewCdpRepository

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

func (NewCdpRepository) Create

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

func (*NewCdpRepository) MarkHeaderChecked

func (repository *NewCdpRepository) MarkHeaderChecked(headerID int64) error

func (*NewCdpRepository) SetDB

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