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
type DatetimeToJSONUnix ¶
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
type ERC20Transfer ¶
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
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
type LogEntries ¶
func (LogEntries) Len ¶
func (l LogEntries) Len() int
func (LogEntries) Less ¶
func (l LogEntries) Less(i, j int) bool
func (LogEntries) Swap ¶
func (l LogEntries) Swap(i, j int)
type Price ¶
type Price struct { StartAtBlock int64 `json:"startAtBlock"` Quote string `json:"quote"` Provider string `json:"provider"` Path []PriceProvider `json:"path"` }
type PriceProvider ¶
type RawData ¶
type RawData struct { Block web3types.Block Receipts RawReceipts }
type RawReceipts ¶
func (RawReceipts) Len ¶
func (a RawReceipts) Len() int
func (RawReceipts) Less ¶
func (a RawReceipts) Less(i, j int) bool
func (RawReceipts) Swap ¶
func (a RawReceipts) Swap(i, j int)
type RewardPool ¶
type RewardPool struct { PoolType RewardPoolType PoolAddress string PoolTokenAddress string RewardTokenAddresses []string StartAtBlock int64 }
type RewardPoolType ¶
type RewardPoolType string
const ( PoolTypeSingle RewardPoolType = "SINGLE" PoolTypeMulti RewardPoolType = "MULTI" )
type Storable ¶
type Storable interface { Execute(ctx context.Context) error Rollback(ctx context.Context, pgx pgx.Tx) error SaveToDatabase(ctx context.Context, tx pgx.Tx) error Result() interface{} ID() string }
Storable role: a Storable serves as a means of transforming raw data and inserting it into the database input: raw Ethereum data + a database transaction output: processed/derived/enhanced data stored directly to the db
type Tx ¶
type Tx struct { TxHash string IncludedInBlock int64 TxIndex int64 From string To string Value string TxNonce int64 MsgGasLimit string TxGasUsed string TxGasPrice string CumulativeGasUsed string MsgPayload ByteArray MsgStatus string Creates string TxLogsBloom ByteArray BlockCreationTime int64 LogEntries LogEntries }
Click to show internal directories.
Click to hide internal directories.