Skip to content

Commit

Permalink
Add more Nostr kinds
Browse files Browse the repository at this point in the history
  • Loading branch information
Marfusios committed Aug 1, 2023
1 parent b755b50 commit 22ff97c
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<!-- Project defaults -->

<PropertyGroup>
<Version>1.4.2</Version>
<Version>1.4.3</Version>
</PropertyGroup>

</Project>
1 change: 1 addition & 0 deletions Nostr.Client.sln.DotSettings
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
<s:Boolean x:Key="/Default/UserDictionary/Words/=Preimage/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=pubkey/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=pubkeys/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=Repost/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=Sats/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=schnorr/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=Squasher/@EntryIndexedValue">True</s:Boolean>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
OptionText="@(p => $"{p.ToString()} [{(int)p}]")"
@bind-SelectedOptions="_selectedKinds"
@onfocusout="OnLostFocus"
style="z-index: 5"
>
</FluentSelect>
}
Expand Down
19 changes: 18 additions & 1 deletion src/Nostr.Client/Messages/NostrKind.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ public enum NostrKind
Reaction = 7,
BadgeAward = 8,

GenericRepost = 16,

// nip-28 public chat
ChannelCreation = 40,
ChannelMetadata = 41,
Expand All @@ -21,23 +23,38 @@ public enum NostrKind

// nip-28 public chat reserved [45-49]

FileMetadata = 1063,
LiveChatMessage = 1311,

Reporting = 1984,
Label = 1985,

ZapRequest = 9734,
Zap = 9735,

MuteList = 10000,
PinList = 10001,
RelayListMetadata = 10002,

WalletInfo = 13194,
ClientAuthentication = 22242,
WalletRequest = 23194,
WalletResponse = 23195,
NostrConnect = 24133,
HttpAuth = 27235,

CategorizedPeopleList = 30000,
CategorizedBookmarkList = 30001,

ProfileBadges = 30008,
BadgeDefinition = 30009,

LongFormContent = 30023,
DraftLongFormContent = 30024,

ApplicationSpecificData = 30078,

ApplicationSpecificData = 30078
LiveEvent = 30311,

// nip-16 regular events [ 1000- 9999]
// nip-16 replaceable events [10000-19999]
Expand Down

0 comments on commit 22ff97c

Please sign in to comment.