Add repos-v0 registry contract crate - #1665
Open
LandynDev wants to merge 1 commit into
Open
Conversation
This was referenced Jul 28, 2026
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.
Part of repo-registration phase 2a (task 2a-2). Implements the repos-v0 ink! 5 contract per gt-utils spec
specs/repo-registry-contract.md, mirroring the issues-v0 crate layout.What it does
register/deregister/transfer_ownership/update_full_name(rate-limited rename follow)misc.rs), pulled from the caller's stake viaCallerTransferStakeV1and recycled viaRecycleAlphaV1; delta-verified so a silent shortfall revertsselect_victimis the single 2b swap point for stake-weighted selectionset_basket, weights sum 65535, entries validated against active registry)set_code_hashupgrade path, config withprice_lastre-clamp, force_deregister escape hatchlib.rsfor the python childstate reader; all events carrygithub_id+full_namefor the mirror reconcilerSpec deviations (flagging for review)
register(github_id, full_name, fee_hotkey)— third param added; stake is keyed by hotkey so the contract cannot locate the caller's alpha without itMapping<u64, Vec<(k, v)>>per repo instead of tuple-keyed cells — tuple keys are unenumerable for the pure-storage python readerReporecord withactive=false; stale basket entries fail re-validation on nextset_basketVerification
cargo contract buildnot run — cargo-contract not installed locally)PRICE_GOLDEN, 14 cases +DECAY_FACTOR_GOLDEN) generated from an independent integer-exact python replica; these seed the 2a-3 python client port