Created
May 12, 2021 22:04
-
-
Save bwbush/43e8a484492de0448c3b776d3b910e10 to your computer and use it in GitHub Desktop.
PIGY Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
When | |
[Case | |
(Deposit | |
(Role "BOBS POOL") | |
(Role "BOBS POOL") | |
(Token "2aa9c1557fcf8e7caa049fa0911a8724a1cdaf8037fe0b431c6ac664" "PIGY") | |
(ConstantParam "reward") | |
) | |
(When | |
[Case | |
(Choice | |
(ChoiceId | |
"ALICE DELEGATED FOR 2 EPOCHS" | |
(Role "CHARLIE THE ORACLE") | |
) | |
[Bound 1 1] | |
) | |
(Pay | |
(Role "BOBS POOL") | |
(Party (Role "ALICE THE DELEGATOR")) | |
(Token "2aa9c1557fcf8e7caa049fa0911a8724a1cdaf8037fe0b431c6ac664" "PIGY") | |
(ConstantParam "reward") | |
Close | |
), Case | |
(Choice | |
(ChoiceId | |
"ALICE DELEGATED FOR 2 EPOCHS" | |
(Role "CHARLIE THE ORACLE") | |
) | |
[Bound 0 0] | |
) | |
Close ] | |
(SlotParam "how many slots to wait") | |
Close | |
)] | |
(SlotParam "how many slots to wait") | |
Close |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"valueParameterDescriptions":[],"slotParameterDescriptions":[],"roleDescriptions":[],"contractType":"O","contractName":"","contractDescription":"","choiceDescriptions":[]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment