Fast Food Delivery

FINANCIALUTILITYTOOLS

Exposed Methods

addFoodToMenu owner adds food to the menu

parameter nametypedetails
_namestringname of the dish
_ingredientsstringingredients of the dish
_priceuintprice of the dish
_vegetarianboolstores if the food is for vegetarians or not

register function for the customers to set their location

parameter nametypedetails
_locationstringphysical address of the user

addToCart customer adds a product to the cart

parameter nametypedetails
_namestringname of the dish
_servingsuintnumber of the dishes of the same type

clearCart customer clears the cart

CartBalance shows the balance for the customer's cart

showCartFood shows the food in the customer's cart

parameter nametypedetails
_addraddressetherum address of the customer
_indexuintindex of a certain dish stored in the cart

showFood returns all the information regarding a food

parameter nametypedetails
_namestringname of the dish

showAddress shows the physical address of a customer

parameter nametypedetails
_addraddressetherum address of the customer

placeOrder customer pays for the order and places it

OrderDelivered the owner confirms the delivery

parameter nametypedetails
_addraddressetherum address of the customer

outOfStock owner changes the status of a food to unavailable

parameter nametypedetails
_namestringname of the dish

restock owner changes the status of a food to available

parameter nametypedetails
_namestringname of the dish

withdraw withdraw function for the owner

Buy
Reviewed by Modex
Buy Contract Test Contract

Create an account or login to purchase this smart contract