Repository navigation
feat(registry): add two-step set_admin, accept_admin, and cancel_admin_transfer (#1207) - #1379
Closed
lienhoatienphung-svg wants to merge 1 commit into
Closed
lienhoatienphung-svg wants to merge 1 commit into
lienhoatienphung-svg wants to merge 1 commit into
Conversation
lienhoatienphung-svg
force-pushed
the
feature/1207-registry-admin-rotation
branch
from
October 16, 2026 07:27
93371df to
44e1a4e
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.
Summary
Adds two-step admin rotation (
set_admin,accept_admin,cancel_admin_transfer,get_admin, andget_pending_admin) toCalloraRegistrywith lifecycle events and auth snapshot coverage while keeping per-developer registration cooldowns intact.Key Changes
contracts/registry/src/errors.rs:RegistryError::NoPendingAdmin = 11.contracts/registry/src/events.rs:event_admin_nominated,event_admin_accepted, andevent_admin_cancelled.contracts/registry/src/lib.rs:StorageKey::PendingAdminand implementsset_admin,accept_admin,cancel_admin_transfer,get_admin, andget_pending_admin.contracts/registry/tests/auth_snap.rs:set_accept_and_cancel_admin_require_authandnominate_accept_and_cancel_admin_transfer_lifecycle.Closes #1207
Payout Wallet (Base USDC / EVM):
0x3806cd592a508d1992Ed007C2F53de251C2E7452