Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pyth Examples Contribution
Type of Contribution
Project Information
5minBets:
Pyth Product Used:
Blockchain/Platform:
Description
What does this contribution do?
This contribution adds
5minBets, a Cardano-native price prediction market concept written in Aiken. The project models a simple 5-minute betting flow where users betUPorDOWNon theXAU/USDprice, with the current repository containing an initial validator prototype and a README that describes the intended protocol design and architecture.How does it integrate with Pyth?
The project is designed to use Pyth price data as the oracle source for round creation and settlement. A relayer records the opening
XAU/USDprice from Pyth, users place bets during the round, and the closing Pyth price is later used to determine the winning side and calculate payouts.What problem does it solve or demonstrate?
This example demonstrates how Pyth-powered market data can be used in a Cardano application to drive outcome-based logic for a prediction market. It also serves as a hackathon prototype and starting point for building a more complete oracle-driven betting protocol in Aiken.
Directory Structure (for new examples)
Testing & Verification
How to Test This Contribution
This example is currently an Aiken project prototype. Reviewers can validate formatting, buildability, and test execution using the standard Aiken workflow.
Prerequisites
Setup & Run Instructions
cd pyth-examples/lazer/cardano/5minBets aiken fmt --check aiken check -D aiken buildDeployment Information (if applicable)
Network: cardano
Contract Address(es): N/A
Demo URL: N/A
Checklist
Code Quality
Testing
Additional Context
Related Issues
Fixes #
Screenshots/Demo (if applicable)
Notes for Reviewers
Thank you for contributing to Pyth Examples!