Skip to content

Implement Event Date/Time Management and Registration DeadlinesΒ #191

@mubarak23

Description

@mubarak23

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

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions