feat(cli): auto-claim user store during registration#134
Merged
Conversation
CI Summary
Release - PassedTest this PR Download artifact (GitHub CLI required): gh run download 25801765182 -n cli-release-0.0.0-pr.134 -R paritytech/dotns-sdkInstall globally: npm install -g ./parity-dotns-cli-0.0.0-pr.134.tgzVerify: dotns --helpDeploy Example — FailedFailed at: Deploy — Deploy workflow failed — see run logs for upload/register/contenthash details
Labelspkg: cli Test - Passed154 passed, 0 failed across 154 tests. |
3 tasks
The `StoreFactory` on the latest deployment splits storage into a protocol-managed `LabelStore` (deployed automatically by the registrar) and a user-claimed `UserStore`. The CLI previously called the removed `getDeployedStore` selector and tried to authorise the store as a registrar writer, both of which now revert. This PR refreshes `StoreFactory.json`, removes the obsolete `displayDeployedStore` / `ensureStoreAuthorizations` helpers, and adds `claimUserStoreIfNeeded` which reads `getUserStore` and claims it for the signer if none exists. The two-step "Displaying store" + "Ensuring store authorizations" stage in the register flow collapses into a single "Claiming user store" step. Depends on the previous two PRs (multi-env + setPop removal).
1118da0 to
0b4f813
Compare
andrew-ifrita
approved these changes
May 13, 2026
Collaborator
andrew-ifrita
left a comment
There was a problem hiding this comment.
Looks good to me. I just rebased on main because github was showing conflicts
Collaborator
|
CI is failing but looks like it is because the account deploying isnt whitelisted or have a PoPStatus. Will merge now and address later |
andrew-ifrita
pushed a commit
that referenced
this pull request
May 13, 2026
## Summary - Reads renamed `transactions` / `bytes` fields from `AuthorizationExtent` (the `_allowance` aliases no longer exist on the new chain types). This clears the lingering type errors on `main`. - Updates the CLI README to reflect the env-aware command surface. - Tidies the UI doc pages, register modal, error display, profile view, and IPFS helper. ## Test plan - [ ] `bun run --cwd packages/cli typecheck` - [ ] `bun run --cwd packages/cli test tests/integration/bulletin` - [ ] Skim the rendered CLI page in the UI ## Order Last in the stack. Base is `spha/cli-auto-claim-user-store` (#134).
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
StoreFactory.jsonfor the redesigned factory (split into protocol-managedLabelStoreand user-claimedUserStore).displayDeployedStoreandensureStoreAuthorizations, both of which called selectors that no longer exist on chain and were misreported as "origin not mapped" failures.claimUserStoreIfNeeded, which readsgetUserStoreand claims one for the signer if absent. The two prior register stages collapse into a single "Claiming user store" step.Test plan
bun run --cwd packages/cli test tests/integration/register/register.test.tsdotns register domain --name <new>shows the claimed user store addressdotns register domainfor the same account does not re-claimOrder
Third in the stack. Base is
spha/cli-remove-setpop(#133). Thedotns storesubcommand still uses the old single-store API and is out of scope here.