bite

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BiteConverter

type BiteConverter struct{}

func (BiteConverter) ToEntities

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

func (BiteConverter) ToModels

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

type BiteEntity

type BiteEntity struct {
	Ilk              [32]byte
	Urn              common.Address
	Ink              *big.Int
	Art              *big.Int
	Tab              *big.Int
	Flip             common.Address
	Id               *big.Int
	LogIndex         uint
	TransactionIndex uint
	Raw              types.Log
}

type BiteModel

type BiteModel struct {
	Ilk              string
	Urn              string `db:"urn_id"`
	Ink              string
	Art              string
	Tab              string
	Flip             string
	Id               string `db:"bite_identifier"`
	LogIndex         uint   `db:"log_idx"`
	TransactionIndex uint   `db:"tx_idx"`
	Raw              []byte `db:"raw_log"`
}

type BiteRepository

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

func (BiteRepository) Create

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

func (BiteRepository) MarkHeaderChecked

func (repository BiteRepository) MarkHeaderChecked(headerID int64) error

func (*BiteRepository) SetDB

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