Skip to content

end_campaign and automatic deadline-based ending #35

Description

@ayshadogo

User Story:
As a campaign creator, I want to close my campaign early, and I want the contract to enforce automatic ending at the deadline, so that fundraising windows are respected without manual admin intervention.

Acceptance Criteria:

  • fn end_campaign(env): creator-only, sets status Ended, panics if already Ended/Cancelled, emits campaign_ended, does not block a subsequent final milestone release
  • Public fn update_status(env) callable by anyone, transitions an expired-but-still-Active campaign to Ended and emits the event — explain why this needs to be callable by any address rather than just the creator
  • Test: campaign past deadline still Active until update_status (or a donation attempt) triggers the transition

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardThird CampaignCampaign: Third Campaign

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions