referrals

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: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Context to use for logging
	Context = `TIMESCALE/REFERRALS`

	// TableReferrals stores all referrals
	TableReferrals = `lootbox_referrals`
)

Variables

This section is empty.

Functions

func UpdateReferral

func UpdateReferral(referral Referral, epoch string)

Types

type Referral

type Referral = types.Referral

func GetClaimedReferrals

func GetClaimedReferrals(address ethereum.Address, epoch string) []Referral

GetClaimedReferrals of referee to distribute rewards to referrer

func GetEarliestUnclaimedReferrals

func GetEarliestUnclaimedReferrals(address ethereum.Address, epoch string, limit int) []Referral

GetLatestUnclaimedReferrals by referee, sorted by date, limited by number

Jump to

Keyboard shortcuts

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