mubarak23 / chainevents-contracts

cairo contract implementation for chainevents
1 stars 2 forks source link

RSVP for an event after registration #18

Open mubarak23 opened 22 hours ago

mubarak23 commented 22 hours ago

As someone who register for the event, i should be able to RSVP for the event i registered for

update has_rsvp inside EventRegistration details to TRUE, this function should be call by someone who has register for the event.
Write unit test for the function

codeZe-us commented 21 hours ago

I am applying to this issue via OnlyDust platform.

My background and how it can be leveraged

Mid level Cairo Developer

How I plan on tackling this issue

I will write a function that takes an event_id and the caller's address as parameters, then update the has_rsvp field in the EventRegistration details for the specified event_id to true. Also, I will make sure the function verifies if the caller has previously registered for the event before allowing the update. Finally, include the test for the function.

casweeney commented 20 hours ago

I am applying to this issue via OnlyDust platform.

My background and how it can be leveraged

I am a software engineer with strong technical skills and expertise in writing complex scalable applications. I have written and tested some advanced Cairo and Solidity smart contracts like building and testing the Synthetix staking contract using Cairo: https://github.com/casweeney/cairo-synthentix-staking. I have also written and tested a more complex smart contract in Cairo that involves giving multiple token as rewards to user. See repo: https://github.com/casweeney/staking-multiple-reward-tokens

I have contributed to some groundbreaking protocols like Hyperbridge: https://github.com/polytope-labs/hyperbridge/graphs/contributors and my GitHub account has a lot of proof of work.

Leveraging on my skills and experience, I am confident in my ability to tackle new challenges and also solve complex technical issues.

How I plan on tackling this issue

This task requires creating a function for registered user to RSVP for an event. I will first add the function signature in the IEvent interface, then implement the function that takes in the event_id, then I will check if the caller has registered for the event in which the id was passed, if true, I will update the has_rsvp property of the EventRegistration struct to TRUE.