Professional Documents
Culture Documents
Ink Contract State Diagram: Transaction With Mediator
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
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