Token-Giver / token-giver-backend

1 stars 4 forks source link

Handle Donation Received Event #1

Open Oshioke-Salaki opened 6 days ago

Oshioke-Salaki commented 6 days ago

Create a service to handle the "donation received" event emitted from the blockchain. Update the donation amount for the corresponding campaign in the database.

Acceptance Criteria:

BrunoAmbricca commented 6 days ago

I would like to work on this issue

Jemiiah commented 6 days ago

I would love to work on this issue

Unickhub commented 6 days ago

well this will be really cool

hannahredler commented 6 days ago

Hey! Im a full stack dev, with a few years of experience in web3, although fairly new to Cairo. I would appreciate the chance to work on this task!

I would work through the acceptance criteria as stated, ensuring the logs and events are emitted correctly.

CollinsC1O commented 6 days ago

Hello I'm a front-end and a blockchain developer I did love to handle this task?

ShantelPeters commented 6 days ago

Can I contribute to this one?

ryzen-xp commented 6 days ago

Hi, I am proficient Blockchain developer expert in Cairo , Rust and Solidity and also in web development. I have already seen project code and understard . please /assign this issue . Thank You

mimiprosper commented 6 days ago

Mind if I take this issue? Am a web 2 frontend developer, a solidity smart contract developer/auditor and a cairo smart contract developer. Am a graduate of Starknet Cairo Bootcamp. I have successfully done tasks assigned to me in OnlyDust. If assigned this i would complete it within 2 days.

shaaibu7 commented 6 days ago

I am a backend developer with experience building scalable back-end systems.

This is how i would go about handling this task.

Listen to Blockchain Events: listen for the DonationReceived event emitted by the smart contract.

Extract Event Data: When the event is detected, extract the donation amount from the event data.

Update the Database: Use Prisma to update the totalDonations field in the corresponding campaign record in the database.

Log Success or Errors: Log the success or failure of the database update for debugging and monitoring purposes.

Service Setup: Initialize the event listener on application startup to ensure events are captured in real time.