Skip to content

Commit 8eeb79e

Browse files
committed
Add development fee event
* Add initiator on dispute event
1 parent 33100c6 commit 8eeb79e

File tree

2 files changed

+51
-0
lines changed

2 files changed

+51
-0
lines changed

src/dispute.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ Here is an example of the event sent by Mostro:
7272
"tags": [
7373
["d", "<Dispute Id>"],
7474
["s", "initiated"],
75+
["initiator", "seller"], // seller or buyer
7576
["y", "mostro"],
7677
["z", "dispute"]
7778
],
@@ -162,6 +163,7 @@ Also Mostro will broadcast a new addressable dispute event to update the dispute
162163
"tags": [
163164
["d", "<Dispute Id>"],
164165
["s", "in-progress"],
166+
["initiator", "seller"], // seller or buyer
165167
["y", "mostro"],
166168
["z", "dispute"]
167169
],

src/other_events.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,3 +154,52 @@ The operator of a Mostro instance decides which relays the events from that inst
154154
```
155155

156156
The `r` label indicates the relays through which the Mostro instance is publishing its events.
157+
158+
# Development Fee
159+
160+
The development fee mechanism provides sustainable funding for Mostro development by automatically sending a configurable percentage of the Mostro fee to a lightning address on each successful order, this a regular event with kind 8383 which is expected to be stored by relays.
161+
162+
```json
163+
[
164+
"EVENT",
165+
"RAND",
166+
{
167+
"id": "<Event id>",
168+
"tags": [
169+
[
170+
"order-id",
171+
"<Order id>"
172+
],
173+
[
174+
"amount",
175+
"8" // sats amount
176+
],
177+
[
178+
"hash",
179+
"ca2f47b7c2169b8c42ef135e8ee32706e1fd3722b65e5a16f21ce675d2affb6b"
180+
],
181+
[
182+
"destination",
183+
"dev@mostro.network"
184+
],
185+
[
186+
"network",
187+
"mainnet"
188+
],
189+
[
190+
"y",
191+
"mostro"
192+
],
193+
[
194+
"z",
195+
"dev-fee-payment"
196+
]
197+
],
198+
"content": "",
199+
"sig": "<Mostro's signature>",
200+
"pubkey": "<Mostro's pubkey>",
201+
"created_at": 1768256716,
202+
"kind": 8383
203+
}
204+
]
205+
```

0 commit comments

Comments
 (0)