265 368 371 372 contract tests and smoke tests#500
Merged
Olowodarey merged 3 commits intoArena1X:mainfrom Mar 30, 2026
Merged
Conversation
…d LP token edge case tests - Add test_calculate_price_large_reserves for large reserve handling - Add test_calculate_price_small_reserves for small reserve handling - Add test_calculate_price_very_high for high price scenarios - Add test_calculate_price_very_low for low price scenarios - Add test_calculate_lp_tokens_proportional for proportional deposits - Add test_calculate_lp_tokens_after_fees for fee impact - Add test_calculate_lp_tokens_large_pool for large pool deposits - Add test_calculate_lp_tokens_small_deposit for small deposit handling - Add test_calculate_lp_tokens_zero_deposit_fails for validation - Add test_calculate_lp_tokens_negative_deposit_fails for validation - Add test_calculate_lp_tokens_overflow_protection for overflow handling - Add test_calculate_lp_tokens_multiple_deposits for sequential deposits All 19 tests pass successfully.
- Create contract/scripts/smoke_test.sh for end-to-end testnet validation - Implement 9-step smoke test flow: 1. Fund test wallets via Friendbot 2. Build contract WASM 3. Deploy contract to testnet 4. Initialize contract with admin config 5. Create market with YES/NO outcomes 6. Submit predictions from two users 7. Resolve market with winning outcome 8. Claim payouts for winners 9. Verify final balances - Add contract/Makefile with build, test, smoke-test, and clean targets - Update contract/README.md with smoke test documentation - Script outputs clear ✅ PASS/❌ FAIL messages at each step - Supports custom network settings via environment variables
…igration - Add participant_count column to seasons table (defaults to 0) - Update Season entity with participant_count field - Create migration 1775300000000-AddParticipantCountToSeasons - Maintains existing is_active index for efficient queries - Supports tracking season participation metrics
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
@Xoulomon Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
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.
Contract Tests & Smoke Tests Implementation
Changes
#368 - Price Calculation Edge Case Tests
#371 - LP Token Edge Case Tests
#372 - LP Token Validation Tests
#265 - Testnet Deployment Script & Smoke Tests
#266 - Season Entity & Migrations
Test Results
Closes #265
Closes #368
Closes #371
Closes #372