πŸ“¦Boxes

πŸ§žβ€β™‚οΈBox Creation


The initiation phase begins when a Box Manager creates a new Box for predicting the outcome of a sporting event.

  • The creator selects an event from available sports data APIs and enters the details for the box, including specific predictions.

  • This action triggers the CreateBox function, initiating the creation of a new box.`

🚒 Box Deployment


The Factory contract is responsible for generating the box contract. Upon creation, the Factory contract deploys the box contract onto the blockchain.

This step ensures that the box contract is publicly accessible and immutable.

☒️ Box Activation


Once deployed, the box is activated and becomes available for user participation.

Participants can interact with the box by placing their cryptocurrency (Krill or ETH) in support of one of two sides:

  • Hunter: Supports the Box Manager's predictions.

  • Fisher: Opposes the Box Manager's predictions.

πŸ“‘ Monitoring & Listening


Monitoring (Offchain - Before Event)

A server continuously monitors sports data API providers to filter competitions and focus on major events. This step ensures player protection by verifying the legitimacy and relevance of the events.

Listening (Offchain - Before Event)

The server also listens for blockchain events, specifically monitoring the creation of new box contracts by the Factory contract. This includes tracking transactions related to the box contracts to maintain an up-to-date status.

β›” All boxes are sealed 5 minutes prior to the scheduled event start time to ensure fairness and prevent last-minute manipulations.

🎯 Box Resolution Process


πŸ”‘ Key Points

  • AI Decision-Making: The resolution of predictions is determined by an AI, which ensures that outcomes are based on objective data and analysis rather than human bias.

  • Autonomous and Decentralized: The entire process is driven by smart contracts and AI, operating autonomously and independently from any centralized control.

Participation in the box contract allows you to predict the outcome of a specific sporting event securely. The resolution process, which determines the winners, follows these steps:

  1. Launch Resolution

    • After the sporting event concludes, the user initiates the resolution process by signing a transaction to execute the resolution script. This action is essential to begin evaluating the predictions.

  2. AI Decision (Offchain - After Event)

    • After the event concludes, a user must launch the AI script to initiate the resolution process. This triggers the AI to evaluate the predictions.

    • The resolution script sends two types of data to the AI system:

      • Input 1: Predictions made through the box contract.

      • Input 2: Actual event data retrieved from API providers.

    • The AI processes these inputs to determine the outcome of the predictions.

  3. Onchain Transmission

    • Following the script's execution, the AI submits the event result to the oracle contract.

    • The AI's decision is recorded on the blockchain through the oracle smart-contract. This step ensures that the result is immutable and publicly verifiable.

  4. Contract Resolution

    • A user must then trigger the SETTLE BOX function. This action retrieves the result from the oracle contract and updates the box with the event outcome.

    • Based on this verified information, the box contract updates the prediction status to reflect whether the predictions were correct.

    • The result is now validated and recorded on-chain, finalizing the Outcome of the box.

  5. Winnings

    • Winners can claim their rewards based on the outcome stored in the box contract. This step directly correlates with the accuracy of their predictions.

    • All data and outcomes are recorded on the blockchain. Users can verify every step, ensuring transparency and fairness.

Last updated