Skip to content

feat(creator-key): implement key deprecation and successor designatio… - #1014

Merged
Chucks1093 merged 3 commits into
accesslayerorg:mainfrom
mysterio123865:issue-973-key-deprecation
Oct 5, 2026
Merged

Chucks1093 merged 3 commits into
accesslayerorg:mainfrom
mysterio123865:issue-973-key-deprecation

Conversation

@mysterio123865

Copy link
Copy Markdown
Contributor

Summary

Implemented key deprecation functionality in the creator key contract, enabling creators to mark keys as deprecated, optionally designate successor keys, reject new buys on deprecated keys, and preserve ongoing sell and transfer operations[cite: 7].


What Was Implemented

  1. Creator Key Deprecation (deprecate_key):

    • Added deprecate_key(key_id, reason, successor_key_id?) restricted strictly to creator callers[cite: 7].
    • Configured function to emit a KeyDeprecated event containing the reason and optional successor key ID[cite: 7].
  2. Transaction Rules Enforcement:

    • Rejected new buy transactions with a DeprecatedKey error once a key is deprecated[cite: 7].
    • Ensured sell and transfer operations continue to function normally post-deprecation[cite: 7].
  3. Status Querying (get_deprecation_status):

    • Implemented get_deprecation_status(key_id) returning status, reason, successor key ID, and deprecation timestamp[cite: 7].

Acceptance Criteria Verification

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

Closes #973

@drips-wave

drips-wave Bot commented Sep 28, 2026

Copy link
Copy Markdown

@mysterio123865 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

mysterio123865 and others added 2 commits October 5, 2026 11:08
…rorg#973)

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
@Chucks1093
Chucks1093 merged commit 0691a1f into accesslayerorg:main Oct 5, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement key deprecation and successor designation in creator key contract

2 participants