@parity/dotns-cli 0.6.3 → 0.6.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +48 -12
  2. package/dist/cli.js +2797 -1420
  3. package/package.json +3 -1
package/README.md CHANGED
@@ -118,6 +118,40 @@ dotns --password test-password register domain --account default --name coolname
118
118
 
119
119
  # With reverse record
120
120
  dotns --password test-password register domain --account default --name coolname42 --reverse
121
+
122
+ # Auto-retry on failure, resuming from the cached commitment (here, up to 3 times)
123
+ dotns --password test-password register domain --account default --name coolname42 --retry 3
124
+ ```
125
+
126
+ ### Resume and manage commitments
127
+
128
+ Registration is a two-step commit-reveal: the commit lands on-chain, then after the
129
+ minimum commitment age the reveal completes the mint. If the reveal is interrupted
130
+ (crash, network drop, closed terminal), the commitment is cached locally so it can be
131
+ resumed rather than restarted. The reveal secret is encrypted at rest with your
132
+ credential (keystore password, mnemonic, or key URI); the rest of the record is
133
+ plaintext so it can be listed and cleared without unlocking.
134
+
135
+ Records live under `~/.dotns/registrations/` (override with `DOTNS_REGISTRATION_DIR`).
136
+
137
+ ```bash
138
+ # Resume the most recent interrupted registration
139
+ dotns --password test-password register retry --account default
140
+
141
+ # Resume a specific cached commitment by name
142
+ dotns --password test-password register retry coolname42 --account default
143
+
144
+ # List cached commitments and their on-chain status
145
+ dotns register list
146
+
147
+ # Review cached commitments: purges completed ones, then prompts for any pending
148
+ dotns --password test-password register clear --account default
149
+
150
+ # Non-interactively discard pending commitments
151
+ dotns register clear --discard
152
+
153
+ # Non-interactively complete pending commitments
154
+ dotns --password test-password register clear --register --account default
121
155
  ```
122
156
 
123
157
  ### Register Subnames
@@ -252,7 +286,7 @@ dotns --password test-password bulletin upload ./dist --profile-upload --account
252
286
  dotns --password test-password bulletin upload ./dist --profile-upload --profile-output ./report.json --account default
253
287
 
254
288
  # Custom RPC
255
- dotns --password test-password bulletin upload ./image.png --bulletin-rpc wss://paseo-bulletin-rpc.polkadot.io --account default
289
+ dotns --password test-password bulletin upload ./image.png --bulletin-rpc wss://paseo-bulletin-next-rpc.polkadot.io --account default
256
290
 
257
291
  # Skip history
258
292
  dotns --password test-password bulletin upload ./image.png --no-history --account default
@@ -292,7 +326,7 @@ dotns --key-uri //Alice bulletin authorize 5FHneW46xGXgs5mUiveU4sbTyGBzmstUspZC9
292
326
  dotns --key-uri //Alice bulletin authorize 5FHneW46xGXgs5mUiveU4sbTyGBzmstUspZC92UhjJM694ty --json
293
327
 
294
328
  # Custom RPC
295
- dotns --key-uri //Alice bulletin authorize 5FHneW46xGXgs5mUiveU4sbTyGBzmstUspZC92UhjJM694ty --bulletin-rpc wss://paseo-bulletin-rpc.polkadot.io
329
+ dotns --key-uri //Alice bulletin authorize 5FHneW46xGXgs5mUiveU4sbTyGBzmstUspZC92UhjJM694ty --bulletin-rpc wss://paseo-bulletin-next-rpc.polkadot.io
296
330
  ```
297
331
 
298
332
  ### Bulletin Status
@@ -359,7 +393,14 @@ dotns --key-uri //Alice account whitelist 5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCP
359
393
 
360
394
  ### Store
361
395
 
396
+ Your User Store is a per-account, owner-bound key/value store. Claim it once,
397
+ then read and write values. Names you register are tracked separately in your
398
+ Label Store (see `store names`).
399
+
362
400
  ```bash
401
+ # Claim your User Store (required once before setting values)
402
+ dotns --password test-password store claim --account default
403
+
363
404
  # Show Store address and deployment status
364
405
  dotns --password test-password store info --account default
365
406
 
@@ -371,17 +412,12 @@ dotns --password test-password store get mykey --account default
371
412
  dotns --password test-password store set mykey "my value" --account default
372
413
  dotns --password test-password store delete mykey --account default
373
414
 
374
- # Authorization management
375
- dotns --password test-password store check 0x000000000000000000000000000000000000dEaD --account default
376
- dotns --password test-password store authorize 0x000000000000000000000000000000000000dEaD --account default
377
- dotns --password test-password store unauthorize 0x000000000000000000000000000000000000dEaD --account default
378
-
379
- # DotNS controller authorisation
380
- dotns --password test-password store authorize-controller 0x000000000000000000000000000000000000dEaD --account default
381
- dotns --password test-password store unauthorize-controller 0x000000000000000000000000000000000000dEaD --account default
415
+ # List the .dot names in your Label Store, and cached CIDs
416
+ dotns --password test-password store names --account default
417
+ dotns --password test-password store cids --account default
382
418
 
383
- # Ensure all required authorizations
384
- dotns --password test-password store ensure-auth --account default
419
+ # Settle any pending names from the PoP controller into your Label Store
420
+ dotns --password test-password store sync --account default
385
421
 
386
422
  # JSON output (all subcommands)
387
423
  dotns --password test-password store info --json --account default