Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

Event Ticket Smart Contract

This project is a basic event ticket management system developed using Solidity.

The contract allows users to purchase tickets for different types of events such as Conferences, Workshops, Hackathons, Meetups, Webinars, and Summits. Each ticket is assigned a unique ticket ID and stores important information such as the buyer's address, event name, purchase amount, purchase date, event date, event type, and ticket tier.

Features

  • Purchase tickets using Ether
  • Support for multiple event categories
  • Support for Standard, Premium, and VIP ticket tiers
  • Validation of event dates
  • Prevention of duplicate ticket IDs
  • Track the total number of tickets sold
  • Calculate refund amounts based on the number of days remaining before the event
  • View ticket summary information
  • Emit events whenever a ticket is purchased

Smart Contract Functions

purchaseTicket()

Allows a user to purchase a ticket by providing event details and making a payment.

getDaysUntilEvent()

Returns the number of days remaining before the event starts.

calculateRefundAmount()

Calculates the refund amount according to the cancellation policy.

getTicketSummary()

Returns the buyer address, purchase amount, and ticket tier for a given ticket.

Technologies Used

  • Solidity
  • Remix IDE
  • Ethereum Smart Contracts

Author

Debadutta Patel

B.Tech Information Technology Odisha University of Technology and Research

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages