Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

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