Skip to content

Instantly share code, notes, and snippets.

View daniloraisi's full-sized avatar
🖖
Live long and prosper...

Danilo Tenorio Raisi daniloraisi

🖖
Live long and prosper...
View GitHub Profile
@daniloraisi
daniloraisi / LemonadeStand.sol
Created January 6, 2022 10:46
Lemonade Stand Supply Chain Smart Contract
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;
contract LemonadeStand {
address owner;
uint skuCount;
enum State { ForSale, Sold, Shipped }
struct Item {
[%bs.raw {|require("bootstrap/dist/css/bootstrap.min.css")|}];
type complex = {
value: string,
className: string
};
module BtnColorContext =
Context.MakePair({
type t = complex;