Skip to content

Instantly share code, notes, and snippets.

@ssbright
Created November 18, 2021 17:18
Show Gist options
  • Save ssbright/f82124d9036ee6fd7e6da550341098c6 to your computer and use it in GitHub Desktop.
Save ssbright/f82124d9036ee6fd7e6da550341098c6 to your computer and use it in GitHub Desktop.
Plutus Playground Smart Contract
import qualified Data.Text as T
import Playground.Contract
import Plutus.Contract
import PlutusTx.Prelude
import qualified Prelude as Haskell
--|Second test for making simple contract
-- | The address of the contract (the hash of its validator script).
contractAddress :: Address
contractAddress = Scripts.validatorAddress starterInstance
hello :: Contract () EmptySchema T.Text ()
hello = logInfo @Haskell.String "What does this even do?"
endpoints :: Contract () BlockchainActions T.Text ()
endpoints = hello
mkSchemaDefinitions ''BlockchainActions
$(mkKnownCurrencies [])
[0,[{"simulationWallets":[{"simulatorWalletWallet":{"getWallet":1},"simulatorWalletBalance":{"getValue":[[{"unCurrencySymbol":""},[[{"unTokenName":""},100]]]]}},{"simulatorWalletWallet":{"getWallet":2},"simulatorWalletBalance":{"getValue":[[{"unCurrencySymbol":""},[[{"unTokenName":""},100]]]]}}],"simulationName":"Hello, world","simulationId":1,"simulationActions":[{"blocks":1,"tag":"AddBlocks"}]}]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment