types

package
v0.0.0-...-962fe4f Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ByteArray

type ByteArray string

ByteArray is a custom type that maps to a the database `bytea` fields

func (*ByteArray) Scan

func (val *ByteArray) Scan(value interface{}) error

func (ByteArray) String

func (val ByteArray) String() string

func (ByteArray) Value

func (val ByteArray) Value() (driver.Value, error)

type DatetimeToJSONUnix

type DatetimeToJSONUnix time.Time

DatetimeToJSONUnix binds a time.Time to a `timestamp` database field when marshaled to JSON, outputs a unix timestamp

func (DatetimeToJSONUnix) MarshalJSON

func (t DatetimeToJSONUnix) MarshalJSON() ([]byte, error)

func (*DatetimeToJSONUnix) Scan

func (t *DatetimeToJSONUnix) Scan(value interface{}) error

func (DatetimeToJSONUnix) String

func (t DatetimeToJSONUnix) String() string

func (*DatetimeToJSONUnix) UnmarshalJSON

func (t *DatetimeToJSONUnix) UnmarshalJSON(data []byte) error

func (DatetimeToJSONUnix) Value

func (t DatetimeToJSONUnix) Value() (driver.Value, error)

type Event

type Event struct {
	LoggedBy         string
	TransactionHash  string
	TransactionIndex int64
	LogIndex         int64
}

func (*Event) Build

func (e *Event) Build(log web3types.Log) (*Event, error)

type JSONObject

type JSONObject map[string]interface{}

JSONObject binds a map[string]interface{} to a `jsonb` database field

func (*JSONObject) Scan

func (obj *JSONObject) Scan(value interface{}) error

func (JSONObject) Value

func (obj JSONObject) Value() (driver.Value, error)

type JSONStringArray

type JSONStringArray []string

JSONStringArray binds a slice of strings to a `jsonb` database field

func (*JSONStringArray) Scan

func (j *JSONStringArray) Scan(value interface{}) error

func (JSONStringArray) Value

func (j JSONStringArray) Value() (driver.Value, error)

type LabelStruct

type LabelStruct struct {
	Address string
	Label   string
}

type RawData

type RawData struct {
	Block    web3types.Block
	Receipts []web3types.Receipt
	Uncles   []web3types.Block
}

type SYRewardPool

type SYRewardPool struct {
	PoolAddress        string
	PoolTokenAddress   string
	RewardTokenAddress string
	StartAtBlock       int64
}

type Transfer

type Transfer struct {
	SYAddress        string
	ProtocolId       string
	TokenAddress     string
	From             string
	To               string
	Value            *big.Int
	TransactionHash  string
	TransactionIndex int64
	LogIndex         int64
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL