Skip to content

Instantly share code, notes, and snippets.

@kangks
Created March 13, 2021 14:01
Show Gist options
  • Save kangks/37a69d6d33a193ff4f4a130dcef30cc6 to your computer and use it in GitHub Desktop.
Save kangks/37a69d6d33a193ff4f4a130dcef30cc6 to your computer and use it in GitHub Desktop.
Plutus Playground Smart Contract
-- https://docs.cardano.org/projects/plutus/en/latest/tutorials/basic-validators.html#basic-validators-tutorial
-- https://edu.clio.one/lessons/writing-your-first-plutus-smart-contract/lessons/writing-your-first-plutus-code/
module SimpleValidator where
import Data.Text
-- import Language.Plutus.Contract
import Language.PlutusTx
--import qualified Language.PlutusTx as PlutusTx
import Playground.Contract
--import Ledger
--import qualified Language.PlutusTx as PlutusTx
import Ledger
import Ledger.Typed.Scripts
--theValidator :: ValidatorScript
theValidator :: Ledger.Typed.Scripts.ScriptInstance
theValidator = ValidatorScript (fromCompiledCode $$(Language.PlutusTx.compile [|| \(a :: ()) (b :: ()) (c :: ()) -> () ||]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment