Documentation ¶
Index ¶
- Constants
- func CountUniqueDailyUsers(network network.BlockchainNetwork) uint64
- func GetAggregatedUserTransactionByHash(network network.BlockchainNetwork, transactionHash string) *user_actions.AggregatedUserTransaction
- func GetUserActionByLogIndex(network network.BlockchainNetwork, transactionHash string, ...) *user_actions.UserAction
- func GetUserActions(f func(userAction UserAction))
- func InsertAggregatedUserTransaction(userTransaction user_actions.AggregatedUserTransaction)
- func InsertUserAction(userAction UserAction)
- func UpdateAggregatedUserTransactionByHash(userTransaction user_actions.AggregatedUserTransaction, transactionHash string)
- func UpdateAggregatedUserTransactionByHashWithLootbottles(lootbottlesCount float64, rewardTier int, transactionHash string)
- type UserAction
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
Click to show internal directories.
Click to hide internal directories.