Household Inventory

UTILITYTOOLSDOCUMENTS

Contract purpose

This smart contract keeps a record of household items.

Exposed methods and variables

owner address of house/apartment owner

list returns the details about a particular item identified by an id

addItem called by the owner to add a new item to the list and returns a unique id for the item

parameter nametypedetails
_descriptionstringdescription of the item
_priceintegerprice of the item (either its value or how much the owner paid for it
_ownDateintegerthe date from the owner has the specific item

itemLost allows the manager to mark an item as lost

parameter nametypedetails
idintegerunique identifier of the item

itemFound allows the manager to mark a lost item as found

parameter nametypedetails
idintegerunique identifier of the item

itemSold allows the manager to mark an item as sold

parameter nametypedetails
idintegerunique identifier of the item

clearItem allows the manager to remove an item from the list by clearing all the details about it

parameter nametypedetails
idintegerunique identifier of the item
Buy
Reviewed by Modex
Buy Contract Test Contract

Create an account or login to purchase this smart contract