user_actions

package
v0.0.0-...-07d62d3 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Context to use when logging
	Context = `TIMESCALE/USER_ACTION`

	// TableUserActions to use when recording user actions to the timescale
	TableUserActions = `user_actions`
)
View Source
const TableAggregatedUserTransactions = `aggregated_user_transactions`

Variables

This section is empty.

Functions

func CountUniqueDailyUsers

func CountUniqueDailyUsers(network network.BlockchainNetwork) uint64

func GetAggregatedUserTransactionByHash

func GetAggregatedUserTransactionByHash(network network.BlockchainNetwork, transactionHash string) *user_actions.AggregatedUserTransaction

func GetUserActionByLogIndex

func GetUserActionByLogIndex(network network.BlockchainNetwork, transactionHash string, logIndex misc.BigInt) *user_actions.UserAction

GetUserActionByLogIndex to find a user action in a transaction that has the given log index

func GetUserActions

func GetUserActions(f func(userAction UserAction))

func InsertAggregatedUserTransaction

func InsertAggregatedUserTransaction(userTransaction user_actions.AggregatedUserTransaction)

func InsertUserAction

func InsertUserAction(userAction UserAction)

InsertUserAction to the database, setting time to the current timestamp

func UpdateAggregatedUserTransactionByHash

func UpdateAggregatedUserTransactionByHash(userTransaction user_actions.AggregatedUserTransaction, transactionHash string)

update an aggregated user transaction with the given hash and network

func UpdateAggregatedUserTransactionByHashWithLootbottles

func UpdateAggregatedUserTransactionByHashWithLootbottles(lootbottlesCount float64, rewardTier int, transactionHash string)

UpdateAggregatedUserTransactionByHashWithLootbottles after finding it first

Types

type UserAction

type UserAction = user_actions.UserAction

func GetUserActionsWithSenderAddressOrRecipientAddress

func GetUserActionsWithSenderAddressOrRecipientAddress(network network.BlockchainNetwork, address string, limit int) []UserAction

GetUserActionsWithSenderAddressOrRecipientAddress, returning results that either contain the address specified as the recipient or the sender

func GetUserActionsWithSenderAddressOrRecipientOwnerAddress

func GetUserActionsWithSenderAddressOrRecipientOwnerAddress(network network.BlockchainNetwork, address string, limit int) []UserAction

GetUserActionsWithSenderAddressOrRecipientOwnerAddress, returning results that either contain the solana base account address specified as the recipient or the sender

Jump to

Keyboard shortcuts

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