GoalNadArena
Constants
Name
Value
Description
State
struct Match {
uint256 apiMatchId; // football-data.org match ID
uint8 oraclePrediction; // 1=Home, 2=Away, 3=Draw
string exactScore; // e.g., "2-1"
uint256 lockdownTime; // Auction close time (kickoff)
uint256 highestBid;
address highestBidder;
uint256 totalPot;
uint8 result; // 0=Unresolved, 1/2/3
bool resolved;
bool cancelled;
}Functions
publishPrediction(...) — Oracle Only
publishPrediction(...) — Oracle Onlybid(matchId, amount) — Challenge
bid(matchId, amount) — Challengesupport(matchId) — Back Oracle
support(matchId) — Back OracleresolveMatch(matchId, result, luckySupporter) — Oracle Only
resolveMatch(matchId, result, luckySupporter) — Oracle OnlycancelMatch(matchId) — Owner Only
cancelMatch(matchId) — Owner OnlyclaimReward(matchId) — Any Winner
claimReward(matchId) — Any WinnerView Functions
Events
Admin Functions
Last updated