Skip to content

Instantly share code, notes, and snippets.

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