Skip to content

AssetInfo struct and status enums #8

Description

@ayshadogo

User Story: As a developer, I want a reusable asset representation and explicit status enums so that multi-asset support and state transitions are consistent and auditable.

Acceptance Criteria:

  • AssetInfo: asset_code: String, issuer: Option<Address> (None for XLM), with an is_xlm() helper; validated at initialization
  • CampaignStatus: Active, GoalReached, Ended, Cancelled; MilestoneStatus: Locked, Unlocked, Released — both derive contracttype
  • Doc comments on each enum stating which transitions are valid; invalid transitions elsewhere in the contract must panic with a descriptive error (wire the check where the mutation actually happens, document the rule here)

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