Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/restore_session.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ Mostro will respond with a message containing all non-finalized orders (e.g., st
"dispute_id": "<Dispute Id>",
"order_id": "<Order Id>",
"trade_index": 4,
"status": "initiated"
"status": "initiated",
"initiator": "seller"
}
]
}
Expand All @@ -68,7 +69,7 @@ Mostro will respond with a message containing all non-finalized orders (e.g., st

* `restore_data`: Wrapper object that contains the session recovery data.
* `restore_data.orders`: An array of active or ongoing orders with their `id`, `trade_index`, and current `status`.
* `restore_data.disputes`: An array of ongoing disputes with `dispute_id`, the associated `order_id`, and `trade_index` and current `status` of the dispute.
* `restore_data.disputes`: An array of ongoing disputes with `dispute_id`, the associated `order_id`, `trade_index`, current `status`, and `initiator` (`"buyer"`, `"seller"`, or `null` if unknown).

## Example Use Case

Expand All @@ -95,7 +96,7 @@ When switching to desktop, after restoring the mnemonic, the client sends `resto
{ "id": "xyz-999", "trade_index": 4, "status": "dispute" }
],
"disputes": [
{ "dispute_id": "dis-001", "order_id": "xyz-999", "trade_index": 4, "status": "initiated" }
{ "dispute_id": "dis-001", "order_id": "xyz-999", "trade_index": 4, "status": "initiated", "initiator": "seller" }
]
}
}
Expand Down