lootboxes

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

Documentation

Index

Constants

View Source
const (
	Airdrop     lootboxSource = "airdrop"
	Transaction lootboxSource = "transaction"
	Referral    lootboxSource = "referral"
	// Leaderboard for rewards that don't contribute towards top winnings
	Leaderboard lootboxSource = "leaderboard_prize"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Lootbox

type Lootbox struct {
	// Address of lootbox recipient
	Address string `json:"address"`

	// Source of earnt lootbox
	Source lootboxSource `json:"source"`

	// TransactionHash to find the corresponding transaction for the event
	// TransactionHash that is empty indicates no transaction attached
	TransactionHash string `json:"transaction_hash"`

	// AwardedTime of the winning transaction
	AwardedTime time.Time `json:"awarded_time"`

	// Volume that was swapped or sent in native token units
	// Volume of 0 indicates no transaction attached
	Volume misc.BigInt `json:"volume"`

	// RewardTier to indicate the tier of the payout [1-5]
	// RewardTier of 0 indicates no payout event attached
	RewardTier int `json:"reward_tier"`

	// LootboxCount is the amount of earned lootboxes from event
	LootboxCount float64 `json:"lootbox_count"`

	// Application is the application involved in the source transfer
	Application applications.Application `json:"application"`

	// Epoch of the lootbox program thats taking place
	Epoch string `json:"epoch"`
}

Jump to

Keyboard shortcuts

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