@parity/product-deploy 0.8.3 → 0.9.0-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.
- package/LICENSE +674 -201
- package/README.md +9 -3
- package/assets/environments.json +0 -1
- package/dist/auth/index.d.ts +2 -3
- package/dist/auth/index.js +1 -1
- package/dist/auth/vendor/index.d.ts +2 -3
- package/dist/auth/vendor/index.js +1 -1
- package/dist/auth/vendor/ui/index.d.ts +1 -2
- package/dist/auth-C-Pel0AT.d.ts +235 -0
- package/dist/auth-config.d.ts +30 -8
- package/dist/auth-config.js +14 -6
- package/dist/bug-report.js +4 -4
- package/dist/{chunk-DKGCOGRT.js → chunk-6VYOUYMI.js} +144 -37
- package/dist/{chunk-3LNKPUZ7.js → chunk-AG37IM3H.js} +1 -1
- package/dist/{chunk-2OZVKA3D.js → chunk-DHY2ZXVZ.js} +36 -28
- package/dist/{chunk-WF2XKCEZ.js → chunk-EZ352IGD.js} +1 -1
- package/dist/chunk-G56VYTUD.js +75 -0
- package/dist/{chunk-5K3RI5C2.js → chunk-GL3U7K2B.js} +0 -1
- package/dist/{chunk-JMHX3M4C.js → chunk-J3WABBZ7.js} +3 -3
- package/dist/chunk-J7CYVTAW.js +43 -0
- package/dist/{chunk-OCKCB72S.js → chunk-L5Z3TJD7.js} +6 -6
- package/dist/{chunk-S7S7WENB.js → chunk-NO3BNQFL.js} +2 -2
- package/dist/{chunk-HK3B5MKA.js → chunk-ODIIC66I.js} +9 -20
- package/dist/{chunk-XM5MFMMX.js → chunk-UFQ4EZP3.js} +20 -15
- package/dist/{chunk-YUSHBZBX.js → chunk-VQB3JWK7.js} +32 -6
- package/dist/{chunk-LRRQP7DH.js → chunk-XKTAIQJ4.js} +2 -2
- package/dist/chunk-probe.js +3 -3
- package/dist/commands/login.d.ts +34 -9
- package/dist/commands/login.js +171 -68
- package/dist/commands/logout.d.ts +1 -2
- package/dist/commands/logout.js +5 -3
- package/dist/commands/whoami.d.ts +1 -2
- package/dist/commands/whoami.js +7 -4
- package/dist/deploy.d.ts +7 -1
- package/dist/deploy.js +12 -9
- package/dist/dotns.js +4 -4
- package/dist/environments.js +1 -1
- package/dist/index.js +14 -13
- package/dist/manifest/publish.js +11 -10
- package/dist/manifest/types.d.ts +1 -1
- package/dist/memory-report.js +2 -2
- package/dist/merkle.js +10 -9
- package/dist/personhood/bind-paid-alias.js +3 -3
- package/dist/personhood/bind-personal-id.js +2 -2
- package/dist/personhood/bootstrap.js +17 -17
- package/dist/personhood/claim-pgas.js +2 -2
- package/dist/personhood/people-client.js +4 -4
- package/dist/personhood/proof-validity.js +2 -2
- package/dist/personhood/reprove.js +5 -5
- package/dist/run-state.js +1 -1
- package/dist/{signer-CriGqahj.d.ts → signer-vR6KKC7V.d.ts} +1 -1
- package/dist/spinner.d.ts +21 -0
- package/dist/spinner.js +6 -0
- package/dist/sss-allowance.d.ts +29 -0
- package/dist/sss-allowance.js +8 -0
- package/dist/storage-signer.d.ts +94 -2
- package/dist/storage-signer.js +18 -9
- package/dist/telemetry.js +2 -2
- package/dist/version-check.d.ts +0 -3
- package/dist/version-check.js +3 -3
- package/package.json +20 -15
- package/patches/@novasamatech+sdk-statement+0.6.0.patch +47 -0
- package/dist/allocations-B65Is4Md.d.ts +0 -97
- package/dist/auth-DkRZBK-T.d.ts +0 -122
- package/dist/{chunk-EATOPQFR.js → chunk-7Y7RDOGT.js} +5 -5
- package/dist/{chunk-7URNKK6J.js → chunk-LHLCPDGL.js} +3 -3
- package/dist/{chunk-EJI3MX4G.js → chunk-SLE4P6MO.js} +3 -3
package/dist/commands/whoami.js
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
|
+
STALE_SESSION_MESSAGE,
|
|
2
3
|
getAuthClient,
|
|
3
4
|
hasPersistedSession
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-VQB3JWK7.js";
|
|
6
|
+
import "../chunk-EZ352IGD.js";
|
|
7
|
+
import "../chunk-UFQ4EZP3.js";
|
|
8
|
+
import "../chunk-GL3U7K2B.js";
|
|
6
9
|
import "../chunk-ZOC4GITL.js";
|
|
7
10
|
|
|
8
11
|
// src/commands/whoami.ts
|
|
@@ -29,12 +32,12 @@ async function runWhoami(envId) {
|
|
|
29
32
|
console.log(formatWhoami(handle.addresses));
|
|
30
33
|
handle.destroy();
|
|
31
34
|
} else {
|
|
32
|
-
console.
|
|
35
|
+
console.error(STALE_SESSION_MESSAGE);
|
|
33
36
|
}
|
|
34
37
|
} catch (err) {
|
|
35
38
|
const e = err;
|
|
36
39
|
if (e?.name === "SignerNotAvailableError") {
|
|
37
|
-
console.
|
|
40
|
+
console.error(STALE_SESSION_MESSAGE);
|
|
38
41
|
} else {
|
|
39
42
|
console.log(`Could not reach login service: ${e?.message ?? String(err)}`);
|
|
40
43
|
console.log(formatWhoami(null));
|
package/dist/deploy.d.ts
CHANGED
|
@@ -106,6 +106,12 @@ declare function chooseSignerInput(opts: {
|
|
|
106
106
|
hasInjectedSigner: boolean;
|
|
107
107
|
hasSession?: boolean;
|
|
108
108
|
}): "mnemonic" | "injected" | "resolve" | "pool";
|
|
109
|
+
/**
|
|
110
|
+
* Produce the one-line storage-signer status printed at resolution time. Exported for unit testing.
|
|
111
|
+
* Success: " Storage signer: allowance slot <ss58>"
|
|
112
|
+
* Fallback: " Storage signer: pool fallback (<reason>)"
|
|
113
|
+
*/
|
|
114
|
+
declare function formatStorageSignerLine(slotAddress: string | null, failReason?: string): string;
|
|
109
115
|
declare function storeFile(contentBytes: Uint8Array, { client: existingClient, unsafeApi: existingApi, signer: existingSigner }?: ExistingProvider): Promise<string>;
|
|
110
116
|
/**
|
|
111
117
|
* Pre-compute dense nonces for chunks that need submission.
|
|
@@ -388,4 +394,4 @@ declare function computePhoneSigningSteps(dotnsPreflight: {
|
|
|
388
394
|
needsPopUpgrade: boolean;
|
|
389
395
|
} | null, publishNeeded: boolean): string[];
|
|
390
396
|
|
|
391
|
-
export { BULLETIN_ENDPOINTS, type BitswapErrorVariant, type BitswapProbeResult, CHUNK_MORTALITY_PERIOD, DEFAULT_BULLETIN_RPC, DEFAULT_POOL_SIZE, type DeployContent, type DeployOptions, type DeployResult, ENCRYPT_KEY_LEN, ENCRYPT_MAGIC, ENCRYPT_NONCE_LEN, ENCRYPT_PBKDF2_ITERATIONS, ENCRYPT_SALT_LEN, ENCRYPT_TAG_LEN, type SizeDecision, type StoreDirectoryOptions, WS_HEARTBEAT_TIMEOUT_MS, __assignDenseNoncesForTest, __selectStorageProviderModeForTest, applyManifestFetchAttributes, assertSubdomainOwnerMatchesSigner, browserUrlFor, buildFilesMap, checkDeploySize, chooseSignerInput, chunk, computePhoneSigningSteps, computeStorageCid, createCID, deploy, deriveRootSigner, detectFramework, encodeContenthash, encryptContent, estimateUploadBytes, friendlyChainError, hasIPFS, interpretBitswapResult, isConnectionError, makeBulletinStatusHandler, merkleize, probeP2pRetrieval, resolveDotnsConnectOptions, resolveReproducibleTimestamp, retryBudgetExhausted, setWsHaltCallback, storeChunkedContent, storeDirectory, storeDirectoryV2, storeFile, unpublish };
|
|
397
|
+
export { BULLETIN_ENDPOINTS, type BitswapErrorVariant, type BitswapProbeResult, CHUNK_MORTALITY_PERIOD, DEFAULT_BULLETIN_RPC, DEFAULT_POOL_SIZE, type DeployContent, type DeployOptions, type DeployResult, ENCRYPT_KEY_LEN, ENCRYPT_MAGIC, ENCRYPT_NONCE_LEN, ENCRYPT_PBKDF2_ITERATIONS, ENCRYPT_SALT_LEN, ENCRYPT_TAG_LEN, type SizeDecision, type StoreDirectoryOptions, WS_HEARTBEAT_TIMEOUT_MS, __assignDenseNoncesForTest, __selectStorageProviderModeForTest, applyManifestFetchAttributes, assertSubdomainOwnerMatchesSigner, browserUrlFor, buildFilesMap, checkDeploySize, chooseSignerInput, chunk, computePhoneSigningSteps, computeStorageCid, createCID, deploy, deriveRootSigner, detectFramework, encodeContenthash, encryptContent, estimateUploadBytes, formatStorageSignerLine, friendlyChainError, hasIPFS, interpretBitswapResult, isConnectionError, makeBulletinStatusHandler, merkleize, probeP2pRetrieval, resolveDotnsConnectOptions, resolveReproducibleTimestamp, retryBudgetExhausted, setWsHaltCallback, storeChunkedContent, storeDirectory, storeDirectoryV2, storeFile, unpublish };
|
package/dist/deploy.js
CHANGED
|
@@ -28,6 +28,7 @@ import {
|
|
|
28
28
|
encodeContenthash,
|
|
29
29
|
encryptContent,
|
|
30
30
|
estimateUploadBytes,
|
|
31
|
+
formatStorageSignerLine,
|
|
31
32
|
friendlyChainError,
|
|
32
33
|
hasIPFS,
|
|
33
34
|
interpretBitswapResult,
|
|
@@ -44,22 +45,23 @@ import {
|
|
|
44
45
|
storeDirectoryV2,
|
|
45
46
|
storeFile,
|
|
46
47
|
unpublish
|
|
47
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-6VYOUYMI.js";
|
|
49
|
+
import "./chunk-G56VYTUD.js";
|
|
48
50
|
import "./chunk-HOTQDYHD.js";
|
|
49
51
|
import "./chunk-IW3X2MJF.js";
|
|
50
52
|
import "./chunk-KOSF5FDO.js";
|
|
51
53
|
import "./chunk-J3NIXHZZ.js";
|
|
52
54
|
import "./chunk-S7EM5VMW.js";
|
|
53
|
-
import "./chunk-
|
|
54
|
-
import "./chunk-
|
|
55
|
-
import "./chunk-
|
|
56
|
-
import "./chunk-
|
|
55
|
+
import "./chunk-VQB3JWK7.js";
|
|
56
|
+
import "./chunk-XKTAIQJ4.js";
|
|
57
|
+
import "./chunk-ODIIC66I.js";
|
|
58
|
+
import "./chunk-AG37IM3H.js";
|
|
57
59
|
import "./chunk-C2TS5MER.js";
|
|
58
|
-
import "./chunk-
|
|
60
|
+
import "./chunk-NO3BNQFL.js";
|
|
59
61
|
import "./chunk-QS7YU76C.js";
|
|
60
|
-
import "./chunk-
|
|
61
|
-
import "./chunk-
|
|
62
|
-
import "./chunk-
|
|
62
|
+
import "./chunk-EZ352IGD.js";
|
|
63
|
+
import "./chunk-UFQ4EZP3.js";
|
|
64
|
+
import "./chunk-GL3U7K2B.js";
|
|
63
65
|
import {
|
|
64
66
|
EXIT_CODE_NO_RETRY,
|
|
65
67
|
NonRetryableError
|
|
@@ -96,6 +98,7 @@ export {
|
|
|
96
98
|
encodeContenthash,
|
|
97
99
|
encryptContent,
|
|
98
100
|
estimateUploadBytes,
|
|
101
|
+
formatStorageSignerLine,
|
|
99
102
|
friendlyChainError,
|
|
100
103
|
hasIPFS,
|
|
101
104
|
interpretBitswapResult,
|
package/dist/dotns.js
CHANGED
|
@@ -50,11 +50,11 @@ import {
|
|
|
50
50
|
stripTrailingDigits,
|
|
51
51
|
validateDomainLabel,
|
|
52
52
|
verifyNonceAdvanced
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-NO3BNQFL.js";
|
|
54
54
|
import "./chunk-QS7YU76C.js";
|
|
55
|
-
import "./chunk-
|
|
56
|
-
import "./chunk-
|
|
57
|
-
import "./chunk-
|
|
55
|
+
import "./chunk-EZ352IGD.js";
|
|
56
|
+
import "./chunk-UFQ4EZP3.js";
|
|
57
|
+
import "./chunk-GL3U7K2B.js";
|
|
58
58
|
import "./chunk-ZOC4GITL.js";
|
|
59
59
|
export {
|
|
60
60
|
ATTR_TX_RESOLUTION_KIND,
|
package/dist/environments.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
defineConfig
|
|
3
|
+
} from "./chunk-GZD2UFLR.js";
|
|
1
4
|
import {
|
|
2
5
|
loadProductConfig,
|
|
3
6
|
tryLoadProductConfig
|
|
4
7
|
} from "./chunk-MMAZFJDG.js";
|
|
5
8
|
import {
|
|
6
9
|
publishManifest
|
|
7
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-J3WABBZ7.js";
|
|
8
11
|
import {
|
|
9
12
|
DEFAULT_TEXT_RECORD_BUDGET_BYTES,
|
|
10
13
|
PLACEHOLDER_CID,
|
|
@@ -17,14 +20,12 @@ import {
|
|
|
17
20
|
validateProductConfig,
|
|
18
21
|
validateRootManifest
|
|
19
22
|
} from "./chunk-LZJMVPYW.js";
|
|
20
|
-
import {
|
|
21
|
-
defineConfig
|
|
22
|
-
} from "./chunk-GZD2UFLR.js";
|
|
23
23
|
import {
|
|
24
24
|
deploy,
|
|
25
25
|
merkleizeJS,
|
|
26
26
|
merkleizeWithStableOrder
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-6VYOUYMI.js";
|
|
28
|
+
import "./chunk-G56VYTUD.js";
|
|
28
29
|
import "./chunk-HOTQDYHD.js";
|
|
29
30
|
import {
|
|
30
31
|
computeStats,
|
|
@@ -47,19 +48,19 @@ import {
|
|
|
47
48
|
isVolatilePath,
|
|
48
49
|
parseManifest
|
|
49
50
|
} from "./chunk-S7EM5VMW.js";
|
|
50
|
-
import "./chunk-
|
|
51
|
-
import "./chunk-
|
|
52
|
-
import "./chunk-
|
|
51
|
+
import "./chunk-VQB3JWK7.js";
|
|
52
|
+
import "./chunk-XKTAIQJ4.js";
|
|
53
|
+
import "./chunk-ODIIC66I.js";
|
|
53
54
|
import {
|
|
54
55
|
probeChunks
|
|
55
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-AG37IM3H.js";
|
|
56
57
|
import "./chunk-C2TS5MER.js";
|
|
57
58
|
import {
|
|
58
59
|
DEFAULT_MNEMONIC,
|
|
59
60
|
DotNS,
|
|
60
61
|
parseDomainName,
|
|
61
62
|
sanitizeDomainLabel
|
|
62
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-NO3BNQFL.js";
|
|
63
64
|
import {
|
|
64
65
|
bootstrapPool,
|
|
65
66
|
derivePoolAccounts,
|
|
@@ -67,7 +68,7 @@ import {
|
|
|
67
68
|
fetchPoolAuthorizations,
|
|
68
69
|
selectAccount
|
|
69
70
|
} from "./chunk-QS7YU76C.js";
|
|
70
|
-
import "./chunk-
|
|
71
|
+
import "./chunk-EZ352IGD.js";
|
|
71
72
|
import {
|
|
72
73
|
VERSION,
|
|
73
74
|
loadRunState,
|
|
@@ -77,7 +78,7 @@ import {
|
|
|
77
78
|
shouldSkipStaleWarning,
|
|
78
79
|
stateFilePath,
|
|
79
80
|
writeRunState
|
|
80
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-UFQ4EZP3.js";
|
|
81
82
|
import {
|
|
82
83
|
DEFAULT_ENV_ID,
|
|
83
84
|
deepMergeEnvironments,
|
|
@@ -88,7 +89,7 @@ import {
|
|
|
88
89
|
loadEnvironments,
|
|
89
90
|
resolveEndpoints,
|
|
90
91
|
validateContractAddresses
|
|
91
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-GL3U7K2B.js";
|
|
92
93
|
import "./chunk-ZOC4GITL.js";
|
|
93
94
|
export {
|
|
94
95
|
DEFAULT_ENV_ID,
|
package/dist/manifest/publish.js
CHANGED
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
publishManifest
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-J3WABBZ7.js";
|
|
4
4
|
import "../chunk-RI3ZLNPN.js";
|
|
5
|
-
import "../chunk-
|
|
5
|
+
import "../chunk-6VYOUYMI.js";
|
|
6
|
+
import "../chunk-G56VYTUD.js";
|
|
6
7
|
import "../chunk-HOTQDYHD.js";
|
|
7
8
|
import "../chunk-IW3X2MJF.js";
|
|
8
9
|
import "../chunk-KOSF5FDO.js";
|
|
9
10
|
import "../chunk-J3NIXHZZ.js";
|
|
10
11
|
import "../chunk-S7EM5VMW.js";
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
12
|
+
import "../chunk-VQB3JWK7.js";
|
|
13
|
+
import "../chunk-XKTAIQJ4.js";
|
|
14
|
+
import "../chunk-ODIIC66I.js";
|
|
15
|
+
import "../chunk-AG37IM3H.js";
|
|
15
16
|
import "../chunk-C2TS5MER.js";
|
|
16
|
-
import "../chunk-
|
|
17
|
+
import "../chunk-NO3BNQFL.js";
|
|
17
18
|
import "../chunk-QS7YU76C.js";
|
|
18
|
-
import "../chunk-
|
|
19
|
-
import "../chunk-
|
|
20
|
-
import "../chunk-
|
|
19
|
+
import "../chunk-EZ352IGD.js";
|
|
20
|
+
import "../chunk-UFQ4EZP3.js";
|
|
21
|
+
import "../chunk-GL3U7K2B.js";
|
|
21
22
|
import "../chunk-ZOC4GITL.js";
|
|
22
23
|
export {
|
|
23
24
|
publishManifest
|
package/dist/manifest/types.d.ts
CHANGED
|
@@ -83,7 +83,7 @@ interface ProductConfig {
|
|
|
83
83
|
*
|
|
84
84
|
* @example
|
|
85
85
|
* import { defineConfig } from "bulletin-deploy";
|
|
86
|
-
* export default defineConfig({ domain: "
|
|
86
|
+
* export default defineConfig({ domain: "demoapp.dot", ... });
|
|
87
87
|
*/
|
|
88
88
|
declare function defineConfig<T extends ProductConfig>(config: T): T;
|
|
89
89
|
|
package/dist/memory-report.js
CHANGED
package/dist/merkle.js
CHANGED
|
@@ -6,22 +6,23 @@ import {
|
|
|
6
6
|
merkleizeKuboBackend,
|
|
7
7
|
merkleizeWithStableOrder,
|
|
8
8
|
rebuildOrderedCarFromBytes
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-6VYOUYMI.js";
|
|
10
|
+
import "./chunk-G56VYTUD.js";
|
|
10
11
|
import "./chunk-HOTQDYHD.js";
|
|
11
12
|
import "./chunk-IW3X2MJF.js";
|
|
12
13
|
import "./chunk-KOSF5FDO.js";
|
|
13
14
|
import "./chunk-J3NIXHZZ.js";
|
|
14
15
|
import "./chunk-S7EM5VMW.js";
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-VQB3JWK7.js";
|
|
17
|
+
import "./chunk-XKTAIQJ4.js";
|
|
18
|
+
import "./chunk-ODIIC66I.js";
|
|
19
|
+
import "./chunk-AG37IM3H.js";
|
|
19
20
|
import "./chunk-C2TS5MER.js";
|
|
20
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-NO3BNQFL.js";
|
|
21
22
|
import "./chunk-QS7YU76C.js";
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-EZ352IGD.js";
|
|
24
|
+
import "./chunk-UFQ4EZP3.js";
|
|
25
|
+
import "./chunk-GL3U7K2B.js";
|
|
25
26
|
import "./chunk-ZOC4GITL.js";
|
|
26
27
|
export {
|
|
27
28
|
buildOrderedCar,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PaidAliasBindingError,
|
|
3
3
|
bindPaidAliasToAccount
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-ZYVGHDMU.js";
|
|
4
|
+
} from "../chunk-L5Z3TJD7.js";
|
|
5
|
+
import "../chunk-SLE4P6MO.js";
|
|
7
6
|
import "../chunk-SI2ZUOYD.js";
|
|
7
|
+
import "../chunk-ZYVGHDMU.js";
|
|
8
8
|
export {
|
|
9
9
|
PaidAliasBindingError,
|
|
10
10
|
bindPaidAliasToAccount
|
|
@@ -2,9 +2,9 @@ import {
|
|
|
2
2
|
PersonalIdBindingError,
|
|
3
3
|
bindPersonalIdToAccount,
|
|
4
4
|
buildAsPersonExtensionValue
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-ZYVGHDMU.js";
|
|
5
|
+
} from "../chunk-LHLCPDGL.js";
|
|
7
6
|
import "../chunk-SI2ZUOYD.js";
|
|
7
|
+
import "../chunk-ZYVGHDMU.js";
|
|
8
8
|
export {
|
|
9
9
|
PersonalIdBindingError,
|
|
10
10
|
bindPersonalIdToAccount,
|
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
bindPersonalIdToAccount
|
|
3
|
-
} from "../chunk-7URNKK6J.js";
|
|
4
|
-
import {
|
|
5
|
-
runChainPrereqProbes
|
|
6
|
-
} from "../chunk-XAB7WM3S.js";
|
|
7
|
-
import {
|
|
8
|
-
claimPgas
|
|
9
|
-
} from "../chunk-EATOPQFR.js";
|
|
10
1
|
import {
|
|
11
2
|
deriveMemberEntropy,
|
|
12
3
|
deriveMemberKey
|
|
@@ -14,25 +5,34 @@ import {
|
|
|
14
5
|
import "../chunk-UPWEOGLQ.js";
|
|
15
6
|
import {
|
|
16
7
|
bindPaidAliasToAccount
|
|
17
|
-
} from "../chunk-
|
|
18
|
-
import "../chunk-
|
|
8
|
+
} from "../chunk-L5Z3TJD7.js";
|
|
9
|
+
import "../chunk-SLE4P6MO.js";
|
|
19
10
|
import {
|
|
20
|
-
|
|
21
|
-
} from "../chunk-
|
|
11
|
+
bindPersonalIdToAccount
|
|
12
|
+
} from "../chunk-LHLCPDGL.js";
|
|
13
|
+
import {
|
|
14
|
+
runChainPrereqProbes
|
|
15
|
+
} from "../chunk-XAB7WM3S.js";
|
|
16
|
+
import {
|
|
17
|
+
claimPgas
|
|
18
|
+
} from "../chunk-7Y7RDOGT.js";
|
|
22
19
|
import {
|
|
23
20
|
DOTNS_CONTEXT_BYTES,
|
|
24
21
|
PEOPLE_MEMBER_IDENTIFIER_HEX,
|
|
25
22
|
PGAS_ASSET_ID
|
|
26
23
|
} from "../chunk-SI2ZUOYD.js";
|
|
24
|
+
import {
|
|
25
|
+
bytesToHex
|
|
26
|
+
} from "../chunk-ZYVGHDMU.js";
|
|
27
27
|
import {
|
|
28
28
|
WS_HEARTBEAT_TIMEOUT_MS
|
|
29
|
-
} from "../chunk-
|
|
29
|
+
} from "../chunk-NO3BNQFL.js";
|
|
30
30
|
import "../chunk-QS7YU76C.js";
|
|
31
|
-
import "../chunk-
|
|
32
|
-
import "../chunk-
|
|
31
|
+
import "../chunk-EZ352IGD.js";
|
|
32
|
+
import "../chunk-UFQ4EZP3.js";
|
|
33
33
|
import {
|
|
34
34
|
loadEnvironments
|
|
35
|
-
} from "../chunk-
|
|
35
|
+
} from "../chunk-GL3U7K2B.js";
|
|
36
36
|
import "../chunk-ZOC4GITL.js";
|
|
37
37
|
|
|
38
38
|
// src/personhood/bootstrap.ts
|
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
buildAsPgasClaimExtensionValue,
|
|
4
4
|
buildImplicationExclude,
|
|
5
5
|
claimPgas
|
|
6
|
-
} from "../chunk-
|
|
7
|
-
import "../chunk-ZYVGHDMU.js";
|
|
6
|
+
} from "../chunk-7Y7RDOGT.js";
|
|
8
7
|
import "../chunk-SI2ZUOYD.js";
|
|
8
|
+
import "../chunk-ZYVGHDMU.js";
|
|
9
9
|
export {
|
|
10
10
|
PgasClaimError,
|
|
11
11
|
buildAsPgasClaimExtensionValue,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WS_HEARTBEAT_TIMEOUT_MS
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-NO3BNQFL.js";
|
|
4
4
|
import "../chunk-QS7YU76C.js";
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
5
|
+
import "../chunk-EZ352IGD.js";
|
|
6
|
+
import "../chunk-UFQ4EZP3.js";
|
|
7
7
|
import {
|
|
8
8
|
loadEnvironments
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-GL3U7K2B.js";
|
|
10
10
|
import "../chunk-ZOC4GITL.js";
|
|
11
11
|
|
|
12
12
|
// src/personhood/people-client.ts
|
|
@@ -2,9 +2,9 @@ import {
|
|
|
2
2
|
buildAliasProofMessage,
|
|
3
3
|
getProofValidAtSec,
|
|
4
4
|
u64LeBytes
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-ZYVGHDMU.js";
|
|
5
|
+
} from "../chunk-SLE4P6MO.js";
|
|
7
6
|
import "../chunk-SI2ZUOYD.js";
|
|
7
|
+
import "../chunk-ZYVGHDMU.js";
|
|
8
8
|
export {
|
|
9
9
|
buildAliasProofMessage,
|
|
10
10
|
getProofValidAtSec,
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
buildAliasProofMessage,
|
|
3
3
|
getProofValidAtSec
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-SLE4P6MO.js";
|
|
5
|
+
import {
|
|
6
|
+
PEOPLE_MEMBER_IDENTIFIER_HEX,
|
|
7
|
+
PROOF_BYTES
|
|
8
|
+
} from "../chunk-SI2ZUOYD.js";
|
|
5
9
|
import {
|
|
6
10
|
bytesToHex,
|
|
7
11
|
encodeMembers,
|
|
8
12
|
hexToBytes
|
|
9
13
|
} from "../chunk-ZYVGHDMU.js";
|
|
10
|
-
import {
|
|
11
|
-
PEOPLE_MEMBER_IDENTIFIER_HEX,
|
|
12
|
-
PROOF_BYTES
|
|
13
|
-
} from "../chunk-SI2ZUOYD.js";
|
|
14
14
|
|
|
15
15
|
// src/personhood/reprove.ts
|
|
16
16
|
import { getSs58AddressInfo, Binary } from "polkadot-api";
|
package/dist/run-state.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DevAccountName } from '@parity/product-sdk-tx';
|
|
2
2
|
import { PolkadotSigner } from 'polkadot-api';
|
|
3
|
-
import {
|
|
3
|
+
import { h as SessionHandle, S as SessionAddresses, c as AuthClient } from './auth-C-Pel0AT.js';
|
|
4
4
|
|
|
5
5
|
type SignerSource = "dev" | "session";
|
|
6
6
|
interface ResolvedSigner {
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Minimal terminal spinner with an elapsed-time readout.
|
|
3
|
+
*
|
|
4
|
+
* Renders `⠙ <label>… (3s)` on a single line via carriage-return redraw, in the
|
|
5
|
+
* style of Claude Code's live status. Built for awaiting a single async op
|
|
6
|
+
* (e.g. polling on-chain authorization during login).
|
|
7
|
+
*
|
|
8
|
+
* Footgun-safe by design:
|
|
9
|
+
* - the redraw interval is .unref()'d, so it never keeps the Node event loop
|
|
10
|
+
* alive — callers that process.exit() still exit cleanly.
|
|
11
|
+
* - stop() is idempotent and always clears the interval.
|
|
12
|
+
* - in a non-TTY (CI / piped output) it prints one static line and no \r
|
|
13
|
+
* animation, so logs stay clean.
|
|
14
|
+
*/
|
|
15
|
+
interface Spinner {
|
|
16
|
+
/** Stop the spinner, clear the line, and optionally print a final line. */
|
|
17
|
+
stop(finalLine?: string): void;
|
|
18
|
+
}
|
|
19
|
+
declare function startSpinner(label: string, stream?: NodeJS.WriteStream): Spinner;
|
|
20
|
+
|
|
21
|
+
export { type Spinner, startSpinner };
|
package/dist/spinner.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Statement Store (SSS) allowance preflight — pure storage read, no signing.
|
|
3
|
+
*
|
|
4
|
+
* The People chain stores SSS allowances under a deterministic key:
|
|
5
|
+
* b":statement_allowance:" ++ raw_32_byte_account_pubkey
|
|
6
|
+
*
|
|
7
|
+
* We can check this via a single `state_getStorage` RPC call — no transaction,
|
|
8
|
+
* no phone dialog. Non-null, non-"0x" result means the allowance is present.
|
|
9
|
+
*
|
|
10
|
+
* Reference: substrate/primitives/statement-store/src/lib.rs
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Build the hex-encoded storage key for an SSS allowance check.
|
|
14
|
+
*
|
|
15
|
+
* Format: 0x + hex(":statement_allowance:" + pubkey_32_bytes)
|
|
16
|
+
* No twox/blake2 hashing — the key is the raw concatenation.
|
|
17
|
+
*/
|
|
18
|
+
declare function sssStorageKey(pubkey: Uint8Array): string;
|
|
19
|
+
/**
|
|
20
|
+
* Check whether a Statement Store allowance is present on the People chain.
|
|
21
|
+
*
|
|
22
|
+
* @returns
|
|
23
|
+
* - `true` — allowance present (continue)
|
|
24
|
+
* - `false` — allowance absent / expired (user must re-login)
|
|
25
|
+
* - `null` — could not determine (network error or timeout; caller decides whether to block)
|
|
26
|
+
*/
|
|
27
|
+
declare function checkSSSAllowance(pubkey: Uint8Array, peopleEndpoints: string[], timeoutMs?: number): Promise<boolean | null>;
|
|
28
|
+
|
|
29
|
+
export { checkSSSAllowance, sssStorageKey };
|
package/dist/storage-signer.d.ts
CHANGED
|
@@ -5,6 +5,11 @@ import { PolkadotSigner } from 'polkadot-api';
|
|
|
5
5
|
* Returns null when not cached. storageDir defaults to os.homedir().
|
|
6
6
|
*
|
|
7
7
|
* Cache format: @parity/product-sdk-terminal host-cache.ts v1.
|
|
8
|
+
*
|
|
9
|
+
* NOTE: reads the pre-0.8.6 plaintext cache format (_AllowanceKeys.json). On host-papp 0.8.6+
|
|
10
|
+
* the cache is AES-encrypted and keyed by sessionId (_AllowanceKeys_<sessionId>.json), so
|
|
11
|
+
* this function returns null on 0.8.6+ installations. Use adapter.allowance.getBulletinSigner()
|
|
12
|
+
* for runtime checks instead.
|
|
8
13
|
*/
|
|
9
14
|
declare function readBulletinSlotSigner(appId: string, storageDir?: string): Promise<{
|
|
10
15
|
signer: PolkadotSigner;
|
|
@@ -24,9 +29,96 @@ declare function extractBulletinSlotKey(outcomes: {
|
|
|
24
29
|
tag: string;
|
|
25
30
|
value: unknown;
|
|
26
31
|
}[]): `0x${string}` | null;
|
|
32
|
+
/**
|
|
33
|
+
* Typed error thrown by getSlotSignerProvider when the slot account is not
|
|
34
|
+
* usably authorized on-chain. The `reason` field lets callers produce
|
|
35
|
+
* targeted messages without string-matching.
|
|
36
|
+
*
|
|
37
|
+
* "missing" — no Authorizations entry found for the slot account.
|
|
38
|
+
* "expired" — entry exists but expiration ≤ current finalized block.
|
|
39
|
+
*/
|
|
40
|
+
declare class BulletinSlotAuthError extends Error {
|
|
41
|
+
readonly reason: "missing" | "expired";
|
|
42
|
+
/** The on-chain expiration block (only set when reason === "expired"). */
|
|
43
|
+
readonly expiration?: number;
|
|
44
|
+
constructor(reason: "missing" | "expired", ss58: string, expiration?: number);
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Pure active-test for a Bulletin Authorizations entry.
|
|
48
|
+
* Shared by getSlotSignerProvider (single probe) and the poll loop in
|
|
49
|
+
* waitForBulletinAuthorization (repeated probes).
|
|
50
|
+
*
|
|
51
|
+
* @param auth Raw value from TransactionStorage.Authorizations.getValue — null when absent.
|
|
52
|
+
* @param blockNumber Current finalized block number.
|
|
53
|
+
*/
|
|
54
|
+
declare function isBulletinAuthActive(auth: {
|
|
55
|
+
expiration?: bigint | number;
|
|
56
|
+
} | null | undefined, blockNumber: number): {
|
|
57
|
+
active: true;
|
|
58
|
+
expiration: number;
|
|
59
|
+
} | {
|
|
60
|
+
active: false;
|
|
61
|
+
reason: "missing" | "expired";
|
|
62
|
+
expiration?: number;
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* Internal poll loop for waitForBulletinAuthorization.
|
|
66
|
+
* Injecting the query function keeps the loop unit-testable without a real WS connection.
|
|
67
|
+
*
|
|
68
|
+
* @param queryFn Async function that returns {auth, blockNumber} — mock in tests.
|
|
69
|
+
* @param opts pollMs (default 2000), timeoutMs (default 90000).
|
|
70
|
+
*
|
|
71
|
+
* Transient query errors (thrown by queryFn) are retried until the deadline — a
|
|
72
|
+
* flaky WS read is NOT treated as "unauthorized". Only a clean active-check
|
|
73
|
+
* returning false advances toward timeout.
|
|
74
|
+
*/
|
|
75
|
+
declare function pollUntilBulletinAuthorized(queryFn: () => Promise<{
|
|
76
|
+
auth: {
|
|
77
|
+
expiration?: bigint | number;
|
|
78
|
+
} | null | undefined;
|
|
79
|
+
blockNumber: number;
|
|
80
|
+
}>, opts?: {
|
|
81
|
+
timeoutMs?: number;
|
|
82
|
+
pollMs?: number;
|
|
83
|
+
}): Promise<{
|
|
84
|
+
authorized: true;
|
|
85
|
+
expiration: number;
|
|
86
|
+
} | {
|
|
87
|
+
authorized: false;
|
|
88
|
+
reason: "timeout";
|
|
89
|
+
}>;
|
|
90
|
+
/**
|
|
91
|
+
* Open a Bulletin WS connection, poll Authorizations until the slot account's
|
|
92
|
+
* authorization lands on-chain, then destroy the connection and return.
|
|
93
|
+
*
|
|
94
|
+
* Intended for the fresh-login path in src/commands/login.ts to gate the
|
|
95
|
+
* success summary until the authorization is finalized (avoids the first-run
|
|
96
|
+
* race where deploy checks immediately after phone approval but before the
|
|
97
|
+
* on-chain tx is included).
|
|
98
|
+
*
|
|
99
|
+
* Does NOT print any progress — the caller (login.ts) owns the output via a
|
|
100
|
+
* spinner. Pass `quiet: true` to suppress connection status chatter so the
|
|
101
|
+
* caller's spinner owns the line.
|
|
102
|
+
*
|
|
103
|
+
* @returns `{ authorized: true, expiration }` on success;
|
|
104
|
+
* `{ authorized: false, reason: "timeout" }` after the configured timeout.
|
|
105
|
+
*/
|
|
106
|
+
declare function waitForBulletinAuthorization(ss58: string, opts?: {
|
|
107
|
+
timeoutMs?: number;
|
|
108
|
+
pollMs?: number;
|
|
109
|
+
quiet?: boolean;
|
|
110
|
+
endpoints?: string[];
|
|
111
|
+
}): Promise<{
|
|
112
|
+
authorized: true;
|
|
113
|
+
expiration: number;
|
|
114
|
+
} | {
|
|
115
|
+
authorized: false;
|
|
116
|
+
reason: "timeout";
|
|
117
|
+
}>;
|
|
27
118
|
/**
|
|
28
119
|
* Create a Bulletin WS connection for the slot-account signer.
|
|
29
|
-
*
|
|
120
|
+
* Checks on-chain authorization (single probe — no poll). Throws BulletinSlotAuthError
|
|
121
|
+
* with reason "missing" | "expired" so callers can distinguish and produce targeted messages.
|
|
30
122
|
*/
|
|
31
123
|
declare function getSlotSignerProvider(signer: PolkadotSigner, ss58: string): Promise<{
|
|
32
124
|
client: any;
|
|
@@ -35,4 +127,4 @@ declare function getSlotSignerProvider(signer: PolkadotSigner, ss58: string): Pr
|
|
|
35
127
|
ss58: string;
|
|
36
128
|
}>;
|
|
37
129
|
|
|
38
|
-
export { extractBulletinSlotKey, getSlotSignerProvider, readBulletinSlotSigner, writeBulletinSlotKey };
|
|
130
|
+
export { BulletinSlotAuthError, extractBulletinSlotKey, getSlotSignerProvider, isBulletinAuthActive, pollUntilBulletinAuthorized, readBulletinSlotSigner, waitForBulletinAuthorization, writeBulletinSlotKey };
|