Skip to content

Instantly share code, notes, and snippets.

@ariady-putra
Created July 13, 2022 19:55
Show Gist options
  • Select an option

  • Save ariady-putra/bb04360d30f940c151e00ba6caf3e74a to your computer and use it in GitHub Desktop.

Select an option

Save ariady-putra/bb04360d30f940c151e00ba6caf3e74a to your computer and use it in GitHub Desktop.
Exercise Project
{"valueParameterInfo":[],"slotParameterDescriptions":[],"roleDescriptions":[],"contractType":"Other","contractShortDescription":"","contractName":"","contractLongDescription":"","choiceInfo":[]}
When
[Case
(Deposit
(Role "escrow")
(Role "buyer")
(Token "" "")
(ConstantParam "itemPrice")
)
(When
[Case
(Choice
(ChoiceId
"deliver items confirmation"
(Role "seller")
)
[Bound 1 1]
)
(When
[Case
(Choice
(ChoiceId
"receive items confirmation"
(Role "buyer")
)
[Bound 1 1]
)
(Pay
(Role "escrow")
(Account (Role "seller"))
(Token "" "")
(ConstantParam "itemPrice")
Close
)]
30
(Pay
(Role "escrow")
(Account (Role "seller"))
(Token "" "")
(ConstantParam "itemPrice")
Close
)
)]
20
(Pay
(Role "escrow")
(Account (Role "buyer"))
(Token "" "")
(ConstantParam "itemPrice")
Close
)
)]
10 Close
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment