You are on page 1of 2

Ink Contract State Diagram

Transaction with Mediator

createTransaction()
createTransactionForBuyer()
State 1 revokeTransaction() State 5
Transaction initiated Transaction revoked by
buyer

acceptTransaction()
confirmTransaction() State 9
Transaction confirmed by
buyer

createTransactionForBuyerAndSeller()
State 2
refundTransaction() State 10
Transaction in progress
Transaction refunded by
seller

confirmTransactionAfterExpiry() State 11
Transaction finalized by
seller after expiry

disputeTransaction()

confirmTransaction() State 12
Marketplace Transaction finalized by
buyer after disputed
Seller
Buyer
State 3
refundTransaction() State 13
Mediator Transaction disputed
Transaction refunded by
After Expiry seller after disputed

refundTransactionAfterExpiry() State 14
Transaction refunded by
buyer after expiry

escalateDisputeToMediator()

confirmTransaction() State 15
Transaction finalized by
buyer after escalation

State 4
refundTransaction() State 16
Awaiting mediation
Transaction refunded by
seller after escalation

settleTransaction() State 17
Transaction settled
without mediator

refundTransactionByMediator() settleTransactionByMediator() confirmTransactionByMediator()

State 6 State 7 State 8


Transaction refunded by Transaction settled by Transaction confirmed by
mediator mediator mediator

Copyright © 2017 Listia Inc.


Ink Contract State Diagram
Transaction without Mediator

createTransaction()
createTransactionForBuyer()
State 1 revokeTransaction() State 5
Transaction initiated Transaction revoked by
buyer

acceptTransaction()

createTransactionForBuyerAndSeller()
State 9
Transaction confirmed

Marketplace
Seller
Buyer
Mediator
After Expiry

Copyright © 2017 Listia Inc.

You might also like