Skip to content

Instantly share code, notes, and snippets.

View jfbosch's full-sized avatar

Jacques Bosch jfbosch

View GitHub Profile
@jfbosch
jfbosch / Playground.hs
Created June 6, 2021 10:26
Plutus Playground Smart Contract
-- Vesting scheme as a PLC contract
import Control.Monad (void, when)
import qualified Data.Map as Map
import qualified Data.Text as T
import Language.Plutus.Contract hiding (when)
import qualified Language.Plutus.Contract.Typed.Tx as Typed
import qualified Language.PlutusTx as PlutusTx
import Language.PlutusTx.Prelude hiding (Semigroup (..), fold)
import Ledger (Address, PubKeyHash, Slot (Slot), Validator, pubKeyHash)