Skip to content

Instantly share code, notes, and snippets.

@singla108
singla108 / Main.hs
Created June 10, 2021 06:54
Crowdfunding
-- | Crowdfunding contract implemented using the [[Plutus]] interface.
-- This is the fully parallel version that collects all contributions
-- in a single transaction. This is, of course, limited by the maximum
-- number of inputs a transaction can have.
{-# LANGUAGE AllowAmbiguousTypes #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE FlexibleContexts #-}
@singla108
singla108 / blockly.xml
Last active June 10, 2021 06:32
Cardano-Sample-Contract
When
[Case
(Deposit
(Role "recipient")
(Role "donor")
(Token "" "")
(Constant 1000)
)
(Pay
(Role "recipient")
### Keybase proof
I hereby claim:
* I am singla108 on github.
* I am ashish_singla (https://keybase.io/ashish_singla) on keybase.
* I have a public key ASBFcTOMMiVCHBsmPFmEFJ_m5v5eU4-sty-FqbFW_Si5Lwo
To claim this, I am signing this object: