ConcertTicketingSystem

FINANCIALUTILITYTOOLS

Exposed Methods

setPrice owner sets the price for the ticket

parameter nametypedetails
_standardcostuintmodel of the car
_vipmultiplieruinthow many times more a vip ticket cost compared to a standard

getTicket enables the user to buy a ticket

parameter nametypedetails
_namestringname of the person
_vipboolstores the status of the ticket, vip or not
_addraddressetherum address of the buyer

getPersonInfo get information of a concertgoer

parameter nametypedetails
_addraddressetherum address of the buyer

checkVIP checks if the concertgoer has vip ticket

parameter nametypedetails
_addraddressetherum address of the buyer

checkForTicket checks if an address of a concertgoer bought a ticket or not

parameter nametypedetails
_addraddressetherum address of the buyer

withdraw withdraw function for the owner

Events

PriceSet listens when the price was set

TicketPurchased liste

Buy
Reviewed by Modex
Buy Contract Test Contract

Create an account or login to purchase this smart contract