Closed wvwatson closed 1 week ago
points: 1, 2, 3, 5, 8, 13, 21
@russlive215 5 @Fr0z0n3 5 @noireconnect2024 3 @wvwatson 8
points: 5
Sponsor Creation worked well - confusion on whether or not I need to add in the Sponsor ID or if that will generate a number after submission.
Quest Definition and Setup
Description: Develop a smart contract to enable an admin to create an "Event Quest" with specific parameters.
Depends on #19
Acceptance Criteria:
Solidity Smart Contract:
Acceptance Criteria Validation:
createQuest
function allows the admin to create a quest with the required parameters.quests
mapping with theeventId
as the key.getQuest
function allows retrieval of quest details byeventId
.onlyAdmin
modifier ensures that only the admin can create quests.QuestCreated
event is emitted upon the creation of a quest, providing transparency and a way to track quest creation.This contract meets the specified requirements and ensures that the necessary parameters are both stored and retrievable, with appropriate validation and access control.