Add gitt repo and gitt validator CLI groups - #1669
Open
LandynDev wants to merge 2 commits into
Open
Conversation
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-7). Stacked on #1668 AND includes #1664's cli/core commit as a cherry-pick (needed both) — after #1664 and the #1665->#1668 stack merge into feature/repo-registration, rebase drops the duplicate commit and this diff collapses to just the new groups.
New top-level groups built on
cli/core(reworks closed #1652 onto the contract):gitt repo(aliasr): register (GitHub name -> numeric id resolution with--idoffline override, live price quote in the confirmation panel,--fee-hotkeydefaults to the wallet hotkey), list, show, price, set-params, set-label / remove-label, set-branch-patterns, update-name, transfer, deregister. All owner txs coldkey-signed.gitt validator(aliasv):weights show|set|clear—settakesrepo=weightpairs, quantizes to the exact 65535 sum via largest-remainder (mirrorscanonicalize_prefs), validates against the active registry at one head hash, hotkey-signedset_basket.set-paramsaccepts human units: FP6 params take decimals (maintainer_cut=0.1), on-chain bounds are fetched pre-submit and shown human-formatted on violation; unknown names print the full 26-key name table.--json(canonical envelope),-y, and the standard network/wallet options;repos_contract_addressadded togitt config setkeys.RepoRegistryContractClientgains the 7 owner txs via a shared_owner_txhelper; metadata selectors regenerated (derived — cross-check against the built.contractbefore deploy, noted in update_metadata.py).Tests: 36 new CLI tests (id-resolution incl. 404 abort, normalization + validation failures, bounds errors, confirmation gating, tx-revert envelopes); full suite 1159 passed; ruff clean.