Skip to content

[Contract] Bounty Category Metadata Enums #376

@gabito1451

Description

@gabito1451

Independence Note: Define the Enum without needing mapping to real bounty objects yet.

Context:
Bounties should have structured categories for machine-readability on-chain.

Objective:
Implement a Category Enum within the contract types.

Acceptance Criteria:

  • Define enum BountyCategory { Development, Design, Documentation, Research, Other }.
  • Ensure it supports serialization for Soroban types.
  • Add a category field to the Bounty struct.
  • Write a test that initializes a bounty with a specific category and verifies it is stored correctly.

Technical Pointers:

  • Enums are far more gas-efficient than storing the Full Category name as a String.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions