Sneakers Appraisal

UTILITYFINANCIALTOOLS

Exposed Methods

setCost owner sets the cost for the appraisals

parameter nametypedetails
_costuintstores the cost of an appraisal

checkCost returns the cost for an appraisal

sendSneaker function to send the sneakers to the appraiser

parameter nametypedetails
_brandstringbrand of the sneakers
_namestringmodel of the sneakers
_codeuintunique code of the sneakers

getSneakerOwner returns the owner of the sneakers

parameter nametypedetails
_codeuintunique code of the sneakers

appraiseSneaker owner only called function to appraise a pair of sneakers

parameter nametypedetails
_priceuintprice estimated by the appraiser
_isgenuineboolshows if a pair is genuine or not
_dayuintday the sneakers will be returned
_monthuintmonth the sneakers will be returned
_yearuintyear the sneakers will be returned

checkSneaker returns the appraisal of a pair if the appraise function for the said code was called

parameter nametypedetails
_codeuintunique code of the sneakers

CheckReturnDate returns the date when the sneakers will be delivered back

parameter nametypedetails
_codeuintunique code of the sneakers

withdraw withdraw function for the owner

Buy
Reviewed by Modex
Buy Contract Test Contract

Create an account or login to purchase this smart contract