Skip to content

Commit b27f72f

Browse files
authored
Merge pull request #33 from MostroP2P/add-days-38384-event
Add days tag to kind 38384 rating event and document rating tags
2 parents 5652fb0 + e76a670 commit b27f72f

2 files changed

Lines changed: 16 additions & 3 deletions

File tree

src/order_event.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Events are [addressable events](https://github.com/nostr-protocol/nips/blob/mast
4040
["premium", "1"],
4141
[
4242
"rating",
43-
"{\"total_reviews\":1,\"total_rating\":3.0,\"last_rating\":3,\"max_rate\":5,\"min_rate\":1}"
43+
"{\"total_reviews\":1,\"total_rating\":3.0,\"last_rating\":3,\"max_rate\":5,\"min_rate\":1,\"days\":21}"
4444
],
4545
["source", "https://t.me/p2plightning/xxxxxxx"],
4646
["network", "mainnet"],

src/user_rating.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,9 @@ Mostro updates the addressable rating event, in this event the `d` tag will be t
7070
["total_reviews", "1"],
7171
["total_rating", "2"],
7272
["last_rating", "1"],
73-
["max_rate", "2"],
74-
["min_rate", "5"],
73+
["max_rate", "5"],
74+
["min_rate", "1"],
75+
["days", "21"],
7576
["y", "mostro"],
7677
["z", "rating"]
7778
],
@@ -80,3 +81,15 @@ Mostro updates the addressable rating event, in this event the `d` tag will be t
8081
}
8182
]
8283
```
84+
85+
## Tags
86+
87+
- `d` < User trade pubkey >: The trade pubkey of the rated user.
88+
- `total_reviews` < Total reviews >: The total number of reviews the user has received.
89+
- `total_rating` < Total rating >: The overall reputation rating of the user.
90+
- `last_rating` < Last rating >: The rating received in the most recent review.
91+
- `max_rate` < Max rate >: The highest rating the user has received.
92+
- `min_rate` < Min rate >: The lowest rating the user has received.
93+
- `days` < Days >: The number of days since the user's first trade.
94+
- `y` < Platform >: The platform that created the rating.
95+
- `z` < Document >: `rating`.

0 commit comments

Comments
 (0)