Skip to content

Instantly share code, notes, and snippets.

@edsko
Last active August 3, 2022 12: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 edsko/66e160c2cefda886c6c0d6970a7370a1 to your computer and use it in GitHub Desktop.
Save edsko/66e160c2cefda886c6c0d6970a7370a1 to your computer and use it in GitHub Desktop.
Fiat token transfer
{"valueParameterInfo":[],"timeParameterDescriptions":[],"roleDescriptions":[],"contractType":"Other","contractShortDescription":"Unknown","contractName":"Unknown","contractLongDescription":"We couldn't find information about this contract","choiceInfo":[]}
When
[Case
(Deposit
(Role "A")
(Role "A")
(Token "" "SHARE")
(Constant 10)
)
(When
[Case
(Choice
(ChoiceId
"B_PAID"
(Role "A")
)
[Bound 0 0]
)
(Pay
(Role "A")
(Party (Role "B"))
(Token "" "SHARE")
(Constant 10)
Close
)]
(TimeParam "timeout 1 (payment)")
(When
[Case
(Choice
(ChoiceId
"ARBITRATION"
(Role "DAO")
)
[Bound 0 1]
)
(If
(ValueEQ
(ChoiceValue
(ChoiceId
"ARBITRATION"
(Role "DAO")
))
(Constant 1)
)
(Pay
(Role "A")
(Party (Role "B"))
(Token "" "SHARE")
(Constant 10)
Close
)
Close
)]
(TimeParam "timeout 2 (overall)")
Close
)
)]
(TimeParam "timeout 2 (overall)")
Close
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment