Skip to content

Instantly share code, notes, and snippets.

@marco-martins
Last active June 7, 2022 14:54
Show Gist options
  • Select an option

  • Save marco-martins/114243ba6b7151f62d724255f6d28c3c to your computer and use it in GitHub Desktop.

Select an option

Save marco-martins/114243ba6b7151f62d724255f6d28c3c to your computer and use it in GitHub Desktop.
Simple contract
{"valueParameterInfo":[],"timeParameterDescriptions":[],"roleDescriptions":[],"contractType":"Other","contractShortDescription":"Simple contract example","contractName":"Simple contract","contractLongDescription":"The giver pay to there account 100 Ada and the receiver get's all Ada from the giver account","choiceInfo":[]}
When
[Case
(Deposit
(Role "giver")
(Role "giver")
(Token "" "")
(Constant 100000000)
)
(Pay
(Role "giver")
(Party (Role "receiver"))
(Token "" "")
(AvailableMoney
(Role "giver")
(Token "" "")
)
Close
)]
1672583940000 Close
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment