MuseumTicketing

FINANCIALUTILITYTOOLS

Exposed Methods

setPrice owner sets the price for the tickets

parameter nametypedetails
_zonepriceuintprice of a zone
_priceguideuintprice of a guide
_fullaccesspriceuintprice for all zone access

showPrice checks the price of a ticket

parameter nametypedetails
_priceguideuintprice of a guide
_fullaccesspriceuintprice for all zone access

buyTicket enables the user to buy a ticket

parameter nametypedetails
_zonenamestringname of the zone chosen
_priceguideuintprice of a guide
_fullaccesspriceuintprice for all zone access

visitMuseum function to be called when the person visited a museum

checkTicketStatus checks if a ticker was used or not

withdraw withdraw function for the owner

Events

PriceSet listens when the price was set

TicketPurchased listens when a ticket was purchase

MuseumVisited listens when a person visited the museum

Buy
Reviewed by Modex
Buy Contract Test Contract

Create an account or login to purchase this smart contract