Wine Bottles Record

DOCUMENTSUTILITYTOOLS

Contract purpose

Contract that keeps track of expansive wine bottles

Contract parameters

manager : address of the list manager

Exposed methods and variables

addBottle : allows the manager to introduce a new bottle in the list

parameter nametypedetails
_seriesNumberintegerthe unique series number of the bottle
_originCountrystringthe name of wine origin country
_productionDatestringthe date when the wine was produced
_producerstringthe name of the wine producer
_priceintegerthe price of the bottle

bottleOpened : marks the bottle as opened

parameter nametypedetails
_seriesNumberintegerthe unique series number of the bottle

getBottleDetails : returns the details of a particular bottle

parameter nametypedetails
_seriesNumberintegerthe unique series number of the bottle

isBottleOpened : returns true if the bottle was opened and false otherwise

parameter nametypedetails
_seriesNumberintegerthe unique series number of the bottle
Buy
Reviewed by Modex
Buy Contract Test Contract

Create an account or login to purchase this smart contract