Skip to content

Instantly share code, notes, and snippets.

@juanemael
Last active January 9, 2023 13:06
Show Gist options
  • Save juanemael/e312fc1c028a411b200d1e6f5f07fa5f to your computer and use it in GitHub Desktop.
Save juanemael/e312fc1c028a411b200d1e6f5f07fa5f to your computer and use it in GitHub Desktop.
Marlowe Meet 1 - 2
{"valueParameterInfo":[],"timeParameterDescriptions":[],"roleDescriptions":[],"contractType":"Other","contractShortDescription":"Unknown","contractName":"Unknown","contractLongDescription":"We couldn't find information about this contract","choiceInfo":[]}
When
[Case
(Deposit
(Role "buyer")
(Role "buyer")
(Token "" "")
(Constant 1000)
)
(When
[Case
(Choice
(ChoiceId
"itemreceived"
(Role "buyer")
)
[Bound 1 2]
)
(If
(ValueEQ
(ChoiceValue
(ChoiceId
"itemreceived"
(Role "buyer")
))
(Constant 1)
)
(Pay
(Role "buyer")
(Account (Role "seller"))
(Token "" "")
(Constant 1000)
Close
)
Close
)]
1673272440000 Close
)]
1673275980000 Close
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment