@needmoretruth/nmts-cli 0.59.1 → 0.61.1
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/AGENTS.md +49 -49
- package/CHANGELOG.md +128 -99
- package/LICENSING.md +8 -8
- package/README.ko.md +156 -156
- package/README.md +111 -111
- package/dist/api-advice.js +34 -34
- package/dist/api-key.js +2 -2
- package/dist/artifact-about.d.ts +1 -1
- package/dist/autonomy.js +12 -12
- package/dist/code-access.js +3 -3
- package/dist/code-vault.js +1 -1
- package/dist/commands/accept-terms.js +4 -4
- package/dist/commands/ai-account.js +10 -10
- package/dist/commands/balance.js +7 -7
- package/dist/commands/create-code-file.js +3 -3
- package/dist/commands/create-link.js +36 -41
- package/dist/commands/create-pass.js +3 -3
- package/dist/commands/create.js +4 -4
- package/dist/commands/credits.js +2 -2
- package/dist/commands/delete-account.js +3 -3
- package/dist/commands/deposit.js +3 -3
- package/dist/commands/devices.js +3 -3
- package/dist/commands/documents.js +1 -1
- package/dist/commands/env.js +13 -13
- package/dist/commands/erase.js +5 -5
- package/dist/commands/expiring.js +4 -4
- package/dist/commands/extend.js +8 -8
- package/dist/commands/get.js +2 -2
- package/dist/commands/handover.js +2 -2
- package/dist/commands/key-manage.js +2 -2
- package/dist/commands/key.js +5 -5
- package/dist/commands/link.js +2 -2
- package/dist/commands/links.js +1 -1
- package/dist/commands/listfile.js +3 -3
- package/dist/commands/login-passphrase.js +4 -4
- package/dist/commands/login.js +9 -9
- package/dist/commands/logout.js +1 -1
- package/dist/commands/losses.js +7 -7
- package/dist/commands/ls.js +7 -7
- package/dist/commands/marks.js +1 -1
- package/dist/commands/mcp.js +4 -4
- package/dist/commands/mode.js +8 -8
- package/dist/commands/on-collision.js +4 -4
- package/dist/commands/openers-attach.js +1 -1
- package/dist/commands/organise.js +1 -1
- package/dist/commands/padding.js +3 -3
- package/dist/commands/platform.js +2 -2
- package/dist/commands/public-code-manage.js +4 -4
- package/dist/commands/public-code.js +4 -4
- package/dist/commands/pull.js +1 -1
- package/dist/commands/push-heavy.js +1 -1
- package/dist/commands/push-wallet.js +1 -1
- package/dist/commands/push.js +2 -2
- package/dist/commands/put-heavy.js +2 -2
- package/dist/commands/put-payer.js +1 -1
- package/dist/commands/put-wallet.js +5 -5
- package/dist/commands/put.js +3 -3
- package/dist/commands/rebuild.js +13 -13
- package/dist/commands/receive.js +2 -2
- package/dist/commands/recovery-list.js +1 -1
- package/dist/commands/recovery.js +7 -7
- package/dist/commands/rollback.js +2 -2
- package/dist/commands/s3.js +3 -3
- package/dist/commands/share.js +7 -7
- package/dist/commands/shares-sent.js +2 -2
- package/dist/commands/support.js +1 -1
- package/dist/commands/sweep.js +3 -3
- package/dist/commands/tip.js +2 -2
- package/dist/commands/trial.js +8 -8
- package/dist/commands/unlock.js +6 -6
- package/dist/commands/update.js +3 -3
- package/dist/commands/usage.js +4 -4
- package/dist/commands/verify.js +1 -1
- package/dist/commands/wallet-activity.js +3 -3
- package/dist/commands/wallet-donate.js +4 -4
- package/dist/commands/wallet-hall.js +5 -5
- package/dist/commands/wallet-list.js +2 -2
- package/dist/commands/wallet-send.js +5 -5
- package/dist/commands/wallet-storage-buy.js +1 -1
- package/dist/commands/wallet-storage-extend.js +1 -1
- package/dist/commands/wallet-storage-ops.js +5 -5
- package/dist/commands/wallet-storage.js +1 -1
- package/dist/commands/wallet-swap.js +14 -14
- package/dist/commands/wallet-use.js +2 -2
- package/dist/commands/wallet.js +6 -6
- package/dist/consent.js +7 -7
- package/dist/credentials.js +1 -1
- package/dist/deposit.js +1 -1
- package/dist/download-part.js +1 -1
- package/dist/download-sink-node.js +3 -3
- package/dist/download.js +1 -1
- package/dist/drive-edit/errors.js +1 -1
- package/dist/drive-edit/folders.js +1 -1
- package/dist/drive-edit/trash.js +2 -2
- package/dist/drive-erase.js +1 -1
- package/dist/environment.js +5 -5
- package/dist/errors.js +1 -1
- package/dist/extend-budget.js +5 -5
- package/dist/extend-chain.js +1 -1
- package/dist/extend-plan.js +4 -4
- package/dist/gate.js +1 -1
- package/dist/handover.js +2 -2
- package/dist/heavy-copy.d.ts +1 -1
- package/dist/heavy-copy.js +7 -7
- package/dist/help-options.js +13 -13
- package/dist/help.js +54 -40
- package/dist/human-check.js +2 -2
- package/dist/kit-file.js +6 -6
- package/dist/list-file.js +1 -1
- package/dist/manifest-chunk-flow.js +1 -1
- package/dist/manifest-create.js +2 -2
- package/dist/manifest-write.js +1 -1
- package/dist/manifest.js +6 -3
- package/dist/mcp-args.js +1 -1
- package/dist/mcp-tools/credits.js +5 -5
- package/dist/mcp-tools/files.js +6 -6
- package/dist/mcp-tools/organise.js +7 -7
- package/dist/mcp-tools/reads.js +17 -17
- package/dist/mcp-tools/share.js +6 -6
- package/dist/mcp-tools/support.js +3 -3
- package/dist/mcp-tools/tiers.js +4 -4
- package/dist/notice.js +1 -1
- package/dist/openers/wallet.js +1 -1
- package/dist/platform-sign.js +2 -2
- package/dist/product.d.ts +1 -1
- package/dist/product.js +1 -1
- package/dist/public-codes.js +2 -2
- package/dist/recovery-assemble.js +1 -1
- package/dist/recovery-map-file.js +1 -1
- package/dist/recovery-map.js +1 -1
- package/dist/recovery-source.js +1 -1
- package/dist/recovery.js +1 -1
- package/dist/risk.d.ts +4 -4
- package/dist/risk.js +4 -4
- package/dist/s3/call.js +1 -1
- package/dist/s3/same-file.js +1 -1
- package/dist/setup-questions.js +1 -1
- package/dist/shared/lib/drive/manifest-index.d.ts +9 -0
- package/dist/shared/lib/drive/manifest-index.js +11 -0
- package/dist/shared/lib/heavy/order-plan.js +4 -4
- package/dist/shared/lib/heavy/sp-upload.js +1 -1
- package/dist/shared/lib/upload/relay-limit.d.ts +30 -0
- package/dist/shared/lib/upload/relay-limit.js +74 -0
- package/dist/shared/lib/vendor/nmt-pow.d.ts +21 -0
- package/dist/shared/lib/vendor/nmt-pow.js +56 -0
- package/dist/shared/lib/walrus/node-certificate.js +1 -1
- package/dist/shared/lib/walrus/node-quorum.js +1 -1
- package/dist/sharing-inbox.js +1 -1
- package/dist/sharing.js +4 -4
- package/dist/standing-tip.js +1 -1
- package/dist/storage-control/extend.js +2 -2
- package/dist/storage-control/reshape.js +3 -3
- package/dist/support-copy.js +4 -4
- package/dist/support-wire.js +4 -4
- package/dist/update-source.js +1 -1
- package/dist/upload-price.d.ts +10 -0
- package/dist/upload-price.js +21 -0
- package/dist/upload-quote.js +2 -2
- package/dist/upload-run.js +1 -1
- package/dist/upload-steps.js +1 -1
- package/dist/upload-store.js +1 -1
- package/dist/upload-wallet-chain.js +1 -1
- package/dist/upload-wallet-plan.js +12 -12
- package/dist/upload-wallet-put.js +1 -1
- package/dist/upload-wallet.js +2 -2
- package/dist/upload.js +2 -2
- package/dist/wallet-grant.js +3 -3
- package/dist/wallet-pay-index.js +1 -1
- package/dist/wallet-sign-external.js +5 -5
- package/dist/wallet-sign.js +6 -6
- package/dist/wallet-swap-words.js +3 -3
- package/dist/walrus.js +2 -2
- package/docs/commands/accept-terms.md +3 -3
- package/docs/commands/ai-account.md +4 -4
- package/docs/commands/create.md +8 -8
- package/docs/commands/credits.md +9 -9
- package/docs/commands/delete-account.md +4 -4
- package/docs/commands/deposit.md +7 -7
- package/docs/commands/devices.md +4 -4
- package/docs/commands/documents.md +5 -5
- package/docs/commands/env.md +10 -10
- package/docs/commands/extend.md +4 -4
- package/docs/commands/folders.md +3 -3
- package/docs/commands/get.md +4 -4
- package/docs/commands/handover.md +12 -12
- package/docs/commands/heavy.md +4 -4
- package/docs/commands/key.md +8 -8
- package/docs/commands/link.md +9 -9
- package/docs/commands/login.md +4 -4
- package/docs/commands/logout.md +2 -2
- package/docs/commands/losses.md +3 -3
- package/docs/commands/ls.md +5 -5
- package/docs/commands/marks.md +5 -5
- package/docs/commands/mcp.md +9 -9
- package/docs/commands/mode.md +6 -6
- package/docs/commands/on-collision.md +4 -4
- package/docs/commands/openers.md +5 -5
- package/docs/commands/padding.md +7 -7
- package/docs/commands/platform.md +2 -2
- package/docs/commands/public-code.md +8 -8
- package/docs/commands/pull.md +2 -2
- package/docs/commands/push.md +3 -3
- package/docs/commands/put.md +11 -11
- package/docs/commands/rebuild.md +5 -5
- package/docs/commands/recovery.md +4 -4
- package/docs/commands/s3.md +6 -6
- package/docs/commands/share.md +8 -8
- package/docs/commands/support.md +7 -7
- package/docs/commands/tip.md +7 -7
- package/docs/commands/trash.md +8 -8
- package/docs/commands/trial.md +5 -5
- package/docs/commands/unlock.md +4 -4
- package/docs/commands/update.md +3 -3
- package/docs/commands/usage.md +4 -4
- package/docs/commands/verify.md +5 -5
- package/docs/commands/wallet.md +25 -25
- package/docs/commands/whoami.md +5 -5
- package/examples/podman.sh +3 -3
- package/package.json +1 -1
- package/server.json +2 -2
package/dist/commands/rebuild.js
CHANGED
|
@@ -62,7 +62,7 @@ export async function rebuild(options = {}) {
|
|
|
62
62
|
if (current.manifest !== null) {
|
|
63
63
|
throw new NmtsError(`This account already has a file list (version ${current.seq ?? 0}).`, {
|
|
64
64
|
exitCode: 4,
|
|
65
|
-
nextStep: `Nothing was changed. Rebuilding is for an account whose list is missing
|
|
65
|
+
nextStep: `Nothing was changed. Rebuilding is for an account whose list is missing. Over an existing ` +
|
|
66
66
|
`one it would replace real names with placeholders. Run \`${BINARY_NAME} ls\` to see what ` +
|
|
67
67
|
`the list holds.`,
|
|
68
68
|
});
|
|
@@ -136,7 +136,7 @@ export async function rebuild(options = {}) {
|
|
|
136
136
|
throw new NmtsError(`Not one of this account's keys opened the file it was filed beside.`, {
|
|
137
137
|
exitCode: 4,
|
|
138
138
|
nextStep: `Nothing was changed. Either this is not this account's NMTS key, or the storage network could ` +
|
|
139
|
-
`not be reached at all
|
|
139
|
+
`not be reached at all (${describeReasons(built)}). A list sealed from these pairs would ` +
|
|
140
140
|
`name every file and open none of them.`,
|
|
141
141
|
});
|
|
142
142
|
}
|
|
@@ -159,7 +159,7 @@ export async function rebuild(options = {}) {
|
|
|
159
159
|
say(`Wrote file list version ${written.seq}: ${built.entries.length} ` +
|
|
160
160
|
`entr${built.entries.length === 1 ? "y" : "ies"} (${built.live} live, ${built.trashed} in the trash).`);
|
|
161
161
|
say(``);
|
|
162
|
-
say(` Every file is at the top of the drive under a placeholder name
|
|
162
|
+
say(` Every file is at the top of the drive under a placeholder name: the server had no name,`);
|
|
163
163
|
say(` no folder and no placement to give back.`);
|
|
164
164
|
say(` \`${BINARY_NAME} ls\` shows them; \`${BINARY_NAME} rename\` and \`${BINARY_NAME} mv\` put them back.`);
|
|
165
165
|
reportKeys(say, built);
|
|
@@ -169,19 +169,19 @@ export async function rebuild(options = {}) {
|
|
|
169
169
|
/** What a rebuild would do, in the words somebody is about to decide on. */
|
|
170
170
|
function describe(say, built) {
|
|
171
171
|
say(`This account has no file list, and the server still holds ${built.entries.length} ` +
|
|
172
|
-
`stored file${built.entries.length === 1 ? "" : "s"} for it. The files are there
|
|
172
|
+
`stored file${built.entries.length === 1 ? "" : "s"} for it. The files are there. What is ` +
|
|
173
173
|
`missing is the list that names them.`);
|
|
174
174
|
say(``);
|
|
175
175
|
say(`A rebuild would recover:`);
|
|
176
|
-
say(`
|
|
177
|
-
say(`
|
|
178
|
-
say(`
|
|
179
|
-
say(`
|
|
176
|
+
say(` - ${built.live} live and ${built.trashed} in the trash. The trash keeps its remaining days`);
|
|
177
|
+
say(` - every file's key, without which its bytes could never be opened again`);
|
|
178
|
+
say(` - the sealed content hash, so a later download still checks itself`);
|
|
179
|
+
say(` - each file's real dates and its size`);
|
|
180
180
|
say(``);
|
|
181
181
|
say(`It cannot recover:`);
|
|
182
|
-
say(`
|
|
183
|
-
say(`
|
|
184
|
-
say(`
|
|
182
|
+
say(` - names: each file gets a placeholder such as \`recovered-a1b2c3d4\`, for you to type over`);
|
|
183
|
+
say(` - folders and where each file sat: the rebuilt drive is flat`);
|
|
184
|
+
say(` - stars, labels, share receipts and account settings`);
|
|
185
185
|
say(``);
|
|
186
186
|
say(` None of that is a fault: the server was built not to know it. It keeps a row per stored`);
|
|
187
187
|
say(` file and the key that opens it, and nothing about what the file is called.`);
|
|
@@ -204,7 +204,7 @@ function reportKeys(say, built) {
|
|
|
204
204
|
say(` Keys checked against their own files: ${built.verified} verified, ${notVerified} not.`);
|
|
205
205
|
if (notVerified === 0)
|
|
206
206
|
return;
|
|
207
|
-
say(` A file whose key was not verified keeps its entry and no key
|
|
207
|
+
say(` A file whose key was not verified keeps its entry and no key. Nothing else on this side`);
|
|
208
208
|
say(` can say that key belongs to that file, and a wrong pairing would be sealed for good.`);
|
|
209
209
|
for (const one of built.unverified) {
|
|
210
210
|
if (one.reason === "no-key")
|
|
@@ -239,7 +239,7 @@ function reportGaps(say, built) {
|
|
|
239
239
|
say(``);
|
|
240
240
|
say(` ⚠ ${built.keyless} of them carr${built.keyless === 1 ? "ies" : "y"} no key on the server.` +
|
|
241
241
|
` ${built.keyless === 1 ? "It appears" : "They appear"} in the list and`);
|
|
242
|
-
say(` nothing can open ${built.keyless === 1 ? "it" : "them"}
|
|
242
|
+
say(` nothing can open ${built.keyless === 1 ? "it" : "them"}. The entry is still what says the file was there.`);
|
|
243
243
|
}
|
|
244
244
|
if (built.unaccounted === null) {
|
|
245
245
|
say(``);
|
package/dist/commands/receive.js
CHANGED
|
@@ -26,7 +26,7 @@ export async function receive(id, options = {}) {
|
|
|
26
26
|
if (id === undefined || id === "") {
|
|
27
27
|
throw new NmtsError("Say which share to receive.", {
|
|
28
28
|
exitCode: 2,
|
|
29
|
-
nextStep: `\`${BINARY_NAME} receive <id
|
|
29
|
+
nextStep: `\`${BINARY_NAME} receive <id>\`, with the id \`${BINARY_NAME} shares\` prints.`,
|
|
30
30
|
});
|
|
31
31
|
}
|
|
32
32
|
const session = await openSession({ server: options.server, network: options.network });
|
|
@@ -66,7 +66,7 @@ export async function receive(id, options = {}) {
|
|
|
66
66
|
return 0;
|
|
67
67
|
}
|
|
68
68
|
say(`${got.name} ${got.bytes} bytes`);
|
|
69
|
-
say(` from ${got.sender ?? ""}${got.senderRevoked ? "
|
|
69
|
+
say(` from ${got.sender ?? ""}${got.senderRevoked ? " (the sender has revoked this code)" : ""}`);
|
|
70
70
|
if (got.toIndex !== 0)
|
|
71
71
|
say(` to #${got.toIndex} ${got.toCode}`);
|
|
72
72
|
say(` checked against the hash the sender sealed with it`);
|
|
@@ -66,7 +66,7 @@ export async function recoveryList(options = {}) {
|
|
|
66
66
|
}
|
|
67
67
|
say(`Wrote ${destination}`);
|
|
68
68
|
say(``);
|
|
69
|
-
say(` Recovery list ${seq}
|
|
69
|
+
say(` Recovery list ${seq}: ${built.fileCount} files, ${built.totalBytes} bytes described.`);
|
|
70
70
|
say(` It holds where each file's bytes are on the storage network, and the key that opens`);
|
|
71
71
|
say(` each one, sealed with the NMTS key.`);
|
|
72
72
|
say(``);
|
|
@@ -136,7 +136,7 @@ export async function recovery(options = {}) {
|
|
|
136
136
|
for (const line of wrapText(CHECK_DOES_NOT_PROVE))
|
|
137
137
|
say(` ${line}`);
|
|
138
138
|
say(``);
|
|
139
|
-
for (const line of wrapText(`Nothing was installed. The file is where you see it and nowhere else
|
|
139
|
+
for (const line of wrapText(`Nothing was installed. The file is where you see it and nowhere else. No copy was put on ` +
|
|
140
140
|
`your PATH, and nothing on this machine was pointed at it. Run it with \`--help\` to see ` +
|
|
141
141
|
`what it does.`)) {
|
|
142
142
|
say(` ${line}`);
|
|
@@ -178,7 +178,7 @@ async function fetched(from, cap, what) {
|
|
|
178
178
|
throw new NmtsError(`${what} could not be fetched: ${because(error)}`, {
|
|
179
179
|
exitCode: 1,
|
|
180
180
|
nextStep: `Nothing was written. This talks to the site the recovery program is published on, not ` +
|
|
181
|
-
`to NMTS
|
|
181
|
+
`to NMTS. Check that this machine can reach it, and try again.`,
|
|
182
182
|
});
|
|
183
183
|
}
|
|
184
184
|
if (response.status >= 300 && response.status < 400) {
|
|
@@ -205,11 +205,11 @@ async function fetched(from, cap, what) {
|
|
|
205
205
|
continue;
|
|
206
206
|
}
|
|
207
207
|
if (!response.ok) {
|
|
208
|
-
throw new NmtsError(`${what}
|
|
208
|
+
throw new NmtsError(`${what}: the release answered ${response.status}.`, {
|
|
209
209
|
exitCode: 1,
|
|
210
210
|
nextStep: response.status === 404
|
|
211
211
|
? `Nothing was written. That file is not attached to the release this resolved to.`
|
|
212
|
-
: `Nothing was written. Try again
|
|
212
|
+
: `Nothing was written. Try again. If it keeps answering this, the release page is the ` +
|
|
213
213
|
`place to look.`,
|
|
214
214
|
});
|
|
215
215
|
}
|
|
@@ -233,7 +233,7 @@ function because(error) {
|
|
|
233
233
|
function tooBig(what, cap) {
|
|
234
234
|
return new NmtsError(`${what} is larger than ${Math.round(cap / (1024 * 1024))} MiB.`, {
|
|
235
235
|
exitCode: 4,
|
|
236
|
-
nextStep: `Nothing was written. The published executables are a few megabytes
|
|
236
|
+
nextStep: `Nothing was written. The published executables are a few megabytes. Whatever answered is ` +
|
|
237
237
|
`not one of them.`,
|
|
238
238
|
});
|
|
239
239
|
}
|
|
@@ -284,8 +284,8 @@ function noLineFor(asset, tag, why) {
|
|
|
284
284
|
function doesNotMatch(asset, tag, expected, got) {
|
|
285
285
|
return new NmtsError(`${asset} is not the file release ${tag} published.`, {
|
|
286
286
|
exitCode: 4,
|
|
287
|
-
nextStep: `The downloaded file was deleted. ${SUMS_FILE} says ${expected}
|
|
288
|
-
`${got}. Run this again
|
|
287
|
+
nextStep: `The downloaded file was deleted. ${SUMS_FILE} says ${expected}. What arrived hashes to ` +
|
|
288
|
+
`${got}. Run this again (a download can be cut short), and if it says the same thing twice, ` +
|
|
289
289
|
`do not run the file.`,
|
|
290
290
|
});
|
|
291
291
|
}
|
|
@@ -76,7 +76,7 @@ export async function rollback(options = {}) {
|
|
|
76
76
|
say(``);
|
|
77
77
|
say(`⛔ What version ${current.seq} added is out of the list afterwards: a file's name, the`);
|
|
78
78
|
say(` folder it sits in and the key that opens it live in the list and nowhere else. The`);
|
|
79
|
-
say(` bytes are not touched
|
|
79
|
+
say(` bytes are not touched (the storage stays bought), and \`${BINARY_NAME} rebuild\` finds`);
|
|
80
80
|
say(` files the list does not name.`);
|
|
81
81
|
say(``);
|
|
82
82
|
say(`Nothing was changed. To go ahead: ${BINARY_NAME} rollback --yes`);
|
|
@@ -112,7 +112,7 @@ export async function rollback(options = {}) {
|
|
|
112
112
|
return 0;
|
|
113
113
|
}
|
|
114
114
|
say(`Put version ${previous.seq} of the file list back as the current one, over version ` +
|
|
115
|
-
`${current.seq}. What version ${current.seq} added is out of the list now
|
|
115
|
+
`${current.seq}. What version ${current.seq} added is out of the list now. The bytes are ` +
|
|
116
116
|
`still stored, and \`${BINARY_NAME} rebuild\` finds files the list does not name.`);
|
|
117
117
|
return 0;
|
|
118
118
|
}
|
package/dist/commands/s3.js
CHANGED
|
@@ -90,7 +90,7 @@ export async function s3(options = {}) {
|
|
|
90
90
|
// ⛔ A FILE ALREADY IN THE DRIVE IS NOT REPLACED FROM HERE. Different bytes at a taken key are
|
|
91
91
|
// refused, and the person deletes the old file first; what is said at start-up below.
|
|
92
92
|
overwrite: "refuse",
|
|
93
|
-
onAlreadyStored: (key) => say(`same ${key}
|
|
93
|
+
onAlreadyStored: (key) => say(`same ${key}: already stored, nothing sent`),
|
|
94
94
|
account: {
|
|
95
95
|
readList: async () => {
|
|
96
96
|
const list = await readFileList(session.server, session.apiKey, session.code, session.accountId);
|
|
@@ -165,11 +165,11 @@ export async function s3(options = {}) {
|
|
|
165
165
|
say(` bucket ${BUCKET}`);
|
|
166
166
|
say(` access key id ${credential.accessKeyId}`);
|
|
167
167
|
say(` secret key ${credential.secretAccessKey}`);
|
|
168
|
-
say(` region any
|
|
168
|
+
say(` region any: the signature carries whichever one the client used`);
|
|
169
169
|
say(``);
|
|
170
170
|
say(writable
|
|
171
171
|
? ` Listing, downloading, uploading and deleting all work. Uploading spends credits.`
|
|
172
|
-
: ` ⛔ READ ONLY
|
|
172
|
+
: ` ⛔ READ ONLY: this machine has not agreed to spending, so uploads and deletes are` +
|
|
173
173
|
` refused. \`${BINARY_NAME} consent grant spend\`, run by the person whose account this` +
|
|
174
174
|
` is, changes that.`);
|
|
175
175
|
say(` ⚠ A file already in the drive is not replaced: uploading over one is refused, and a`);
|
package/dist/commands/share.js
CHANGED
|
@@ -36,7 +36,7 @@ export async function share(target, typedAddress, options = {}) {
|
|
|
36
36
|
if (target === undefined || target === "" || typedAddress === undefined || typedAddress === "") {
|
|
37
37
|
throw new NmtsError("Say which file, and which public code to share it with.", {
|
|
38
38
|
exitCode: 2,
|
|
39
|
-
nextStep: `\`${BINARY_NAME} share <path> <public-code
|
|
39
|
+
nextStep: `\`${BINARY_NAME} share <path> <public-code>\`, with the path as \`${BINARY_NAME} ls\` prints it, `
|
|
40
40
|
+ `and the code as their \`${BINARY_NAME} public-code\` or account screen prints it.`,
|
|
41
41
|
});
|
|
42
42
|
}
|
|
@@ -57,7 +57,7 @@ export async function share(target, typedAddress, options = {}) {
|
|
|
57
57
|
const from = sendAs === undefined ? "" : `, from public code #${sendAs}`;
|
|
58
58
|
say(`Would share "${file.path}" with ${typedAddress}${from}.`);
|
|
59
59
|
say(``);
|
|
60
|
-
say(`⛔ Withdrawing later does not recall it
|
|
60
|
+
say(`⛔ Withdrawing later does not recall it. Once the recipient has opened it, they have it.`);
|
|
61
61
|
const as = sendAs === undefined ? "" : ` --as ${sendAs}`;
|
|
62
62
|
say(`Nothing was shared. To go ahead: ${BINARY_NAME} share ${JSON.stringify(target)} ${typedAddress}${as} --yes`);
|
|
63
63
|
say(`⛔ If a program is reading this on somebody's behalf: show it to them and let them decide.`);
|
|
@@ -91,7 +91,7 @@ export async function share(target, typedAddress, options = {}) {
|
|
|
91
91
|
throw new NmtsError(error.message, {
|
|
92
92
|
exitCode: 3,
|
|
93
93
|
nextStep: "This account's key is not allowed to do this. Sharing asks for the strongest evidence " +
|
|
94
|
-
`the server holds that a person was recently here
|
|
94
|
+
`the server holds that a person was recently here. Run \`${BINARY_NAME} verify\` and try again.`,
|
|
95
95
|
});
|
|
96
96
|
}
|
|
97
97
|
throw error;
|
|
@@ -133,7 +133,7 @@ export async function shares(options = {}) {
|
|
|
133
133
|
// what they are looking at is not everything.
|
|
134
134
|
if (received.total > opened.length) {
|
|
135
135
|
say(``);
|
|
136
|
-
say(` ${received.total} in total
|
|
136
|
+
say(` ${received.total} in total. This shows ${opened.length}.`);
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
139
|
say(``);
|
|
@@ -148,7 +148,7 @@ function printRow(say, one, toCode) {
|
|
|
148
148
|
}
|
|
149
149
|
const size = one.size === null ? "" : ` ${one.size} bytes`;
|
|
150
150
|
say(` ${one.id} ${one.name ?? ""}${size}`);
|
|
151
|
-
say(` from ${one.sender ?? ""}${one.senderRevoked ? "
|
|
151
|
+
say(` from ${one.sender ?? ""}${one.senderRevoked ? " (the sender has revoked this code)" : ""}`);
|
|
152
152
|
if (toCode !== null)
|
|
153
153
|
say(` to ${toCode(one)}`);
|
|
154
154
|
}
|
|
@@ -157,7 +157,7 @@ export async function unshare(id, options = {}) {
|
|
|
157
157
|
if (id === undefined || id === "") {
|
|
158
158
|
throw new NmtsError("Say which share to remove.", {
|
|
159
159
|
exitCode: 2,
|
|
160
|
-
nextStep: `\`${BINARY_NAME} unshare <id
|
|
160
|
+
nextStep: `\`${BINARY_NAME} unshare <id>\`, with the id \`${BINARY_NAME} shares\` prints.`,
|
|
161
161
|
});
|
|
162
162
|
}
|
|
163
163
|
const session = await openSession({ server: options.server, network: options.network });
|
|
@@ -168,7 +168,7 @@ export async function unshare(id, options = {}) {
|
|
|
168
168
|
}
|
|
169
169
|
say(`Removed ${id}.`);
|
|
170
170
|
say(``);
|
|
171
|
-
say(` If you sent it, they can no longer download the file
|
|
171
|
+
say(` If you sent it, they can no longer download the file, and any copy they already`);
|
|
172
172
|
say(` took is still theirs. If you received it, the sender's own file is untouched.`);
|
|
173
173
|
return 0;
|
|
174
174
|
}
|
|
@@ -25,7 +25,7 @@ export async function sharesSent(target, options = {}) {
|
|
|
25
25
|
if (target === undefined || target === "") {
|
|
26
26
|
throw new NmtsError("Say which file to look up.", {
|
|
27
27
|
exitCode: 2,
|
|
28
|
-
nextStep: `\`${BINARY_NAME} shares --sent <path
|
|
28
|
+
nextStep: `\`${BINARY_NAME} shares --sent <path>\`, with the path as \`${BINARY_NAME} ls\` prints it.`,
|
|
29
29
|
});
|
|
30
30
|
}
|
|
31
31
|
const session = await openSession({ server: options.server, network: options.network });
|
|
@@ -59,7 +59,7 @@ function sentLine(row, fromShown) {
|
|
|
59
59
|
return value;
|
|
60
60
|
};
|
|
61
61
|
const from = fromShown && isRecord(row) && typeof row["from_index"] === "number" ? ` from #${row["from_index"]}` : "";
|
|
62
|
-
const gone = isRecord(row) && row["recipient_code_revoked"] === true ? "
|
|
62
|
+
const gone = isRecord(row) && row["recipient_code_revoked"] === true ? " (the recipient has revoked this code)" : "";
|
|
63
63
|
return `${at("recipient_address")} since ${utcDay(at("created_at"))}${from} share ${at("id")}${gone}`;
|
|
64
64
|
}
|
|
65
65
|
/** The UTC day of an RFC 3339 instant, `YYYY-MM-DD`. */
|
package/dist/commands/support.js
CHANGED
|
@@ -114,7 +114,7 @@ async function sendReport(options) {
|
|
|
114
114
|
return 0;
|
|
115
115
|
}
|
|
116
116
|
say(``);
|
|
117
|
-
say(`Sent. ${ticket.code}
|
|
117
|
+
say(`Sent. ${ticket.code}: replies arrive in \`${BINARY_NAME} support show ${ticket.code}\`.`);
|
|
118
118
|
return 0;
|
|
119
119
|
}
|
|
120
120
|
/**
|
package/dist/commands/sweep.js
CHANGED
|
@@ -106,9 +106,9 @@ export async function sweep(options = {}) {
|
|
|
106
106
|
say(` ${shown(entry).padEnd(width)} trashed ${ageDays(entry)} days ago`);
|
|
107
107
|
say(``);
|
|
108
108
|
say(`⛔ This cannot be undone. Dropping an entry destroys this account's only remaining copy of`);
|
|
109
|
-
say(` the key that opens that file
|
|
109
|
+
say(` the key that opens that file (the server has already destroyed its own), so nothing`);
|
|
110
110
|
say(` anywhere will open those bytes again. The bytes themselves stay on the storage network`);
|
|
111
|
-
say(` until the term already paid for runs out
|
|
111
|
+
say(` until the term already paid for runs out. No refund follows from this.`);
|
|
112
112
|
say(``);
|
|
113
113
|
reportHeldBack(say, plan);
|
|
114
114
|
say(`Nothing was changed. To go ahead: ${BINARY_NAME} sweep --yes`);
|
|
@@ -147,7 +147,7 @@ function reportHeldBack(say, plan) {
|
|
|
147
147
|
if (plan.waiting.length > 0) {
|
|
148
148
|
say(`${plan.waiting.length} more ${plan.waiting.length === 1 ? "is" : "are"} past ` +
|
|
149
149
|
`${TRASH_RETENTION_DAYS} days and stayed: the server still holds their rows, so the key it ` +
|
|
150
|
-
`keeps is still there. It sweeps its own side on a timer
|
|
150
|
+
`keeps is still there. It sweeps its own side on a timer. Running this again later finishes them.`);
|
|
151
151
|
}
|
|
152
152
|
if (plan.tangled.length > 0) {
|
|
153
153
|
say(`${plan.tangled.length} folder${plan.tangled.length === 1 ? "" : "s"} above ` +
|
package/dist/commands/tip.js
CHANGED
|
@@ -33,7 +33,7 @@ export async function tip(wanted, options = {}) {
|
|
|
33
33
|
return 0;
|
|
34
34
|
}
|
|
35
35
|
say(current > 0
|
|
36
|
-
? `Every storage payment sends ${percentText(current)} % of what it paid to the developer, as a gift, in WAL
|
|
36
|
+
? `Every storage payment sends ${percentText(current)} % of what it paid to the developer, as a gift, in WAL, without asking.`
|
|
37
37
|
: `No standing gift: 0 % of each storage payment goes to the developer.`);
|
|
38
38
|
say(` Set one: \`${BINARY_NAME} tip 2.5\` (in steps of 0.1 %, the dial ends at 10 %). Stop it: \`${BINARY_NAME} tip off\`.`);
|
|
39
39
|
if (consentAt !== undefined)
|
|
@@ -45,7 +45,7 @@ export async function tip(wanted, options = {}) {
|
|
|
45
45
|
throw new NmtsError(`\`${BINARY_NAME} tip\` takes a percent (2.5) or off.`, { exitCode: 2 });
|
|
46
46
|
}
|
|
47
47
|
if (list.manifest === null) {
|
|
48
|
-
throw new NmtsError(`This account has no file list yet
|
|
48
|
+
throw new NmtsError(`This account has no file list yet. The setting lives in the list, and there is nothing to write it into.`, {
|
|
49
49
|
exitCode: 4,
|
|
50
50
|
nextStep: `Upload once (\`${BINARY_NAME} put\`) and set it after.`,
|
|
51
51
|
});
|
package/dist/commands/trial.js
CHANGED
|
@@ -110,7 +110,7 @@ async function apply(server, apiKey, week) {
|
|
|
110
110
|
typeof round !== "string") {
|
|
111
111
|
throw new NmtsError("The server granted a place and described it in a shape this version cannot read.", {
|
|
112
112
|
exitCode: 1,
|
|
113
|
-
nextStep: `The credits are on the account whatever this printed
|
|
113
|
+
nextStep: `The credits are on the account whatever this printed; \`${BINARY_NAME} balance\` reads ` +
|
|
114
114
|
`the ledger. Update this tool.`,
|
|
115
115
|
});
|
|
116
116
|
}
|
|
@@ -142,7 +142,7 @@ function explain(error, week) {
|
|
|
142
142
|
nextStep: `Nothing was taken and this account's place for week ${week.round} is untouched. ` +
|
|
143
143
|
`Applying needs the account's four-week check to be live, and \`${BINARY_NAME} verify\` ` +
|
|
144
144
|
`is what renews it: it prints a short code for a person to type at a browser. A server ` +
|
|
145
|
-
`that asks for a check on every application is an older build than this expects
|
|
145
|
+
`that asks for a check on every application is an older build than this expects; ` +
|
|
146
146
|
`there, a person applies on the account screen at ${HOME_URL}.`,
|
|
147
147
|
});
|
|
148
148
|
case "TRIAL_FULL":
|
|
@@ -171,7 +171,7 @@ function explain(error, week) {
|
|
|
171
171
|
return new NmtsError("This internet connection has taken all the places it can today.", {
|
|
172
172
|
exitCode: 4,
|
|
173
173
|
nextStep: `Nothing was taken. A day's share per connection is what stops one line sweeping a ` +
|
|
174
|
-
`week. Tomorrow it resets
|
|
174
|
+
`week. Tomorrow it resets, though this week's places may be gone by then.`,
|
|
175
175
|
});
|
|
176
176
|
default:
|
|
177
177
|
return error;
|
|
@@ -227,7 +227,7 @@ function asJson(week) {
|
|
|
227
227
|
* has not.
|
|
228
228
|
*/
|
|
229
229
|
function sayWeek(say, week) {
|
|
230
|
-
say(`Free trial
|
|
230
|
+
say(`Free trial, week ${week.round}`);
|
|
231
231
|
say(``);
|
|
232
232
|
if (!week.live) {
|
|
233
233
|
say(` The trial is not running on this server.`);
|
|
@@ -238,7 +238,7 @@ function sayWeek(say, week) {
|
|
|
238
238
|
return;
|
|
239
239
|
}
|
|
240
240
|
say(` places left ${week.slotsLeft} of ${week.winners}`);
|
|
241
|
-
say(` one place gives ${week.creditsPerWinner} credits
|
|
241
|
+
say(` one place gives ${week.creditsPerWinner} credits: ` +
|
|
242
242
|
`${humanSize(week.creditsPerWinner * CREDIT_BYTES)} for one lease period`);
|
|
243
243
|
say(` this account ${week.already ? `took its place this week` : `has not applied this week`}`);
|
|
244
244
|
if (week.held) {
|
|
@@ -256,7 +256,7 @@ function sayWeek(say, week) {
|
|
|
256
256
|
*/
|
|
257
257
|
function sayRules(say) {
|
|
258
258
|
say(`The rules, which this tool does not set and cannot bend:`);
|
|
259
|
-
say(`
|
|
260
|
-
say(`
|
|
261
|
-
say(`
|
|
259
|
+
say(` - one application per account per week, on the server's own week boundaries`);
|
|
260
|
+
say(` - first come, first served: a place goes to whoever asks while one is open`);
|
|
261
|
+
say(` - the week's budget is decided by the server. There is no way to ask for more`);
|
|
262
262
|
}
|
package/dist/commands/unlock.js
CHANGED
|
@@ -25,12 +25,12 @@ function isKey(value) {
|
|
|
25
25
|
}
|
|
26
26
|
function keyOrFail(raw) {
|
|
27
27
|
if (raw === undefined || raw === "") {
|
|
28
|
-
throw new NmtsError("Say which one.", { exitCode: 2, nextStep: `One of: ${CONSENT_KEYS.join("
|
|
28
|
+
throw new NmtsError("Say which one.", { exitCode: 2, nextStep: `One of: ${CONSENT_KEYS.join(", ")}` });
|
|
29
29
|
}
|
|
30
30
|
if (!isKey(raw)) {
|
|
31
31
|
throw new NmtsError(`There is nothing called "${raw}" to unlock.`, {
|
|
32
32
|
exitCode: 2,
|
|
33
|
-
nextStep: `One of: ${CONSENT_KEYS.join("
|
|
33
|
+
nextStep: `One of: ${CONSENT_KEYS.join(", ")}`,
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
36
|
return raw;
|
|
@@ -68,7 +68,7 @@ export async function unlock(action, target, options = {}) {
|
|
|
68
68
|
if (action === "unlock") {
|
|
69
69
|
const key = keyOrFail(target);
|
|
70
70
|
if (options.readLine === undefined && !stdinIsATerminal() && (await currentMode()) !== "skip-permissions") {
|
|
71
|
-
throw new NmtsError(`A person unlocks, at a terminal
|
|
71
|
+
throw new NmtsError(`A person unlocks, at a terminal, and stdin here is not one.`, {
|
|
72
72
|
exitCode: 5,
|
|
73
73
|
nextStep: `If you are an agent: do not unlock things. Show the person what \`${BINARY_NAME} unlock\` ` +
|
|
74
74
|
`prints for "${key}" and let them decide.`,
|
|
@@ -91,7 +91,7 @@ export async function unlock(action, target, options = {}) {
|
|
|
91
91
|
if (wallet !== null) {
|
|
92
92
|
// ⛔ Not a bare date: scope, expiry and ceilings.
|
|
93
93
|
writeWalletGrant(wallet);
|
|
94
|
-
say(`unlocked: wallet
|
|
94
|
+
say(`unlocked: wallet, scope ${wallet.scope}, until ${wallet.expiresAt}`);
|
|
95
95
|
say(` ${ceilingWords(wallet.capWalFrost, wallet.capSuiMist)}`);
|
|
96
96
|
return 0;
|
|
97
97
|
}
|
|
@@ -138,8 +138,8 @@ function walletLines(now) {
|
|
|
138
138
|
const head = state === "active" ? " unlocked " : state === "expired" ? " ran out " : " locked ";
|
|
139
139
|
const out = [`${head} wallet`, ` ${CONSENTS.wallet.what}`];
|
|
140
140
|
if (g !== null) {
|
|
141
|
-
out.push(` scope ${g.scope}
|
|
142
|
-
out.push(` ${ceilingWords(g.capWalFrost, g.capSuiMist)}
|
|
141
|
+
out.push(` scope ${g.scope}, unlocked ${g.grantedAt}, ${state === "expired" ? "ran out" : "until"} ${g.expiresAt}`);
|
|
142
|
+
out.push(` ${ceilingWords(g.capWalFrost, g.capSuiMist)}, signed away so far ${coinAmount(BigInt(g.spentWalFrost))} WAL, ${coinAmount(BigInt(g.spentSuiMist))} SUI in fees`);
|
|
143
143
|
}
|
|
144
144
|
else {
|
|
145
145
|
out.push(` ${BINARY_NAME} unlock wallet --days <1..30> [--scope storage|all] [--cap-wal <coins> --cap-sui <coins>]`);
|
package/dist/commands/update.js
CHANGED
|
@@ -124,7 +124,7 @@ export async function update(options = {}) {
|
|
|
124
124
|
say(` this one ${moduleFile}`);
|
|
125
125
|
say(` the new one wherever the installer puts it, which may come first on your PATH.`);
|
|
126
126
|
say(``);
|
|
127
|
-
say(`Update this copy where it came from
|
|
127
|
+
say(`Update this copy where it came from. To install alongside it anyway:`);
|
|
128
128
|
say(``);
|
|
129
129
|
}
|
|
130
130
|
say(` ${line}`);
|
|
@@ -149,7 +149,7 @@ export async function update(options = {}) {
|
|
|
149
149
|
exitCode: 1,
|
|
150
150
|
nextStep: (outcome.output !== undefined ? `${outcome.output}\n\n` : "") +
|
|
151
151
|
`${running} is still what runs. A global install writes outside your home directory on ` +
|
|
152
|
-
`some setups and needs the rights to do it
|
|
152
|
+
`some setups and needs the rights to do it. Running the same command yourself shows the ` +
|
|
153
153
|
`whole reason:\n\n ${line}`,
|
|
154
154
|
});
|
|
155
155
|
}
|
|
@@ -163,7 +163,7 @@ export async function update(options = {}) {
|
|
|
163
163
|
function couldNotAsk(why) {
|
|
164
164
|
return new NmtsError(`Could not find out which release is newest: ${why}.`, {
|
|
165
165
|
exitCode: 1,
|
|
166
|
-
nextStep: `Nothing was changed. This asks the site the releases are published on
|
|
166
|
+
nextStep: `Nothing was changed. This asks the site the releases are published on (not NMTS). The ` +
|
|
167
167
|
`releases are readable in a browser at:\n\n ${SOURCE_URL}/releases/latest`,
|
|
168
168
|
});
|
|
169
169
|
}
|
package/dist/commands/usage.js
CHANGED
|
@@ -55,8 +55,8 @@ export async function usage(options = {}) {
|
|
|
55
55
|
say(`This account's file list is empty.`);
|
|
56
56
|
return 0;
|
|
57
57
|
}
|
|
58
|
-
say(`${plural(report.files, "file", "files")}
|
|
59
|
-
`${plural(report.folders, "folder", "folders")}
|
|
58
|
+
say(`${plural(report.files, "file", "files")}, ` +
|
|
59
|
+
`${plural(report.folders, "folder", "folders")}, ` +
|
|
60
60
|
`${humanSize(report.bytes)}`);
|
|
61
61
|
if (report.biggest.length > 0) {
|
|
62
62
|
say(``);
|
|
@@ -70,13 +70,13 @@ export async function usage(options = {}) {
|
|
|
70
70
|
say(`Nothing is in the trash.`);
|
|
71
71
|
}
|
|
72
72
|
else {
|
|
73
|
-
say(`In the trash: ${plural(report.trashedFiles, "file", "files")}
|
|
73
|
+
say(`In the trash: ${plural(report.trashedFiles, "file", "files")}, ` +
|
|
74
74
|
`${humanSize(report.trashedBytes)}. That is still stored and still paid for, and it is not`);
|
|
75
75
|
say(`counted above. \`${BINARY_NAME} ls --all\` lists it; \`${BINARY_NAME} sweep\` drops the ` +
|
|
76
76
|
`entries whose 30 days have run out.`);
|
|
77
77
|
}
|
|
78
78
|
say(``);
|
|
79
|
-
say(` Sizes are the plaintext the files hold, counted from this account's own list
|
|
79
|
+
say(` Sizes are the plaintext the files hold, counted from this account's own list. The server`);
|
|
80
80
|
say(` was asked for nothing but the sealed blob, and it could not have answered this anyway.`);
|
|
81
81
|
say(` What the storage network holds is larger: sealing adds bytes, and storage is bought in`);
|
|
82
82
|
say(` fixed units. This is not what the account was charged.`);
|
package/dist/commands/verify.js
CHANGED
|
@@ -89,7 +89,7 @@ export async function verify(options = {}) {
|
|
|
89
89
|
}
|
|
90
90
|
// ⚠ ADDRESSED TO WHOEVER IS RUNNING THIS, WHICH IS OFTEN A PROGRAM. It says what has to happen
|
|
91
91
|
// and who has to do it, and it does not pretend that the tool has any way to do it instead.
|
|
92
|
-
human(`A person has to finish this at a browser. Nothing here can do it for them
|
|
92
|
+
human(`A person has to finish this at a browser. Nothing here can do it for them: what`);
|
|
93
93
|
human(`is being checked is that somebody is there.`);
|
|
94
94
|
human(``);
|
|
95
95
|
human(` Ask the person to open ${minted.verifyUrl}`);
|
|
@@ -56,7 +56,7 @@ export async function walletActivity(options = {}) {
|
|
|
56
56
|
catch (error) {
|
|
57
57
|
throw new NmtsError("The wallet's transactions could not be read from the chain.", {
|
|
58
58
|
exitCode: 1,
|
|
59
|
-
nextStep: `Nothing is known about this wallet's activity from here
|
|
59
|
+
nextStep: `Nothing is known about this wallet's activity from here. That is not the same as there ` +
|
|
60
60
|
`being none. \`${BINARY_NAME} env\` says which network was asked. ` +
|
|
61
61
|
`Cause: ${error instanceof Error ? error.message : String(error)}`,
|
|
62
62
|
});
|
|
@@ -88,8 +88,8 @@ export async function walletActivity(options = {}) {
|
|
|
88
88
|
say(` ago may be missing. Run this again to retry.`);
|
|
89
89
|
}
|
|
90
90
|
say(``);
|
|
91
|
-
say(` The newest ${SHOW} at most
|
|
92
|
-
say(` where the transaction proves it
|
|
91
|
+
say(` The newest ${SHOW} at most. The chain link on each line shows the rest. A name is put only`);
|
|
92
|
+
say(` where the transaction proves it: the storage network's own calls, the two exchanges, a`);
|
|
93
93
|
say(` plain transfer. Anything else is "other". Gifts to the developer show here as sends, and a`);
|
|
94
94
|
say(` fee the free-trial pool paid shows as paid by another address: this tool does not know`);
|
|
95
95
|
say(` those two addresses.`);
|
|
@@ -29,7 +29,7 @@ import { payingWalletIndex } from "../wallet-pay-index.js";
|
|
|
29
29
|
/** The four facts and the promise, as the screens say them, in the order a person reads them. */
|
|
30
30
|
export const GIFT_NOTICES = [
|
|
31
31
|
"This is a voluntary gift. Nothing is provided in return, it is non-refundable, and it cannot be undone once sent.",
|
|
32
|
-
"We keep no record of who sent what. If you ever need to ask about this gift, keep the transaction id shown after sending
|
|
32
|
+
"We keep no record of who sent what. If you ever need to ask about this gift, keep the transaction id shown after sending. It is the only proof.",
|
|
33
33
|
];
|
|
34
34
|
export function asDonationConfig(value) {
|
|
35
35
|
if (!isRecord(value))
|
|
@@ -96,7 +96,7 @@ export async function walletDonate(operands, options = {}) {
|
|
|
96
96
|
: verdict.error === "noGasForWal"
|
|
97
97
|
? "A WAL gift pays its fee in SUI, and the wallet holds less SUI than the reserve kept for that."
|
|
98
98
|
: verdict.error === "invalidAddress"
|
|
99
|
-
? "The published address is not a Sui address
|
|
99
|
+
? "The published address is not a Sui address. Nothing was sent."
|
|
100
100
|
: "The wallet does not hold that much.";
|
|
101
101
|
throw new NmtsError(why, {
|
|
102
102
|
exitCode: verdict.error === "invalidAmount" ? 2 : 4,
|
|
@@ -125,7 +125,7 @@ export async function walletDonate(operands, options = {}) {
|
|
|
125
125
|
say(`Gift of ${facts.amount} ${coin} to the developer`);
|
|
126
126
|
say(` ${shape.destination}`);
|
|
127
127
|
say(feeMist === null
|
|
128
|
-
? ` Chain fee (SUI): could not be measured just now
|
|
128
|
+
? ` Chain fee (SUI): could not be measured just now. It is charged with the signature.`
|
|
129
129
|
: ` Chain fee about ${facts.feeSui} SUI, measured by a dry run just now.`);
|
|
130
130
|
say(``);
|
|
131
131
|
for (const line of GIFT_NOTICES)
|
|
@@ -153,7 +153,7 @@ export async function walletDonate(operands, options = {}) {
|
|
|
153
153
|
return 0;
|
|
154
154
|
}
|
|
155
155
|
say(``);
|
|
156
|
-
say(` Thank you
|
|
156
|
+
say(` Thank you. Your gift was sent. Transaction ${digest}`);
|
|
157
157
|
say(` ${explorerTxUrl(digest, network)}`);
|
|
158
158
|
say(` Keep that id: no record of this gift exists anywhere else.`);
|
|
159
159
|
// ⛔ THE OWNER'S OWN THANKS, IN BOTH LANGUAGES, after every gift whatever its size — the same two
|
|
@@ -80,7 +80,7 @@ export function asHall(value) {
|
|
|
80
80
|
*/
|
|
81
81
|
const REFUSALS = {
|
|
82
82
|
gift_not_found: {
|
|
83
|
-
line: "Your gift is not in the list yet. It appears within an hour
|
|
83
|
+
line: "Your gift is not in the list yet. It appears within an hour, so try again then.",
|
|
84
84
|
exitCode: 4,
|
|
85
85
|
nextStep: "Nothing was published. The gift itself is on the chain either way.",
|
|
86
86
|
},
|
|
@@ -90,7 +90,7 @@ const REFUSALS = {
|
|
|
90
90
|
nextStep: "Nothing was published. Choose another name and run the same command again.",
|
|
91
91
|
},
|
|
92
92
|
listing_stale: {
|
|
93
|
-
line: "A newer listing request exists
|
|
93
|
+
line: "A newer listing request exists. Try again.",
|
|
94
94
|
exitCode: 4,
|
|
95
95
|
nextStep: "Nothing was published. Something else set this address's name after this run started.",
|
|
96
96
|
},
|
|
@@ -139,8 +139,8 @@ async function show(server, say, options) {
|
|
|
139
139
|
return 0;
|
|
140
140
|
}
|
|
141
141
|
const hall = asHall(answer.body);
|
|
142
|
-
say(`Hall of fame
|
|
143
|
-
say(` ${hall.developerLabel}
|
|
142
|
+
say(`Hall of fame: everyone who sent the developer a gift`);
|
|
143
|
+
say(` ${hall.developerLabel}, builds NMTS`);
|
|
144
144
|
say(` ${hall.developerAddress}`);
|
|
145
145
|
say(``);
|
|
146
146
|
if (hall.entries.length === 0) {
|
|
@@ -217,6 +217,6 @@ async function setName(server, say, options) {
|
|
|
217
217
|
say(` from ${address} (wallet ${wallet})`);
|
|
218
218
|
say(``);
|
|
219
219
|
say(` The hall of fame is at ${HOME_URL}/hall. Run \`${BINARY_NAME} wallet hall --remove\` to go`);
|
|
220
|
-
say(` back to a shortened address
|
|
220
|
+
say(` back to a shortened address. The gifts themselves stay on the chain either way.`);
|
|
221
221
|
return 0;
|
|
222
222
|
}
|
|
@@ -81,10 +81,10 @@ export async function walletList(options = {}) {
|
|
|
81
81
|
}
|
|
82
82
|
say(``);
|
|
83
83
|
say(` Every wallet above comes from this NMTS key, at the number in the first column. The one`);
|
|
84
|
-
say(` marked "pays" is the one storage is paid from
|
|
84
|
+
say(` marked "pays" is the one storage is paid from; \`${BINARY_NAME} wallet use <number>\` moves it,`);
|
|
85
85
|
say(` on this account rather than on this machine. Numbers come from the key, so a wallet`);
|
|
86
86
|
say(` cannot be deleted.`);
|
|
87
|
-
say(` The list stops after twenty unused wallets in a row
|
|
87
|
+
say(` The list stops after twenty unused wallets in a row. A wallet further out than that is`);
|
|
88
88
|
say(` reached by its number.`);
|
|
89
89
|
if (unread) {
|
|
90
90
|
say(` A balance that could not be read is printed as that and never as zero, and this command`);
|