Last active
April 3, 2021 07:49
-
-
Save lokesh-acharya/e6a812d9a39a9f4c29c0e9cddb66bdb5 to your computer and use it in GitHub Desktop.
Plutus Playground Smart Contract
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import qualified Data.Text as T | |
| import Language.Plutus.Contract hiding (when) | |
| import Language.PlutusTx.Prelude | |
| import Playground.Contract | |
| -- | A 'Contract' that logs a message. | |
| hello :: Contract BlockchainActions T.Text () | |
| hello = logInfo @String "Hello, world" | |
| endpoints :: Contract BlockchainActions T.Text () | |
| endpoints = hello | |
| mkSchemaDefinitions ''BlockchainActions | |
| $(mkKnownCurrencies []) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [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"}]}]] |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Started learning Haskell !! 😄