Skip to content

Conversation

@DavidGershony
Copy link
Collaborator

@DavidGershony DavidGershony commented Jan 21, 2026

Description

This pull request introduces the following changes:

  • Cancellation Notification Flow: Added a NotifyFounderOfCancellation handler to notify founders of investment cancellations using Nostr. Updated handshake synchronization logic to process cancellations and extended the InvestmentStatus enum to include a Cancelled status.
  • Below-Threshold Investment Handling: Added a NotifyFounderOfInvestment handler to notify founders of direct investments. Updated synchronization logic to process and store investment notifications and expanded the Handshakes logic to support direct investments.

Checklist

  • Tests added for new features
  • Existing tests updated to reflect changes
  • Documentation updated where applicable

…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`.
@dangershony
Copy link
Member

the checklist is a todo list? or what has been done?


namespace Angor.Sdk.Funding.Investor.Operations;

public static class NotifyFounderOfCancellation
Copy link
Member

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:
Copy link
Member

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))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice change

Copy link
Member

@dangershony dangershony left a 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?

@dangershony dangershony merged commit ef7e234 into main Jan 23, 2026
6 checks passed
@dangershony dangershony deleted the invest-nostr-event branch January 23, 2026 17:36
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.

3 participants