Skip to content

Reference

tilttek/predictions

Every public type of the package, with its role.

TypeRole
PredictionsAsks questions, records picks until the deadline, resolves, settles and cancels, reads, erases a member
QuestionA question on a dated outcome: its outcomes, deadline, points, scoring and status
QuestionKeyThe application's key of a question
QuestionStatusOpen, resolved or cancelled
ScoringBy choice, or by probability with the Brier score
PickOne outcome, or a probability for each outcome
PredictionA member's pick on a question, with its random identifier
PredictionIdThe random identifier of a prediction, which the key of its points carries
BrierThe Brier score in ten-thousandths, and the points it earns
SettlementWhat settling did: predictions read, rewarded, points, movements written
Contract\PredictionStoreWhere the questions and the predictions are kept
Store\InMemoryPredictionStoreThe store in memory, for tests
Exception\PredictionsException and its three exceptionsExceptions