The contract lacks temporal controls for events. Real-world events need start/end times, registration deadlines, and time-based validations.
Missing Features
Event start/end timestamps
Registration deadline management
Automatic registration closure based on time
Validation that events haven't already occurred
Proposed EventDetails Updates
struct EventDetails {
// ... existing fields
event_start_time: u64,
event_end_time: u64,
registration_deadline: u64,
created_at: u64,
}
Acceptance Criteria
Add timestamp fields to EventDetails struct
Update add_event() to accept time parameters
Add validation preventing registration after deadline
Add function to check if event is active/upcoming/past
Update registration logic to respect time constraints
Add events for time-based state changes
The contract lacks temporal controls for events. Real-world events need start/end times, registration deadlines, and time-based validations.
Missing Features
Event start/end timestamps
Registration deadline management
Automatic registration closure based on time
Validation that events haven't already occurred
Proposed EventDetails Updates
Acceptance Criteria
Add timestamp fields to EventDetails struct
Update add_event() to accept time parameters
Add validation preventing registration after deadline
Add function to check if event is active/upcoming/past
Update registration logic to respect time constraints
Add events for time-based state changes