Advertisement
Guest User

Untitled

a guest
Apr 20th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. pragma solidity ^0.5.0;
  2.  
  3. contract SolidityCafe {
  4. // owner of the contract
  5. address payable owner;
  6. // description of items on the menu
  7. struct ItemDescr {
  8. string name;
  9. uint price;
  10. string ingredients;
  11. bool hot;
  12. }
  13. // menu
  14. ItemDescr[] public menu;
  15. // list of loyal customers with their points
  16. mapping(address => uint) loyalCustomers;
  17. // event emitted when payment is done
  18. event LogPayment(address _address, uint amount);
  19.  
  20. constructor() public {
  21. owner = msg.sender;
  22. }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement