@parity/product-deploy 0.8.3-rc.6 → 0.8.3-rc.7
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/bin/bulletin-deploy +33 -7
- package/dist/allocations-B65Is4Md.d.ts +97 -0
- package/dist/auth/index.d.ts +7 -0
- package/dist/auth/index.js +25 -0
- package/dist/auth/vendor/index.d.ts +32 -0
- package/dist/auth/vendor/index.js +26 -0
- package/dist/auth/vendor/ui/index.d.ts +15 -0
- package/dist/auth/vendor/ui/index.js +10 -0
- package/dist/auth-DkRZBK-T.d.ts +122 -0
- package/dist/auth-config.d.ts +39 -0
- package/dist/auth-config.js +20 -0
- package/dist/bug-report.js +4 -4
- package/dist/chunk-327NAPBD.js +52 -0
- package/dist/chunk-7DGFJC6E.js +379 -0
- package/dist/{chunk-6XDIJYDO.js → chunk-BI5SDZMM.js} +2 -2
- package/dist/{chunk-22CE57IY.js → chunk-C2DA2PRC.js} +1 -1
- package/dist/{chunk-YUIBBHS2.js → chunk-HEKCOME3.js} +1 -1
- package/dist/chunk-JQKKMUCT.js +0 -0
- package/dist/{chunk-3TOFKDMY.js → chunk-OBCWAZQE.js} +1 -1
- package/dist/{chunk-L5Z3TJD7.js → chunk-OCKCB72S.js} +6 -6
- package/dist/{chunk-LX77LVIM.js → chunk-OPMGKRYY.js} +17 -3
- package/dist/chunk-RIRDBSBG.js +36 -0
- package/dist/{chunk-Y7F57J2T.js → chunk-TDPH6Y3G.js} +602 -383
- package/dist/{chunk-M6DM2NUT.js → chunk-W4MILLXD.js} +8 -2
- package/dist/{chunk-3ASTLJSZ.js → chunk-XYBMCFIX.js} +2 -2
- package/dist/chunk-probe.js +3 -3
- package/dist/commands/login.d.ts +28 -0
- package/dist/commands/login.js +63 -0
- package/dist/commands/logout.d.ts +21 -0
- package/dist/commands/logout.js +37 -0
- package/dist/commands/whoami.d.ts +22 -0
- package/dist/commands/whoami.js +47 -0
- package/dist/deploy.d.ts +40 -3
- package/dist/deploy.js +17 -8
- package/dist/dotns.js +3 -3
- package/dist/index.d.ts +1 -0
- package/dist/index.js +13 -12
- package/dist/manifest/publish.js +10 -9
- package/dist/memory-report.js +2 -2
- package/dist/merkle.d.ts +3 -1
- package/dist/merkle.js +9 -8
- package/dist/personhood/bind-paid-alias.js +3 -3
- package/dist/personhood/bind-personal-id.js +2 -2
- package/dist/personhood/bootstrap.js +16 -16
- package/dist/personhood/claim-pgas.js +2 -2
- package/dist/personhood/people-client.js +3 -3
- 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 +35 -0
- package/dist/storage-signer.d.ts +38 -0
- package/dist/storage-signer.js +28 -0
- package/dist/telemetry.d.ts +1 -1
- package/dist/telemetry.js +2 -2
- package/dist/version-check.js +3 -3
- package/package.json +17 -3
- package/dist/{chunk-LHLCPDGL.js → chunk-7URNKK6J.js} +3 -3
- package/dist/{chunk-7Y7RDOGT.js → chunk-EATOPQFR.js} +5 -5
- package/dist/{chunk-SLE4P6MO.js → chunk-EJI3MX4G.js} +3 -3
|
@@ -2,9 +2,9 @@ import {
|
|
|
2
2
|
PersonalIdBindingError,
|
|
3
3
|
bindPersonalIdToAccount,
|
|
4
4
|
buildAsPersonExtensionValue
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-SI2ZUOYD.js";
|
|
5
|
+
} from "../chunk-7URNKK6J.js";
|
|
7
6
|
import "../chunk-ZYVGHDMU.js";
|
|
7
|
+
import "../chunk-SI2ZUOYD.js";
|
|
8
8
|
export {
|
|
9
9
|
PersonalIdBindingError,
|
|
10
10
|
bindPersonalIdToAccount,
|
|
@@ -1,3 +1,12 @@
|
|
|
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";
|
|
1
10
|
import {
|
|
2
11
|
deriveMemberEntropy,
|
|
3
12
|
deriveMemberKey
|
|
@@ -5,31 +14,22 @@ import {
|
|
|
5
14
|
import "../chunk-UPWEOGLQ.js";
|
|
6
15
|
import {
|
|
7
16
|
bindPaidAliasToAccount
|
|
8
|
-
} from "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import {
|
|
11
|
-
bindPersonalIdToAccount
|
|
12
|
-
} from "../chunk-LHLCPDGL.js";
|
|
17
|
+
} from "../chunk-OCKCB72S.js";
|
|
18
|
+
import "../chunk-EJI3MX4G.js";
|
|
13
19
|
import {
|
|
14
|
-
|
|
15
|
-
} from "../chunk-
|
|
16
|
-
import {
|
|
17
|
-
claimPgas
|
|
18
|
-
} from "../chunk-7Y7RDOGT.js";
|
|
20
|
+
bytesToHex
|
|
21
|
+
} from "../chunk-ZYVGHDMU.js";
|
|
19
22
|
import {
|
|
20
23
|
DOTNS_CONTEXT_BYTES,
|
|
21
24
|
PEOPLE_MEMBER_IDENTIFIER_HEX,
|
|
22
25
|
PGAS_ASSET_ID
|
|
23
26
|
} 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-OBCWAZQE.js";
|
|
30
30
|
import "../chunk-QS7YU76C.js";
|
|
31
|
-
import "../chunk-
|
|
32
|
-
import "../chunk-
|
|
31
|
+
import "../chunk-W4MILLXD.js";
|
|
32
|
+
import "../chunk-OPMGKRYY.js";
|
|
33
33
|
import {
|
|
34
34
|
loadEnvironments
|
|
35
35
|
} from "../chunk-5K3RI5C2.js";
|
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
buildAsPgasClaimExtensionValue,
|
|
4
4
|
buildImplicationExclude,
|
|
5
5
|
claimPgas
|
|
6
|
-
} from "../chunk-
|
|
7
|
-
import "../chunk-SI2ZUOYD.js";
|
|
6
|
+
} from "../chunk-EATOPQFR.js";
|
|
8
7
|
import "../chunk-ZYVGHDMU.js";
|
|
8
|
+
import "../chunk-SI2ZUOYD.js";
|
|
9
9
|
export {
|
|
10
10
|
PgasClaimError,
|
|
11
11
|
buildAsPgasClaimExtensionValue,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WS_HEARTBEAT_TIMEOUT_MS
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-OBCWAZQE.js";
|
|
4
4
|
import "../chunk-QS7YU76C.js";
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
5
|
+
import "../chunk-W4MILLXD.js";
|
|
6
|
+
import "../chunk-OPMGKRYY.js";
|
|
7
7
|
import {
|
|
8
8
|
loadEnvironments
|
|
9
9
|
} from "../chunk-5K3RI5C2.js";
|
|
@@ -2,9 +2,9 @@ import {
|
|
|
2
2
|
buildAliasProofMessage,
|
|
3
3
|
getProofValidAtSec,
|
|
4
4
|
u64LeBytes
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-SI2ZUOYD.js";
|
|
5
|
+
} from "../chunk-EJI3MX4G.js";
|
|
7
6
|
import "../chunk-ZYVGHDMU.js";
|
|
7
|
+
import "../chunk-SI2ZUOYD.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-
|
|
5
|
-
import {
|
|
6
|
-
PEOPLE_MEMBER_IDENTIFIER_HEX,
|
|
7
|
-
PROOF_BYTES
|
|
8
|
-
} from "../chunk-SI2ZUOYD.js";
|
|
4
|
+
} from "../chunk-EJI3MX4G.js";
|
|
9
5
|
import {
|
|
10
6
|
bytesToHex,
|
|
11
7
|
encodeMembers,
|
|
12
8
|
hexToBytes
|
|
13
9
|
} 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
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { DevAccountName } from '@parity/product-sdk-tx';
|
|
2
|
+
import { PolkadotSigner } from 'polkadot-api';
|
|
3
|
+
import { e as SessionHandle, S as SessionAddresses, A as AuthClient } from './auth-DkRZBK-T.js';
|
|
4
|
+
|
|
5
|
+
type SignerSource = "dev" | "session";
|
|
6
|
+
interface ResolvedSigner {
|
|
7
|
+
signer: PolkadotSigner;
|
|
8
|
+
address: string;
|
|
9
|
+
source: SignerSource;
|
|
10
|
+
/** Present for QR/mobile sessions; absent for local dev/SURI signers. */
|
|
11
|
+
userSession?: SessionHandle["userSession"];
|
|
12
|
+
/** Root / product / H160 triple — present for QR/mobile sessions only. */
|
|
13
|
+
addresses?: SessionAddresses;
|
|
14
|
+
/** Tear down session adapter. Call in a finally block. No-op for dev signers. */
|
|
15
|
+
destroy(): void;
|
|
16
|
+
}
|
|
17
|
+
interface SignerOptions {
|
|
18
|
+
/** Secret URI like "//Alice". Takes priority over session. */
|
|
19
|
+
suri?: string;
|
|
20
|
+
}
|
|
21
|
+
declare class SignerNotAvailableError extends Error {
|
|
22
|
+
constructor();
|
|
23
|
+
}
|
|
24
|
+
declare function parseDevAccountName(suri: string): DevAccountName | null;
|
|
25
|
+
/**
|
|
26
|
+
* Resolve a PolkadotSigner.
|
|
27
|
+
*
|
|
28
|
+
* 1. `--suri` flag → dev signer (dev name like //Alice, OR a BIP-39 mnemonic
|
|
29
|
+
* with optional `//<path>` derivation suffix)
|
|
30
|
+
* 2. Persisted QR session → session signer (via `authClient.getSessionSigner`)
|
|
31
|
+
* 3. Neither → `SignerNotAvailableError`
|
|
32
|
+
*/
|
|
33
|
+
declare function resolveSigner(authClient: AuthClient, options?: SignerOptions): Promise<ResolvedSigner>;
|
|
34
|
+
|
|
35
|
+
export { type ResolvedSigner as R, SignerNotAvailableError as S, type SignerOptions as a, type SignerSource as b, parseDevAccountName as p, resolveSigner as r };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { PolkadotSigner } from 'polkadot-api';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Read the BulletInAllowance slot account from the product-sdk-terminal allowance cache.
|
|
5
|
+
* Returns null when not cached. storageDir defaults to os.homedir().
|
|
6
|
+
*
|
|
7
|
+
* Cache format: @parity/product-sdk-terminal host-cache.ts v1.
|
|
8
|
+
*/
|
|
9
|
+
declare function readBulletinSlotSigner(appId: string, storageDir?: string): Promise<{
|
|
10
|
+
signer: PolkadotSigner;
|
|
11
|
+
ss58: string;
|
|
12
|
+
} | null>;
|
|
13
|
+
/**
|
|
14
|
+
* Write a BulletInAllowance slot key to the product-sdk-terminal cache (v1 format).
|
|
15
|
+
* Read-modify-write so other entries are preserved.
|
|
16
|
+
*/
|
|
17
|
+
declare function writeBulletinSlotKey(appId: string, hexKey: `0x${string}`, storageDir?: string): Promise<void>;
|
|
18
|
+
/**
|
|
19
|
+
* Extract the BulletInAllowance slot key hex from a requestResourceAllocation outcome array.
|
|
20
|
+
* The vendored allocations.ts does not parse or persist the key material — callers must
|
|
21
|
+
* call this and then writeBulletinSlotKey.
|
|
22
|
+
*/
|
|
23
|
+
declare function extractBulletinSlotKey(outcomes: {
|
|
24
|
+
tag: string;
|
|
25
|
+
value: unknown;
|
|
26
|
+
}[]): `0x${string}` | null;
|
|
27
|
+
/**
|
|
28
|
+
* Create a Bulletin WS connection for the slot-account signer.
|
|
29
|
+
* No authorization checks — pool fallback is handled by the caller (selectStorageReconnect).
|
|
30
|
+
*/
|
|
31
|
+
declare function getSlotSignerProvider(signer: PolkadotSigner, ss58: string): Promise<{
|
|
32
|
+
client: any;
|
|
33
|
+
unsafeApi: any;
|
|
34
|
+
signer: PolkadotSigner;
|
|
35
|
+
ss58: string;
|
|
36
|
+
}>;
|
|
37
|
+
|
|
38
|
+
export { extractBulletinSlotKey, getSlotSignerProvider, readBulletinSlotSigner, writeBulletinSlotKey };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import {
|
|
2
|
+
extractBulletinSlotKey,
|
|
3
|
+
getSlotSignerProvider,
|
|
4
|
+
readBulletinSlotSigner,
|
|
5
|
+
writeBulletinSlotKey
|
|
6
|
+
} from "./chunk-TDPH6Y3G.js";
|
|
7
|
+
import "./chunk-HOTQDYHD.js";
|
|
8
|
+
import "./chunk-IW3X2MJF.js";
|
|
9
|
+
import "./chunk-KOSF5FDO.js";
|
|
10
|
+
import "./chunk-J3NIXHZZ.js";
|
|
11
|
+
import "./chunk-S7EM5VMW.js";
|
|
12
|
+
import "./chunk-327NAPBD.js";
|
|
13
|
+
import "./chunk-BI5SDZMM.js";
|
|
14
|
+
import "./chunk-HEKCOME3.js";
|
|
15
|
+
import "./chunk-C2DA2PRC.js";
|
|
16
|
+
import "./chunk-C2TS5MER.js";
|
|
17
|
+
import "./chunk-OBCWAZQE.js";
|
|
18
|
+
import "./chunk-QS7YU76C.js";
|
|
19
|
+
import "./chunk-W4MILLXD.js";
|
|
20
|
+
import "./chunk-OPMGKRYY.js";
|
|
21
|
+
import "./chunk-5K3RI5C2.js";
|
|
22
|
+
import "./chunk-ZOC4GITL.js";
|
|
23
|
+
export {
|
|
24
|
+
extractBulletinSlotKey,
|
|
25
|
+
getSlotSignerProvider,
|
|
26
|
+
readBulletinSlotSigner,
|
|
27
|
+
writeBulletinSlotKey
|
|
28
|
+
};
|
package/dist/telemetry.d.ts
CHANGED
|
@@ -52,7 +52,7 @@ type DeployErrorCategory = 'user' | 'environment' | 'internal' | 'unknown';
|
|
|
52
52
|
declare function classifyDeployError(msg: string): DeployErrorCategory;
|
|
53
53
|
declare function classifySadReason(message: string): string;
|
|
54
54
|
declare function computeDeployOutcome(errorCategory: DeployErrorCategory | null, isSad: boolean, sadReason: string): string;
|
|
55
|
-
type DeployErrorKind = 'contract-revert' | 'chain-timeout' | 'nonce-stale' | 'connection' | 'naming.pop_required' | 'naming.already_owned' | 'naming.subdomain_orphan' | 'verify.contenthash_mismatch' | 'verify.dagpb_not_finalised' | 'network.recovery_exhausted' | 'chain.api_timeout' | 'chain.tx_timeout' | 'chain.tx_silent' | 'tool.invariant' | 'unknown';
|
|
55
|
+
type DeployErrorKind = 'contract-revert' | 'chain-timeout' | 'nonce-stale' | 'connection' | 'naming.pop_required' | 'naming.nostatus_required' | 'naming.contract_unavailable' | 'naming.already_owned' | 'naming.subdomain_orphan' | 'verify.contenthash_mismatch' | 'verify.dagpb_not_finalised' | 'network.recovery_exhausted' | 'account.mapping_pending' | 'chain.api_timeout' | 'chain.tx_timeout' | 'chain.tx_silent' | 'chain.extrinsic_expired' | 'chain.quota_exhausted' | 'signer.message_too_large' | 'tool.invariant' | 'unknown';
|
|
56
56
|
declare function classifyErrorKind(msg: string): DeployErrorKind;
|
|
57
57
|
declare function sanitizeErrorMessage(msg: string): string;
|
|
58
58
|
/**
|
package/dist/telemetry.js
CHANGED
package/dist/version-check.js
CHANGED
|
@@ -11,9 +11,9 @@ import {
|
|
|
11
11
|
isPreReleaseVersion,
|
|
12
12
|
preReleaseWarning,
|
|
13
13
|
promptYesNo
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-HEKCOME3.js";
|
|
15
|
+
import "./chunk-W4MILLXD.js";
|
|
16
|
+
import "./chunk-OPMGKRYY.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.3-rc.
|
|
3
|
+
"version": "0.8.3-rc.7",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -43,10 +43,10 @@
|
|
|
43
43
|
"tools/release-retry-wrapper.mjs"
|
|
44
44
|
],
|
|
45
45
|
"scripts": {
|
|
46
|
-
"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 src/manifest.ts src/chunk-probe.ts src/manifest-embed.ts src/manifest-fetch.ts src/manifest-roundtrip.ts src/incremental-stats.ts src/chunker.ts src/personhood/encoding.ts src/personhood/hashing.ts src/personhood/constants.ts src/personhood/member-key.ts src/personhood/people-client.ts src/personhood/proof-validity.ts src/personhood/reprove.ts src/personhood/bind-personal-id.ts src/personhood/claim-pgas.ts src/personhood/bind-paid-alias.ts src/personhood/bootstrap.ts src/personhood/chain-prereqs.ts src/manifest/types.ts src/manifest/schema.ts src/manifest/byte-budget.ts src/manifest/config-load.ts src/manifest/publish.ts --format esm --dts --clean --target node22",
|
|
46
|
+
"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 src/manifest.ts src/chunk-probe.ts src/manifest-embed.ts src/manifest-fetch.ts src/manifest-roundtrip.ts src/incremental-stats.ts src/chunker.ts src/personhood/encoding.ts src/personhood/hashing.ts src/personhood/constants.ts src/personhood/member-key.ts src/personhood/people-client.ts src/personhood/proof-validity.ts src/personhood/reprove.ts src/personhood/bind-personal-id.ts src/personhood/claim-pgas.ts src/personhood/bind-paid-alias.ts src/personhood/bootstrap.ts src/personhood/chain-prereqs.ts src/manifest/types.ts src/manifest/schema.ts src/manifest/byte-budget.ts src/manifest/config-load.ts src/manifest/publish.ts src/auth/index.ts src/auth/vendor/index.ts src/auth/vendor/ui/index.ts src/auth-config.ts src/commands/login.ts src/commands/logout.ts src/commands/whoami.ts src/storage-signer.ts --format esm --dts --clean --target node22",
|
|
47
47
|
"refresh-environments": "node scripts/refresh-environments.mjs",
|
|
48
48
|
"prepare": "npm run build",
|
|
49
|
-
"test": "npm run build && node --test test/test.js test/cli-help.test.js test/helpers/e2e-helpers.test.js test/environments.test.js test/refresh-environments.test.js test/chunk-sharing-report.test.js test/product-manifest.test.js test/cache-savings-totals.test.js test/error-pattern-signature.test.js test/exit-codes.test.js test/probe-env-health.test.js test/e2e-chain-calls.test.js",
|
|
49
|
+
"test": "npm run build && node --test test/test.js test/cli-help.test.js test/helpers/e2e-helpers.test.js test/environments.test.js test/refresh-environments.test.js test/chunk-sharing-report.test.js test/product-manifest.test.js test/cache-savings-totals.test.js test/error-pattern-signature.test.js test/exit-codes.test.js test/probe-env-health.test.js test/e2e-chain-calls.test.js test/auth-config.test.js test/whoami.test.js test/login.test.js test/logout.test.js test/auth-resolve.test.js",
|
|
50
50
|
"test:e2e": "npm run build && node --test test/e2e.test.js",
|
|
51
51
|
"test:e2e:smoke": "bash scripts/e2e-pass.sh smoke",
|
|
52
52
|
"test:e2e:pr": "bash scripts/e2e-pass.sh pr",
|
|
@@ -57,6 +57,10 @@
|
|
|
57
57
|
"@ipld/car": "^5.4.3",
|
|
58
58
|
"@ipld/dag-pb": "^4.1.3",
|
|
59
59
|
"@noble/hashes": "^1.7.2",
|
|
60
|
+
"@parity/product-sdk-address": "^0.1.1",
|
|
61
|
+
"@parity/product-sdk-keys": "^0.3.0",
|
|
62
|
+
"@parity/product-sdk-terminal": "^0.2.1",
|
|
63
|
+
"@parity/product-sdk-tx": "^0.2.4",
|
|
60
64
|
"@polkadot-api/metadata-builders": "^0.14.2",
|
|
61
65
|
"@polkadot-api/substrate-bindings": "^0.20.2",
|
|
62
66
|
"@polkadot-labs/hdkd": "^0.0.28",
|
|
@@ -76,8 +80,18 @@
|
|
|
76
80
|
"@types/node": "^22.0.0",
|
|
77
81
|
"tsup": "^8.5.0",
|
|
78
82
|
"typescript": "^5.9.3",
|
|
83
|
+
"vitest": "^3.0.0",
|
|
79
84
|
"ws": "^8.20.1"
|
|
80
85
|
},
|
|
86
|
+
"overrides": {
|
|
87
|
+
"@polkadot-api/json-rpc-provider": "^0.2.0",
|
|
88
|
+
"@novasamatech/host-api": "0.7.9-4",
|
|
89
|
+
"@novasamatech/host-papp": "0.7.9-4",
|
|
90
|
+
"@novasamatech/product-sdk": "0.7.9-4",
|
|
91
|
+
"@novasamatech/scale": "0.7.9-4",
|
|
92
|
+
"@novasamatech/statement-store": "0.7.9-4",
|
|
93
|
+
"@novasamatech/storage-adapter": "0.7.9-4"
|
|
94
|
+
},
|
|
81
95
|
"minimumVersion": "0.5.6",
|
|
82
96
|
"engines": {
|
|
83
97
|
"node": ">=22"
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
BANDERSNATCH_SIGNATURE_BYTES
|
|
3
|
-
} from "./chunk-SI2ZUOYD.js";
|
|
4
1
|
import {
|
|
5
2
|
buildImplicationMessage,
|
|
6
3
|
buildV5GeneralExtrinsic,
|
|
@@ -9,6 +6,9 @@ import {
|
|
|
9
6
|
readExtensionOrder,
|
|
10
7
|
toHex
|
|
11
8
|
} from "./chunk-ZYVGHDMU.js";
|
|
9
|
+
import {
|
|
10
|
+
BANDERSNATCH_SIGNATURE_BYTES
|
|
11
|
+
} from "./chunk-SI2ZUOYD.js";
|
|
12
12
|
|
|
13
13
|
// src/personhood/bind-personal-id.ts
|
|
14
14
|
import { Enum } from "polkadot-api";
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
PEOPLE_MEMBER_IDENTIFIER_HEX,
|
|
3
|
-
PGAS_ASSET_ID,
|
|
4
|
-
PROOF_BYTES
|
|
5
|
-
} from "./chunk-SI2ZUOYD.js";
|
|
6
1
|
import {
|
|
7
2
|
buildImplicationMessage,
|
|
8
3
|
buildV5GeneralExtrinsic,
|
|
@@ -12,6 +7,11 @@ import {
|
|
|
12
7
|
readExtensionOrder,
|
|
13
8
|
toHex
|
|
14
9
|
} from "./chunk-ZYVGHDMU.js";
|
|
10
|
+
import {
|
|
11
|
+
PEOPLE_MEMBER_IDENTIFIER_HEX,
|
|
12
|
+
PGAS_ASSET_ID,
|
|
13
|
+
PROOF_BYTES
|
|
14
|
+
} from "./chunk-SI2ZUOYD.js";
|
|
15
15
|
|
|
16
16
|
// src/personhood/claim-pgas.ts
|
|
17
17
|
import * as verifiable from "verifiablejs/nodejs";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ALIAS_PROOF_TAG
|
|
3
|
-
} from "./chunk-SI2ZUOYD.js";
|
|
4
1
|
import {
|
|
5
2
|
blake2_256,
|
|
6
3
|
concatBytes
|
|
7
4
|
} from "./chunk-ZYVGHDMU.js";
|
|
5
|
+
import {
|
|
6
|
+
ALIAS_PROOF_TAG
|
|
7
|
+
} from "./chunk-SI2ZUOYD.js";
|
|
8
8
|
|
|
9
9
|
// src/personhood/proof-validity.ts
|
|
10
10
|
var u64LeBytes = (v) => {
|