You are the Never Sea Festival 2023 organizers and you decide to create the registration via blockchain. Starting from Smart Contract template you have to add more features to coordinate the event.
Clone Foundation of Blockchain repo and go to lab03 folder.
Use https://docs.elrond.com/developers/tutorials/counter/#build-the-contract to build the Smart Contract.
–arguments
to provide the arguments of init function.
erdpy contract deploy –help
To check that the contract was successfully built, verify that there was a wasm file generate: output/neversea.wasm
.
This is the compiled code of your contract.
To check that the contract was successfully deployed, check the devnet/testnet.
In the registration endpoint, make a verification of the tokens received. If the tokens received is registration_fee_vip, add the user to vip_participants, if the amount is registration_fee, add them to participants, else, deny registration.
This endpoint should be call only by the owner.
After the Early Bird expires, the admin will call this endpoint.
Create a list of hardcoded discount codes.