Skip to content

Commit f450be4

Browse files
authored
Merge pull request #128 from MostroP2P/add-new-kind-constants
BREAKING CHANGE: Add distinct Nostr event kinds for orders, ratings, …
2 parents 4d3d07c + 8fdf18d commit f450be4

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/prelude.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ pub use MostroError::*;
2121
pub const MAX_RATING: u8 = 5;
2222
// Min rating for a user
2323
pub const MIN_RATING: u8 = 1;
24-
// All events broadcasted by Mostro daemon are Parameterized Replaceable Events
25-
// and the event kind must be between 30000 and 39999
26-
pub const NOSTR_REPLACEABLE_EVENT_KIND: u16 = 38383;
24+
// Addressable event kind must be between 30000 and 39999 (NIP-1)
25+
pub const NOSTR_ORDER_EVENT_KIND: u16 = 38383;
26+
pub const NOSTR_RATING_EVENT_KIND: u16 = 38384;
27+
pub const NOSTR_INFO_EVENT_KIND: u16 = 38385;
28+
pub const NOSTR_DISPUTE_EVENT_KIND: u16 = 38386;
2729
pub(crate) const PROTOCOL_VER: u8 = 1;

0 commit comments

Comments
 (0)