Skip to content

Instantly share code, notes, and snippets.

@brunjlar
Created May 31, 2022 21:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 8 You must be signed in to fork a gist
  • Save brunjlar/28b514c510583de1716e8d9ae8d9bec0 to your computer and use it in GitHub Desktop.
Save brunjlar/28b514c510583de1716e8d9ae8d9bec0 to your computer and use it in GitHub Desktop.
MPP - Simple payment (Parameters)
{"valueParameterInfo":[["Amount",{"valueParameterFormat":{"contents":[6,"ada"],"tag":"DecimalFormat"},"valueParameterDescription":"Amount to be transferred from Giver to Receiver."}]],"timeParameterDescriptions":[["Deadline","Time by which the Giver's deposit has to be made."]],"roleDescriptions":[["Giver","The party making the payment."],["Receiver","The party receiving the payment."]],"contractType":"Other","contractShortDescription":"Giver makes a payment to Receiver.","contractName":"MPP - Simple payment (Close)","contractLongDescription":"Giver makes a payment to Receiver.","choiceInfo":[]}
When
[Case
(Deposit
(Role "Receiver")
(Role "Giver")
(Token "" "")
(ConstantParam "Amount")
)
Close ]
(TimeParam "Deadline")
Close
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment