Documentation ¶
Index ¶
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 (*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: pleas update multiTransactionTypeToActivityType if changing this enum
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.