Skip to content

Implement key deprecation and successor designation in creator key contract #973

Description

@Chucks1093

Summary

Add deprecation functionality to the creator key contract allowing creators to mark a key as deprecated, optionally designate a successor key, and block new buys on deprecated keys.

Scope

  • deprecate_key(key_id, reason, successor_key_id?) — creator-only
  • New buy transactions rejected on deprecated keys
  • Sell and transfer still permitted post-deprecation
  • get_deprecation_status(key_id) — returns status, reason, successor, timestamp
  • KeyDeprecated event emitted on deprecation

Acceptance Criteria

  • Deprecation blocked for non-creator callers
  • Buy rejected with DeprecatedKey error after deprecation
  • Sell and transfer succeed on deprecated keys
  • get_deprecation_status returns all fields correctly
  • KeyDeprecated event includes reason and successor key ID

ETA

24 hours

Activity

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

Metadata

Metadata

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions