Play — Marlowe interactive prototype

MarloweBlockly
Simulate
Reset
Expiration slot: 2
  1. 1 When
  2. 2     [Case
  3. 3         (Deposit
  4. 4             (Role "Seller")
  5. 5             (Roel "Buyer")
  6. 6             (Token "" "")
  7. 7             (ConstantParam "Price")
  8. 8         )
  9. 9         (When
  10. 10             [Case
  11. 11                 (Choice
  12. 12                     (ChoiceId "Everything is alright" (Role "Buyer"))
  13. 13                     [Bound 0 0]
  14. 14                 )
  15. 15                 Close
  16. 16             , Case
  17. 17                 (Choice
  18. 18                     (ChoiceId "Report problem" (Role "Buyer"))
  19. 19                     [Bound 1 1]
  20. 20                 )
  21. 21                 (Pay
  22. 22                     (Role "Seller")
  23. 23                     (Party (Role "Buyer"))
  24. 24                     (Token "" "")
  25. 25                     (ConstantParam "Price")
  26. 26                     Close
  27. 27                 )
  28. 28             ]
  29. 29             (TimeParam "Complaint deadline")
  30. 30             Close
  31. 31         )
  32. 32     ]
  33. 33     (TimeParam "Payment deadline")
  34. 34     Close
When
Deposit
byRoleBuyer
the amount ofConstantParamPrice
currencyada
into account ofRoleSeller
then
When
Choice
nameEverything is alright
byRoleBuyer
bounds0to0
then
Close
Choice
nameReport problem
byRoleBuyer
bounds1to1
then
Pay
from account ofRoleSeller
toPartyBuyer
the amount ofConstantParamPrice
then
Close
after Complaint deadline
Close
after Payment deadline
Close
Running simulation…
Step 1 Complete
Tasks Balances
Seller

Seller needs to accept your invitation to join the escrow.

Waiting for Seller…
Seller Just now

Seller accepted the invitation.

Your wallet ₳100.03
Holding pot ₳0.00

Funds are held securely by the smart contract until they're released.

Step 2 Complete
Tasks Balances
Buyer's turn (you)

Deposit ₳50 into escrow. The funds are held by the smart contract until you confirm.

Deposit ₳50
Buyer's turn (you) Just now

You deposited ₳50 into escrow.

Your wallet ₳100.03
Holding pot ₳0.00

Funds are held securely by the smart contract until they're released.

Step 3 Complete
Tasks Balances
Buyer's turn (you)

Goods received? Confirm everything's alright to release the price to the Seller.

Confirm everything's alright
Buyer's turn (you) Just now

You confirmed everything's alright.

Your wallet ₳50.03
Holding pot ₳50

Funds are held securely by the smart contract until they're released.

Step 4 Complete

Contract complete

The escrow is settled. The price has been released to the Seller.

Start a new smart contract
1 1 No problems found

Please view this prototype on a desktop

Play is a desktop application and is designed for larger screens. Open this page on a desktop computer to try the interactive prototype. Already on one? Your browser zoom may be narrowing the view — try zooming out.

Back to hepton.design