Documentation ¶
Index ¶
- Constants
- func AddMintUserLimit(address string, amount float64, tokenName string)
- func GetIntermediateWinner(payoutSignature string) (winningSignature string)
- func GetUserAmountMinted(address string) float64
- func GetUserMintLimit(tokenName string) float64
- func InsertIntermediateWinner(winningSignature, payoutSignature string)
- func ReduceMintUserLimit(address string, amount float64, tokenName string)
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 GetIntermediateWinner ¶
GetIntermediateWinner using a payout transaction signature
func GetUserAmountMinted ¶
GetUserAmountMinted for the amount the given address has minted so far
func GetUserMintLimit ¶
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 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.