Skip to main content

Core

Table of contents

Functions

Functions

encodeWinningPicks

encodeWinningPicks(user, drawResults): Claim

Parameters

NameType
userUser
drawResultsDrawResults[]

Returns

Claim

Defined in

core/encodeWinningPicks.ts:7


winningPicks

winningPicks(user, draws, prizeDistributions): Claim

description Computes a User's winning picks for multiple Draws and returns an encoded transaction.

dev Historical blockchain state must be first fetched to run computations.

Parameters

NameTypeDescription
userUserIncludes an account address and a list of normalized balances.
drawsDraw[]Draw(s) should be fetched from DrawHistory contract
prizeDistributionsPrizeDistribution[]PrizeDistribution(s) should be fetched from PrizeTierHistory contract

Returns

Claim

Computed winning picks and encoded transaction ready for broadcast to an EVM blockchain.

Defined in

core/winningPicks.ts:13 ts:13 :13 ts:13