8000 Add Pending Investments to the Backend API by SuperJMN · Pull Request #365 · block-core/angor · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add Pending Investments to the Backend API #365

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

Merged
merged 4 commits into from
May 9, 2025

Conversation

SuperJMN
Copy link
Contributor
@SuperJMN SuperJMN commented May 6, 2025

This PR adds functionality to retrieve and display pending investments, including:

  1. Extended InvestmentAppService with pending investments method
  2. New GetPendingInvestments operation that decrypts Nostr messages
  3. INostrDecrypter interface and implementation
  4. PendingInvestmentDto for data transfer
  5. Updated Founder UI with data grid showing amounts, dates, and investor keys
  6. Removed obsolete code and dependencies
  7. Added unit tests for new components

@SuperJMN SuperJMN changed the title Add Pending investments to the Backend API Add Pending Investments to the Backend API May 6, 2025

namespace Angor.Contexts.Funding.Founder.Operations;

public class GetPendingInvestments
Copy link
Collaborator

Choose a reason for hiding this comment

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

To be honest I am not crazy about multiple classes in one file, it means I can't see the logic and structure when I look at the solution files, how many of these IRequests do we have so far?

Task<Result<Guid>> RequestInvestment(Guid sourceWalletId, ProjectId projectId, CreateInvestment.Draft draft);
Task<Result<CreateInvestment.Draft>> CreateInvestmentDraft(Guid sourceWalletId, ProjectId projectId, Amount amount);
Task<Result<Guid>> Invest(Guid sourceWalletId, ProjectId projectId, CreateInvestment.Draft draft);
Task<Result<IEnumerable<GetPendingInvestments.PendingInvestmentDto>>> GetPendingInvestments(Guid walletId, ProjectId projectId);
Copy link
Collaborator

Choose a reason for hiding this comment

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

The name should be single because the project id is only ever for 1 investment at the time

@dangershony dangershony merged commit 30f084a into block-core:main May 9, 2025
3 checks passed
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
0