π PYTHPREDICT COMPLETE TEST SUITE
π§ Initializing test environment...
π Loading wallets... π° Funding alice... π° Funding bob... π° Funding charlie... π° Funding dave... π° Funding eve... β Created token mint: 3nKY314X2rqJmvyTabh6wixgN9S6q4HsREh6wBWpGe16
β Minted 1000 tokens to alice β Minted 1000 tokens to bob β Minted 500 tokens to charlie β Minted 500 tokens to dave β Minted 500 tokens to eve
π° Total token supply: 3,500 tokens β¨ Environment ready!
π Section 1: Core Functionality Tests
β Market 'coreTestMarket' created: A7P52Np3... β Should create a market with correct parameters (456ms) β Should place bets with correct fee calculation (452ms) β Should update odds correctly after multiple bets (928ms)
β³ Waiting for market to reach settlement time...
β
Market 'coreTestMarket' resolved. Winner: UNKNOWN
β Should resolve market and determine winner correctly (12358ms)
β Should distribute winnings correctly to winners (910ms)
π₯ Creating multiple markets concurrently... β Market 'stress3' created: 7ycovG4i... β Market 'stress1' created: FttQJDRG... β Market 'stress2' created: 8khjM6ua... β Created 3 markets β Placed 9 bets β Should handle multiple concurrent markets (4618ms) π Section 4: Live BTC Price Market
π Fetching live BTC price from Pyth Network... Raw price: 11882901963831, exponent: -8, final: $118829.02 β Live BTC Price: $118829.02 Confidence: Β±$34.50 β Should fetch real BTC price from Pyth Network (1057ms) β Market 'liveBtcMarket' created: 3ZbTzbck... π Market created at price: $118829.01 β Should create market with live BTC price (309ms)
π² Placing strategic bets: alice: $50 on YES - Momentum trader - expects continuation bob: $75 on NO - Mean reversion - expects stability charlie: $25 on YES - Following Alice
π Market Sentiment: YES (price will move): 50.0% NO (price stays same): 50.0% β Should place bets based on market sentiment (1378ms)
β±οΈ Monitoring BTC price for 20 seconds... π Starting price: $118829.02 Raw price: 11883066624765, exponent: -8, final: $118830.67 [5s] $118830.67 (+1.65 | +0.001%) Raw price: 11883010157971, exponent: -8, final: $118830.10 [10s] $118830.10 (+1.08 | +0.001%) Raw price: 11883036702392, exponent: -8, final: $118830.37 [15s] $118830.37 (+1.35 | +0.001%) Raw price: 11883042034601, exponent: -8, final: $118830.42
π Final price: $118830.42 π Total change: +$1.40 β Market 'liveBtcMarket' resolved. Winner: UNKNOWN π Winner: YES (price moved) β Should monitor price and resolve with actual movement (22988ms)
π° Processing payouts based on price movement: alice: +$99.00 β charlie: +$49.50 β bob: Correctly rejected claim β
π Summary: Price moved β YES wins Total payouts: $148.50 β Should distribute winnings based on actual price movement (1391ms)
π Test Results: Total Tests: 15 Passed: 15 (100.0%) Failed: 0
π° Token Conservation: Initial Supply: 3500.00 tokens User Balances: 2922.18 tokens
β EXCELLENT: All critical tests passed!