@needmoretruth/nmts-cli 0.54.1 → 0.55.0
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/CHANGELOG.md +20 -0
- package/README.ko.md +1 -1
- package/README.md +1 -1
- package/dist/artifact-about.d.ts +1 -1
- package/dist/client-id.d.ts +1 -1
- package/dist/client-id.js +1 -1
- package/dist/commands/push.js +5 -1
- package/dist/commands/put-wallet.js +5 -1
- package/dist/commands/put.js +5 -1
- package/dist/manifest.js +3 -0
- package/dist/node-read.d.ts +2 -0
- package/dist/node-read.js +24 -0
- package/dist/product.d.ts +1 -1
- package/dist/product.js +1 -1
- package/dist/read-race.d.ts +35 -0
- package/dist/read-race.js +91 -0
- package/dist/road-hosts.generated.d.ts +4 -0
- package/dist/road-hosts.generated.js +284 -0
- package/dist/shared/lib/upload/wallet-storage-estimate.d.ts +16 -0
- package/dist/shared/lib/upload/wallet-storage-estimate.js +44 -0
- package/dist/shared/lib/wallet/graphql-history.d.ts +7 -2
- package/dist/shared/lib/wallet/graphql-history.js +7 -2
- package/dist/shared/lib/walrus/credit-tip.d.ts +24 -0
- package/dist/shared/lib/walrus/credit-tip.js +61 -0
- package/dist/shared/lib/walrus/node-certificate.d.ts +18 -0
- package/dist/shared/lib/walrus/node-certificate.js +77 -0
- package/dist/shared/lib/walrus/node-quorum.d.ts +17 -0
- package/dist/shared/lib/walrus/node-quorum.js +103 -0
- package/dist/shared/lib/walrus/tip-config.d.ts +33 -0
- package/dist/shared/lib/walrus/tip-config.js +68 -0
- package/dist/upload-road.d.ts +55 -0
- package/dist/upload-road.js +155 -0
- package/dist/upload-steps.js +1 -0
- package/dist/upload-wallet-chain.d.ts +1 -1
- package/dist/upload-wallet-chain.js +17 -4
- package/dist/upload-wallet.js +1 -0
- package/dist/upload-wire.d.ts +7 -1
- package/dist/upload.js +5 -5
- package/dist/walrus-write.js +73 -6
- package/dist/walrus.d.ts +21 -2
- package/dist/walrus.js +116 -34
- package/package.json +1 -1
- package/server.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,26 @@
|
|
|
3
3
|
Each version's entry is what changed for the person or the program using `nmts`. The product's own
|
|
4
4
|
update history, which covers the site and the server too, is at https://nmts.me/updates.
|
|
5
5
|
|
|
6
|
+
## 0.55.0 — 2026-11-10
|
|
7
|
+
|
|
8
|
+
- Uploads (`put`, `push`) keep working when every company's upload relay is down. The order is now
|
|
9
|
+
Mysten Labs' relay, then Studio Mirai's relay, then the Walrus storage nodes straight from this
|
|
10
|
+
machine, and NMTS's own relay last. On the direct road the tool encodes the file itself and sends
|
|
11
|
+
about five times its size, with no relay fee; it stops once the storage nodes holding enough of
|
|
12
|
+
the network's shards have confirmed, which is the rule the chain checks.
|
|
13
|
+
- Uploads paid with credits can now go through Studio Mirai's relay too, but only while its fee for
|
|
14
|
+
that upload is at most three times Mysten Labs' fee; above that the upload goes to the storage nodes.
|
|
15
|
+
- `get` and the other downloads read the file from the storage nodes when no aggregator answers.
|
|
16
|
+
- Sui reads fall back to 01NODE and then PublicNode after Suiscan and Mysten Labs.
|
|
17
|
+
|
|
18
|
+
## 0.54.2 — 2026-11-09
|
|
19
|
+
|
|
20
|
+
- When Mysten Labs' upload relay does not answer, uploads (`put`, `push`) now go through NMTS's own
|
|
21
|
+
relay on the NMTS server instead of failing. On that road a file is sent in parts of at most
|
|
22
|
+
64 MiB, one at a time. Each part carries Walrus's fixed cost per blob, so a large file costs up to
|
|
23
|
+
about 20% more, and the price the review shows already counts those parts. While the relay carries
|
|
24
|
+
another upload, the next one waits and then goes.
|
|
25
|
+
|
|
6
26
|
## 0.54.1 — 2026-11-09
|
|
7
27
|
|
|
8
28
|
- `nmts wallet activity` and `nmts wallet list` no longer stop with an error when a Sui node refuses
|
package/README.ko.md
CHANGED
|
@@ -50,7 +50,7 @@ nmts --help
|
|
|
50
50
|
|
|
51
51
|
```sh
|
|
52
52
|
npm install -g github:needmoretruth/nmts-cli # 기본 브랜치
|
|
53
|
-
npm install -g github:needmoretruth/nmts-cli#v0.
|
|
53
|
+
npm install -g github:needmoretruth/nmts-cli#v0.55.0 # 버전을 고정할 때
|
|
54
54
|
npm install -g https://github.com/needmoretruth/nmts-cli/releases/latest/download/nmts.tgz
|
|
55
55
|
```
|
|
56
56
|
|
package/README.md
CHANGED
|
@@ -51,7 +51,7 @@ default branch, from a pinned version, or from the tarball attached to the
|
|
|
51
51
|
|
|
52
52
|
```sh
|
|
53
53
|
npm install -g github:needmoretruth/nmts-cli # the default branch
|
|
54
|
-
npm install -g github:needmoretruth/nmts-cli#v0.
|
|
54
|
+
npm install -g github:needmoretruth/nmts-cli#v0.55.0 # a pinned version
|
|
55
55
|
npm install -g https://github.com/needmoretruth/nmts-cli/releases/latest/download/nmts.tgz
|
|
56
56
|
```
|
|
57
57
|
|
package/dist/artifact-about.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export declare const CRYPTO_SPEC_URL = "https://github.com/needmoretruth/nmts-re
|
|
|
11
11
|
* is the field's own contract — what the writer says about itself — and a person holding two
|
|
12
12
|
* copies of one account's artefacts can then tell which program made each.
|
|
13
13
|
*/
|
|
14
|
-
export declare const WRITTEN_BY = "nmts-cli 0.
|
|
14
|
+
export declare const WRITTEN_BY = "nmts-cli 0.55.0";
|
|
15
15
|
/** Which of the three artefacts a wrapper is. A reader holding several can sort them. */
|
|
16
16
|
export type ArtifactKind = "recovery-list" | "file-list" | "recovery-kit";
|
|
17
17
|
/**
|
package/dist/client-id.d.ts
CHANGED
|
@@ -7,5 +7,5 @@ export type ClientKind = "cli" | "mcp" | "sdk";
|
|
|
7
7
|
* points with `"sdk"` and the SDK's own version.
|
|
8
8
|
*/
|
|
9
9
|
export declare function identifyClient(next: ClientKind, nextVersion?: string): void;
|
|
10
|
-
/** `cli/0.54.
|
|
10
|
+
/** `cli/0.54.2`, `mcp/0.54.1`, `sdk/0.17.0`. */
|
|
11
11
|
export declare function clientHeaderValue(): string;
|
package/dist/client-id.js
CHANGED
|
@@ -24,7 +24,7 @@ export function identifyClient(next, nextVersion = VERSION) {
|
|
|
24
24
|
kind = next;
|
|
25
25
|
version = nextVersion;
|
|
26
26
|
}
|
|
27
|
-
/** `cli/0.54.
|
|
27
|
+
/** `cli/0.54.2`, `mcp/0.54.1`, `sdk/0.17.0`. */
|
|
28
28
|
export function clientHeaderValue() {
|
|
29
29
|
return `${kind}/${version}`;
|
|
30
30
|
}
|
package/dist/commands/push.js
CHANGED
|
@@ -32,6 +32,7 @@ import { fileSource } from "../upload-file-node.js";
|
|
|
32
32
|
import { createUploadApi } from "../upload-api.js";
|
|
33
33
|
import { clearItemRecord, clearReservation } from "../upload-store.js";
|
|
34
34
|
import { CREDIT_BYTES, partSizeFor, planAndPrice, UPLOAD_EPOCHS } from "../upload-price.js";
|
|
35
|
+
import { chooseUploadRoad, partSizeForRoad } from "../upload-road.js";
|
|
35
36
|
import { createBlobProtocol, readCurrentEpoch } from "../walrus-write.js";
|
|
36
37
|
import { ensureFolderPath } from "../drive-edit.js";
|
|
37
38
|
import { payerOf, refuseWalletOnlyOptions } from "./put.js";
|
|
@@ -70,7 +71,10 @@ export async function push(target, options = {}) {
|
|
|
70
71
|
return 0;
|
|
71
72
|
}
|
|
72
73
|
const session = await openSession({ server: options.server, network: options.network });
|
|
73
|
-
|
|
74
|
+
// ⛔ THE ROAD BEFORE THE PRICE (D50): on NMTS's own relay the parts are 64 MiB, and the credits
|
|
75
|
+
// quoted below are the credits of those parts.
|
|
76
|
+
await chooseUploadRoad({ network: session.network, server: session.server, apiKey: session.apiKey, credit: true });
|
|
77
|
+
const partSize = partSizeForRoad(partSizeFor(options.partSize));
|
|
74
78
|
// ⛔ READ BEFORE ANYTHING IS SEALED OR PAID FOR — a typo must not surface after the money.
|
|
75
79
|
const asked = parseAsked(options.onCollision);
|
|
76
80
|
const list = await readFileList(session.server, session.apiKey, session.code, session.accountId);
|
|
@@ -31,6 +31,7 @@ import { stderrSink } from "../progress-node.js";
|
|
|
31
31
|
import { resolveServer } from "../server.js";
|
|
32
32
|
import { fileSource } from "../upload-file-node.js";
|
|
33
33
|
import { partSizeFor } from "../upload-price.js";
|
|
34
|
+
import { chooseUploadRoad, partSizeForRoad } from "../upload-road.js";
|
|
34
35
|
import { measureLocal } from "../upload-price-node.js";
|
|
35
36
|
import { downloadForRefill, findOriginal, settleRefill } from "../refill-source.js";
|
|
36
37
|
import { describeUploadReview } from "../upload-wallet-plan.js";
|
|
@@ -60,6 +61,9 @@ export async function putWithWallet(target, options) {
|
|
|
60
61
|
const stored = readCredentialsFile();
|
|
61
62
|
const server = resolveServer(options.server ?? stored?.server);
|
|
62
63
|
const network = resolveNetwork(server, options.network ?? stored?.network);
|
|
64
|
+
// ⛔ THE ROAD BEFORE THE PRICE (D50): on NMTS's own relay the parts are 64 MiB, and the credits
|
|
65
|
+
// quoted below are the credits of those parts.
|
|
66
|
+
await chooseUploadRoad({ network, server, apiKey: key.key, otherCompanies: true });
|
|
63
67
|
const identity = await identityOf(resolved.code);
|
|
64
68
|
const crypt = await loadCrypto();
|
|
65
69
|
const asked = parseAsked(options.onCollision);
|
|
@@ -84,7 +88,7 @@ export async function putWithWallet(target, options) {
|
|
|
84
88
|
network,
|
|
85
89
|
accountId: identity.accountId,
|
|
86
90
|
crypt,
|
|
87
|
-
partSize: partSizeFor(options.partSize),
|
|
91
|
+
partSize: partSizeForRoad(partSizeFor(options.partSize)),
|
|
88
92
|
rule,
|
|
89
93
|
onCollision: asked,
|
|
90
94
|
settings: list.manifest?.settings,
|
package/dist/commands/put.js
CHANGED
|
@@ -14,6 +14,7 @@ import { basename, resolve } from "node:path";
|
|
|
14
14
|
import { identityOf } from "../account.js";
|
|
15
15
|
import { requireAccountCode } from "../code-access.js";
|
|
16
16
|
import { API_KEY_ENV_VAR, CODE_ENV_VAR, readCredentialsFile, resolveApiKey } from "../credentials.js";
|
|
17
|
+
import { chooseUploadRoad, partSizeForRoad } from "../upload-road.js";
|
|
17
18
|
import { parseAsked } from "../collision.js";
|
|
18
19
|
import { depositDefaultOf, depositLines, parseDeposit, refuseDepositWithWallet } from "../deposit.js";
|
|
19
20
|
import { DERIVED, loadCrypto } from "../crypto.js";
|
|
@@ -103,10 +104,13 @@ export async function put(target, options = {}) {
|
|
|
103
104
|
}
|
|
104
105
|
const localPath = resolve(target);
|
|
105
106
|
const size = measureLocal(localPath);
|
|
106
|
-
const partSize = partSizeFor(options.partSize);
|
|
107
107
|
const stored = readCredentialsFile();
|
|
108
108
|
const server = resolveServer(options.server ?? stored?.server);
|
|
109
109
|
const network = resolveNetwork(server, options.network ?? stored?.network);
|
|
110
|
+
// ⛔ THE ROAD BEFORE THE PRICE (D50): on NMTS's own relay the parts are 64 MiB, and the credits
|
|
111
|
+
// quoted below are the credits of those parts.
|
|
112
|
+
await chooseUploadRoad({ network, server, apiKey: key.key, credit: true });
|
|
113
|
+
const partSize = partSizeForRoad(partSizeFor(options.partSize));
|
|
110
114
|
const identity = await identityOf(resolved.code);
|
|
111
115
|
const crypt = await loadCrypto();
|
|
112
116
|
const [from, to] = DERIVED.dataKey;
|
package/dist/manifest.js
CHANGED
|
@@ -225,6 +225,9 @@ export async function readFileList(base, apiKey, accountCode, accountId) {
|
|
|
225
225
|
"account sealed. Nothing was changed.",
|
|
226
226
|
});
|
|
227
227
|
}
|
|
228
|
+
// ⛔ The index is packed with zstd whenever the writer had the codec, and this is the first read
|
|
229
|
+
// in a fresh process: the codec registers here, before the index, not only in `openChunks`.
|
|
230
|
+
await host().zstd.register();
|
|
228
231
|
const doc = await decodeFileList(body);
|
|
229
232
|
body.fill(0);
|
|
230
233
|
const io = { server: base, apiKey, accountId, crypt, key };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Reading straight from the Walrus storage nodes: the last road for a download (D51, 2026-11-09).
|
|
3
|
+
*
|
|
4
|
+
* ⛔ WHY. Every read went through an aggregator, a company's server that asks the nodes for you. On
|
|
5
|
+
* the day none of them answers, a file is still on the nodes; this asks them itself, through the
|
|
6
|
+
* same SDK the uploads use, and decodes the blob here. It is slower and asks many hosts (one per
|
|
7
|
+
* shard holder), so it runs only after every aggregator failed for a reason other than "not found".
|
|
8
|
+
*
|
|
9
|
+
* ⛔ IN ITS OWN FILE, LOADED ONLY WHEN NEEDED. The SDK and its encoder are large; a `get` that an
|
|
10
|
+
* aggregator served never loads them.
|
|
11
|
+
*/
|
|
12
|
+
import { walrus } from "@mysten/walrus";
|
|
13
|
+
import { reachFetch } from "./reach.js";
|
|
14
|
+
import { suiClient } from "./sui-rpc.js";
|
|
15
|
+
/** One blob, or one file inside a quilt, read and decoded from the storage nodes. */
|
|
16
|
+
export async function readFromNodes(network, kind, id) {
|
|
17
|
+
const client = suiClient(network === "mainnet" ? "mainnet" : "testnet").$extend(walrus({ storageNodeClientOptions: { fetch: reachFetch } }));
|
|
18
|
+
if (kind === "blob")
|
|
19
|
+
return client.walrus.readBlob({ blobId: id });
|
|
20
|
+
const [file] = await client.walrus.getFiles({ ids: [id] });
|
|
21
|
+
if (file === undefined)
|
|
22
|
+
throw new Error(`the storage nodes returned nothing for ${id}`);
|
|
23
|
+
return file.bytes();
|
|
24
|
+
}
|
package/dist/product.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export declare const BINARY_NAME = "nmts";
|
|
|
9
9
|
* beside it. Here rather than in `main.ts` because the MCP server has to say it too, and a
|
|
10
10
|
* command importing the entry point is a cycle waiting to bite.
|
|
11
11
|
*/
|
|
12
|
-
export declare const VERSION = "0.
|
|
12
|
+
export declare const VERSION = "0.55.0";
|
|
13
13
|
/** Where the product lives, for messages that need to send somebody somewhere real. */
|
|
14
14
|
export declare const HOME_URL = "https://nmts.me";
|
|
15
15
|
/** The source, so a person holding only the built program can find what it was built from. */
|
package/dist/product.js
CHANGED
|
@@ -18,7 +18,7 @@ export const BINARY_NAME = "nmts";
|
|
|
18
18
|
* beside it. Here rather than in `main.ts` because the MCP server has to say it too, and a
|
|
19
19
|
* command importing the entry point is a cycle waiting to bite.
|
|
20
20
|
*/
|
|
21
|
-
export const VERSION = "0.
|
|
21
|
+
export const VERSION = "0.55.0";
|
|
22
22
|
/** Where the product lives, for messages that need to send somebody somewhere real. */
|
|
23
23
|
export const HOME_URL = "https://nmts.me";
|
|
24
24
|
/** The source, so a person holding only the built program can find what it was built from. */
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Asking many aggregators for one object without paying a timeout per dead one (D51, 2026-11-09).
|
|
3
|
+
*
|
|
4
|
+
* ⛔ WHY. The read list became every aggregator in Walrus's operator registry that served the probe
|
|
5
|
+
* blob (dozens). Asked one after another, a dead first row cost its whole timeout before the second
|
|
6
|
+
* was asked. Here the first host is asked at once and the next when one fails or after `hedgeMs`
|
|
7
|
+
* with no answer; the first to send its headers wins, the others are cancelled, and only that one
|
|
8
|
+
* sends a body. A dead row costs `hedgeMs`, not a minute.
|
|
9
|
+
*
|
|
10
|
+
* ⛔ A HOST THAT DOES NOT ANSWER IS GIVEN UP AFTER `headerTimeoutMs`, so hanging rows cannot fill the
|
|
11
|
+
* in-flight cap for long. With every row hanging, the whole list is through in about
|
|
12
|
+
* (rows ÷ cap) × header timeout, and the storage nodes are asked after it (`walrus.ts`).
|
|
13
|
+
*/
|
|
14
|
+
/** What one host said: the response to read, a 404, or something else. */
|
|
15
|
+
export type Reply = {
|
|
16
|
+
response: Response;
|
|
17
|
+
} | "not-found" | "failed";
|
|
18
|
+
export interface RaceOptions {
|
|
19
|
+
/** Ask the next host as well after this long with no answer. */
|
|
20
|
+
hedgeMs: number;
|
|
21
|
+
/** At most this many hosts waiting at once, hanging ones included. */
|
|
22
|
+
maxInFlight: number;
|
|
23
|
+
/** A host with no headers after this long is given up. */
|
|
24
|
+
headerTimeoutMs: number;
|
|
25
|
+
/** This many 404s and no other answer mean the object is not there. */
|
|
26
|
+
notFoundQuorum: number;
|
|
27
|
+
signal?: AbortSignal | undefined;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Race `hosts`. `ask` sends the request with the signal it is given and answers with the reply; the
|
|
31
|
+
* first reply carrying a response wins and is handed to `read`, which turns its body into the value.
|
|
32
|
+
* When `read` throws, that host counts as failed and the race goes on with the hosts not yet asked.
|
|
33
|
+
* Null when nobody gave a body (`tried` holds each host's reason).
|
|
34
|
+
*/
|
|
35
|
+
export declare function raceHosts<T>(hosts: readonly string[], ask: (host: string, signal: AbortSignal) => Promise<Reply>, read: (host: string, response: Response) => Promise<T>, options: RaceOptions): Promise<T | null>;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Asking many aggregators for one object without paying a timeout per dead one (D51, 2026-11-09).
|
|
3
|
+
*
|
|
4
|
+
* ⛔ WHY. The read list became every aggregator in Walrus's operator registry that served the probe
|
|
5
|
+
* blob (dozens). Asked one after another, a dead first row cost its whole timeout before the second
|
|
6
|
+
* was asked. Here the first host is asked at once and the next when one fails or after `hedgeMs`
|
|
7
|
+
* with no answer; the first to send its headers wins, the others are cancelled, and only that one
|
|
8
|
+
* sends a body. A dead row costs `hedgeMs`, not a minute.
|
|
9
|
+
*
|
|
10
|
+
* ⛔ A HOST THAT DOES NOT ANSWER IS GIVEN UP AFTER `headerTimeoutMs`, so hanging rows cannot fill the
|
|
11
|
+
* in-flight cap for long. With every row hanging, the whole list is through in about
|
|
12
|
+
* (rows ÷ cap) × header timeout, and the storage nodes are asked after it (`walrus.ts`).
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Race `hosts`. `ask` sends the request with the signal it is given and answers with the reply; the
|
|
16
|
+
* first reply carrying a response wins and is handed to `read`, which turns its body into the value.
|
|
17
|
+
* When `read` throws, that host counts as failed and the race goes on with the hosts not yet asked.
|
|
18
|
+
* Null when nobody gave a body (`tried` holds each host's reason).
|
|
19
|
+
*/
|
|
20
|
+
export function raceHosts(hosts, ask, read, options) {
|
|
21
|
+
return new Promise((resolve, reject) => {
|
|
22
|
+
const queue = [...hosts];
|
|
23
|
+
const live = new Map();
|
|
24
|
+
let notFound = 0;
|
|
25
|
+
let failed = 0;
|
|
26
|
+
let reading = false;
|
|
27
|
+
let done = false;
|
|
28
|
+
let hedge = null;
|
|
29
|
+
const settle = (fn) => {
|
|
30
|
+
if (done)
|
|
31
|
+
return;
|
|
32
|
+
done = true;
|
|
33
|
+
if (hedge)
|
|
34
|
+
clearTimeout(hedge);
|
|
35
|
+
for (const c of live.values())
|
|
36
|
+
c.abort();
|
|
37
|
+
live.clear();
|
|
38
|
+
fn();
|
|
39
|
+
};
|
|
40
|
+
options.signal?.addEventListener("abort", () => settle(() => reject(options.signal?.reason)), { once: true });
|
|
41
|
+
const next = () => {
|
|
42
|
+
if (done || reading)
|
|
43
|
+
return;
|
|
44
|
+
if (hedge)
|
|
45
|
+
clearTimeout(hedge);
|
|
46
|
+
hedge = null;
|
|
47
|
+
if (notFound >= options.notFoundQuorum && failed === 0)
|
|
48
|
+
return settle(() => resolve(null));
|
|
49
|
+
if (queue.length === 0) {
|
|
50
|
+
if (live.size === 0)
|
|
51
|
+
settle(() => resolve(null));
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
if (live.size >= options.maxInFlight)
|
|
55
|
+
return;
|
|
56
|
+
const host = queue.shift() ?? "";
|
|
57
|
+
const controller = new AbortController();
|
|
58
|
+
live.set(host, controller);
|
|
59
|
+
const giveUp = setTimeout(() => controller.abort(new DOMException("no answer in time", "TimeoutError")), options.headerTimeoutMs);
|
|
60
|
+
void ask(host, controller.signal)
|
|
61
|
+
.catch(() => "failed")
|
|
62
|
+
.then((reply) => {
|
|
63
|
+
clearTimeout(giveUp);
|
|
64
|
+
live.delete(host);
|
|
65
|
+
if (done)
|
|
66
|
+
return;
|
|
67
|
+
if (reply === "not-found" || reply === "failed") {
|
|
68
|
+
if (reply === "not-found")
|
|
69
|
+
notFound++;
|
|
70
|
+
else
|
|
71
|
+
failed++;
|
|
72
|
+
return next();
|
|
73
|
+
}
|
|
74
|
+
// The first headers win: the others stop, and only this host sends a body.
|
|
75
|
+
reading = true;
|
|
76
|
+
if (hedge)
|
|
77
|
+
clearTimeout(hedge);
|
|
78
|
+
for (const c of live.values())
|
|
79
|
+
c.abort();
|
|
80
|
+
live.clear();
|
|
81
|
+
read(host, reply.response).then((value) => settle(() => resolve(value)), () => {
|
|
82
|
+
reading = false;
|
|
83
|
+
failed++;
|
|
84
|
+
next();
|
|
85
|
+
});
|
|
86
|
+
});
|
|
87
|
+
hedge = setTimeout(next, options.hedgeMs);
|
|
88
|
+
};
|
|
89
|
+
next();
|
|
90
|
+
});
|
|
91
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/** Aggregators from Walrus's operator registry that served the probe blob to https://nmts.me, pinned first rows first, then fastest first. */
|
|
2
|
+
export declare const REGISTRY_AGGREGATORS: Readonly<Record<"testnet" | "mainnet", readonly string[]>>;
|
|
3
|
+
/** The live Walrus committee's storage nodes a https page can call — the last road for uploads and downloads. */
|
|
4
|
+
export declare const STORAGE_NODE_ORIGINS: Readonly<Record<"testnet" | "mainnet", readonly string[]>>;
|
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
// GENERATED by deploy/gen-roads.mjs on 2026-11-09 — do not edit by hand; run `node deploy/gen-roads.mjs --write`.
|
|
2
|
+
// The browser, its CSP (web/next.config.ts) and the command line read these same rows; the probe that
|
|
3
|
+
// chose them is deploy/roads/probe.json, and `node deploy/gen-roads.mjs --check` says when they drift.
|
|
4
|
+
/** Aggregators from Walrus's operator registry that served the probe blob to https://nmts.me, pinned first rows first, then fastest first. */
|
|
5
|
+
export const REGISTRY_AGGREGATORS = {
|
|
6
|
+
testnet: [
|
|
7
|
+
"https://aggregator.walrus-testnet.walrus.space",
|
|
8
|
+
"https://walrus-testnet-aggregator.nodeinfra.com",
|
|
9
|
+
"https://testnet-aggregator-walrus.kiliglab.io",
|
|
10
|
+
"https://aggregator.testnet.walrus.mirai.cloud",
|
|
11
|
+
"https://suiftly-testnet-agg.mhax.io",
|
|
12
|
+
"https://walrus-test-aggregator.thepassivetrust.com",
|
|
13
|
+
"https://aggregator.walrus.banansen.dev",
|
|
14
|
+
"https://walrus-testnet-aggregator.stakely.io",
|
|
15
|
+
"https://aggregator.walrus-testnet.h2o-nodes.com",
|
|
16
|
+
"https://walrus-aggregator-testnet.cetus.zone",
|
|
17
|
+
"https://aggregator.walrus-01.tududes.com",
|
|
18
|
+
"https://walrus-aggregator-testnet.haedal.xyz",
|
|
19
|
+
"https://walrus-testnet-aggregator.stakingdefenseleague.com",
|
|
20
|
+
"https://testnet.aggregator.walrus.silentvalidator.com",
|
|
21
|
+
"https://sui-walrus-tn-aggregator.bwarelabs.com",
|
|
22
|
+
"https://walrus-testnet-aggregator.chainbase.online",
|
|
23
|
+
"https://walrus-aggregator-testnet.staking4all.org",
|
|
24
|
+
"https://walrus-aggregator-testnet.n1stake.com",
|
|
25
|
+
"https://testnet-aggregator.walrus.graphyte.dev",
|
|
26
|
+
"https://walrus-testnet-aggregator.dzdaic.com",
|
|
27
|
+
"https://walrus-testnet-aggregator-1.zkv.xyz",
|
|
28
|
+
"https://walrus-agg-testnet.chainode.tech:9002",
|
|
29
|
+
"https://walrus-testnet-aggregator.redundex.com",
|
|
30
|
+
"https://walrus-testnet-aggregator.stakecraft.com",
|
|
31
|
+
"https://walrus-agg.testnet.obelisk.sh",
|
|
32
|
+
"https://walrus-testnet-aggregator.rpc101.org",
|
|
33
|
+
"https://walrus-testnet-aggregator.starduststaking.com",
|
|
34
|
+
"https://walrus-testnet-aggregator.nodes.guru",
|
|
35
|
+
"https://walrus-testnet.veera.com",
|
|
36
|
+
"https://walrus-tn.juicystake.io:9443",
|
|
37
|
+
"https://walrus-testnet.blockscope.net",
|
|
38
|
+
"https://walrus-testnet-aggregator.talentum.id",
|
|
39
|
+
"https://walrus-agg-test.bucketprotocol.io",
|
|
40
|
+
"https://walrus.testnet.aggregator.stakepool.dev.br",
|
|
41
|
+
"https://walrus-testnet-aggregator.luckyresearch.org",
|
|
42
|
+
"https://walrus-aggregator.thcloud.dev",
|
|
43
|
+
"https://walrusagg.testnet.pops.one",
|
|
44
|
+
],
|
|
45
|
+
mainnet: [
|
|
46
|
+
"https://aggregator.walrus-mainnet.walrus.space",
|
|
47
|
+
"https://sui-walrus-mainnet-aggregator.bwarelabs.com",
|
|
48
|
+
"https://suiftly.mhax.io",
|
|
49
|
+
"https://mainnet-walrus-aggregator.kiliglab.io",
|
|
50
|
+
"https://aggregator.mainnet.walrus.mirai.cloud",
|
|
51
|
+
"https://walrus-aggregator.stakely.io",
|
|
52
|
+
"https://walrus-aggregator.thepassivetrust.com",
|
|
53
|
+
"https://walrus-main-aggregator.4everland.org",
|
|
54
|
+
"https://walrus-aggregator.natsai.xyz",
|
|
55
|
+
"https://aggregator.walrus.silentvalidator.com",
|
|
56
|
+
"https://aggregator.suicore.com",
|
|
57
|
+
"https://walrus-mainnet-aggregator.stakingdefenseleague.com",
|
|
58
|
+
"https://aggregator.walrus-mainnet.h2o-nodes.com",
|
|
59
|
+
"https://walrus-aggregator.chainbase.online",
|
|
60
|
+
"https://walmain.agg.chainflow.io",
|
|
61
|
+
"https://walrus-aggregator.n1stake.com",
|
|
62
|
+
"https://walrus-aggregator.starduststaking.com",
|
|
63
|
+
"https://walrus-aggregator-mainnet.chainode.tech:9002",
|
|
64
|
+
"https://mainnet-aggregator.walrus.graphyte.dev",
|
|
65
|
+
"https://aggregator.walrus-mainnet.tududes.com",
|
|
66
|
+
"https://walrus-aggregator.talentum.id",
|
|
67
|
+
"https://walrus-aggregator.staking4all.org",
|
|
68
|
+
"https://walrus-mainnet-aggregator.nami.cloud",
|
|
69
|
+
"https://walrus-mainnet-aggregator.dzdaic.com",
|
|
70
|
+
"https://walrus.prostaking.com:9443",
|
|
71
|
+
"https://walrus-mainnet-aggregator-1.zkv.xyz",
|
|
72
|
+
"https://walrus-mainnet-aggregator.stakecraft.com",
|
|
73
|
+
"https://walrus-mainnet-aggregator.imperator.co",
|
|
74
|
+
"https://walrus-mainnet-aggregator.crouton.digital",
|
|
75
|
+
"https://walrus-mainnet-aggregator.nodeinfra.com",
|
|
76
|
+
"https://walrus.aggregator.stakepool.dev.br",
|
|
77
|
+
"https://walrus-mainnet-aggregator.redundex.com",
|
|
78
|
+
"https://walrus-agg.mainnet.obelisk.sh",
|
|
79
|
+
"https://walrus.blockscope.net",
|
|
80
|
+
"https://walrus.globalstake.io",
|
|
81
|
+
"https://walrus-mainnet-aggregator.trusted-point.com",
|
|
82
|
+
"https://walrus.veera.com",
|
|
83
|
+
"https://walrus-mainnet-aggregator.rpc101.org",
|
|
84
|
+
"https://walrusagg.pops.one",
|
|
85
|
+
],
|
|
86
|
+
};
|
|
87
|
+
/** The live Walrus committee's storage nodes a https page can call — the last road for uploads and downloads. */
|
|
88
|
+
export const STORAGE_NODE_ORIGINS = {
|
|
89
|
+
testnet: [
|
|
90
|
+
"https://walrus-01.tududes.com:9185",
|
|
91
|
+
"https://walrus-node.thcloud.dev:9185",
|
|
92
|
+
"https://lhr-tnt-sto-00.walrus-testnet.walrus.space:9185",
|
|
93
|
+
"https://walrus-testnet-storage.talentum.id:9185",
|
|
94
|
+
"https://testnet.walrus.node.interestlabs.io:9185",
|
|
95
|
+
"https://storage.testnet.walrus.mirai.cloud:9185",
|
|
96
|
+
"https://waltest.chainflow.io:9185",
|
|
97
|
+
"https://walrus-testnet.n1stake.com:9185",
|
|
98
|
+
"https://testnet-walrus.rockfin.io:9185",
|
|
99
|
+
"https://suiftly-testnet-node.mhax.io:9185",
|
|
100
|
+
"https://walrus-testnet-operator1.lithiumdigital.com:9185",
|
|
101
|
+
"https://chartreuse-ljubljana-3b884.walrus.bdnodes.net:9002",
|
|
102
|
+
"https://wal-t01.solsticestaking.net:9185",
|
|
103
|
+
"https://walrus-testnet.luckyresearch.org:9185",
|
|
104
|
+
"https://walrus-testnet-validator-md002.blockpi.me:9185",
|
|
105
|
+
"https://storage.testnet.sui.rpcpool.com:9185",
|
|
106
|
+
"https://walrus-testnet-storage-node-1.zkv.xyz:9285",
|
|
107
|
+
"https://walrus-node-testnet.haedal.xyz:9185",
|
|
108
|
+
"https://walrus01.validator.karrier.one:9185",
|
|
109
|
+
"https://walrus-testnet.imperator.co:9185",
|
|
110
|
+
"https://sn01.walrus.testnet.republiccrypto-runtime.com:9185",
|
|
111
|
+
"https://walrus-testnet.contributiondao.com:9185",
|
|
112
|
+
"https://walrus-storage-testnet.hashedpotatoes-sui.com:9185",
|
|
113
|
+
"https://walrus-storage-testnet.overclock.run:9185",
|
|
114
|
+
"https://ewr-tnt-sto-00.walrus-testnet.walrus.space:9185",
|
|
115
|
+
"https://walrus-testnet-storage.stakeme.pro:9185",
|
|
116
|
+
"https://walrus-testnet.citadel.one:9195",
|
|
117
|
+
"https://walrus-testnet-storage.stakecraft.com:9185",
|
|
118
|
+
"https://walrus-testnet.brightlystake.com:9185",
|
|
119
|
+
"https://walrus-node-testnet.cetus.zone:9185",
|
|
120
|
+
"https://walrus-testnet.h2o-nodes.com:9185",
|
|
121
|
+
"https://suilend-walrus-testnet.hanabi.so:9185",
|
|
122
|
+
"https://walrus-testnet.typus.finance:9185",
|
|
123
|
+
"https://storage.walrus.testnet.nodz.io:9185",
|
|
124
|
+
"https://dev-walrus.vol-047f616210f55794d.dev.stake.capital:9185",
|
|
125
|
+
"https://walrus-testnet.rpc101.org:9185",
|
|
126
|
+
"https://walrus-testnet-node.nami.cloud:9185",
|
|
127
|
+
"https://testnet-walrus.hoh.zone:9185",
|
|
128
|
+
"https://walrus-testnet-storage.stakin-nodes.com:9185",
|
|
129
|
+
"https://walrus-testnet-node.stakeengine.co.uk:9185",
|
|
130
|
+
"https://walrus-testnet.thepassivetrust.com:9185",
|
|
131
|
+
"https://testnet.walrus.piconbello.com:9185",
|
|
132
|
+
"https://walrus-testnet.senseinode.com:9185",
|
|
133
|
+
"https://walrus-testnet-storage.nodeinfra.com:9185",
|
|
134
|
+
"https://walrus-storage-testnet.scallop.io:9185",
|
|
135
|
+
"https://walrus-testnet.starduststaking.com:9185",
|
|
136
|
+
"https://walrus-testnet-node.stakely.io:9185",
|
|
137
|
+
"https://walrus1.dcentnetworks.nl:9185",
|
|
138
|
+
"https://walrus-test.astrostakers.com:9185",
|
|
139
|
+
"https://walrus-testnet.cosmostation.io:9185",
|
|
140
|
+
"https://walrus-testnet.redundex.com:9185",
|
|
141
|
+
"https://testnet-storage-walrus.kiliglab.io:9185",
|
|
142
|
+
"https://storage-node-walrus-1.test.piertwo.io.:9185",
|
|
143
|
+
"https://walrus-tn.juicystake.io:9185",
|
|
144
|
+
"https://walrus-testnet.crouton.digital:9185",
|
|
145
|
+
"https://walrus-testnet.lgns.xyz:9185",
|
|
146
|
+
"https://walrus-testnet.blockscope.net:9185",
|
|
147
|
+
"https://testnet.stakepool.dev.br:9185",
|
|
148
|
+
"https://walrus.nonprod.scw.chirpwireless.io:9185",
|
|
149
|
+
"https://testnet.storage.walrus.silentvalidator.com:9185",
|
|
150
|
+
"https://walrus-testnet.nodes.guru:9185",
|
|
151
|
+
"https://walrus-testnet.4pillars.info:9185",
|
|
152
|
+
"https://walrus-testnet-node.chainbase.online:9185",
|
|
153
|
+
"https://walrus.testnet.pops.one:9185",
|
|
154
|
+
"https://wal-storage-node-testnet.staketab.org:9185",
|
|
155
|
+
"https://walrus-storage-testnet.latitude-sui.com:9185",
|
|
156
|
+
"https://walrus-testnet.delightlabs.sh:9185",
|
|
157
|
+
"https://testnet-storage.walrus.graphyte.dev:9185",
|
|
158
|
+
"https://walrus-testnet.staking4all.org:9185",
|
|
159
|
+
"https://walrus-testnet-storage-node.rubynodes.io:9185",
|
|
160
|
+
"https://walrus-testnet-storage.trusted-point.com:9185",
|
|
161
|
+
"https://walrus-testnet.ntt-dg.com:9185",
|
|
162
|
+
"https://walrus.testnet.obelisk.sh:9185",
|
|
163
|
+
"https://walrus-storage.testnet.nelrann.org:9185",
|
|
164
|
+
"https://test-storage-node-walrus.inf-node.xyz:9185",
|
|
165
|
+
"https://sui-walrus-testnet.bwarelabs.com:9185",
|
|
166
|
+
"https://walrus-testnet.bucketprotocol.io:9185",
|
|
167
|
+
"https://storage.walrus.banansen.dev:9185",
|
|
168
|
+
"https://walrus-testnet-node.natsai.xyz:9185",
|
|
169
|
+
"https://testnet-walrus-storage.szns.solutions:9185",
|
|
170
|
+
"https://walrus-testnet.stakingdefenseleague.com:9185",
|
|
171
|
+
"https://walrus-testnet.auranode.xyz:9185",
|
|
172
|
+
"https://walrus-testnet.dzdaic.com:9185",
|
|
173
|
+
"https://testnet-walrus.globalstake.io:9185",
|
|
174
|
+
"https://eyl1-testnet.walrus.zeroservices.eu:9185",
|
|
175
|
+
"https://mia-tnt-sto-00.walrus-testnet.walrus.space:9185",
|
|
176
|
+
"https://uc1-tnt-sto-00.walrus-testnet.walrus.space:9185",
|
|
177
|
+
"https://walrus-testnet.proofgp.com:30000",
|
|
178
|
+
"https://walrus-testnet.sentio.xyz:9185",
|
|
179
|
+
"https://walrus-testnet.veera.com:9185",
|
|
180
|
+
"https://walrus-testnet.aftermath.finance:9185",
|
|
181
|
+
"https://walrus-testnet.suicore.com:9185",
|
|
182
|
+
"https://testnet-walrus01.tradeport.xyz:9185",
|
|
183
|
+
"https://walrus-testnet.cosmicvalidator.com:9185",
|
|
184
|
+
"https://walrus-storage.4everland.org:9185",
|
|
185
|
+
"https://walrus-testnet.chainode.tech:9185",
|
|
186
|
+
"https://walrus-testnet.equinoxdao.xyz:9185",
|
|
187
|
+
],
|
|
188
|
+
mainnet: [
|
|
189
|
+
"https://walrus.blockscope.net:9185",
|
|
190
|
+
"https://walrus-mainnet.stakingdefenseleague.com:9185",
|
|
191
|
+
"https://walrus-mainnet-storage.stakeme.pro:9185",
|
|
192
|
+
"https://walmain.chainflow.io:9185",
|
|
193
|
+
"https://sn01.walrus.mainnet.republiccrypto-runtime.com:9185",
|
|
194
|
+
"https://storage-001.walrus.rockfinlabs.com:9185",
|
|
195
|
+
"https://walrus.suicore.com:9185",
|
|
196
|
+
"https://walrus-storage-node.rubynodes.io:9185",
|
|
197
|
+
"https://walrus-mainnet.aftermath.finance:9185",
|
|
198
|
+
"https://walrus.nodes.guru:9185",
|
|
199
|
+
"https://wal-storage-node-mainnet.staketab.org:9185",
|
|
200
|
+
"https://walrus.delightlabs.sh:9185",
|
|
201
|
+
"https://walrus.typus.finance:9185",
|
|
202
|
+
"https://walrus-main.astrostakers.com:9185",
|
|
203
|
+
"https://walrus-validator-md001.blockpi.me:9185",
|
|
204
|
+
"https://walrus.staking4all.org:9185",
|
|
205
|
+
"https://walrus-mainnet-operator1.lithiumdigital.com:9185",
|
|
206
|
+
"https://walrus-node-mainnet.ankr.com:9185",
|
|
207
|
+
"https://walrus-mainnet.tududes.com:9185",
|
|
208
|
+
"https://walrus01.validator.karrier.one:9185",
|
|
209
|
+
"https://suiftly-node.mhax.io:9185",
|
|
210
|
+
"https://storage.mainnet.sui.rpcpool.com:9185",
|
|
211
|
+
"https://walrus.brightlystake.com:9185",
|
|
212
|
+
"https://walrus-node.natsai.xyz:9185",
|
|
213
|
+
"https://walrus-mainnet.h2o-nodes.com:9185",
|
|
214
|
+
"https://walrus-node.stakely.io:9185",
|
|
215
|
+
"https://walrus.sentio.xyz:9185",
|
|
216
|
+
"https://walrus.globalstake.io:9185",
|
|
217
|
+
"https://walrus-mainnet-node.piertwo.io:9185",
|
|
218
|
+
"https://eyl1.walrus.zeroservices.eu:9185",
|
|
219
|
+
"https://walrus.vol-0e0c175f9734fdf77.prod.stake.capital:9185",
|
|
220
|
+
"https://walrus-mainnet.dzdaic.com:9185",
|
|
221
|
+
"https://walrus-mainnet.4pillars.info:9185",
|
|
222
|
+
"https://walrus-main.dcentnetworks.nl:9185",
|
|
223
|
+
"https://storage.walrus.mainnet.nodz.io:9185",
|
|
224
|
+
"https://walrus-storage.n1stake.com:9185",
|
|
225
|
+
"https://walrus.stakin-nodes.com:9185",
|
|
226
|
+
"https://walrus-main.bucketprotocol.io:9185",
|
|
227
|
+
"https://walrus.chainbase.online:9185",
|
|
228
|
+
"https://walrus-mainnet.luckyresearch.org:9185",
|
|
229
|
+
"https://walrus.piconbello.com:9185",
|
|
230
|
+
"https://walrus.prostaking.com:9185",
|
|
231
|
+
"https://walrus-mainnet-storage-node-1.zkv.xyz:9185",
|
|
232
|
+
"https://walrus.starduststaking.com:9185",
|
|
233
|
+
"https://walrus.thepassivetrust.com:9185",
|
|
234
|
+
"https://storage.walrus.nansen.ai:9185",
|
|
235
|
+
"https://walrus-mainnet.senseinode.com:9185",
|
|
236
|
+
"https://walrus-mainnet-storage.nodeinfra.com:9185",
|
|
237
|
+
"https://walrus-mainnet.citadel.one:9185",
|
|
238
|
+
"https://walrus-mainnet.redundex.com:9185",
|
|
239
|
+
"https://walrus.contributiondao.com:9185",
|
|
240
|
+
"https://walrus.mainnet.obelisk.sh:9185",
|
|
241
|
+
"https://wal-m01.solsticestaking.net:9185",
|
|
242
|
+
"https://ash-mnt-sto-01.walrus-mainnet.walrus.space:9185",
|
|
243
|
+
"https://walrus-mainnet.crouton.digital:9185",
|
|
244
|
+
"https://walrus-mainnet.imperator.co:9185",
|
|
245
|
+
"https://main-storage-node-walrus.inf-node.xyz:9185",
|
|
246
|
+
"https://walrus-storage.ntt.nodeops.ninja:9185",
|
|
247
|
+
"https://walrus-storage-mainnet.scallop.io:9185",
|
|
248
|
+
"https://walrus-mainnet.proofgp.com:31000",
|
|
249
|
+
"https://mainnet-walrus-storage.szns.solutions:9185",
|
|
250
|
+
"https://walrus-mainnet-node.stakeengine.co.uk:9185",
|
|
251
|
+
"https://walrus-mainnet.chainode.tech:9185",
|
|
252
|
+
"https://walrus-main-storage.4everland.org:9185",
|
|
253
|
+
"https://walrus.stakepool.dev.br:9185",
|
|
254
|
+
"https://walrus-node-mainnet.cetus.zone:9185",
|
|
255
|
+
"https://mainnet-storage.walrus.graphyte.dev:9185",
|
|
256
|
+
"https://walrus-mainnet-storage.stakecraft.com:9185",
|
|
257
|
+
"https://walrus-node-mainnet.haedal.xyz:9185",
|
|
258
|
+
"https://walrus-storage-mainnet.hashedpotatoes-sui.com:9185",
|
|
259
|
+
"https://storage.mainnet.walrus.mirai.cloud:9185",
|
|
260
|
+
"https://walrus-mainnet.rpc101.org:9185",
|
|
261
|
+
"https://walrus.pops.one:9185",
|
|
262
|
+
"https://sui-walrus-mainnet.bwarelabs.com:9185",
|
|
263
|
+
"https://walrus.prod.scw.chirpwireless.io:9185",
|
|
264
|
+
"https://walrus.auranode.xyz:9185",
|
|
265
|
+
"https://walrus-node.thcloud.ai:9185",
|
|
266
|
+
"https://walrus.equinoxdao.xyz:9185",
|
|
267
|
+
"https://walrus-storage-mainnet.overclock.run:9185",
|
|
268
|
+
"https://walrus-storage.talentum.id:9185",
|
|
269
|
+
"https://walrus.veera.com:9185",
|
|
270
|
+
"https://walrus-mainnet.cosmicvalidator.com:9185",
|
|
271
|
+
"https://walrus-storage-mainnet.latitude-sui.com:9195",
|
|
272
|
+
"https://walrus01.tradeport.xyz:9185",
|
|
273
|
+
"https://walrus.node.interestlabs.io:9185",
|
|
274
|
+
"https://suilend-walrus-mainnet.hanabi.so:9185",
|
|
275
|
+
"https://walrus-store.lgns.net:9185",
|
|
276
|
+
"https://storage.walrus.silentvalidator.com:9185",
|
|
277
|
+
"https://walrus-mainnet-storage.trusted-point.com:9185",
|
|
278
|
+
"https://mainnet-walrus.hoh.zone:9185",
|
|
279
|
+
"https://ash-mnt-sto-00.walrus-mainnet.walrus.space:9185",
|
|
280
|
+
"https://mainnet-walrus-storage.kiliglab.io:9185",
|
|
281
|
+
"https://walrus-storage.nelrann.org:9185",
|
|
282
|
+
"https://walrus-mainnet-node.nami.cloud:9185",
|
|
283
|
+
],
|
|
284
|
+
};
|