@parity/product-deploy 0.8.2-rc.1 → 0.8.3-rc.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.
@@ -9,10 +9,10 @@ import {
9
9
  offerBugReport,
10
10
  scrubSecrets,
11
11
  setDeployContext
12
- } from "./chunk-H64ZLWW2.js";
13
- import "./chunk-EJWZGSHD.js";
14
- import "./chunk-RIAMPAL2.js";
15
- import "./chunk-NJPBXF5Z.js";
12
+ } from "./chunk-C4GH5ARB.js";
13
+ import "./chunk-BDS2LLCJ.js";
14
+ import "./chunk-P53IIXZ7.js";
15
+ import "./chunk-UNWYTYYZ.js";
16
16
  export {
17
17
  buildCliFlagsSummary,
18
18
  buildLabels,
@@ -6,10 +6,10 @@ import {
6
6
  resolveDotnsConnectOptions,
7
7
  storeDirectory,
8
8
  storeFile
9
- } from "./chunk-HPPLVGGC.js";
9
+ } from "./chunk-UVFG2RDE.js";
10
10
  import {
11
11
  DotNS
12
- } from "./chunk-2GBSYVK2.js";
12
+ } from "./chunk-VO46GTJM.js";
13
13
  import {
14
14
  getPopSelfServeConfig,
15
15
  loadEnvironments,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-RIAMPAL2.js";
3
+ } from "./chunk-P53IIXZ7.js";
4
4
 
5
5
  // src/version-check.ts
6
6
  import { execSync, execFileSync } from "child_process";
@@ -2,11 +2,11 @@ import {
2
2
  classifyErrorArea,
3
3
  isInteractive,
4
4
  promptYesNo
5
- } from "./chunk-EJWZGSHD.js";
5
+ } from "./chunk-BDS2LLCJ.js";
6
6
  import {
7
7
  VERSION,
8
8
  getCurrentSentryTraceId
9
- } from "./chunk-RIAMPAL2.js";
9
+ } from "./chunk-P53IIXZ7.js";
10
10
 
11
11
  // src/bug-report.ts
12
12
  import { execSync, execFileSync } from "child_process";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  captureWarning
3
- } from "./chunk-RIAMPAL2.js";
3
+ } from "./chunk-P53IIXZ7.js";
4
4
 
5
5
  // src/chunk-probe.ts
6
6
  import { Twox128, Blake2128Concat, decAnyMetadata, unifyMetadata } from "@polkadot-api/substrate-bindings";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  package_default,
3
3
  writeRunState
4
- } from "./chunk-NJPBXF5Z.js";
4
+ } from "./chunk-UNWYTYYZ.js";
5
5
 
6
6
  // src/memory-report.ts
7
7
  import * as fs2 from "fs";
@@ -29,16 +29,9 @@ function derivePoolAccounts(poolSize = 10, mnemonic = DEV_PHRASE) {
29
29
  }
30
30
  return accounts;
31
31
  }
