Skip to content

Commit

Permalink
add more emitted event
Browse files Browse the repository at this point in the history
  • Loading branch information
mubarak23 committed Oct 23, 2024
1 parent ae8debc commit 16e3e34
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions src/events/events.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -54,39 +54,39 @@ pub mod Events {
}

#[derive(Drop, starknet::Event)]
struct RegisteredForEvent {
event_id: u256,
event_name: felt252,
user_address: ContractAddress
pub struct RegisteredForEvent {
pub event_id: u256,
pub event_name: felt252,
pub user_address: ContractAddress
}

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

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

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


#[derive(Drop, starknet::Event)]
struct EventAttendanceMark {
event_id: u256,
user_address: ContractAddress
pub struct EventAttendanceMark {
pub event_id: u256,
pub user_address: ContractAddress
}

#[constructor]
Expand Down

0 comments on commit 16e3e34

Please sign in to comment.