Skip to content

Commit

Permalink
add more events
Browse files Browse the repository at this point in the history
  • Loading branch information
mubarak23 committed Oct 23, 2024
1 parent ad85a70 commit ae8debc
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion src/events/events.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ pub mod Events {
enum Event {
NewEventAdded: NewEventAdded,
RegisteredForEvent: RegisteredForEvent,
EventAttendanceMark: EventAttendanceMark
EventAttendanceMark: EventAttendanceMark,
UpgradedEvent: UpgradedEvent,
EndEventRegistration: EndEventRegistration,
RSVPForEvent: RSVPForEvent
}

#[derive(Drop, starknet::Event)]
Expand All @@ -57,6 +60,29 @@ pub mod Events {
user_address: ContractAddress
}

#[derive(Drop, starknet::Event)]
struct EndEventRegistration {
event_id: u256,
event_name: felt252,
event_owner: ContractAddress
}

#[derive(Drop, starknet::Event)]
struct RSVPForEvent{
event_id: u256,
event_name: felt252,
attendee_address: ContractAddress
}

#[derive(Drop, starknet::Event)]
struct UpgradedEvent{
event_id: u256,
event_name: felt252,
paid_amount: u256,
event_type: EventType
}


#[derive(Drop, starknet::Event)]
struct EventAttendanceMark {
event_id: u256,
Expand Down

0 comments on commit ae8debc

Please sign in to comment.