Skip to content

Instantly share code, notes, and snippets.

@ajuggler
Last active June 9, 2022 17:56
Show Gist options
  • Save ajuggler/e8da8d81c58df9777139787a780c8412 to your computer and use it in GitHub Desktop.
Save ajuggler/e8da8d81c58df9777139787a780c8412 to your computer and use it in GitHub Desktop.
simple payment A
{"valueParameterInfo":[["Amount",{"valueParameterFormat":{"contents":[6,"ada"],"tag":"DecimalFormat"},"valueParameterDescription":"Amount to be transferred"}]],"timeParameterDescriptions":[],"roleDescriptions":[["Giver","Party making the payment"],["Receiver","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 "Giver")
(Role "Giver")
(Token "" "")
(ConstantParam "Amount")
)
(Pay
(Role "Giver")
(Party (Role "Receiver"))
(Token "" "")
(AvailableMoney
(Role "Giver")
(Token "" "")
)
Close
)]
1672584600000 Close
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment