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/admin_cancel_order.md
+3-4Lines changed: 3 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ Mostro will send this message to the both parties buyer/seller and to the admin:
30
30
31
31
## Mostro updates addressable events
32
32
33
-
Mostro will publish two addressable events, one for the order to update the status to `canceled-by-admin`, this means that the hold invoice was canceled and the seller's funds were returned:
33
+
Mostro will publish two addressable events, one for the order to update the status to `canceled`, this means that the hold invoice was canceled and the seller's funds were returned:
34
34
35
35
```json
36
36
[
@@ -45,7 +45,7 @@ Mostro will publish two addressable events, one for the order to update the stat
45
45
["d", "<Order Id>"],
46
46
["k", "sell"],
47
47
["f", "VES"],
48
-
["s", "canceled-by-admin"],
48
+
["s", "canceled"],
49
49
["amt", "7851"],
50
50
["fa", "100"],
51
51
["pm", "face to face"],
@@ -59,8 +59,7 @@ Mostro will publish two addressable events, one for the order to update the stat
59
59
]
60
60
```
61
61
62
-
And updates addressable dispute event with status `seller-refunded`:
63
-
62
+
The second event updates the addressable dispute event with status `seller-refunded`:
Copy file name to clipboardExpand all lines: src/admin_settle_order.md
+2-31Lines changed: 2 additions & 31 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,38 +28,9 @@ Mostro will send this message to the both parties buyer/seller and to the admin:
28
28
}
29
29
```
30
30
31
-
## Mostro updates addressable events
31
+
## Mostro updates addressable dispute event
32
32
33
-
Mostro will publish two addressable events, one for the order to update the status to `settled-by-admin`, this means that the hold invoice paid by the seller was settled:
Copy file name to clipboardExpand all lines: src/overview.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
## Overview
2
2
3
-
In order to have a shared order's book, Mostro daemon send [Addressable Events](https://github.com/nostr-protocol/nips/blob/master/01.md#kinds) with `38383` as event `kind`, you can find more details about that specific event [here](./order-event.md)
3
+
In order to have a shared order's book, Mostro daemon send [Addressable Events](https://github.com/nostr-protocol/nips/blob/master/01.md#kinds) with `38383` as event `kind`, you can find more details about that specific event [here](./order_event.md)
Copy file name to clipboardExpand all lines: src/release.md
+2-31Lines changed: 2 additions & 31 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,7 +54,7 @@ And a message to the buyer to let him know that the sats were released:
54
54
55
55
## Buyer receives sats
56
56
57
-
Right after seller release sats Mostro will try to pay the buyer's lightning invoice, if the payment is successful Mostro will send a message to the buyer indicating that the purchase was completed:
57
+
Right after seller release sats Mostro will attempt to pay the buyer's lightning invoice. When the payment succeeds, Mostro will send a message to the buyer indicating that the purchase was completed:
58
58
59
59
```json
60
60
{
@@ -67,36 +67,7 @@ Right after seller release sats Mostro will try to pay the buyer's lightning inv
67
67
}
68
68
```
69
69
70
-
Mostro updates the addressable event with `d` tag `<Order Id>` to change the status to `settled-hold-invoice`:
71
-
72
-
```json
73
-
[
74
-
"EVENT",
75
-
"RAND",
76
-
{
77
-
"id": "<Event id>",
78
-
"pubkey": "<Mostro's pubkey>",
79
-
"created_at": 1702549437,
80
-
"kind": 38383,
81
-
"tags": [
82
-
["d", "<Order Id>"],
83
-
["k", "sell"],
84
-
["f", "VES"],
85
-
["s", "settled-hold-invoice"],
86
-
["amt", "7851"],
87
-
["fa", "100"],
88
-
["pm", "face to face"],
89
-
["premium", "1"],
90
-
["y", "mostro"],
91
-
["z", "order"]
92
-
],
93
-
"content": "",
94
-
"sig": "<Mostro's signature>"
95
-
}
96
-
]
97
-
```
98
-
99
-
Mostro will then attempt to pay the buyer's invoice, if the payment successds Mostro updates the addressable event with `d` tag `<Order Id>` to change the status to `success`:
70
+
Mostro updates the addressable event with the `d` tag `<Order Id>` to change the status to `success`:
0 commit comments