Skip to content

Feat(feature): Implement anonymous donation support#80

Merged
ayshadogo merged 4 commits into
Dfunder:mainfrom
ykargeee-bit:feat/Issue
Jun 22, 2026
Merged

Feat(feature): Implement anonymous donation support#80
ayshadogo merged 4 commits into
Dfunder:mainfrom
ykargeee-bit:feat/Issue

Conversation

@ykargeee-bit

Copy link
Copy Markdown
Contributor

Closes #68

  • Add nullable donor_user_id field to Donation and NewDonation structs
  • Update database schema to support optional user linkage
  • Add get_campaign_donations() that displays 'Anonymous Donor' for unregistered users
  • Add get_campaign_stats() to calculate campaign totals including anonymous donations
  • All donations still verify tx_hash via Horizon as before
  • The Soroban contract already supported unregistered donors natively"

- Add nullable donor_user_id field to Donation and NewDonation structs
- Update database schema to support optional user linkage
- Add get_campaign_donations() that displays 'Anonymous Donor' for unregistered users
- Add get_campaign_stats() to calculate campaign totals including anonymous donations
- All donations still verify tx_hash via Horizon as before
- The Soroban contract already supported unregistered donors natively

@ayshadogo ayshadogo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@ayshadogo ayshadogo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@ayshadogo ayshadogo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@ayshadogo ayshadogo merged commit 47b8c64 into Dfunder:main Jun 22, 2026
2 checks passed
@grantfox-oss grantfox-oss Bot mentioned this pull request Jun 22, 2026
4 tasks
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.

Implement Anonymous Donation Support

2 participants