Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@payers1
Created September 4, 2017 14:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save payers1/1d9643b01eb41f8f4f143533a6f4b58a to your computer and use it in GitHub Desktop.
Save payers1/1d9643b01eb41f8f4f143533a6f4b58a to your computer and use it in GitHub Desktop.
milk-contract-stubbed
pragma solidity ^0.4.6;
contract MilkProcurement {
bool public outOfMilk = false;
address public milkOutageNotifier;
address public milkOutageVerifier;
address public milkGetter;
address public milkVerifier;
uint milkBarcode;
mapping (address => uint) public snTokenBalances;
event Notification(string message);
function recordMilkOutage() { ... }
function verifyMilkOutage() { ... }
function recordGotMilk(uint _milkBarcode) { ... }
function verifyGotMilk(uint _milkBarcode) { ... }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment