Add transferName to the registry - #73
Open
charlesHetterich wants to merge 1 commit into
Open
Conversation
transferName(name, newOwner) lets a package owner hand a name to a new account: owner-gated, freeze-respecting, zero-address transfers rejected as a fat-finger guard (deliberately giving a name up = transferring to a burn address, which locks it at its current versions — publishing can only claim never-versioned names). deploy-registry gains --upgrade: deploys the freshly built implementation and repoints the existing proxy via setCode, verifying the implementation pointer flipped and the contract count is unchanged. Impl salt bumped to @cdm/registry-impl.2. Rehearsed on a local preview net (84 packages intact, transferName verified through the upgraded proxy), then performed for real on paseo: 0xc1a73a4f93fde65b1cb1680baead248073566cb0 upgraded in place, implementation 0x54e0dedf5c4ac607f319bb90969b32fa9e717f25 -> 0x2de972839247bb9a6ea1447393aa990e3e18671f, all 65 packages intact — the registry's first production setCode upgrade.
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.
What
transferName(name, newOwner)— package owners can hand a name to a new account. Owner-gated, freeze-respecting, rejects the zero address as a fat-finger guard (deliberately giving a name up = transferring to a burn address, which locks the name at its current versions: publishing can only claim never-versioned names, so a burned name can't be squatted).deploy-registry --upgrade— the in-place upgrade flow: deploys the freshly built implementation, dry-runssetCode(surfacingUnauthorizedAdmincleanly), submits, and verifies the implementation pointer flipped while the contract count is unchanged. Impl salt bumped to@cdm/registry-impl.2.Testing
pnpm checkgreen.Design note: a full "release for anyone to pick up" was considered and deliberately NOT added — re-claimable trusted names are a supply-chain vector (npm-style). If release semantics are ever wanted, the follow-up should pair them with
cdm installwarning on owner changes.