32
- async function isAuthorizationSufficient(api, address, auth, currentBlock, needs) {
32
+ function isAuthorizationSufficient(auth, currentBlock) {
33
33
  if (auth === void 0) return false;
34
34
  if (Number(auth.expiration ?? 0) <= currentBlock) return false;
35
- if (needs) {
36
- const ok = await api.apis.BulletinTransactionStorageApi.can_store(
37
- address,
38
- clampU32(needs.bytes, "needs.bytes")
39
- );
40
- if (!ok) return false;
41
- }
42
35
  return true;
43
36
  }
44
37
  function selectAccount(authorizations, random = Math.random) {
@@ -95,12 +88,12 @@ function clampU32(n, name) {
95
88
  if (n > U32_MAX) throw new Error(`${name} (${n}) exceeds u32 max \u2014 split the deploy into smaller batches`);
96
89
  return Number(n);
97
90
  }
98
- async function ensureAuthorized(api, address, label, needs) {
91
+ async function ensureAuthorized(api, address, label) {
99
92
  const [auth, currentBlock] = await Promise.all([
100
93
  api.query.TransactionStorage.Authorizations.getValue(Enum("Account", address)),
101
94
  api.query.System.Number.getValue()
102
95
  ]);
103
- if (await isAuthorizationSufficient(api, address, auth, currentBlock, needs)) return;
96
+ if (isAuthorizationSufficient(auth, currentBlock)) return;
104
97
  const isTestnet = await detectTestnet(api);
105
98
  const who = `${label ?? "account"} (${address.slice(0, 8)}...)`;
106
99
  if (isTestnet) {
@@ -6,7 +6,7 @@ import * as path from "path";
6
6
  // package.json
7
7
  var package_default = {
8
8
  name: "@parity/product-deploy",
9
- version: "0.8.2-rc.1",
9
+ version: "0.8.3-rc.1",
10
10
  private: false,
11
11
  repository: {
12
12
  type: "git",
@@ -20,10 +20,10 @@ import {
20
20
  } from "./chunk-S7EM5VMW.js";
21
21
  import {
22
22
  setDeployContext
23
- } from "./chunk-H64ZLWW2.js";
23
+ } from "./chunk-C4GH5ARB.js";
24
24
  import {
25
25
  probeChunks
26
- } from "./chunk-WSBDIHFZ.js";
26
+ } from "./chunk-HLUEHUYE.js";
27
27
  import {
28
28
  packSection
29
29
  } from "./chunk-C2TS5MER.js";
@@ -35,7 +35,7 @@ import {
35
35
  parseDomainName,
36
36
  popStatusName,
37
37
  verifyNonceAdvanced
38
- } from "./chunk-2GBSYVK2.js";
38
+ } from "./chunk-VO46GTJM.js";
39
39
  import {
40
40
  derivePoolAccounts,
41
41
  detectTestnet,
@@ -43,7 +43,7 @@ import {
43
43
  fetchPoolAuthorizations,
44
44
  isAuthorizationSufficient,
45
45
  selectAccount
46
- } from "./chunk-JQ5X3VMP.js";
46
+ } from "./chunk-QS7YU76C.js";
47
47
  import {
48
48
  VERSION,
49
49
  captureWarning,
@@ -57,7 +57,7 @@ import {
57
57
  truncateAddress,
58
58
  withDeploySpan,
59
59
  withSpan
60
- } from "./chunk-RIAMPAL2.js";
60
+ } from "./chunk-P53IIXZ7.js";
61
61
  import {
62
62
  DEFAULT_ENV_ID,
63
63
  getPopSelfServeConfig,
@@ -506,7 +506,7 @@ async function storeChunkedContent(chunks, { client: existingClient, unsafeApi:
506
506
  throw e;
507
507
  }
508
508
  }
509
- const sufficient = await isAuthorizationSufficient(unsafeApi, ss58, uploadAuth, currentBlockNum);
509
+ const sufficient = isAuthorizationSufficient(uploadAuth, currentBlockNum);
510
510
  if (!sufficient) {
511
511
  throw new NonRetryableError(`Account ${ss58} has no active Bulletin authorization (missing or expired). Request authorization on-chain (testnet faucet / personhood / pool bootstrap), then retry.`);
512
512
  }
@@ -1284,8 +1284,12 @@ async function storeDirectoryV2(directoryPath, opts = {}) {
1284
1284
  sampleMemory("chunk_upload_b_end");
1285
1285
  return r;
1286
1286
  });
1287
+ phaseALiveProvider = { ...phaseALiveProvider, ...phaseBResult.liveProvider };
1287
1288
  const storageCid = phaseBResult.storageCid;
1288
1289
  setDeployAttribute("deploy.storage.phase_b.probe_hit_count", phaseBProbeHits);
1290
+ if (!phaseALiveProvider.client) {
1291
+ throw new Error(`Connection lost and max reconnections (${MAX_RECONNECTIONS}) exhausted after phase B \u2014 finality probe unavailable. Retry the deploy.`);
1292
+ }
1289
1293
  {
1290
1294
  const grandpaCids = [...phaseB.chunkCids, storageCid];
1291
1295
  console.log(` Finality check: probing ${grandpaCids.length} chunks at chain-finalised state (aka GRANDPA)...`);
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  isTestnetSpecName
3
- } from "./chunk-JQ5X3VMP.js";
3
+ } from "./chunk-QS7YU76C.js";
4
4
  import {
5
5
  captureWarning,
6
6
  markCodePath,
@@ -8,7 +8,7 @@ import {
8
8
  setDeploySentryTag,
9
9
  truncateAddress,
10
10
  withSpan
11
- } from "./chunk-RIAMPAL2.js";
11
+ } from "./chunk-P53IIXZ7.js";
12
12
  import {
13
13
  validateContractAddresses
14
14
  } from "./chunk-5K3RI5C2.js";
@@ -1526,6 +1526,7 @@ var DotNS = class {
1526
1526
  { verifyEffect }
1527
1527
  );
1528
1528
  logTxResolution(txResolution);
1529
+ setDeployAttribute("deploy.subnode.tx_resolution_kind", txResolution.kind);
1529
1530
  if (txResolution.kind === TX_KIND_HASH) {
1530
1531
  setDeployAttribute("deploy.subnode.tx", txResolution.hash);
1531
1532
  if (txResolution.block) {
@@ -5,9 +5,9 @@ import {
5
5
  _decodeStorageValue,
6
6
  _resetProbeSession,
7
7
  probeChunks
8
- } from "./chunk-WSBDIHFZ.js";
9
- import "./chunk-RIAMPAL2.js";
10
- import "./chunk-NJPBXF5Z.js";
8
+ } from "./chunk-HLUEHUYE.js";
9
+ import "./chunk-P53IIXZ7.js";
10
+ import "./chunk-UNWYTYYZ.js";
11
11
  export {
12
12
  ChainProbeCrossValidationError,
13
13
  ChainProbeMetadataError,
package/dist/deploy.js CHANGED
@@ -39,19 +39,19 @@ import {
39
39
  storeDirectoryV2,
40
40
  storeFile,
41
41
  unpublish
42
- } from "./chunk-HPPLVGGC.js";
42
+ } from "./chunk-UVFG2RDE.js";
43
43
  import "./chunk-IW3X2MJF.js";
44
44
  import "./chunk-KOSF5FDO.js";
45
45
  import "./chunk-J3NIXHZZ.js";
46
46
  import "./chunk-S7EM5VMW.js";
47
- import "./chunk-H64ZLWW2.js";
48
- import "./chunk-EJWZGSHD.js";
49
- import "./chunk-WSBDIHFZ.js";
47
+ import "./chunk-C4GH5ARB.js";
48
+ import "./chunk-BDS2LLCJ.js";
49
+ import "./chunk-HLUEHUYE.js";
50
50
  import "./chunk-C2TS5MER.js";
51
- import "./chunk-2GBSYVK2.js";
52
- import "./chunk-JQ5X3VMP.js";
53
- import "./chunk-RIAMPAL2.js";
54
- import "./chunk-NJPBXF5Z.js";
51
+ import "./chunk-VO46GTJM.js";
52
+ import "./chunk-QS7YU76C.js";
53
+ import "./chunk-P53IIXZ7.js";
54
+ import "./chunk-UNWYTYYZ.js";
55
55
  import "./chunk-5K3RI5C2.js";
56
56
  import {
57
57
  EXIT_CODE_NO_RETRY,
package/dist/dotns.js CHANGED
@@ -50,10 +50,10 @@ import {
50
50
  stripTrailingDigits,
51
51
  validateDomainLabel,
52
52
  verifyNonceAdvanced
53
- } from "./chunk-2GBSYVK2.js";
54
- import "./chunk-JQ5X3VMP.js";
55
- import "./chunk-RIAMPAL2.js";
56
- import "./chunk-NJPBXF5Z.js";
53
+ } from "./chunk-VO46GTJM.js";
54
+ import "./chunk-QS7YU76C.js";
55
+ import "./chunk-P53IIXZ7.js";
56
+ import "./chunk-UNWYTYYZ.js";
57
57
  import "./chunk-5K3RI5C2.js";
58
58
  import "./chunk-ZOC4GITL.js";
59
59
  export {
package/dist/index.js CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-MMAZFJDG.js";
8
8
  import {
9
9
  publishManifest
10
- } from "./chunk-TQC3S6NP.js";
10
+ } from "./chunk-B2Z4S2EL.js";
11
11
  import {
12
12
  DEFAULT_TEXT_RECORD_BUDGET_BYTES,
13
13
  PLACEHOLDER_CID,
@@ -24,7 +24,7 @@ import {
24
24
  deploy,
25
25
  merkleizeJS,
26
26
  merkleizeWithStableOrder
27
- } from "./chunk-HPPLVGGC.js";
27
+ } from "./chunk-UVFG2RDE.js";
28
28
  import {
29
29
  computeStats,
30
30
  renderSummary,
@@ -46,26 +46,26 @@ import {
46
46
  isVolatilePath,
47
47
  parseManifest
48
48
  } from "./chunk-S7EM5VMW.js";
49
- import "./chunk-H64ZLWW2.js";
50
- import "./chunk-EJWZGSHD.js";
49
+ import "./chunk-C4GH5ARB.js";
50
+ import "./chunk-BDS2LLCJ.js";
51
51
  import {
52
52
  probeChunks
53
- } from "./chunk-WSBDIHFZ.js";
53
+ } from "./chunk-HLUEHUYE.js";
54
54
  import "./chunk-C2TS5MER.js";
55
55
  import {
56
56
  DEFAULT_MNEMONIC,
57
57
  DotNS,
58
58
  parseDomainName,
59
59
  sanitizeDomainLabel
60
- } from "./chunk-2GBSYVK2.js";
60
+ } from "./chunk-VO46GTJM.js";
61
61
  import {
62
62
  bootstrapPool,
63
63
  derivePoolAccounts,
64
64
  ensureAuthorized,
65
65
  fetchPoolAuthorizations,
66
66
  selectAccount
67
- } from "./chunk-JQ5X3VMP.js";
68
- import "./chunk-RIAMPAL2.js";
67
+ } from "./chunk-QS7YU76C.js";
68
+ import "./chunk-P53IIXZ7.js";
69
69
  import {
70
70
  VERSION,
71
71
  loadRunState,
@@ -75,7 +75,7 @@ import {
75
75
  shouldSkipStaleWarning,
76
76
  stateFilePath,
77
77
  writeRunState
78
- } from "./chunk-NJPBXF5Z.js";
78
+ } from "./chunk-UNWYTYYZ.js";
79
79
  import {
80
80
  DEFAULT_ENV_ID,
81
81
  deepMergeEnvironments,
@@ -1,20 +1,20 @@
1
1
  import {
2
2
  publishManifest
3
- } from "../chunk-TQC3S6NP.js";
3
+ } from "../chunk-B2Z4S2EL.js";
4
4
  import "../chunk-RI3ZLNPN.js";
5
- import "../chunk-HPPLVGGC.js";
5
+ import "../chunk-UVFG2RDE.js";
6
6
  import "../chunk-IW3X2MJF.js";
7
7
  import "../chunk-KOSF5FDO.js";
8
8
  import "../chunk-J3NIXHZZ.js";
9
9
  import "../chunk-S7EM5VMW.js";
10
- import "../chunk-H64ZLWW2.js";
11
- import "../chunk-EJWZGSHD.js";
12
- import "../chunk-WSBDIHFZ.js";
10
+ import "../chunk-C4GH5ARB.js";
11
+ import "../chunk-BDS2LLCJ.js";
12
+ import "../chunk-HLUEHUYE.js";
13
13
  import "../chunk-C2TS5MER.js";
14
- import "../chunk-2GBSYVK2.js";
15
- import "../chunk-JQ5X3VMP.js";
16
- import "../chunk-RIAMPAL2.js";
17
- import "../chunk-NJPBXF5Z.js";
14
+ import "../chunk-VO46GTJM.js";
15
+ import "../chunk-QS7YU76C.js";
16
+ import "../chunk-P53IIXZ7.js";
17
+ import "../chunk-UNWYTYYZ.js";
18
18
  import "../chunk-5K3RI5C2.js";
19
19
  import "../chunk-ZOC4GITL.js";
20
20
  import "../chunk-HOTQDYHD.js";
@@ -5,8 +5,8 @@ import {
5
5
  maybeWriteMemoryReport,
6
6
  safeHeap,
7
7
  sampleFromBytes
8
- } from "./chunk-RIAMPAL2.js";
9
- import "./chunk-NJPBXF5Z.js";
8
+ } from "./chunk-P53IIXZ7.js";
9
+ import "./chunk-UNWYTYYZ.js";
10
10
  export {
11
11
  DEFAULT_THRESHOLD_MB,
12
12
  buildMemoryReport,
package/dist/merkle.js CHANGED
@@ -6,19 +6,19 @@ import {
6
6
  merkleizeKuboBackend,
7
7
  merkleizeWithStableOrder,
8
8
  rebuildOrderedCarFromBytes
9
- } from "./chunk-HPPLVGGC.js";
9
+ } from "./chunk-UVFG2RDE.js";
10
10
  import "./chunk-IW3X2MJF.js";
11
11
  import "./chunk-KOSF5FDO.js";
12
12
  import "./chunk-J3NIXHZZ.js";
13
13
  import "./chunk-S7EM5VMW.js";
14
- import "./chunk-H64ZLWW2.js";
15
- import "./chunk-EJWZGSHD.js";
16
- import "./chunk-WSBDIHFZ.js";
14
+ import "./chunk-C4GH5ARB.js";
15
+ import "./chunk-BDS2LLCJ.js";
16
+ import "./chunk-HLUEHUYE.js";
17
17
  import "./chunk-C2TS5MER.js";
18
- import "./chunk-2GBSYVK2.js";
19
- import "./chunk-JQ5X3VMP.js";
20
- import "./chunk-RIAMPAL2.js";
21
- import "./chunk-NJPBXF5Z.js";
18
+ import "./chunk-VO46GTJM.js";
19
+ import "./chunk-QS7YU76C.js";
20
+ import "./chunk-P53IIXZ7.js";
21
+ import "./chunk-UNWYTYYZ.js";
22
22
  import "./chunk-5K3RI5C2.js";
23
23
  import "./chunk-ZOC4GITL.js";
24
24
  import "./chunk-HOTQDYHD.js";
@@ -26,10 +26,10 @@ import {
26
26
  } from "../chunk-ZYVGHDMU.js";
27
27
  import {
28
28
  WS_HEARTBEAT_TIMEOUT_MS
29
- } from "../chunk-2GBSYVK2.js";
30
- import "../chunk-JQ5X3VMP.js";
31
- import "../chunk-RIAMPAL2.js";
32
- import "../chunk-NJPBXF5Z.js";
29
+ } from "../chunk-VO46GTJM.js";
30
+ import "../chunk-QS7YU76C.js";
31
+ import "../chunk-P53IIXZ7.js";
32
+ import "../chunk-UNWYTYYZ.js";
33
33
  import {
34
34
  loadEnvironments
35
35
  } from "../chunk-5K3RI5C2.js";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  WS_HEARTBEAT_TIMEOUT_MS
3
- } from "../chunk-2GBSYVK2.js";
4
- import "../chunk-JQ5X3VMP.js";
5
- import "../chunk-RIAMPAL2.js";
6
- import "../chunk-NJPBXF5Z.js";
3
+ } from "../chunk-VO46GTJM.js";
4
+ import "../chunk-QS7YU76C.js";
5
+ import "../chunk-P53IIXZ7.js";
6
+ import "../chunk-UNWYTYYZ.js";
7
7
  import {
8
8
  loadEnvironments
9
9
  } from "../chunk-5K3RI5C2.js";
package/dist/pool.d.ts CHANGED
@@ -14,21 +14,17 @@ interface PoolAuthorization extends PoolAccount {
14
14
  expiration: number;
15
15
  }
16
16
  declare function derivePoolAccounts(poolSize?: number, mnemonic?: string): PoolAccount[];
17
- declare function isAuthorizationSufficient(api: any, address: string, auth: any, currentBlock: number, needs?: AuthorizationNeeds): Promise<boolean>;
17
+ declare function isAuthorizationSufficient(auth: any, currentBlock: number): boolean;
18
18
  interface SelectionResult {
19
19
  account: PoolAuthorization;
20
20
  eligibleCount: number;
21
21
  }
22
22
  declare function selectAccount(authorizations: PoolAuthorization[], random?: () => number): SelectionResult;
23
23
  declare function fetchPoolAuthorizations(api: any, accounts: PoolAccount[]): Promise<PoolAuthorization[]>;
24
- interface AuthorizationNeeds {
25
- txs: bigint;
26
- bytes: bigint;
27
- }
28
24
  declare function isTestnetSpecName(specName: string | undefined | null): boolean;
29
25
  declare function detectTestnet(api: any): Promise<boolean>;
30
26
  declare function _resetTestnetCacheForTests(): void;
31
- declare function ensureAuthorized(api: any, address: string, label?: string, needs?: AuthorizationNeeds): Promise<void>;
27
+ declare function ensureAuthorized(api: any, address: string, label?: string): Promise<void>;
32
28
  declare function bootstrapPool(bulletinRpc: string, poolSize?: number, mnemonic?: string): Promise<void>;
33
29
 
34
- export { type AuthorizationNeeds, type PoolAccount, type PoolAuthorization, type SelectionResult, _resetTestnetCacheForTests, bootstrapPool, derivePoolAccounts, detectTestnet, ensureAuthorized, fetchPoolAuthorizations, formatPasBalance, isAuthorizationSufficient, isTestnetSpecName, selectAccount };
30
+ export { type PoolAccount, type PoolAuthorization, type SelectionResult, _resetTestnetCacheForTests, bootstrapPool, derivePoolAccounts, detectTestnet, ensureAuthorized, fetchPoolAuthorizations, formatPasBalance, isAuthorizationSufficient, isTestnetSpecName, selectAccount };
package/dist/pool.js CHANGED
@@ -9,7 +9,7 @@ import {
9
9
  isAuthorizationSufficient,
10
10
  isTestnetSpecName,
11
11
  selectAccount
12
- } from "./chunk-JQ5X3VMP.js";
12
+ } from "./chunk-QS7YU76C.js";
13
13
  export {
14
14
  _resetTestnetCacheForTests,
15
15
  bootstrapPool,
package/dist/run-state.js CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  shouldSkipStaleWarning,
8
8
  stateFilePath,
9
9
  writeRunState
10
- } from "./chunk-NJPBXF5Z.js";
10
+ } from "./chunk-UNWYTYYZ.js";
11
11
  export {
12
12
  VERSION,
13
13
  loadRunState,
package/dist/telemetry.js CHANGED
@@ -33,8 +33,8 @@ import {
33
33
  truncateAddress,
34
34
  withDeploySpan,
35
35
  withSpan
36
- } from "./chunk-RIAMPAL2.js";
37
- import "./chunk-NJPBXF5Z.js";
36
+ } from "./chunk-P53IIXZ7.js";
37
+ import "./chunk-UNWYTYYZ.js";
38
38
  export {
39
39
  VERSION,
40
40
  __setDeployRootSpanForTest,
@@ -11,9 +11,9 @@ import {
11
11
  isPreReleaseVersion,
12
12
  preReleaseWarning,
13
13
  promptYesNo
14
- } from "./chunk-EJWZGSHD.js";
15
- import "./chunk-RIAMPAL2.js";
16
- import "./chunk-NJPBXF5Z.js";
14
+ } from "./chunk-BDS2LLCJ.js";
15
+ import "./chunk-P53IIXZ7.js";
16
+ import "./chunk-UNWYTYYZ.js";
17
17
  export {
18
18
  assessVersion,
19
19
  checkNodeVersion,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parity/product-deploy",
3
- "version": "0.8.2-rc.1",
3
+ "version": "0.8.3-rc.1",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",