Skip to content

Instantly share code, notes, and snippets.

@ajuggler
Created September 8, 2022 19:13
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 ajuggler/2954ebfc404a7824fa38eec60ffc2565 to your computer and use it in GitHub Desktop.
Save ajuggler/2954ebfc404a7824fa38eec60ffc2565 to your computer and use it in GitHub Desktop.
MyEscrow
{"valueParameterInfo":[],"timeParameterDescriptions":[],"roleDescriptions":[],"contractType":"Other","contractShortDescription":"Unknown","contractName":"Unknown","contractLongDescription":"We couldn't find information about this contract","choiceInfo":[]}
When
[Case
(Deposit
(Role "Seller")
(Role "Buyer")
(Token "" "")
(ConstantParam "price")
)
(When
[Case
(Choice
(ChoiceId
"item received"
(Role "Buyer")
)
[Bound 1 1]
)
Close , Case
(Choice
(ChoiceId
"raise dispute"
(Role "Buyer")
)
[Bound 0 0]
)
(Pay
(Role "Seller")
(Account (Role "Buyer"))
(Token "" "")
(ConstantParam "price")
(When
[Case
(Choice
(ChoiceId
"accept dispute"
(Role "Seller")
)
[Bound 0 0]
)
Close , Case
(Choice
(ChoiceId
"dispute dispute"
(Role "Seller")
)
[Bound 1 1]
)
(When
[Case
(Choice
(ChoiceId
"agree with buyer"
(Role "Third_Party")
)
[Bound 0 0]
)
Close , Case
(Choice
(ChoiceId
"agree with seller"
(Role "Third_Party")
)
[Bound 1 1]
)
(Pay
(Role "Buyer")
(Account (Role "Seller"))
(Token "" "")
(ConstantParam "price")
Close
)]
(TimeParam "dispute_dispute_deadline")
Close
)]
(TimeParam "dispute_dispute_deadline")
Close
)
)]
(TimeParam "dispute_deadline")
Close
)]
(TimeParam "dispute_deadline")
Close
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment