Parking Lot

FINANCIALUTILITY

Parameters:
  1. cartype: sets the model of the car
  2. license: sets the license of the car
  3. Index: is used to search for a certain car in the array
Exposed methods:
  1. park: adds a car to the parking spot
  2. | parameter name | type | details | | --------- | --------- | --------- | | _cartype | string | model of the car that is being parked | | _license | string | license number of the car parked |
  3. checkBill:method to checking the bill for the parked car
  4. payticket: method to pay for the parking spot of a certain car
  5. withdraw: method called only by the owner to withdraw the money from the contract
  6. getBalanaceContract: owner only method that shows the balance of the contract
  7. getCarInfo: owner only method that shows information for a certain car on the parking lot
  8. | parameter name | type | details | | --------- | --------- | --------- | | index | uint | id of the car parked |
Buy
Reviewed by Modex
Buy Contract Test Contract

Create an account or login to purchase this smart contract