Skip to content

apeaircreative/Hackathon-Smart-Contract

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Hackathon Registration Smart Contract

This repository contains a Solidity smart contract for managing student registrations for a hackathon. The contract is designed to handle both in-person and online participants, collect necessary information, and provide various utility functions for efficient registration management.

Features

  • Student registration for hackathon (both in-person and online)
  • Update existing registrations
  • Configurable minimum age requirement (with absolute minimum safeguard)
  • Tracking of in-person and online participants
  • Handling of dietary restrictions and lodging needs
  • Implementation of safeguards against common edge cases
  • Capped total number of registrations

Smart Contract Overview

  • Enums: Skillset, ParticipationType, DietaryRestriction
  • Struct: StudentData for comprehensive student information
  • Functions for registration, updates, and data retrieval
  • Events for logging registration attempts and updates

Key Functions

  • registerOrUpdateStudent: Register a new student or update existing registration
  • getStudentByAddress: Retrieve a student's data by their Ethereum address
  • isStudentRegistered: Check if a student is registered
  • getTotalRegisteredStudents: Get the total count of registered students
  • getInPersonStudentsCount: Get the count of in-person students
  • getOnlineStudentsCount: Get the count of online students

About

Smart contract for hackathon registration

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published