-
Notifications
You must be signed in to change notification settings - Fork 25
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
Conversation
- 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
…ady existing BaseTag)
Nick, thanks for this. I will work on this today. |
removed serializers, done via jackson json annotations instead ZapRequestEvent/ReceiptEvent constructor updates
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() |
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