You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/cancel.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ A user can cancel an order created by himself and with status `pending` sending
6
6
{
7
7
"order": {
8
8
"version": 1,
9
-
"id": "ede61c96-4c13-4519-bf3a-dcf7f1e9d842",
9
+
"id": "<Order Id>",
10
10
"action": "cancel",
11
11
"payload": null
12
12
}
@@ -21,14 +21,14 @@ Mostro will send a message with action `cancel` confirming the order was cancele
21
21
{
22
22
"order": {
23
23
"version": 1,
24
-
"id": "ede61c96-4c13-4519-bf3a-dcf7f1e9d842",
24
+
"id": "<Order Id>",
25
25
"action": "canceled",
26
26
"payload": null
27
27
}
28
28
}
29
29
```
30
30
31
-
Mostro updates the parameterized replaceable event with `d` tag `ede61c96-4c13-4519-bf3a-dcf7f1e9d842` to change the status to `canceled`:
31
+
Mostro updates the parameterized replaceable event with `d` tag `<Order Id>` to change the status to `canceled`:
32
32
33
33
```json
34
34
[
@@ -40,7 +40,7 @@ Mostro updates the parameterized replaceable event with `d` tag `ede61c96-4c13-4
40
40
"created_at": 1702549437,
41
41
"kind": 38383,
42
42
"tags": [
43
-
["d", "ede61c96-4c13-4519-bf3a-dcf7f1e9d842"],
43
+
["d", "<Order Id>"],
44
44
["k", "sell"],
45
45
["f", "VES"],
46
46
["s", "canceled"],
@@ -68,7 +68,7 @@ A user can cancel an `active` order, but will need the counterparty to agree, le
68
68
{
69
69
"order": {
70
70
"version": 1,
71
-
"id": "ede61c96-4c13-4519-bf3a-dcf7f1e9d842",
71
+
"id": "<Order Id>",
72
72
"action": "cancel",
73
73
"payload": null
74
74
}
@@ -81,7 +81,7 @@ Mostro will send this message to the seller:
81
81
{
82
82
"order": {
83
83
"version": 1,
84
-
"id": "ede61c96-4c13-4519-bf3a-dcf7f1e9d842",
84
+
"id": "<Order Id>",
85
85
"action": "cooperative-cancel-initiated-by-you",
86
86
"payload": null
87
87
}
@@ -94,14 +94,14 @@ And this message to the buyer:
94
94
{
95
95
"order": {
96
96
"version": 1,
97
-
"id": "ede61c96-4c13-4519-bf3a-dcf7f1e9d842",
97
+
"id": "<Order Id>",
98
98
"action": "cooperative-cancel-initiated-by-peer",
99
99
"payload": null
100
100
}
101
101
}
102
102
```
103
103
104
-
Mostro updates the parameterized replaceable event with `d` tag `ede61c96-4c13-4519-bf3a-dcf7f1e9d842` to change the status to `cooperatively-canceled`:
104
+
Mostro updates the parameterized replaceable event with `d` tag `<Order Id>` to change the status to `cooperatively-canceled`:
105
105
106
106
```json
107
107
[
@@ -113,7 +113,7 @@ Mostro updates the parameterized replaceable event with `d` tag `ede61c96-4c13-4
113
113
"created_at": 1702549437,
114
114
"kind": 38383,
115
115
"tags": [
116
-
["d", "ede61c96-4c13-4519-bf3a-dcf7f1e9d842"],
116
+
["d", "<Order Id>"],
117
117
["k", "sell"],
118
118
["f", "VES"],
119
119
["s", "cooperatively-canceled"],
@@ -136,7 +136,7 @@ The buyer can accept the cooperative cancellation sending this message:
136
136
{
137
137
"order": {
138
138
"version": 1,
139
-
"id": "ede61c96-4c13-4519-bf3a-dcf7f1e9d842",
139
+
"id": "<Order Id>",
140
140
"action": "cancel",
141
141
"payload": null
142
142
}
@@ -149,7 +149,7 @@ And Mostro will send this message to both parties:
Copy file name to clipboardExpand all lines: src/dispute.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ A use can start a dispute in an order with status `active` or `fiat-sent` sendin
6
6
{
7
7
"order": {
8
8
"version": 1,
9
-
"id": "ede61c96-4c13-4519-bf3a-dcf7f1e9d842",
9
+
"id": "<Order Id>",
10
10
"action": "dispute",
11
11
"payload": null
12
12
}
@@ -21,10 +21,10 @@ Mostro will send this message to the seller:
21
21
{
22
22
"order": {
23
23
"version": 1,
24
-
"id": "ede61c96-4c13-4519-bf3a-dcf7f1e9d842",
24
+
"id": "<Order Id>",
25
25
"action": "dispute-initiated-by-you",
26
26
"payload": {
27
-
"dispute": "efc75871-2568-40b9-a6ee-c382d4d6de01"
27
+
"dispute": "<Dispute Id>"
28
28
}
29
29
}
30
30
}
@@ -36,16 +36,16 @@ And here is the message to the buyer:
36
36
{
37
37
"order": {
38
38
"version": 1,
39
-
"id": "ede61c96-4c13-4519-bf3a-dcf7f1e9d842",
39
+
"id": "<Order Id>",
40
40
"action": "dispute-initiated-by-peer",
41
41
"payload": {
42
-
"dispute": "efc75871-2568-40b9-a6ee-c382d4d6de01"
42
+
"dispute": "<Dispute Id>"
43
43
}
44
44
}
45
45
}
46
46
```
47
47
48
-
Mostro will not update the addressable event with `d` tag `ede61c96-4c13-4519-bf3a-dcf7f1e9d842` to change the status to `dispute`, this is because the order is still active, the dispute is just a way to let the admins and the other party know that there is a problem with the order.
48
+
Mostro will not update the addressable event with `d` tag `<Order Id>` to change the status to `dispute`, this is because the order is still active, the dispute is just a way to let the admins and the other party know that there is a problem with the order.
49
49
50
50
## Mostro send a addressable event to show the dispute
51
51
@@ -61,7 +61,7 @@ Here is an example of the event sent by Mostro:
61
61
"created_at": 1703016565,
62
62
"kind": 38383,
63
63
"tags": [
64
-
["d", "efc75871-2568-40b9-a6ee-c382d4d6de01"],
64
+
["d", "<Dispute Id>"],
65
65
["s", "initiated"],
66
66
["y", "mostrop2p"],
67
67
["z", "dispute"]
@@ -72,13 +72,13 @@ Here is an example of the event sent by Mostro:
72
72
]
73
73
```
74
74
75
-
Mostro admin will see the dispute and can take it using the dispute `Id` from `d` tag, in this case `efc75871-2568-40b9-a6ee-c382d4d6de01`.
75
+
Mostro admin will see the dispute and can take it using the dispute `Id` from `d` tag, here how should look the message sent by the admin:
76
76
77
77
```json
78
78
{
79
79
"dispute": {
80
80
"version": 1,
81
-
"id": "efc75871-2568-40b9-a6ee-c382d4d6de01",
81
+
"id": "<Dispute Id>",
82
82
"action": "admin-take-dispute",
83
83
"payload": null
84
84
}
@@ -91,11 +91,11 @@ Mostro will send a confirmation message to the admin with the order details:
91
91
{
92
92
"dispute": {
93
93
"version": 1,
94
-
"id": "efc75871-2568-40b9-a6ee-c382d4d6de01",
94
+
"id": "<Dispute Id>",
95
95
"action": "admin-took-dispute",
96
96
"payload": {
97
97
"order": {
98
-
"id": "ede61c96-4c13-4519-bf3a-dcf7f1e9d842",
98
+
"id": "<Order Id>",
99
99
"kind": "sell",
100
100
"status": "active",
101
101
"amount": 7851,
@@ -125,7 +125,7 @@ Also Mostro will broadcast a new addressable dispute event to update the dispute
0 commit comments