Repository navigation
Conversation
AgentX010
added a commit
to AgentX010/accesslayer-contracts
that referenced
this pull request
Oct 24, 2026
AgentX010
added a commit
to AgentX010/accesslayer-contracts
that referenced
this pull request
Oct 24, 2026
AgentX010
force-pushed
the
feat/issue-1181-implement-key-deprecation-flow-with-migration-r2
branch
from
October 24, 2026 11:29
ce34c62 to
7610d9a
Compare
AgentX010
force-pushed
the
feat/issue-1181-implement-key-deprecation-flow-with-migration-r2
branch
from
October 24, 2026 11:30
7610d9a to
de5e2e0
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
This PR adds the deprecation flow for creator keys: the creator can initiate deprecation, holders get a time-boxed migration window to exit at a guaranteed floor price, and finalization permanently halts key operations. The changes are limited to event definitions and the key freeze module.
Related Issue
Closes #AGENT-DEPRECATION
Changes
🔒 Deprecation Lifecycle
[MODIFY]
creator-keys/src/events.rsKeyDeprecatedevent emitted whendeprecate(key_id, migration_window_seconds)initiates deprecation.[MODIFY]
creator-keys/src/key_freeze.rsfloor_pricefrom the bonding curve at initiation and stores it immutably alongside the window expiry.exit_deprecating(key_id)during the window, paying out the stored floor price, and rejects calls after expiry withDeprecationWindowClosed.finalize_deprecation(key_id)permanently halts buy, sell, and transfer for the key.get_deprecation_status(key_id)exposes status, floor price, and window expiry.Verification Results
Not run in this PR beyond the manual review of the changed files; no new test files were added in this change set.
floor_pricestored correctly at deprecation initiation blockexit_deprecatingpays correct floor price during windowDeprecationWindowClosedkey_freeze.rsfinalize_deprecationhalts buy, sell, and transfer permanentlyget_deprecation_statusreturns accurate status and expiry at any pointCloses #1181