Skip to content

Instantly share code, notes, and snippets.

View ramanan12345's full-sized avatar

Venkata ramanan ramanan12345

  • Insurance
  • Bangalore india
View GitHub Profile
@ramanan12345
ramanan12345 / Playground.hs
Last active July 10, 2019 23:07
Plutus Playground Smart Contract
-- Contract endpoints that generate different kinds of errors for the log:
-- logAMessage produces a log message from a wallet
-- submitInvalidTxn submits an invalid txn which should result in a
-- "Validation failed" message throwWalletAPIError throws an error from
-- a wallet (client)
import Language.PlutusTx.Prelude
import qualified Data.Map as Map
import qualified Data.Set as Set