Add event kinds for zap request and receipt
This commit is contained in:
parent
defeba1278
commit
86f868f562
@ -40,5 +40,17 @@ module Nostr
|
||||
# @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
|
||||
|
@ -32,4 +32,16 @@ RSpec.describe Nostr::EventKind do
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user