Skip to content

[CT-24] Implement badge issuance to a member address #788

@yusuftomilola

Description

@yusuftomilola

Overview

Implement issue_credential so the admin can award a badge to a member's address. Work inside contracts/sandbox/credential_badge/.

Acceptance Criteria

  • issue_credential(env, caller, badge_type_id, holder) is admin-gated
  • Returns Error::BadgeTypeNotFound if badge type doesn't exist
  • Returns Error::AlreadyIssued if the holder already has this badge type
  • Stores Credential and indexes under holder address
  • Emits an issuance event
  • Code compiles with cargo build

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions