Skip to content

Commit

Permalink
Add event kinds for zap request and receipt
Browse files Browse the repository at this point in the history
  • Loading branch information
raucao authored and wilsonsilva committed Feb 27, 2025
1 parent 401dc46 commit 0c7e08d
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lib/nostr/event_kind.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,17 @@ module EventKind
# @return [Integer]
#
ENCRYPTED_DIRECT_MESSAGE = 4

# A special event with kind 9374. See NIP-57.
#
# @return [Integer]
#
ZAP_REQUEST = 9734

# A special event with kind 9375. See NIP-57.
#
# @return [Integer]
#
ZAP_RECEIPT = 9735
end
end
12 changes: 12 additions & 0 deletions spec/nostr/event_kind_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,16 @@
expect(described_class::ENCRYPTED_DIRECT_MESSAGE).to eq(4)
end
end

describe '::ZAP_REQUEST' do
it 'is an integer' do
expect(described_class::ZAP_REQUEST).to eq(9734)
end
end

describe '::ZAP_RECEIPT' do
it 'is an integer' do
expect(described_class::ZAP_RECEIPT).to eq(9735)
end
end
end

0 comments on commit 0c7e08d

Please sign in to comment.