Skip to content

Instantly share code, notes, and snippets.

contract Order{
address owner;
uint timestamp;
function Order(){
owner = msg.sender;
timestamp = now;
}
}
contract Billboard{
uint minimumBid = 10;
uint minimumBidDelta = 10;
Slot[] slots; //an array of slots. Each slot is one period of time (for example one day)
struct Slot{
address winner; // winner of the slot
uint bid; // amount of wei the winner bid