Skip to content

Instantly share code, notes, and snippets.

@NizanHorsefield
Last active August 15, 2021 12:14
Show Gist options
  • Save NizanHorsefield/274a83f09f9a1d4c115f976ca48ebf3f to your computer and use it in GitHub Desktop.
Save NizanHorsefield/274a83f09f9a1d4c115f976ca48ebf3f to your computer and use it in GitHub Desktop.
DataMine
When
[Case
(Deposit
(Role "agent")
(Role "worker")
(Token "" "")
(Constant 50)
)
(When
[Case
(Choice
(ChoiceId
"engagementaction"
(Role "worker")
)
[Bound 1 2]
)
(If
(ValueEQ
(ChoiceValue
(ChoiceId
"engagementaction"
(Role "worker")
))
(Constant 1)
)
(Pay
(Role "worker")
(Party (Role "agent"))
(Token "" "")
(Constant 25)
Close
)
(If
(ValueEQ
(ChoiceValue
(ChoiceId
"engagementaction"
(Role "worker")
))
(Constant 2)
)
(Pay
(Role "worker")
(Party (Role "agent"))
(Token "" "")
(Constant 10)
Close
)
Close
)
)]
8 Close
)]
7 Close
{"valueParameterDescriptions":[],"slotParameterDescriptions":[],"roleDescriptions":[],"contractType":"O","contractName":"","contractDescription":"","choiceDescriptions":[]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment