Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nip57 - Lightning Zaps #164

Merged
merged 41 commits into from
May 26, 2024
Merged

Nip57 - Lightning Zaps #164

merged 41 commits into from
May 26, 2024

Conversation

avlo
Copy link
Collaborator

@avlo avlo commented May 20, 2024

continuing NIP57 implementation:
- new classes per this branch
- updating/evolving existing implementation
- new Kind added for zaps
- minor refactor in NIP01

culled unused abstract class NIP57Event constructors
updated abstract class NIP57Event constructors req'd params
amount type from Integer to Long (larger range for millisats)
updated serializers

implemented proper RelaysTag/RelaysTags methods
removed use of Relay as RelayInfo doc, which is NIP11, not NIP57

removed NIP57Event @NoArgsConstructor as it curcumvents necessary NIP57 parameters
added variad constructor to RelaysTag

NIP57 & NIP57Impl updated to accomodate required NIP57 receipt parameters
NIP57Event abstract class removed since no useful common attributes between ZapRequestEvent and ZapReceiptEvent

NIP57 createZapRequestEvent unit tests
NIP57 createZapReceiptEvent unit tests
NIP57Impl ZapRequestEventFactory unit tests

avlo added 30 commits May 18, 2024 16:13
	- new classes per this branch
	- updating/evolving existing implementation
	- new Kind added for zaps
	- minor refactor in NIP01
successful compilation snapshot
updated abstract class NIP57Event constructors req'd params
amount type from Integer to Long (larger range for millisats)
updated serializers
removed use of Relay as RelayInfo doc, which is NIP11, not NIP57
…57 parameters

added variad constructor to RelaysTag
…ters

NIP57Event abstract class removed since no useful common attributes between ZapRequestEvent and ZapReceiptEvent
PriceTagSerializer structural adjustments
PriceTagDeserializer unit tests
ClassifiedListing renamed to ClassifiedListingTag
ClassifiedListingTagSerializer updates
ClassifiedListingEvent unit tests
ZapReceipt moved to its own class
ClassifiedListingTag moved back to ClassifiedListing (as it's technically not a tag)
ZapRequest moved into impl
ClassifiedListing moved into impl
ClassifiedListingTagSerializer renamed to ClassifiedListingSerializer
reverted ClassifiedListingSerializer to original implementation
reverted PriceTag to original implementation
updated unit tests
ClassifiedListingEvent ctor update
@tcheeric tcheeric self-assigned this May 25, 2024
@tcheeric
Copy link
Owner

Nick, thanks for this. I will work on this today.

avlo added 3 commits May 25, 2024 16:27
removed serializers, done via jackson json annotations instead
ZapRequestEvent/ReceiptEvent constructor updates
@avlo
Copy link
Collaborator Author

avlo commented May 26, 2024

Nick, thanks for this. I will work on this today.

yw, eric. apologies for the multiple commits since initial PR. there were serializer refactorings (in this case, significant code reduction via jackson w/o need for explicit serializer implementations)... as well as having to back out filtering logic i'd added to classified listings after discovering you've already accommodated for the same directly in GenericEvent.addTag()

@tcheeric tcheeric merged commit 6149068 into tcheeric:develop May 26, 2024
@avlo avlo deleted the nip57 branch May 29, 2024 01:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants