Skip to content

Instantly share code, notes, and snippets.

View aerohit's full-sized avatar

Rohit Saxena aerohit

View GitHub Profile
@aerohit
aerohit / Playground.hs
Created December 10, 2021 09:23
Plutus Playground Smart Contract
-- Vesting scheme as a PLC contract
import Control.Lens (view)
import Control.Monad (void, when)
import Data.Default (Default (def))
import Data.Map qualified as Map
import Data.Text qualified as T
import Ledger (Address, POSIXTime, POSIXTimeRange, PubKeyHash, Validator)
import Ledger.Ada qualified as Ada
import Ledger.Constraints (TxConstraints, mustBeSignedBy, mustPayToTheScript, mustValidateIn)