Skip to content

feat(shade): add multi-token pledge support with campaign management#380

Open
sudo-robi wants to merge 1 commit into
ShadeProtocol:mainfrom
sudo-robi:feature/multi-token-pledge-support
Open

feat(shade): add multi-token pledge support with campaign management#380
sudo-robi wants to merge 1 commit into
ShadeProtocol:mainfrom
sudo-robi:feature/multi-token-pledge-support

Conversation

@sudo-robi

Copy link
Copy Markdown

closes #326

Implement a full pledge/crowdfund campaign system within the Shade
contract, enabling registered merchants to create fundraising campaigns
and backers to pledge accepted tokens. Includes campaign lifecycle
management, per-contributor pledge tracking, execution on goal success,
individual and batch refunds on failure, and detailed event emission.

- Add DataKey variants and structs for campaigns and pledges
- Create pledge component with create_campaign, pledge, execute,
  cancel, claim_refund, batch_refund, and query functions
- Implement require_auth() on all mutating methods with role checks
- Emit 6 detailed events for off-chain indexing
- Wire through ShadeTrait interface and contract impl
@drips-wave

drips-wave Bot commented Jun 29, 2026

Copy link
Copy Markdown

@sudo-robi Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

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 Multi-Token Support for Pledges

1 participant