Skip to content

Instantly share code, notes, and snippets.

@edsko
Last active August 3, 2022 11:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edsko/ee05c6db65606bda2b88f3ece67113c6 to your computer and use it in GitHub Desktop.
Save edsko/ee05c6db65606bda2b88f3ece67113c6 to your computer and use it in GitHub Desktop.
Simple token transfer
{"valueParameterInfo":[],"timeParameterDescriptions":[],"roleDescriptions":[],"contractType":"Other","contractShortDescription":"Unknown","contractName":"Unknown","contractLongDescription":"We couldn't find information about this contract","choiceInfo":[]}
When
[Case
(Deposit
(Role "A")
(Role "A")
(Token "" "SHARE")
(Constant 10)
)
(When
[Case
(Deposit
(Role "A")
(Role "B")
(Token "" "")
(Constant 100000000)
)
(Pay
(Role "A")
(Party (Role "B"))
(Token "" "SHARE")
(Constant 10)
Close
)]
(TimeParam "timeout")
Close
)]
(TimeParam "timeout")
Close
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment