Add RAR app using pyth entropy #79
Open
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
Project/Example Name: RAR (Random Algorithm Radio)
Pyth Product Used:
Blockchain/Platform:
Description
What does this contribution do?
This contribution introduces RAR (Random Algorithm Radio) - a unique music app that demonstrates the innovative use of Pyth Entropy for verifiable randomness in creative applications beyond traditional DeFi use cases.
How does it integrate with Pyth?
RAR integrates with Pyth Network Entropy across multiple layers of the application to provide verifiable randomness for core platform features:
What problem does it solve or demonstrate?
1. Trust in Algorithmic Content Curation
Problem: How do we make algorithms more transparent and reduce the 'echo chambers effect' in content recommendation ?
Pyth Solution:
2. Fairness in Gamified Experiences
Problem: How do we make music listening more playful and collaborative while making it fair and fun at the same time ?
Pyth Solution:
- Provably Fair Gameplay through on-chain verifiable coin flips (Heads: start with 0 songs; Tails start with 2 songs)
- Transparent Starting Conditions that users can independently verify (We turn the hexadecimal generated string into an ideal 64 song queue)
- No Centralized Control over random outcomes that affect user progression (We use the alphanumeric characters within the string as a source of game mechanic; where alphabets: no song revealed in the song card queue; and numbers: a song is revealed in the song card queue'
- This overall use of a single random seed in different forms makes for an interesting listening experience on RAR ;)
3. Sustainable Engagement in Web3 Applications
Problem: How do we move beyond initial token incentives and continually engage the community ?
Pyth Solution:
Directory Structure (for new examples)
Testing & Verification
How to Test This Contribution
1. Local Development Setup
2. Basic Functionality Tests
A. Wallet Connection & User Registration
B. Playlist Battle Gameplay
C. Test Features:
D. Contract Functions
RandomSeed Contract
CoinFlip Contract
PlaylistReputationNFT Contract
Prerequisites
Required Software:
Setup & Run Instructions
Deployment Information (if applicable)
Network: Arbitrum Sepolia
Demo Link: https://rar-eight.vercel.app/
Checklist
Code Quality
Testing
Additional Context
Screenshots/Demo (if applicable)
Youtube Link
Notes for Reviewers
Thank you for contributing to Pyth Examples!