▸ encodeWinningPicks(user, drawResults): Claim
| Name | Type |
|---|---|
user |
User |
drawResults |
DrawResults[] |
Claim
core/encodeWinningPicks.ts:7
▸ 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.
| Name | Type | Description |
|---|---|---|
user |
User |
Includes an account address and a list of normalized balances. |
draws |
Draw[] |
Draw(s) should be fetched from DrawHistory contract |
prizeDistributions |
PrizeDistribution[] |
PrizeDistribution(s) should be fetched from PrizeTierHistory contract |
Claim
Computed winning picks and encoded transaction ready for broadcast to an EVM blockchain.
core/winningPicks.ts:13 ts:13 :13 ts:13