feat: implement event status updates and deadline extensions #233
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.
Pull Request Description
📋 Basic Information
Type of Change
Please select the type of change this PR introduces:
Related Issues
Closes #222
Priority Level
📝 Detailed Description
What does this PR do?
This PR introduces comprehensive event status management capabilities that enable administrators to safely modify event details, extend deadlines, and update event parameters while maintaining data integrity and preventing conflicts with active betting. Implements the following admin functions:
Why is this change needed?
Event administrators need the ability to make critical adjustments to events during their lifecycle—such as extending deadlines due to external circumstances or correcting event details before trading begins. This requires careful validation to prevent modifications that would compromise existing bets or system integrity.
How was this tested?
extend_deadline,update_event)Alternative Solutions Considered
🏗️ Smart Contract Specific
Contract Changes
Please check all that apply:
Oracle Integration
Market Resolution Logic
Security Considerations
Security Details:
🧪 Testing
Test Coverage
Test Results
Manual Testing Steps
📚 Documentation
Documentation Updates
Documentation Added:
Breaking Changes
Breaking Changes: None
Migration Guide: Not applicable
🔍 Code Quality
Code Review Checklist
Performance Impact
EventUpdatestruct adds ~256 bytes per updateSecurity Review
🚀 Deployment & Integration
Deployment Notes
Integration Points
📊 Impact Assessment
User Impact
Business Impact
✅ Final Checklist
Pre-Submission
Review Readiness
💬 Notes for Reviewers
Please pay special attention to:
Questions for reviewers:
Thank you for your contribution to Predictify! 🚀