bulletin-deploy 0.20.0 → 0.21.0
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/dist/auth/index.d.ts +4 -2
- package/dist/auth/index.js +6 -3
- package/dist/auth/vendor/allocations.d.ts +7 -40
- package/dist/auth/vendor/allocations.js +1 -1
- package/dist/auth/vendor/auth.d.ts +7 -4
- package/dist/auth/vendor/auth.js +3 -3
- package/dist/auth/vendor/index.d.ts +4 -3
- package/dist/auth/vendor/index.js +5 -3
- package/dist/auth/vendor/sessionSigner.d.ts +19 -22
- package/dist/auth/vendor/sessionSigner.js +5 -1
- package/dist/auth/vendor/signer.d.ts +1 -0
- package/dist/auth/vendor/types.d.ts +2 -1
- package/dist/auth/vendor/ui/index.d.ts +1 -0
- package/dist/auth/vendor/ui/status.d.ts +1 -0
- package/dist/auth-config.d.ts +10 -12
- package/dist/auth-config.js +5 -5
- package/dist/bug-report.js +4 -4
- package/dist/chain-health.js +3 -3
- package/dist/{chunk-7SXO544V.js → chunk-355BT3NW.js} +5 -6
- package/dist/{chunk-YLLTQM5Z.js → chunk-4FIMYLWV.js} +2 -2
- package/dist/{chunk-3BSPX4JN.js → chunk-7QQZ57E6.js} +5 -4
- package/dist/{chunk-26ZYMWSC.js → chunk-BDUL42WH.js} +1 -1
- package/dist/{chunk-IHC2QG2L.js → chunk-CQA3JPYX.js} +3 -3
- package/dist/{chunk-QBHUCTVT.js → chunk-E77HESGN.js} +2 -2
- package/dist/{chunk-EBYWI7FI.js → chunk-EWQ2QZ44.js} +20 -19
- package/dist/{chunk-IF3SANQR.js → chunk-GL7JKE7O.js} +19 -6
- package/dist/{chunk-LRRFXOLE.js → chunk-GLLLSFMA.js} +3 -3
- package/dist/chunk-IMCDXJ4G.js +66 -0
- package/dist/{chunk-YIVCOJAB.js → chunk-IOLWREZB.js} +5 -5
- package/dist/{chunk-DHHHYZTR.js → chunk-K57H4IRT.js} +1 -1
- package/dist/{chunk-BXDMEOLH.js → chunk-KOLWOUWP.js} +1 -1
- package/dist/{chunk-DT6ABL3J.js → chunk-LPG3QSOM.js} +10 -8
- package/dist/{chunk-GRPLHUYC.js → chunk-MRZL4IXT.js} +21 -19
- package/dist/{chunk-G7EH3XIW.js → chunk-PN5JKONF.js} +48 -28
- package/dist/{chunk-MTXFJTX6.js → chunk-UPENVZ7J.js} +1 -1
- package/dist/{chunk-6GHDPDZN.js → chunk-WYZUDE6I.js} +2 -2
- package/dist/chunk-probe.js +3 -3
- package/dist/commands/login.d.ts +1 -0
- package/dist/commands/login.js +25 -26
- package/dist/commands/logout.d.ts +1 -0
- package/dist/commands/logout.js +10 -10
- package/dist/commands/transfer.js +6 -6
- package/dist/commands/whoami.d.ts +1 -0
- package/dist/commands/whoami.js +5 -3
- package/dist/deploy-actors.d.ts +6 -4
- package/dist/deploy-actors.js +10 -11
- package/dist/deploy.js +17 -17
- package/dist/dotns.js +6 -6
- package/dist/index.js +18 -18
- package/dist/manifest/publish.js +18 -18
- package/dist/memory-report.js +2 -2
- package/dist/merkle.js +17 -17
- package/dist/personhood/bootstrap.js +6 -6
- package/dist/personhood/constants.d.ts +2 -2
- package/dist/personhood/people-client.js +6 -6
- package/dist/pool.js +5 -5
- package/dist/run-state.js +1 -1
- package/dist/sss-allowance-cache.js +5 -5
- package/dist/sss-allowance.d.ts +8 -1
- package/dist/sss-allowance.js +3 -1
- package/dist/storage-signer.js +17 -17
- package/dist/telemetry.js +2 -2
- package/dist/version-check.js +3 -3
- package/dist/ws.js +4 -4
- package/package.json +5 -4
- package/dist/chunk-S6CPT2TU.js +0 -94
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WS_HEARTBEAT_TIMEOUT_MS
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-IOLWREZB.js";
|
|
4
4
|
import "../chunk-SI2ZUOYD.js";
|
|
5
5
|
import "../chunk-ZG3HAH5A.js";
|
|
6
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-BDUL42WH.js";
|
|
7
7
|
import {
|
|
8
8
|
getWsProvider
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-WYZUDE6I.js";
|
|
10
10
|
import "../chunk-K5SP4OUC.js";
|
|
11
11
|
import {
|
|
12
12
|
loadEnvironments
|
|
13
13
|
} from "../chunk-3NR3T7US.js";
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
14
|
+
import "../chunk-UPENVZ7J.js";
|
|
15
|
+
import "../chunk-4FIMYLWV.js";
|
|
16
|
+
import "../chunk-7QQZ57E6.js";
|
|
17
17
|
import "../chunk-SH2LG52Z.js";
|
|
18
18
|
import "../chunk-RHCXBXBW.js";
|
|
19
19
|
|
package/dist/pool.js
CHANGED
|
@@ -28,11 +28,11 @@ import {
|
|
|
28
28
|
resolvePoolMnemonic,
|
|
29
29
|
selectAccount,
|
|
30
30
|
testnetFromNetworkField
|
|
31
|
-
} from "./chunk-
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
35
|
-
import "./chunk-
|
|
31
|
+
} from "./chunk-BDUL42WH.js";
|
|
32
|
+
import "./chunk-WYZUDE6I.js";
|
|
33
|
+
import "./chunk-UPENVZ7J.js";
|
|
34
|
+
import "./chunk-4FIMYLWV.js";
|
|
35
|
+
import "./chunk-7QQZ57E6.js";
|
|
36
36
|
import "./chunk-SH2LG52Z.js";
|
|
37
37
|
export {
|
|
38
38
|
ACCOUNT_AUTHORIZATION_FIELDS,
|
package/dist/run-state.js
CHANGED
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
preflightSssAllowance,
|
|
5
5
|
sssPeriodEndSec,
|
|
6
6
|
writeSssAllowanceCache
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-E77HESGN.js";
|
|
8
|
+
import "./chunk-MRZL4IXT.js";
|
|
9
|
+
import "./chunk-GL7JKE7O.js";
|
|
10
10
|
import "./chunk-3NR3T7US.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-4FIMYLWV.js";
|
|
12
|
+
import "./chunk-7QQZ57E6.js";
|
|
13
13
|
import "./chunk-SH2LG52Z.js";
|
|
14
14
|
import "./chunk-DNXE3Q5D.js";
|
|
15
15
|
export {
|
package/dist/sss-allowance.d.ts
CHANGED
|
@@ -56,5 +56,12 @@ declare function sssStorageKey(pubkey: Uint8Array): string;
|
|
|
56
56
|
* - `null` — could not determine (network error or timeout; caller decides whether to block)
|
|
57
57
|
*/
|
|
58
58
|
declare function checkSSSAllowance(pubkey: Uint8Array, peopleEndpoints: string[], timeoutMs?: number): Promise<boolean | null>;
|
|
59
|
+
/**
|
|
60
|
+
* One `state_getStorage` call against the first endpoint.
|
|
61
|
+
*
|
|
62
|
+
* @returns the hex value, `null` when the key is absent or empty, or
|
|
63
|
+
* `undefined` when the read failed or timed out.
|
|
64
|
+
*/
|
|
65
|
+
declare function readStorageValue(storageKey: string, endpoints: string[], timeoutMs?: number): Promise<string | null | undefined>;
|
|
59
66
|
|
|
60
|
-
export { checkSSSAllowance, sssStorageKey, statementSigningAccount };
|
|
67
|
+
export { checkSSSAllowance, readStorageValue, sssStorageKey, statementSigningAccount };
|
package/dist/sss-allowance.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
checkSSSAllowance,
|
|
3
|
+
readStorageValue,
|
|
3
4
|
sssStorageKey,
|
|
4
5
|
statementSigningAccount
|
|
5
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-MRZL4IXT.js";
|
|
6
7
|
export {
|
|
7
8
|
checkSSSAllowance,
|
|
9
|
+
readStorageValue,
|
|
8
10
|
sssStorageKey,
|
|
9
11
|
statementSigningAccount
|
|
10
12
|
};
|
package/dist/storage-signer.js
CHANGED
|
@@ -8,40 +8,40 @@ import {
|
|
|
8
8
|
waitForBulletinAuthorization,
|
|
9
9
|
withTransientRetry,
|
|
10
10
|
writeBulletinSlotKey
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-EWQ2QZ44.js";
|
|
12
|
+
import "./chunk-E77HESGN.js";
|
|
13
|
+
import "./chunk-MRZL4IXT.js";
|
|
14
14
|
import "./chunk-HNJWIY55.js";
|
|
15
15
|
import "./chunk-IJIU2WZU.js";
|
|
16
16
|
import "./chunk-M5AKL3FL.js";
|
|
17
17
|
import "./chunk-CI4MX3LD.js";
|
|
18
18
|
import "./chunk-7DDOVCV5.js";
|
|
19
19
|
import "./chunk-H44LXDQJ.js";
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-GL7JKE7O.js";
|
|
21
|
+
import "./chunk-GLLLSFMA.js";
|
|
22
|
+
import "./chunk-KOLWOUWP.js";
|
|
23
|
+
import "./chunk-K57H4IRT.js";
|
|
23
24
|
import "./chunk-C2TS5MER.js";
|
|
24
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-LPG3QSOM.js";
|
|
25
26
|
import "./chunk-JQKKMUCT.js";
|
|
26
27
|
import "./chunk-DFKEG3WY.js";
|
|
27
28
|
import "./chunk-RPBMNTGZ.js";
|
|
28
29
|
import "./chunk-YP3LINCF.js";
|
|
29
30
|
import "./chunk-NJKXXDDK.js";
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-PN5JKONF.js";
|
|
32
|
+
import "./chunk-355BT3NW.js";
|
|
33
|
+
import "./chunk-IMCDXJ4G.js";
|
|
33
34
|
import "./chunk-2C6SLLBI.js";
|
|
34
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-IOLWREZB.js";
|
|
35
36
|
import "./chunk-SI2ZUOYD.js";
|
|
36
37
|
import "./chunk-ZG3HAH5A.js";
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
38
|
+
import "./chunk-BDUL42WH.js";
|
|
39
|
+
import "./chunk-WYZUDE6I.js";
|
|
39
40
|
import "./chunk-K5SP4OUC.js";
|
|
40
|
-
import "./chunk-IF3SANQR.js";
|
|
41
41
|
import "./chunk-3NR3T7US.js";
|
|
42
|
-
import "./chunk-
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
42
|
+
import "./chunk-UPENVZ7J.js";
|
|
43
|
+
import "./chunk-4FIMYLWV.js";
|
|
44
|
+
import "./chunk-7QQZ57E6.js";
|
|
45
45
|
import "./chunk-SH2LG52Z.js";
|
|
46
46
|
import "./chunk-DNXE3Q5D.js";
|
|
47
47
|
import "./chunk-RHCXBXBW.js";
|
package/dist/telemetry.js
CHANGED
package/dist/version-check.js
CHANGED
|
@@ -12,9 +12,9 @@ import {
|
|
|
12
12
|
isPreReleaseVersion,
|
|
13
13
|
preReleaseWarning,
|
|
14
14
|
promptYesNo
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-KOLWOUWP.js";
|
|
16
|
+
import "./chunk-4FIMYLWV.js";
|
|
17
|
+
import "./chunk-7QQZ57E6.js";
|
|
18
18
|
import "./chunk-SH2LG52Z.js";
|
|
19
19
|
export {
|
|
20
20
|
assessVersion,
|
package/dist/ws.js
CHANGED
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
getWsProvider,
|
|
4
4
|
parseRpcFrame,
|
|
5
5
|
resetMalformedFrames
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-WYZUDE6I.js";
|
|
7
|
+
import "./chunk-UPENVZ7J.js";
|
|
8
|
+
import "./chunk-4FIMYLWV.js";
|
|
9
|
+
import "./chunk-7QQZ57E6.js";
|
|
10
10
|
import "./chunk-SH2LG52Z.js";
|
|
11
11
|
export {
|
|
12
12
|
GuardedWebSocket,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bulletin-deploy",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.21.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -47,6 +47,7 @@
|
|
|
47
47
|
],
|
|
48
48
|
"scripts": {
|
|
49
49
|
"build": "tsup",
|
|
50
|
+
"typecheck": "tsc --noEmit -p .",
|
|
50
51
|
"refresh-environments": "node scripts/refresh-environments.mjs",
|
|
51
52
|
"postinstall": "patch-package || true",
|
|
52
53
|
"prepare": "npm run build",
|
|
@@ -63,8 +64,8 @@
|
|
|
63
64
|
"@ipld/dag-pb": "^4.1.3",
|
|
64
65
|
"@noble/hashes": "^1.7.2",
|
|
65
66
|
"@parity/product-sdk-address": "^0.1.1",
|
|
66
|
-
"@parity/product-sdk-keys": "^0.
|
|
67
|
-
"@parity/product-sdk-terminal": "^0.
|
|
67
|
+
"@parity/product-sdk-keys": "^0.4.1",
|
|
68
|
+
"@parity/product-sdk-terminal": "^0.10.1",
|
|
68
69
|
"@parity/product-sdk-tx": "^0.2.12",
|
|
69
70
|
"@polkadot-api/metadata-builders": "^0.14.2",
|
|
70
71
|
"@polkadot-api/substrate-bindings": "^0.20.2",
|
|
@@ -78,7 +79,7 @@
|
|
|
78
79
|
"jiti": "^2.4.2",
|
|
79
80
|
"multiformats": "^13.4.1",
|
|
80
81
|
"patch-package": "^8.0.1",
|
|
81
|
-
"polkadot-api": "^2.1.
|
|
82
|
+
"polkadot-api": "^2.1.8",
|
|
82
83
|
"verifiablejs": "1.3.0-beta.4",
|
|
83
84
|
"viem": "^2.55.10",
|
|
84
85
|
"ws": "^8.21.0"
|
package/dist/chunk-S6CPT2TU.js
DELETED
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
NonRetryableError
|
|
3
|
-
} from "./chunk-SH2LG52Z.js";
|
|
4
|
-
import {
|
|
5
|
-
CLI_NAME
|
|
6
|
-
} from "./chunk-DNXE3Q5D.js";
|
|
7
|
-
|
|
8
|
-
// src/auth/vendor/sessionSigner.ts
|
|
9
|
-
import { deriveProductAccountPublicKey } from "@parity/product-sdk-keys";
|
|
10
|
-
var INCOMPLETE_SESSION_MESSAGE = 'Stored login session is missing the root account public key. Run "logout" and then "login" to pair again.';
|
|
11
|
-
function sessionRootPublicKey(session) {
|
|
12
|
-
const rootAccountId = session.rootAccountId;
|
|
13
|
-
const publicKey = rootAccountId ? new Uint8Array(rootAccountId) : new Uint8Array();
|
|
14
|
-
if (publicKey.length !== 32) {
|
|
15
|
-
throw new Error(INCOMPLETE_SESSION_MESSAGE);
|
|
16
|
-
}
|
|
17
|
-
return publicKey;
|
|
18
|
-
}
|
|
19
|
-
function deriveProductPublicKey(rootAccountId, ref) {
|
|
20
|
-
return deriveProductAccountPublicKey(rootAccountId, ref.productId, ref.derivationIndex);
|
|
21
|
-
}
|
|
22
|
-
function createSessionSigner(session, ref) {
|
|
23
|
-
const publicKey = deriveProductPublicKey(sessionRootPublicKey(session), ref);
|
|
24
|
-
const productAccountId = [ref.productId, ref.derivationIndex];
|
|
25
|
-
const signTx = async (callData, signedExtensions, _metadata, _atBlockNumber) => {
|
|
26
|
-
const genesisHash = signedExtensions["CheckGenesis"]?.additionalSigned ?? new Uint8Array(32);
|
|
27
|
-
const extensions = Object.entries(signedExtensions).map(([id, { value, additionalSigned }]) => ({
|
|
28
|
-
id,
|
|
29
|
-
extra: value,
|
|
30
|
-
additionalSigned
|
|
31
|
-
}));
|
|
32
|
-
let noAllowanceMsg = null;
|
|
33
|
-
const origErr = console.error;
|
|
34
|
-
console.error = (...args) => {
|
|
35
|
-
const msg = args.map(String).join(" ");
|
|
36
|
-
if (msg.includes("NoAllowanceError") || msg.includes("no allowance set")) {
|
|
37
|
-
noAllowanceMsg = msg;
|
|
38
|
-
return;
|
|
39
|
-
}
|
|
40
|
-
origErr(...args);
|
|
41
|
-
};
|
|
42
|
-
let clearPoll = null;
|
|
43
|
-
try {
|
|
44
|
-
const result = await Promise.race([
|
|
45
|
-
session.createTransaction({
|
|
46
|
-
payload: {
|
|
47
|
-
tag: "v1",
|
|
48
|
-
value: {
|
|
49
|
-
signer: productAccountId,
|
|
50
|
-
genesisHash,
|
|
51
|
-
callData,
|
|
52
|
-
extensions,
|
|
53
|
-
txExtVersion: 0
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}),
|
|
57
|
-
new Promise((_, reject) => {
|
|
58
|
-
clearPoll = setInterval(() => {
|
|
59
|
-
if (noAllowanceMsg) {
|
|
60
|
-
reject(new NonRetryableError(
|
|
61
|
-
`Session signing allowance has expired (~2-3 days after login). Run \`${CLI_NAME} login\` to renew.`
|
|
62
|
-
));
|
|
63
|
-
}
|
|
64
|
-
}, 200);
|
|
65
|
-
})
|
|
66
|
-
]);
|
|
67
|
-
if (result.isErr()) {
|
|
68
|
-
throw new Error(`Mobile signing rejected: ${result.error.message}`);
|
|
69
|
-
}
|
|
70
|
-
return result.value;
|
|
71
|
-
} finally {
|
|
72
|
-
if (clearPoll !== null) clearInterval(clearPoll);
|
|
73
|
-
console.error = origErr;
|
|
74
|
-
}
|
|
75
|
-
};
|
|
76
|
-
const signBytes = async (data) => {
|
|
77
|
-
const result = await session.signRaw({
|
|
78
|
-
productAccountId,
|
|
79
|
-
data: { tag: "Bytes", value: data }
|
|
80
|
-
});
|
|
81
|
-
if (result.isErr()) {
|
|
82
|
-
throw new Error(`Mobile signing rejected: ${result.error.message}`);
|
|
83
|
-
}
|
|
84
|
-
return result.value.signature;
|
|
85
|
-
};
|
|
86
|
-
return { publicKey, signTx, signBytes };
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
export {
|
|
90
|
-
INCOMPLETE_SESSION_MESSAGE,
|
|
91
|
-
sessionRootPublicKey,
|
|
92
|
-
deriveProductPublicKey,
|
|
93
|
-
createSessionSigner
|
|
94
|
-
};
|