Documentation ¶
Index ¶
- Constants
- Variables
- func CheckPredictionStatus()
- func ConfirmAction(i int, teamA, teamB string, obj []fyne.CanvasObject, tabs *container.AppTabs) fyne.CanvasObject
- func DisablePreditions(d bool)
- func DisableSports(d bool)
- func DreamService(start uint64, payouts, transfers bool)
- func GetActiveGames(dc bool)
- func GetBaseball(date, league string)
- func GetBasketball(date, league string)
- func GetBook(scid string) (info string)
- func GetCurrentMonth(league string)
- func GetCurrentWeek(league string)
- func GetFootball(date, league string)
- func GetGameEnd(date, game, league string)
- func GetHockey(date, league string)
- func GetMma(date, league string)
- func GetMmaResults(label *widget.Label, league string)
- func GetMmaWinner(game, league string) (win string, fighter string)
- func GetPrediction(scid string) (info string)
- func GetScores(label *widget.Label, league string)
- func GetSoccer(date, league string)
- func GetWinner(game, league string) (win string, team_name string, a_score string, b_score string)
- func OwnerButtonP() fyne.CanvasObject
- func OwnerButtonS() fyne.CanvasObject
- func P_initResults(p, amt, eA, c, to, u, d, r, f, m string, ta, tb, tc int) (info string)
- func P_no_initResults(fr, tx, r, m string) (info string)
- func PredicitionFavorites() fyne.CanvasObject
- func PredictConnectedBox() fyne.Widget
- func PredictionListings(tab *container.AppTabs) fyne.CanvasObject
- func PredictionOwned() fyne.CanvasObject
- func PreictionContractEntry() fyne.Widget
- func S_Results(g, gN, l, min, eA, c, tA, tB, tAV, tBV, total string, a, b uint64) (info string)
- func SetPredictionInfo(scid string)
- func SetPredictionPrices(d bool)
- func SetPrintColors(os string)
- func SetSportsInfo(scid string)
- func ShowPredictionControls()
- func SportsConnectedBox() fyne.Widget
- func SportsContractEntry() fyne.Widget
- func SportsFavorites() fyne.CanvasObject
- func SportsListings(tab *container.AppTabs) fyne.CanvasObject
- func SportsOwned() fyne.CanvasObject
- func SportsPayouts() fyne.CanvasObject
- func WinningTeam(teams, winner string) string
Constants ¶
const PAYLOAD_FORMAT = uint64(1728000)
block height of last payload format change
Variables ¶
var PS_Control psOwnerObjects
var Predict predictObjects
var PrintColor printColors
var Service service
var Sports sportsItems
Functions ¶
func CheckPredictionStatus ¶ added in v0.9.3
func CheckPredictionStatus()
Check dPrediction SCID for live status
func ConfirmAction ¶ added in v0.9.5
func ConfirmAction(i int, teamA, teamB string, obj []fyne.CanvasObject, tabs *container.AppTabs) fyne.CanvasObject
dSports and dPrediction action confirmation
- i defines the action to be confirmed
- teamA, teamB needed only for dSports confirmations
- Pass main window obj and tabs to reset to
func DreamService ¶ added in v0.9.5
Main dReamService routine
- start defines service starting height
- payouts, transfers for service params
func GetBaseball ¶ added in v0.9.5
func GetBaseball(date, league string)
Gets baseball games for selected league and adds to options selection
- date GetCurrentWeek()
func GetBasketball ¶
func GetBasketball(date, league string)
Gets basketabll games for selected league and adds to options selection
- date GetCurrentWeek()
func GetCurrentMonth ¶ added in v0.9.2
func GetCurrentMonth(league string)
Gets the games of league for following month
func GetCurrentWeek ¶
func GetCurrentWeek(league string)
Gets the games of league for following week
func GetFootball ¶
func GetFootball(date, league string)
Gets football games for selected league and adds to options selection
- date GetCurrentWeek()
func GetGameEnd ¶
func GetGameEnd(date, game, league string)
Find and display the end time of selected game
func GetMma ¶ added in v0.9.2
func GetMma(date, league string)
Gets mma matches for selected league and adds to options selection
- date GetCurrentMonth()
func GetMmaResults ¶ added in v0.9.2
Get final result of mma league and display info
- Pass label for display info
func GetMmaWinner ¶ added in v0.9.2
Gets and returns the winner of mma match
- league defines api prefix
func GetPrediction ¶ added in v0.9.1
Gets dPrecition data from SCID and return formatted info string
func GetSoccer ¶
func GetSoccer(date, league string)
Gets hockey games for selected league and adds to options selection
- date GetCurrentWeek()
func OwnerButtonP ¶ added in v0.9.5
func OwnerButtonP() fyne.CanvasObject
Owner menu open button for prediction tab
func OwnerButtonS ¶ added in v0.9.5
func OwnerButtonS() fyne.CanvasObject
Owner menu open button for sports tab
func P_initResults ¶ added in v0.9.1
Formats intialized dPrediction info string
- p defines prediction
- amt is Dero value
- eA is prediction end time
- c is number of current predictions
- to is current total prediction Dero pot value
- u is higher predictions
- d is lower predictions
- r is total completed prediction rounds
- f is prediction feed
- m is prediction mark
- ta, tb, tc are current contrct time frames
func P_no_initResults ¶ added in v0.9.1
Formats non-intialized dPrediction info string
- fr is the unsplit result string
- tx is the previous payout TXID
- r is total completed prediction rounds
- m is prediction mark
func PredicitionFavorites ¶ added in v0.9.1
func PredicitionFavorites() fyne.CanvasObject
List object for populating favorite dPrediction contracts, with remove favorite control
func PredictConnectedBox ¶
func PredictConnectedBox() fyne.Widget
Check box for dPrediction SCID
- Hides prediction controls on disconnect
func PredictionListings ¶
List object for populating public dPrediction contracts, with rating and add favorite controls
- Pass tab for action confirmation reset
func PredictionOwned ¶ added in v0.9.1
func PredictionOwned() fyne.CanvasObject
List object for populating owned dPrediction contracts
func PreictionContractEntry ¶
func PreictionContractEntry() fyne.Widget
Entry for dPrediction SCID
- Bound to Predict.Contract
- Checks for valid SCID on changed
func S_Results ¶ added in v0.9.1
Formats dSports info string
- g is game name
- gN is game number
- l is league
- min is minimum Dero wager
- eA is game end time
- c is current number of picks
- tA, tB are team names of A and B
- tAV, tBV is total picks for A or B
- total is curent game Dero pot total
- a, b are current contrct time frames
func SetPredictionInfo ¶ added in v0.9.1
func SetPredictionInfo(scid string)
Sets dPrediction info label
func SetPredictionPrices ¶ added in v0.9.1
func SetPredictionPrices(d bool)
Update price feed for dPrediction display
func SetPrintColors ¶ added in v0.9.3
func SetPrintColors(os string)
Set up terminal log print colors
func ShowPredictionControls ¶ added in v0.9.2
func ShowPredictionControls()
When called, enable and show dPrediction controls
func SportsConnectedBox ¶
func SportsConnectedBox() fyne.Widget
Check box for dSports SCID
- Hides sports controls on disconnect
func SportsContractEntry ¶
func SportsContractEntry() fyne.Widget
Entry for dPrediction SCID
- Bound to Sports.Contractt
- Checks for valid SCID on changed
func SportsFavorites ¶ added in v0.9.1
func SportsFavorites() fyne.CanvasObject
List object for populating favorite dSports contracts, with remove favorite control
func SportsListings ¶
List object for populating public dSports contracts, with rating and add favorite controls
- Pass tab for action confirmation reset
func SportsOwned ¶ added in v0.9.1
func SportsOwned() fyne.CanvasObject
List object for populating owned dSports contracts
func SportsPayouts ¶ added in v0.9.2
func SportsPayouts() fyne.CanvasObject
Log entry for dSports payout results
func WinningTeam ¶ added in v0.9.2
Format winning team name from dSports final result string
Types ¶
This section is empty.