Ski Pass

UTILITYFINANCIALTOOLS

Exposed Methods

addPass owner adds a pass to be purchased

parameter nametypedetails
_serialcodestringserial number of a skipass
_trackstringtrack chosen
_priceuintprice of a pass
_timeuinthours left on the skipass

getPassInfo info regarding the pass, including the price

parameter nametypedetails
_serialcodestringserial number of a skipass

getPass enables customer to purchase a pass

parameter nametypedetails
_serialcodestringserial number of a skipass
_namestringname of the customer
_chosentrackstringtrack chosen

checkPass function for the customer to check his time left on the pass

parameter nametypedetails
_namestringname of the customer

withdraw withdraw function for the owner

Events

PassPurchased tracks when a pass was purchased

PassAdded tracks when a pass was added

Buy
Reviewed by Modex
Buy Contract Test Contract

Create an account or login to purchase this smart contract