Skip to content

Commit ae5a529

Browse files
committed
Add Crypto Roulette & Daily Lottery - Dual Gaming System with Pyth Entropy V2
This submission demonstrates innovative use of Pyth Entropy V2 for verifiable on-chain randomness in a dual gaming ecosystem. Features: - Two contracts consuming Pyth Entropy (CryptoRoulette & DailyLottery) - Dual randomness patterns: high-frequency (roulette) + periodic (lottery) - Interconnected game economy with shared prize pool - Deployed and verified on Optimism Sepolia - Complete deployment scripts and comprehensive documentation Innovation: Uses Pyth Entropy for both continuous player-initiated spins and scheduled admin-triggered lottery draws, showcasing the protocol's versatility across different gaming mechanics within a single ecosystem. Technical Highlights: - Implements IEntropyConsumer interface in both contracts - Secure two-step randomness pattern (request + callback) - Cross-contract integration (roulette feeds lottery) - Winner-takes-all lottery mechanism - Emergency functions for edge cases Deployed Contracts: - CryptoRoulette: 0x19aab2239911164c9051ccaed184102a10d7121f - DailyLottery: 0x5149cc9f6c3a4b60cfa84125161e96b0cf677eb4 - Network: Optimism Sepolia (Chain ID: 11155420) Built for ETH Global Buenos Aires Hackathon Qualifying for Pyth Entropy Pool Prize (,000)
1 parent b48bc74 commit ae5a529

File tree

6 files changed

+1590
-0
lines changed

6 files changed

+1590
-0
lines changed

0 commit comments

Comments
 (0)