Skip to content

Instantly share code, notes, and snippets.

@mayorityz
Created July 11, 2022 04:55
Show Gist options
  • Save mayorityz/7b5c7f4abc900cef47c27585ee2cb010 to your computer and use it in GitHub Desktop.
Save mayorityz/7b5c7f4abc900cef47c27585ee2cb010 to your computer and use it in GitHub Desktop.
Plutus Playground Smart Contract
import Data.Text qualified as T
import Playground.Contract
import Plutus.Contract
import PlutusTx.Prelude
import Prelude qualified as Haskell
hello :: Contract () EmptySchema T.Text ()
hello = logInfo @Haskell.String "Hello, world"
endpoints :: Contract () EmptySchema T.Text ()
endpoints = hello
type DummySchema = Endpoint "dummy" ()
mkSchemaDefinitions ''DummySchema
$(mkKnownCurrencies [])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment