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.
@@ -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
+ };
@@ -0,0 +1,6 @@
1
+ declare class NonRetryableError extends Error {
2
+ constructor(message: string);
3
+ }
4
+ declare const EXIT_CODE_NO_RETRY = 78;
5
+
6
+ export { EXIT_CODE_NO_RETRY, NonRetryableError };
package/dist/errors.js ADDED
@@ -0,0 +1,9 @@
1
+ import {
2
+ EXIT_CODE_NO_RETRY,
3
+ NonRetryableError
4
+ } from "./chunk-ZOC4GITL.js";
5
+ import "./chunk-QGM4M3NI.js";
6
+ export {
7
+ EXIT_CODE_NO_RETRY,
8
+ NonRetryableError
9
+ };
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-WK2GKDMX.js";
4
- import "./chunk-N2OZLFJA.js";
5
- import "./chunk-RVCY2VEY.js";
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-7WKHLBZA.js";
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-LOZ5PSD3.js";
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-VQJLGE5J.js";
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,
@@ -5,8 +5,8 @@ import {
5
5
  maybeWriteMemoryReport,
6
6
  safeHeap,
7
7
  sampleFromBytes
8
- } from "./chunk-LOZ5PSD3.js";
9
- import "./chunk-VQJLGE5J.js";
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
@@ -7,7 +7,7 @@ import {
7
7
  shouldSkipStaleWarning,
8
8
  stateFilePath,
9
9
  writeRunState
10
- } from "./chunk-VQJLGE5J.js";
10
+ } from "./chunk-KU6N5DD3.js";
11
11
  import "./chunk-QGM4M3NI.js";
12
12
  export {
13
13
  VERSION,
package/dist/telemetry.js CHANGED
@@ -27,8 +27,8 @@ import {
27
27
  truncateAddress,
28
28
  withDeploySpan,
29
29
  withSpan
30
- } from "./chunk-LOZ5PSD3.js";
31
- import "./chunk-VQJLGE5J.js";
30
+ } from "./chunk-MRB5E7YM.js";
31
+ import "./chunk-KU6N5DD3.js";
32
32
  import "./chunk-QGM4M3NI.js";
33
33
  export {
34
34
  VERSION,
@@ -8,9 +8,9 @@ import {
8
8
  isPreReleaseVersion,
9
9
  preReleaseWarning,
10
10
  promptYesNo
11
- } from "./chunk-RVCY2VEY.js";
12
- import "./chunk-LOZ5PSD3.js";
13
- import "./chunk-VQJLGE5J.js";
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.12",
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
- "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 --format esm --dts --clean --target node22",
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.0",
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": "^13.0.0",
50
- "@polkadot/util-crypto": "^13.0.0",
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",