Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i would like to create a backend solidity code for the quiz project #12

Open
Boobeshkumar56 opened this issue Oct 18, 2024 · 1 comment

Comments

@Boobeshkumar56
Copy link

Boobeshkumar56 commented Oct 18, 2024

with these below functions

constructor(address _rewardTokenAddress)
Initializes the contract with the reward token address and sets the contract owner.

createQuiz
Creates a new quiz with questions, answers, and rewards.

participateInQuiz
Allows a user to participate in a quiz by submitting their answers and calculates their score.

_distributeReward
Distributes reward tokens to participants based on their quiz score.

getQuizDetails
Returns basic details of a quiz like title, number of questions, and participants.

hasUserParticipated
Checks if a user has already participated in a specific quiz.

getScore
Retrieves the score of a participant for a specific quiz.

fundContract
Allows the owner to fund the contract with tokens for rewards.

withdrawTokens
Allows the owner to withdraw tokens from the contract.
could you please assign this to me under WoB24 i'm very intrested to work

@Boobeshkumar56
Copy link
Author

Boobeshkumar56 commented Oct 18, 2024

i had made a pr as a new branch named contracts contains backend contracts and now #12 is closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant