@parity/dotns-cli 0.6.5 → 0.6.7
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.
- package/LICENSE +21 -0
- package/README.md +35 -2
- package/dist/cli.js +14406 -7387
- package/package.json +3 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Parity Technologies (UK) Ltd.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -37,7 +37,9 @@ bun run build
|
|
|
37
37
|
|
|
38
38
|
## Authentication
|
|
39
39
|
|
|
40
|
-
All write operations require
|
|
40
|
+
All write operations require an explicit signing account. The CLI refuses to sign transactions with
|
|
41
|
+
the shared public dev account; configure one of these methods before registering, transferring,
|
|
42
|
+
delegating, publishing, or changing records:
|
|
41
43
|
|
|
42
44
|
```bash
|
|
43
45
|
# Keystore
|
|
@@ -62,6 +64,18 @@ dotns content set dotns bafybei... --account karim
|
|
|
62
64
|
dotns pop status --account karim
|
|
63
65
|
```
|
|
64
66
|
|
|
67
|
+
Read-only commands can run without configured credentials. In that case the CLI uses a shared dev
|
|
68
|
+
account only as the origin for read calls.
|
|
69
|
+
|
|
70
|
+
Auth precedence is explicit: command-line `--mnemonic` / `--key-uri` wins first. If you pass
|
|
71
|
+
`--account`, `--keystore-path`, or `--password`, the CLI uses the encrypted keystore and will not
|
|
72
|
+
let ambient `DOTNS_MNEMONIC` / `DOTNS_KEY_URI` shadow the selected account. Without keystore hints,
|
|
73
|
+
env auth is used before the default keystore.
|
|
74
|
+
|
|
75
|
+
New keystore passwords supplied interactively, with `--password`, or with
|
|
76
|
+
`DOTNS_KEYSTORE_PASSWORD` must be at least 6 characters. Decryption remains compatible with
|
|
77
|
+
existing keystores.
|
|
78
|
+
|
|
65
79
|
## Environment Variables
|
|
66
80
|
|
|
67
81
|
| Variable | Description |
|
|
@@ -129,7 +143,7 @@ Registration is a two-step commit-reveal: the commit lands on-chain, then after
|
|
|
129
143
|
minimum commitment age the reveal completes the mint. If the reveal is interrupted
|
|
130
144
|
(crash, network drop, closed terminal), the commitment is cached locally so it can be
|
|
131
145
|
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
|
|
146
|
+
credential (keystore password, CLI/env mnemonic, or CLI/env key URI); the rest of the record is
|
|
133
147
|
plaintext so it can be listed and cleared without unlocking.
|
|
134
148
|
|
|
135
149
|
Records live under `~/.dotns/registrations/` (override with `DOTNS_REGISTRATION_DIR`).
|
|
@@ -147,13 +161,26 @@ dotns register list
|
|
|
147
161
|
# Review cached commitments: purges completed ones, then prompts for any pending
|
|
148
162
|
dotns --password test-password register clear --account default
|
|
149
163
|
|
|
164
|
+
# Review one cached commitment by name
|
|
165
|
+
dotns --password test-password register clear coolname42 --account default
|
|
166
|
+
|
|
150
167
|
# Non-interactively discard pending commitments
|
|
151
168
|
dotns register clear --discard
|
|
152
169
|
|
|
170
|
+
# Non-interactively discard one pending commitment
|
|
171
|
+
dotns register clear coolname42 --discard
|
|
172
|
+
|
|
153
173
|
# Non-interactively complete pending commitments
|
|
154
174
|
dotns --password test-password register clear --register --account default
|
|
175
|
+
|
|
176
|
+
# Non-interactively complete one pending commitment
|
|
177
|
+
dotns --password test-password register clear coolname42 --register --account default
|
|
155
178
|
```
|
|
156
179
|
|
|
180
|
+
Unnamed `register clear --discard` and `register clear --register` intentionally apply to every
|
|
181
|
+
pending cached commitment for the selected account and environment. Passing a name scopes the action
|
|
182
|
+
to that one commitment.
|
|
183
|
+
|
|
157
184
|
### Register Subnames
|
|
158
185
|
|
|
159
186
|
```bash
|
|
@@ -292,6 +319,12 @@ dotns --password test-password bulletin upload ./image.png --bulletin-rpc wss://
|
|
|
292
319
|
dotns --password test-password bulletin upload ./image.png --no-history --account default
|
|
293
320
|
```
|
|
294
321
|
|
|
322
|
+
`bulletin upload --cache` writes the uploaded CID to your on-chain Store on the selected DotNS
|
|
323
|
+
Asset Hub environment. When overriding Bulletin with `--bulletin-rpc` or `DOTNS_BULLETIN_RPC`,
|
|
324
|
+
also pass the matching `--env` or `DOTNS_ENV`, and, when needed, `--rpc` for the Asset Hub Store
|
|
325
|
+
write. In this custom-Bulletin mode, `--env` / `DOTNS_ENV` uses that environment's configured
|
|
326
|
+
Asset Hub RPC and ignores ambient `DOTNS_RPC`; pass `--rpc` to override it deliberately.
|
|
327
|
+
|
|
295
328
|
### Bulletin History
|
|
296
329
|
|
|
297
330
|
```bash
|