Skip to content

handle donation for custom soroban#75

Merged
ayshadogo merged 1 commit into
Dfunder:mainfrom
koder-ns:feat/handle-donation-for-custom-soroban
Jun 21, 2026
Merged

handle donation for custom soroban#75
ayshadogo merged 1 commit into
Dfunder:mainfrom
koder-ns:feat/handle-donation-for-custom-soroban

Conversation

@koder-ns

Copy link
Copy Markdown
Contributor

closes #55

Description

The donation flow currently only supports native XLM payments. This PR extends the system to accept custom Soroban tokens (e.g., USDC, EURC, or any other Stellar token contract), enabling campaigns to specify which asset they accept and allowing users to donate in their preferred token.

📁Files Changed

app/contract/contracts/src/donation.rs          - Added custom token support
app/contract/contracts/src/error.rs             - Added AssetMismatch error
app/backend/src/donations/donation.service.ts   - Asset validation logic
app/backend/src/donations/donation.types.ts     - New types/interfaces
app/backend/src/services/transaction-builder.service.ts - Approval + donation flow
app/backend/src/campaigns/campaigns.service.ts  - Accepted asset field
app/backend/supabase/migrations/*campaigns.sql  - Schema update
app/backend/src/__tests__/donations.e2e.test.ts - Integration tests
docs/CUSTOM_TOKEN_DONATIONS.md                  - Documentation (NEW)

@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 539c461 into Dfunder:main Jun 21, 2026
2 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.

Handle Donation for Custom Soroban Token (Non-XLM)

2 participants