Documentation ¶
Index ¶
- Constants
- type Entry
- func GetActivityEntries(db *sql.DB, addresses []eth.Address, chainIDs []common.ChainID, filter Filter, ...) ([]Entry, error)
- func NewActivityEntryWithMultiTransaction(id transfer.MultiTransactionIDType, timestamp int64, activityType Type, ...) Entry
- func NewActivityEntryWithTransaction(payloadType PayloadType, transaction *transfer.TransactionIdentity, ...) Entry
- type Filter
- type PayloadType
- type Period
- type Status
- type TokenCode
- type TokenType
- type Tokens
- type Type
Constants ¶
View Source
const NoLimitTimestampForPeriod = 0
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entry ¶
type Entry struct {
// contains filtered or unexported fields
}
func GetActivityEntries ¶
func GetActivityEntries(db *sql.DB, addresses []eth.Address, chainIDs []common.ChainID, filter Filter, offset int, limit int) ([]Entry, error)
GetActivityEntries returns query the transfers, pending_transactions, and multi_transactions tables based on filter parameters and arguments it returns metadata for all entries ordered by timestamp column
Adding a no-limit option was never considered or required.
func NewActivityEntryWithTransaction ¶
func NewActivityEntryWithTransaction(payloadType PayloadType, transaction *transfer.TransactionIdentity, timestamp int64, activityType Type, activityStatus Status) Entry
func (*Entry) MarshalJSON ¶
func (*Entry) PayloadType ¶ added in v0.152.2
func (e *Entry) PayloadType() PayloadType
func (*Entry) UnmarshalJSON ¶
type PayloadType ¶
type PayloadType = int
const ( MultiTransactionPT PayloadType = iota + 1 SimpleTransactionPT PendingTransactionPT )
Beware if adding/removing please check if affected and update the functions below - NewActivityEntryWithTransaction - multiTransactionTypeToActivityType
type Tokens ¶ added in v0.152.2
type Tokens struct { Assets []TokenCode `json:"assets"` Collectibles []eth_common.Address `json:"collectibles"` EnabledTypes []TokenType `json:"enabledTypes"` }
Tokens the following rules apply for its members: empty member: none is selected nil means all see allTokensFilter and noTokensFilter
Click to show internal directories.
Click to hide internal directories.