bulletin-deploy 0.7.12 → 0.7.13
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/README.md +34 -4
- package/assets/environments.json +238 -0
- package/bin/bulletin-deploy +49 -1
- package/dist/bug-report.js +4 -4
- package/dist/chunk-2VYG7NXN.js +266 -0
- package/dist/{chunk-VQJLGE5J.js → chunk-KU6N5DD3.js} +10 -7
- package/dist/{chunk-LOZ5PSD3.js → chunk-MRB5E7YM.js} +9 -9
- package/dist/{chunk-7WKHLBZA.js → chunk-RBFXJVAG.js} +73 -23
- package/dist/{chunk-RVCY2VEY.js → chunk-TTSFL3JB.js} +1 -1
- package/dist/{chunk-N2OZLFJA.js → chunk-Y54W6NVZ.js} +2 -2
- package/dist/{chunk-WK2GKDMX.js → chunk-YX5USCHH.js} +55 -30
- package/dist/chunk-ZOC4GITL.js +13 -0
- package/dist/deploy.d.ts +20 -6
- package/dist/deploy.js +12 -9
- package/dist/dotns.d.ts +24 -2
- package/dist/dotns.js +5 -3
- package/dist/environments.d.ts +65 -0
- package/dist/environments.js +28 -0
- package/dist/errors.d.ts +6 -0
- package/dist/errors.js +9 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +18 -16
- package/dist/memory-report.js +2 -2
- package/dist/run-state.js +1 -1
- package/dist/telemetry.js +2 -2
- package/dist/version-check.js +3 -3
- package/package.json +10 -7
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
declare const DEFAULT_ENVIRONMENTS_URL = "https://raw.githubusercontent.com/paritytech/bulletin-deploy/main/assets/environments.json";
|
|
2
|
+
declare const DEFAULT_ENV_ID = "paseo-next";
|
|
3
|
+
declare const CACHE_TTL_MS: number;
|
|
4
|
+
declare const FETCH_TIMEOUT_MS = 5000;
|
|
5
|
+
interface Environment {
|
|
6
|
+
id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
network: "testnet" | "mainnet";
|
|
9
|
+
description?: string;
|
|
10
|
+
badge?: string;
|
|
11
|
+
backend?: string;
|
|
12
|
+
ipfs?: string;
|
|
13
|
+
uptimeUrl?: string;
|
|
14
|
+
}
|
|
15
|
+
interface ChainEndpoint {
|
|
16
|
+
wss: string | string[];
|
|
17
|
+
parachainId?: number;
|
|
18
|
+
uptimeUrl?: string;
|
|
19
|
+
}
|
|
20
|
+
interface Chain {
|
|
21
|
+
id: string;
|
|
22
|
+
name: string;
|
|
23
|
+
endpoints: Record<string, ChainEndpoint>;
|
|
24
|
+
}
|
|
25
|
+
interface EnvironmentsDoc {
|
|
26
|
+
environments: Environment[];
|
|
27
|
+
chains: Chain[];
|
|
28
|
+
}
|
|
29
|
+
type EnvironmentsSource = "cache-fresh" | "cache-stale" | "live" | "bundled" | "hardcoded-fallback";
|
|
30
|
+
interface LoadResult {
|
|
31
|
+
doc: EnvironmentsDoc;
|
|
32
|
+
source: EnvironmentsSource;
|
|
33
|
+
}
|
|
34
|
+
interface LoadOptions {
|
|
35
|
+
forceRefresh?: boolean;
|
|
36
|
+
url?: string;
|
|
37
|
+
cacheDir?: string;
|
|
38
|
+
bundledPath?: string;
|
|
39
|
+
fetchImpl?: typeof fetch;
|
|
40
|
+
now?: () => number;
|
|
41
|
+
warn?: (msg: string) => void;
|
|
42
|
+
capture?: (err: unknown) => void;
|
|
43
|
+
}
|
|
44
|
+
interface ResolvedEndpoints {
|
|
45
|
+
bulletin: string[];
|
|
46
|
+
assetHub: string[];
|
|
47
|
+
network: "testnet" | "mainnet";
|
|
48
|
+
envName: string;
|
|
49
|
+
}
|
|
50
|
+
declare function defaultCacheDir(): string;
|
|
51
|
+
declare function defaultCachePath(): string;
|
|
52
|
+
declare function defaultBundledPath(): string;
|
|
53
|
+
declare function loadEnvironments(opts?: LoadOptions): Promise<LoadResult>;
|
|
54
|
+
declare function resolveEndpoints(doc: EnvironmentsDoc, envId: string): ResolvedEndpoints;
|
|
55
|
+
interface EnvironmentListing {
|
|
56
|
+
id: string;
|
|
57
|
+
name: string;
|
|
58
|
+
network: string;
|
|
59
|
+
hasBulletin: boolean;
|
|
60
|
+
description: string;
|
|
61
|
+
}
|
|
62
|
+
declare function listEnvironments(doc: EnvironmentsDoc): EnvironmentListing[];
|
|
63
|
+
declare function formatEnvironmentTable(rows: EnvironmentListing[]): string;
|
|
64
|
+
|
|
65
|
+
export { CACHE_TTL_MS, type Chain, type ChainEndpoint, DEFAULT_ENVIRONMENTS_URL, DEFAULT_ENV_ID, type Environment, type EnvironmentListing, type EnvironmentsDoc, type EnvironmentsSource, FETCH_TIMEOUT_MS, type LoadOptions, type LoadResult, type ResolvedEndpoints, defaultBundledPath, defaultCacheDir, defaultCachePath, formatEnvironmentTable, listEnvironments, loadEnvironments, resolveEndpoints };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CACHE_TTL_MS,
|
|
3
|
+
DEFAULT_ENVIRONMENTS_URL,
|
|
4
|
+
DEFAULT_ENV_ID,
|
|
5
|
+
FETCH_TIMEOUT_MS,
|
|
6
|
+
defaultBundledPath,
|
|
7
|
+
defaultCacheDir,
|
|
8
|
+
defaultCachePath,
|
|
9
|
+
formatEnvironmentTable,
|
|
10
|
+
listEnvironments,
|
|
11
|
+
loadEnvironments,
|
|
12
|
+
resolveEndpoints
|
|
13
|
+
} from "./chunk-2VYG7NXN.js";
|
|
14
|
+
import "./chunk-ZOC4GITL.js";
|
|
15
|
+
import "./chunk-QGM4M3NI.js";
|
|
16
|
+
export {
|
|
17
|
+
CACHE_TTL_MS,
|
|
18
|
+
DEFAULT_ENVIRONMENTS_URL,
|
|
19
|
+
DEFAULT_ENV_ID,
|
|
20
|
+
FETCH_TIMEOUT_MS,
|
|
21
|
+
defaultBundledPath,
|
|
22
|
+
defaultCacheDir,
|
|
23
|
+
defaultCachePath,
|
|
24
|
+
formatEnvironmentTable,
|
|
25
|
+
listEnvironments,
|
|
26
|
+
loadEnvironments,
|
|
27
|
+
resolveEndpoints
|
|
28
|
+
};
|
package/dist/errors.d.ts
ADDED
package/dist/errors.js
ADDED
package/dist/index.d.ts
CHANGED
|
@@ -5,3 +5,4 @@ export { MerkleizeResult, merkleizeJS } from './merkle.js';
|
|
|
5
5
|
export { RunState, RunStatus, VERSION, loadRunState, probablyOomRssMb, resolveStateDir, shouldShowOomHint, shouldSkipStaleWarning, stateFilePath, writeRunState } from './run-state.js';
|
|
6
6
|
import 'multiformats/cid';
|
|
7
7
|
import 'polkadot-api';
|
|
8
|
+
import './errors.js';
|
package/dist/index.js
CHANGED
|
@@ -1,14 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
deploy
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import
|
|
5
|
-
|
|
3
|
+
} from "./chunk-YX5USCHH.js";
|
|
4
|
+
import {
|
|
5
|
+
merkleizeJS
|
|
6
|
+
} from "./chunk-B7GUYYAN.js";
|
|
7
|
+
import "./chunk-Y54W6NVZ.js";
|
|
8
|
+
import "./chunk-TTSFL3JB.js";
|
|
6
9
|
import {
|
|
7
10
|
DotNS,
|
|
8
11
|
parseDomainName
|
|
9
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-RBFXJVAG.js";
|
|
13
|
+
import {
|
|
14
|
+
bootstrapPool,
|
|
15
|
+
derivePoolAccounts,
|
|
16
|
+
ensureAuthorized,
|
|
17
|
+
fetchPoolAuthorizations,
|
|
18
|
+
selectAccount
|
|
19
|
+
} from "./chunk-VOEFHED3.js";
|
|
20
|
+
import "./chunk-2VYG7NXN.js";
|
|
21
|
+
import "./chunk-ZOC4GITL.js";
|
|
10
22
|
import "./chunk-HOTQDYHD.js";
|
|
11
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-MRB5E7YM.js";
|
|
12
24
|
import {
|
|
13
25
|
VERSION,
|
|
14
26
|
loadRunState,
|
|
@@ -18,17 +30,7 @@ import {
|
|
|
18
30
|
shouldSkipStaleWarning,
|
|
19
31
|
stateFilePath,
|
|
20
32
|
writeRunState
|
|
21
|
-
} from "./chunk-
|
|
22
|
-
import {
|
|
23
|
-
merkleizeJS
|
|
24
|
-
} from "./chunk-B7GUYYAN.js";
|
|
25
|
-
import {
|
|
26
|
-
bootstrapPool,
|
|
27
|
-
derivePoolAccounts,
|
|
28
|
-
ensureAuthorized,
|
|
29
|
-
fetchPoolAuthorizations,
|
|
30
|
-
selectAccount
|
|
31
|
-
} from "./chunk-VOEFHED3.js";
|
|
33
|
+
} from "./chunk-KU6N5DD3.js";
|
|
32
34
|
import "./chunk-QGM4M3NI.js";
|
|
33
35
|
export {
|
|
34
36
|
DotNS,
|
package/dist/memory-report.js
CHANGED
|
@@ -5,8 +5,8 @@ import {
|
|
|
5
5
|
maybeWriteMemoryReport,
|
|
6
6
|
safeHeap,
|
|
7
7
|
sampleFromBytes
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-MRB5E7YM.js";
|
|
9
|
+
import "./chunk-KU6N5DD3.js";
|
|
10
10
|
import "./chunk-QGM4M3NI.js";
|
|
11
11
|
export {
|
|
12
12
|
DEFAULT_THRESHOLD_MB,
|
package/dist/run-state.js
CHANGED
package/dist/telemetry.js
CHANGED
package/dist/version-check.js
CHANGED
|
@@ -8,9 +8,9 @@ import {
|
|
|
8
8
|
isPreReleaseVersion,
|
|
9
9
|
preReleaseWarning,
|
|
10
10
|
promptYesNo
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-TTSFL3JB.js";
|
|
12
|
+
import "./chunk-MRB5E7YM.js";
|
|
13
|
+
import "./chunk-KU6N5DD3.js";
|
|
14
14
|
import "./chunk-QGM4M3NI.js";
|
|
15
15
|
export {
|
|
16
16
|
assessVersion,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bulletin-deploy",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.13",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -26,12 +26,15 @@
|
|
|
26
26
|
"files": [
|
|
27
27
|
"dist",
|
|
28
28
|
"bin",
|
|
29
|
-
"docs"
|
|
29
|
+
"docs",
|
|
30
|
+
"assets"
|
|
30
31
|
],
|
|
31
32
|
"scripts": {
|
|
32
|
-
"
|
|
33
|
+
"prebuild": "node scripts/refresh-environments.mjs",
|
|
34
|
+
"build": "tsup src/index.ts src/deploy.ts src/dotns.ts src/pool.ts src/telemetry.ts src/memory-report.ts src/merkle.ts src/gh-pages-mirror.ts src/version-check.ts src/bug-report.ts src/run-state.ts src/environments.ts src/errors.ts --format esm --dts --clean --target node22",
|
|
35
|
+
"refresh-environments": "node scripts/refresh-environments.mjs",
|
|
33
36
|
"prepare": "npm run build",
|
|
34
|
-
"test": "npm run build && node --test test/test.js test/cli-help.test.js test/helpers/e2e-helpers.test.js",
|
|
37
|
+
"test": "npm run build && node --test test/test.js test/cli-help.test.js test/helpers/e2e-helpers.test.js test/environments.test.js",
|
|
35
38
|
"test:e2e": "npm run build && node --test test/e2e.test.js",
|
|
36
39
|
"test:e2e:smoke": "bash scripts/e2e-pass.sh smoke",
|
|
37
40
|
"test:e2e:pr": "bash scripts/e2e-pass.sh pr",
|
|
@@ -42,12 +45,12 @@
|
|
|
42
45
|
"@ipld/car": "^5.4.3",
|
|
43
46
|
"@ipld/dag-pb": "^4.1.3",
|
|
44
47
|
"@noble/hashes": "^1.7.2",
|
|
45
|
-
"@parity/dotns-cli": "^0.6.
|
|
48
|
+
"@parity/dotns-cli": "^0.6.1",
|
|
46
49
|
"@polkadot-api/substrate-bindings": "^0.16.5",
|
|
47
50
|
"@polkadot-labs/hdkd": "^0.0.25",
|
|
48
51
|
"@polkadot-labs/hdkd-helpers": "^0.0.26",
|
|
49
|
-
"@polkadot/keyring": "^
|
|
50
|
-
"@polkadot/util-crypto": "^
|
|
52
|
+
"@polkadot/keyring": "^14.0.1",
|
|
53
|
+
"@polkadot/util-crypto": "^14.0.1",
|
|
51
54
|
"@sentry/node": "^9.14.0",
|
|
52
55
|
"ipfs-unixfs": "^11.2.0",
|
|
53
56
|
"ipfs-unixfs-importer": "^16.1.4",
|