Skip to content

Instantly share code, notes, and snippets.

@hunzai
Last active September 15, 2021 10:10
Show Gist options
  • Save hunzai/c9cf6b1acded559fa468d86b54c409c3 to your computer and use it in GitHub Desktop.
Save hunzai/c9cf6b1acded559fa468d86b54c409c3 to your computer and use it in GitHub Desktop.
giveAway
When
[Case
(Deposit
(Role "me")
(Role "buyer")
(Token "" "")
(Constant 10)
)
(Pay
(Role "me")
(Party (Role "seller"))
(Token "" "")
(Constant 8)
Close
)]
(SlotParam "5")
Close
{"valueParameterDescriptions":[],"slotParameterDescriptions":[],"roleDescriptions":[],"contractType":"O","contractName":"gift","contractDescription":"send free ada","choiceDescriptions":[]}
When
[Case
(Deposit
(Role "me")
(Role "buyer")
(Token "" "")
(Constant 10)
)
(Pay
(Role "me")
(Party (Role "seller"))
(Token "" "")
(Constant 8)
Close
)]
(SlotParam "50")
Close
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment