-
Notifications
You must be signed in to change notification settings - Fork 39
Add cancellation and below-threshold investment notifications #626
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
Conversation
…NotifyFounderOfInvestment` handler for notifying founders of direct investments, updated synchronization logic to process and store investment notifications, and expanded `Handshakes` to support direct investments.
…lation` handler to notify founders of investment cancellations via Nostr, updated handshake synchronization logic to process cancellations, and extended `InvestmentStatus` to include `Cancelled`.
21b8efe to
36c300a
Compare
|
the checklist is a todo list? or what has been done? |
|
|
||
| namespace Angor.Sdk.Funding.Investor.Operations; | ||
|
|
||
| public static class NotifyFounderOfCancellation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we have a general notification message and inside several options? looks to me like here we will have a different message type per notification
| { | ||
| switch (messageType) | ||
| { | ||
| case InvestmentMessageType.Request: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah sorry I see we do have messages types
| return; | ||
|
|
||
| if (userEoseActions.TryGetValue(_.Subscription, out var action)) | ||
| if (userEoseActions.Remove(_.Subscription, out var action)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice change
dangershony
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me, is the pr finished?
Description
This pull request introduces the following changes:
NotifyFounderOfCancellationhandler to notify founders of investment cancellations using Nostr. Updated handshake synchronization logic to process cancellations and extended theInvestmentStatusenum to include aCancelledstatus.NotifyFounderOfInvestmenthandler to notify founders of direct investments. Updated synchronization logic to process and store investment notifications and expanded theHandshakeslogic to support direct investments.Checklist