solana

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 is the context printed during logging
	Context = `POSTGRES/SOLANA`

	// TableUsers is used to implement mint limits for individual users
	TableUsers = `solana_users`

	// TableMintLimits is used to store each token's per user mint limit
	TableMintLimits = `solana_mint_limits`

	// TableIntermediateWinners to use to track winners that were
	// paid out and need to be linked in the winners database to the
	// winning transaction
	TableIntermediateWinners = `solana_intermediate_winners`
)

Variables

This section is empty.

Functions

func AddMintUserLimit

func AddMintUserLimit(address string, amount float64, tokenName string)

func GetIntermediateWinner

func GetIntermediateWinner(payoutSignature string) (winningSignature string)

GetIntermediateWinner using a payout transaction signature

func GetUserAmountMinted

func GetUserAmountMinted(address string) float64

GetUserAmountMinted for the amount the given address has minted so far

func GetUserMintLimit

func GetUserMintLimit(tokenName string) float64

GetUserMintLimit for the per-user limit for the given token

func InsertIntermediateWinner

func InsertIntermediateWinner(winningSignature, payoutSignature string)

InsertIntermediateWinner to use later in comparing the winners to the database

func ReduceMintUserLimit

func ReduceMintUserLimit(address string, amount float64, tokenName string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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