@parity/product-deploy 0.11.0-rc.3 → 0.11.0-rc.5
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/assets/environments.json +2 -0
- package/dist/auth-config.js +4 -4
- package/dist/bug-report.d.ts +10 -1
- package/dist/bug-report.js +6 -4
- package/dist/{chunk-VZTZEW7C.js → chunk-BIJICTV4.js} +41 -28
- package/dist/{chunk-PYGCOK67.js → chunk-ITXKADHO.js} +35 -11
- package/dist/{chunk-QRKI6MMK.js → chunk-JSYQ3JQS.js} +4 -1
- package/dist/{chunk-RVGCHRLK.js → chunk-KBKS3V2V.js} +2 -2
- package/dist/{chunk-PH32GINP.js → chunk-LFRH4HBZ.js} +1 -1
- package/dist/{chunk-RFT2I7TB.js → chunk-M6OQTMDB.js} +1 -1
- package/dist/{chunk-4IUTMHVB.js → chunk-MRQPJLPS.js} +24 -3
- package/dist/{chunk-2NLCZQY4.js → chunk-NEQRG3AY.js} +1 -1
- package/dist/{chunk-24KTLZ67.js → chunk-OZEJEDHM.js} +14 -4
- package/dist/{chunk-CLM3ODFR.js → chunk-PECJ5FDA.js} +9 -3
- package/dist/{chunk-3US5OZWX.js → chunk-RU7Z5Y7Z.js} +1 -1
- package/dist/{chunk-5KRARO46.js → chunk-UIDRWZWX.js} +1 -1
- package/dist/{chunk-REAHYALJ.js → chunk-UJLQBL7C.js} +3 -3
- package/dist/chunk-probe.js +3 -3
- package/dist/commands/login.js +12 -12
- package/dist/commands/logout.js +5 -5
- package/dist/commands/transfer.js +5 -5
- package/dist/commands/whoami.js +4 -4
- package/dist/deploy-actors.js +7 -7
- package/dist/deploy.d.ts +19 -1
- package/dist/deploy.js +16 -12
- package/dist/dotns.d.ts +15 -2
- package/dist/dotns.js +9 -5
- package/dist/environments.d.ts +2 -0
- package/dist/environments.js +1 -1
- package/dist/index.js +13 -13
- package/dist/manifest/publish.js +13 -13
- package/dist/memory-report.js +2 -2
- package/dist/merkle.js +12 -12
- package/dist/personhood/bootstrap.js +5 -5
- package/dist/personhood/people-client.js +5 -5
- package/dist/pool.d.ts +3 -1
- package/dist/pool.js +1 -1
- package/dist/run-state.js +1 -1
- package/dist/sss-allowance-cache.js +5 -5
- package/dist/storage-signer.js +12 -12
- package/dist/telemetry.js +2 -2
- package/dist/version-check.js +3 -3
- package/package.json +1 -1
|
@@ -2,15 +2,15 @@ import {
|
|
|
2
2
|
classifyErrorArea,
|
|
3
3
|
isInteractive,
|
|
4
4
|
promptYesNo
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-NEQRG3AY.js";
|
|
6
6
|
import {
|
|
7
7
|
VERSION,
|
|
8
8
|
getCurrentSentryTraceId,
|
|
9
9
|
resolveIssueRepoSlug
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-UIDRWZWX.js";
|
|
11
11
|
import {
|
|
12
12
|
package_default
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-LFRH4HBZ.js";
|
|
14
14
|
|
|
15
15
|
// src/bug-report.ts
|
|
16
16
|
import { execSync, execFileSync } from "child_process";
|
|
@@ -175,8 +175,13 @@ function applyCoreLabels(issueUrl) {
|
|
|
175
175
|
return false;
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
|
+
function isUserInputError(error) {
|
|
179
|
+
const msg = error?.message ?? "";
|
|
180
|
+
return /Invalid domain label|reserves base names of/i.test(msg);
|
|
181
|
+
}
|
|
178
182
|
async function offerBugReport(error) {
|
|
179
183
|
if (!isInteractive()) return;
|
|
184
|
+
if (isUserInputError(error)) return;
|
|
180
185
|
const yes = await promptYesNo("\n This looks like a bug. Open an issue with debug info? [Y/n] ");
|
|
181
186
|
if (!yes) return;
|
|
182
187
|
const title = buildTitle(error);
|
|
@@ -226,5 +231,6 @@ export {
|
|
|
226
231
|
buildTitle,
|
|
227
232
|
buildLabels,
|
|
228
233
|
createGhIssue,
|
|
234
|
+
isUserInputError,
|
|
229
235
|
offerBugReport
|
|
230
236
|
};
|
|
@@ -7,15 +7,15 @@ import {
|
|
|
7
7
|
resolveDotnsConnectOptions,
|
|
8
8
|
storeDirectory,
|
|
9
9
|
storeFile
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-BIJICTV4.js";
|
|
11
11
|
import {
|
|
12
12
|
DotNS
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-ITXKADHO.js";
|
|
14
14
|
import {
|
|
15
15
|
getPopSelfServeConfig,
|
|
16
16
|
loadEnvironments,
|
|
17
17
|
resolveEndpoints
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-JSYQ3JQS.js";
|
|
19
19
|
import {
|
|
20
20
|
NonRetryableError
|
|
21
21
|
} from "./chunk-ZOC4GITL.js";
|
package/dist/chunk-probe.js
CHANGED
|
@@ -5,9 +5,9 @@ import {
|
|
|
5
5
|
_decodeStorageValue,
|
|
6
6
|
_resetProbeSession,
|
|
7
7
|
probeChunks
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-RU7Z5Y7Z.js";
|
|
9
|
+
import "./chunk-UIDRWZWX.js";
|
|
10
|
+
import "./chunk-LFRH4HBZ.js";
|
|
11
11
|
export {
|
|
12
12
|
ChainProbeCrossValidationError,
|
|
13
13
|
ChainProbeMetadataError,
|
package/dist/commands/login.js
CHANGED
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "../chunk-J7CYVTAW.js";
|
|
4
4
|
import {
|
|
5
5
|
waitForBulletinAuthorization
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-BIJICTV4.js";
|
|
7
7
|
import {
|
|
8
8
|
preflightSssAllowance
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-M6OQTMDB.js";
|
|
10
10
|
import {
|
|
11
11
|
statementSigningAccount
|
|
12
12
|
} from "../chunk-GRPLHUYC.js";
|
|
@@ -15,11 +15,11 @@ import "../chunk-IW3X2MJF.js";
|
|
|
15
15
|
import "../chunk-KOSF5FDO.js";
|
|
16
16
|
import "../chunk-J3NIXHZZ.js";
|
|
17
17
|
import "../chunk-S7EM5VMW.js";
|
|
18
|
-
import "../chunk-
|
|
19
|
-
import "../chunk-
|
|
20
|
-
import "../chunk-
|
|
18
|
+
import "../chunk-PECJ5FDA.js";
|
|
19
|
+
import "../chunk-NEQRG3AY.js";
|
|
20
|
+
import "../chunk-RU7Z5Y7Z.js";
|
|
21
21
|
import "../chunk-C2TS5MER.js";
|
|
22
|
-
import "../chunk-
|
|
22
|
+
import "../chunk-OZEJEDHM.js";
|
|
23
23
|
import "../chunk-JQKKMUCT.js";
|
|
24
24
|
import {
|
|
25
25
|
BULLETIN_RESOURCE,
|
|
@@ -36,18 +36,18 @@ import {
|
|
|
36
36
|
getAuthClient,
|
|
37
37
|
getPeopleChainEndpoints,
|
|
38
38
|
resolveBulletinEndpoints
|
|
39
|
-
} from "../chunk-
|
|
39
|
+
} from "../chunk-KBKS3V2V.js";
|
|
40
40
|
import {
|
|
41
41
|
CLI_NAME
|
|
42
42
|
} from "../chunk-TSPERKUS.js";
|
|
43
|
-
import "../chunk-
|
|
43
|
+
import "../chunk-ITXKADHO.js";
|
|
44
44
|
import "../chunk-SI2ZUOYD.js";
|
|
45
|
-
import "../chunk-
|
|
46
|
-
import "../chunk-
|
|
47
|
-
import "../chunk-
|
|
45
|
+
import "../chunk-MRQPJLPS.js";
|
|
46
|
+
import "../chunk-UIDRWZWX.js";
|
|
47
|
+
import "../chunk-LFRH4HBZ.js";
|
|
48
48
|
import {
|
|
49
49
|
loadEnvironments
|
|
50
|
-
} from "../chunk-
|
|
50
|
+
} from "../chunk-JSYQ3JQS.js";
|
|
51
51
|
import "../chunk-ZOC4GITL.js";
|
|
52
52
|
|
|
53
53
|
// src/commands/login.ts
|
package/dist/commands/logout.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
clearSssAllowanceCache
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-M6OQTMDB.js";
|
|
4
4
|
import "../chunk-GRPLHUYC.js";
|
|
5
5
|
import "../chunk-JQKKMUCT.js";
|
|
6
6
|
import "../chunk-5FLTDWWP.js";
|
|
@@ -9,11 +9,11 @@ import {
|
|
|
9
9
|
} from "../chunk-RIRDBSBG.js";
|
|
10
10
|
import {
|
|
11
11
|
getAuthClient
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-KBKS3V2V.js";
|
|
13
13
|
import "../chunk-TSPERKUS.js";
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
14
|
+
import "../chunk-UIDRWZWX.js";
|
|
15
|
+
import "../chunk-LFRH4HBZ.js";
|
|
16
|
+
import "../chunk-JSYQ3JQS.js";
|
|
17
17
|
import "../chunk-ZOC4GITL.js";
|
|
18
18
|
|
|
19
19
|
// src/commands/logout.ts
|
|
@@ -4,16 +4,16 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
DEFAULT_MNEMONIC,
|
|
6
6
|
DotNS
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-ITXKADHO.js";
|
|
8
8
|
import "../chunk-SI2ZUOYD.js";
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-MRQPJLPS.js";
|
|
10
|
+
import "../chunk-UIDRWZWX.js";
|
|
11
|
+
import "../chunk-LFRH4HBZ.js";
|
|
12
12
|
import {
|
|
13
13
|
getPopSelfServeConfig,
|
|
14
14
|
loadEnvironments,
|
|
15
15
|
resolveEndpoints
|
|
16
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-JSYQ3JQS.js";
|
|
17
17
|
import "../chunk-ZOC4GITL.js";
|
|
18
18
|
|
|
19
19
|
// src/commands/transfer.ts
|
package/dist/commands/whoami.js
CHANGED
|
@@ -2,13 +2,13 @@ import {
|
|
|
2
2
|
STALE_SESSION_MESSAGE,
|
|
3
3
|
getAuthClient,
|
|
4
4
|
hasPersistedSession
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-KBKS3V2V.js";
|
|
6
6
|
import {
|
|
7
7
|
CLI_NAME
|
|
8
8
|
} from "../chunk-TSPERKUS.js";
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-UIDRWZWX.js";
|
|
10
|
+
import "../chunk-LFRH4HBZ.js";
|
|
11
|
+
import "../chunk-JSYQ3JQS.js";
|
|
12
12
|
import "../chunk-ZOC4GITL.js";
|
|
13
13
|
|
|
14
14
|
// src/commands/whoami.ts
|
package/dist/deploy-actors.js
CHANGED
|
@@ -2,18 +2,18 @@ import {
|
|
|
2
2
|
MainnetDefaultWorkerError,
|
|
3
3
|
resolveDeployActors,
|
|
4
4
|
resolveStorageSigner
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-OZEJEDHM.js";
|
|
6
6
|
import "./chunk-JQKKMUCT.js";
|
|
7
7
|
import "./chunk-5FLTDWWP.js";
|
|
8
8
|
import "./chunk-RIRDBSBG.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-KBKS3V2V.js";
|
|
10
10
|
import "./chunk-TSPERKUS.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-ITXKADHO.js";
|
|
12
12
|
import "./chunk-SI2ZUOYD.js";
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-MRQPJLPS.js";
|
|
14
|
+
import "./chunk-UIDRWZWX.js";
|
|
15
|
+
import "./chunk-LFRH4HBZ.js";
|
|
16
|
+
import "./chunk-JSYQ3JQS.js";
|
|
17
17
|
import "./chunk-ZOC4GITL.js";
|
|
18
18
|
export {
|
|
19
19
|
MainnetDefaultWorkerError,
|
package/dist/deploy.d.ts
CHANGED
|
@@ -146,6 +146,24 @@ declare function shouldHandoverName(opts: {
|
|
|
146
146
|
* Fallback: " Storage signer: pool fallback (<reason>)"
|
|
147
147
|
*/
|
|
148
148
|
declare function formatStorageSignerLine(slotAddress: string | null, failReason?: string, owned?: boolean): string;
|
|
149
|
+
/**
|
|
150
|
+
* Storage-signer status line for transfer mode. In transfer mode the local
|
|
151
|
+
* worker (Alice / --suri) signs the whole deploy, INCLUDING Bulletin storage —
|
|
152
|
+
* so it is NOT a pool fallback. The old line said "pool fallback (transfer mode
|
|
153
|
+
* — worker signs storage)", which contradicted the very next "Using external
|
|
154
|
+
* signer: <worker>" line. State plainly that the worker signs storage. Exported
|
|
155
|
+
* for unit testing.
|
|
156
|
+
*/
|
|
157
|
+
declare function formatTransferModeStorageSignerLine(workerAddress: string): string;
|
|
158
|
+
/**
|
|
159
|
+
* #983: the transfer-mode DotNS announcement, printed at preflight once ownership
|
|
160
|
+
* is known. The up-front worker header states only the worker's storage role (it
|
|
161
|
+
* can't know ownership yet); this line states the transfer-vs-owned-update reality:
|
|
162
|
+
* New name: " DotNS: will register <name> and transfer it to your account <recipient>"
|
|
163
|
+
* Already owned: " DotNS: you already own <name> — content update needs your phone signature (no transfer)"
|
|
164
|
+
* Exported for unit testing.
|
|
165
|
+
*/
|
|
166
|
+
declare function formatTransferModeDotnsLine(alreadyOwned: boolean, dotName: string, recipient: string): string;
|
|
149
167
|
declare function storeFile(contentBytes: Uint8Array, { client: existingClient, unsafeApi: existingApi, signer: existingSigner, hashCode, }?: ExistingProvider & {
|
|
150
168
|
hashCode?: number;
|
|
151
169
|
}): Promise<string>;
|
|
@@ -456,4 +474,4 @@ declare function computePhoneSigningSteps(dotnsPreflight: {
|
|
|
456
474
|
needsPopUpgrade: boolean;
|
|
457
475
|
} | null, publishNeeded: boolean): string[];
|
|
458
476
|
|
|
459
|
-
export { BLAKE2B_256_MULTIHASH_CODE, 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, PhoneSignatureStep, SHA256_MULTIHASH_CODE, 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, isBenignTeardownError, isConnectionError, isPhoneSignerActive, makeBulletinStatusHandler, merkleize, probeP2pRetrieval, resolveDotnsConnectOptions, resolveReproducibleTimestamp, retryBudgetExhausted, setWsHaltCallback, shouldHandoverName, storeChunkedContent, storeDirectory, storeDirectoryV2, storeFile, unpublish };
|
|
477
|
+
export { BLAKE2B_256_MULTIHASH_CODE, 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, PhoneSignatureStep, SHA256_MULTIHASH_CODE, 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, formatTransferModeDotnsLine, formatTransferModeStorageSignerLine, friendlyChainError, hasIPFS, interpretBitswapResult, isBenignTeardownError, isConnectionError, isPhoneSignerActive, makeBulletinStatusHandler, merkleize, probeP2pRetrieval, resolveDotnsConnectOptions, resolveReproducibleTimestamp, retryBudgetExhausted, setWsHaltCallback, shouldHandoverName, storeChunkedContent, storeDirectory, storeDirectoryV2, storeFile, unpublish };
|
package/dist/deploy.js
CHANGED
|
@@ -31,6 +31,8 @@ import {
|
|
|
31
31
|
encryptContent,
|
|
32
32
|
estimateUploadBytes,
|
|
33
33
|
formatStorageSignerLine,
|
|
34
|
+
formatTransferModeDotnsLine,
|
|
35
|
+
formatTransferModeStorageSignerLine,
|
|
34
36
|
friendlyChainError,
|
|
35
37
|
hasIPFS,
|
|
36
38
|
interpretBitswapResult,
|
|
@@ -50,30 +52,30 @@ import {
|
|
|
50
52
|
storeDirectoryV2,
|
|
51
53
|
storeFile,
|
|
52
54
|
unpublish
|
|
53
|
-
} from "./chunk-
|
|
54
|
-
import "./chunk-
|
|
55
|
+
} from "./chunk-BIJICTV4.js";
|
|
56
|
+
import "./chunk-M6OQTMDB.js";
|
|
55
57
|
import "./chunk-GRPLHUYC.js";
|
|
56
58
|
import "./chunk-HOTQDYHD.js";
|
|
57
59
|
import "./chunk-IW3X2MJF.js";
|
|
58
60
|
import "./chunk-KOSF5FDO.js";
|
|
59
61
|
import "./chunk-J3NIXHZZ.js";
|
|
60
62
|
import "./chunk-S7EM5VMW.js";
|
|
61
|
-
import "./chunk-
|
|
62
|
-
import "./chunk-
|
|
63
|
-
import "./chunk-
|
|
63
|
+
import "./chunk-PECJ5FDA.js";
|
|
64
|
+
import "./chunk-NEQRG3AY.js";
|
|
65
|
+
import "./chunk-RU7Z5Y7Z.js";
|
|
64
66
|
import "./chunk-C2TS5MER.js";
|
|
65
|
-
import "./chunk-
|
|
67
|
+
import "./chunk-OZEJEDHM.js";
|
|
66
68
|
import "./chunk-JQKKMUCT.js";
|
|
67
69
|
import "./chunk-5FLTDWWP.js";
|
|
68
70
|
import "./chunk-RIRDBSBG.js";
|
|
69
|
-
import "./chunk-
|
|
71
|
+
import "./chunk-KBKS3V2V.js";
|
|
70
72
|
import "./chunk-TSPERKUS.js";
|
|
71
|
-
import "./chunk-
|
|
73
|
+
import "./chunk-ITXKADHO.js";
|
|
72
74
|
import "./chunk-SI2ZUOYD.js";
|
|
73
|
-
import "./chunk-
|
|
74
|
-
import "./chunk-
|
|
75
|
-
import "./chunk-
|
|
76
|
-
import "./chunk-
|
|
75
|
+
import "./chunk-MRQPJLPS.js";
|
|
76
|
+
import "./chunk-UIDRWZWX.js";
|
|
77
|
+
import "./chunk-LFRH4HBZ.js";
|
|
78
|
+
import "./chunk-JSYQ3JQS.js";
|
|
77
79
|
import {
|
|
78
80
|
EXIT_CODE_NO_RETRY,
|
|
79
81
|
NonRetryableError
|
|
@@ -113,6 +115,8 @@ export {
|
|
|
113
115
|
encryptContent,
|
|
114
116
|
estimateUploadBytes,
|
|
115
117
|
formatStorageSignerLine,
|
|
118
|
+
formatTransferModeDotnsLine,
|
|
119
|
+
formatTransferModeStorageSignerLine,
|
|
116
120
|
friendlyChainError,
|
|
117
121
|
hasIPFS,
|
|
118
122
|
interpretBitswapResult,
|
package/dist/dotns.d.ts
CHANGED
|
@@ -148,6 +148,7 @@ declare const TX_WALL_CLOCK_CEILING_MS: number;
|
|
|
148
148
|
declare const TX_NO_PROGRESS_MS: number;
|
|
149
149
|
declare const WS_HEARTBEAT_TIMEOUT_MS: number;
|
|
150
150
|
declare const DOTNS_TX_MAX_ATTEMPTS: number;
|
|
151
|
+
declare const VERIFY_EFFECT_CHAIN_SECONDS: number;
|
|
151
152
|
declare function classifyTxRetryDecision(err: unknown): "retry" | "abort";
|
|
152
153
|
declare function dotnsRetryBackoffMs(attempt: number, rand?: () => number): number;
|
|
153
154
|
/**
|
|
@@ -159,6 +160,14 @@ declare function dotnsRetryBackoffMs(attempt: number, rand?: () => number): numb
|
|
|
159
160
|
* invisible and the count appeared to stop one short.
|
|
160
161
|
*/
|
|
161
162
|
declare function shouldRetryTxAttempt(attempt: number, maxAttempts: number, decision: "retry" | "abort"): boolean;
|
|
163
|
+
/**
|
|
164
|
+
* Whether to pause for the human-ready gate before a retry RE-SIGN (#971).
|
|
165
|
+
* Only a phone/session signer re-sign needs another tap, so the re-gate fires
|
|
166
|
+
* only on attempt ≥ 2 (a re-sign, not the first sign) AND when the signer is a
|
|
167
|
+
* phone signer. Local/dev workers re-sign locally and must NOT pause. Pure so
|
|
168
|
+
* the decision is unit-testable without driving a real retry.
|
|
169
|
+
*/
|
|
170
|
+
declare function shouldRegateBeforeResign(attempt: number, isPhoneSigner: boolean | undefined): boolean;
|
|
162
171
|
/** Wraps `sink` so that "failed" status events are buffered and only forwarded
|
|
163
172
|
* when `flush()` is called (i.e. on final abort). All other statuses pass
|
|
164
173
|
* through immediately. Call `reset()` at the top of each retry attempt to
|
|
@@ -343,9 +352,11 @@ declare class ReviveClientWrapper {
|
|
|
343
352
|
};
|
|
344
353
|
verifyEffect?: () => Promise<boolean>;
|
|
345
354
|
feeAsset?: "pgas";
|
|
355
|
+
isPhoneSigner?: boolean;
|
|
356
|
+
onResign?: (attempt: number) => Promise<void>;
|
|
346
357
|
}): Promise<TxResolution>;
|
|
347
358
|
private dryRunReviveCall;
|
|
348
|
-
submitTransaction(contractAddress: string, value: bigint, encodedData: string, signerSubstrateAddress: string, signer: PolkadotSigner, statusCallback: (status: string) => void, { rpcs, useNoncePolling, functionName, args, contracts, verifyEffect, feeAsset }: {
|
|
359
|
+
submitTransaction(contractAddress: string, value: bigint, encodedData: string, signerSubstrateAddress: string, signer: PolkadotSigner, statusCallback: (status: string) => void, { rpcs, useNoncePolling, functionName, args, contracts, verifyEffect, feeAsset, isPhoneSigner, onResign }: {
|
|
349
360
|
rpcs: string[];
|
|
350
361
|
useNoncePolling?: boolean;
|
|
351
362
|
functionName?: string;
|
|
@@ -353,6 +364,8 @@ declare class ReviveClientWrapper {
|
|
|
353
364
|
contracts?: Record<string, string>;
|
|
354
365
|
verifyEffect?: () => Promise<boolean>;
|
|
355
366
|
feeAsset?: "pgas";
|
|
367
|
+
isPhoneSigner?: boolean;
|
|
368
|
+
onResign?: (attempt: number) => Promise<void>;
|
|
356
369
|
}): Promise<TxResolution>;
|
|
357
370
|
submitBatchedTransactions(calls: {
|
|
358
371
|
contractAddress: string;
|
|
@@ -660,4 +673,4 @@ declare class DotNS {
|
|
|
660
673
|
}
|
|
661
674
|
declare const dotns: DotNS;
|
|
662
675
|
|
|
663
|
-
export { ATTR_TX_RESOLUTION_KIND, type AliasAccountClassification, type AliasAccountState, CONNECTION_TIMEOUT_MS, CONTRACTS, ContractDryRunRevertError, DECIMALS, DEFAULT_MNEMONIC, DOTNS_TX_MAX_ATTEMPTS, DOT_NODE, DotNS, type DotNSConnectOptions, type DotnsPreflightResult, type DotnsSuccessAction, MINIMUM_REGISTER_STORAGE_DEPOSIT, NATIVE_TO_ETH_RATIO, OPERATION_TIMEOUT_MS, type OwnershipResult, PUBLISHER_ABI, type ParsedDomainName, type PhoneSignatureStep, type PriceValidationResult, ProofOfPersonhoodStatus, PublisherNotSupportedError, RPC_ENDPOINTS, TX_CHAIN_TIME_BUDGET_MS, TX_KIND_HASH, TX_KIND_NONCE_ADVANCED, TX_NO_PROGRESS_MS, TX_TIMEOUT_MS, TX_WALL_CLOCK_CEILING_MS, type TxResolution, WS_HEARTBEAT_TIMEOUT_MS, __formatContractDryRunFailureForTest, bufferedWeiToNative, canRegister, classifyAliasAccountRow, classifyDotnsLabel, classifyTxRetryDecision, computeDomainTokenId, convertToHexString, convertWeiToNative, countTrailingDigits, decodePublisherRevert, dotns, dotnsRetryBackoffMs, feeFloorFor, fetchNonce, fmtPas, formatDispatchError, formatPersonhoodRemediation, formatPopShortfallReason, isCommitmentMature, isCommitmentTimingBarerevert, makeRetryStatusFilter, parseDomainName, parseProofOfPersonhoodStatus, popStatusName, registerDepositWei, sanitizeDomainLabel, shouldRetryTxAttempt, stripTrailingDigits, validateDomainLabel, verifyNonceAdvanced, weiToNative };
|
|
676
|
+
export { ATTR_TX_RESOLUTION_KIND, type AliasAccountClassification, type AliasAccountState, CONNECTION_TIMEOUT_MS, CONTRACTS, ContractDryRunRevertError, DECIMALS, DEFAULT_MNEMONIC, DOTNS_TX_MAX_ATTEMPTS, DOT_NODE, DotNS, type DotNSConnectOptions, type DotnsPreflightResult, type DotnsSuccessAction, MINIMUM_REGISTER_STORAGE_DEPOSIT, NATIVE_TO_ETH_RATIO, OPERATION_TIMEOUT_MS, type OwnershipResult, PUBLISHER_ABI, type ParsedDomainName, type PhoneSignatureStep, type PriceValidationResult, ProofOfPersonhoodStatus, PublisherNotSupportedError, RPC_ENDPOINTS, TX_CHAIN_TIME_BUDGET_MS, TX_KIND_HASH, TX_KIND_NONCE_ADVANCED, TX_NO_PROGRESS_MS, TX_TIMEOUT_MS, TX_WALL_CLOCK_CEILING_MS, type TxResolution, VERIFY_EFFECT_CHAIN_SECONDS, WS_HEARTBEAT_TIMEOUT_MS, __formatContractDryRunFailureForTest, bufferedWeiToNative, canRegister, classifyAliasAccountRow, classifyDotnsLabel, classifyTxRetryDecision, computeDomainTokenId, convertToHexString, convertWeiToNative, countTrailingDigits, decodePublisherRevert, dotns, dotnsRetryBackoffMs, feeFloorFor, fetchNonce, fmtPas, formatDispatchError, formatPersonhoodRemediation, formatPopShortfallReason, isCommitmentMature, isCommitmentTimingBarerevert, makeRetryStatusFilter, parseDomainName, parseProofOfPersonhoodStatus, popStatusName, registerDepositWei, sanitizeDomainLabel, shouldRegateBeforeResign, shouldRetryTxAttempt, stripTrailingDigits, validateDomainLabel, verifyNonceAdvanced, weiToNative };
|
package/dist/dotns.js
CHANGED
|
@@ -21,6 +21,7 @@ import {
|
|
|
21
21
|
TX_NO_PROGRESS_MS,
|
|
22
22
|
TX_TIMEOUT_MS,
|
|
23
23
|
TX_WALL_CLOCK_CEILING_MS,
|
|
24
|
+
VERIFY_EFFECT_CHAIN_SECONDS,
|
|
24
25
|
WS_HEARTBEAT_TIMEOUT_MS,
|
|
25
26
|
__formatContractDryRunFailureForTest,
|
|
26
27
|
bufferedWeiToNative,
|
|
@@ -49,17 +50,18 @@ import {
|
|
|
49
50
|
popStatusName,
|
|
50
51
|
registerDepositWei,
|
|
51
52
|
sanitizeDomainLabel,
|
|
53
|
+
shouldRegateBeforeResign,
|
|
52
54
|
shouldRetryTxAttempt,
|
|
53
55
|
stripTrailingDigits,
|
|
54
56
|
validateDomainLabel,
|
|
55
57
|
verifyNonceAdvanced,
|
|
56
58
|
weiToNative
|
|
57
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-ITXKADHO.js";
|
|
58
60
|
import "./chunk-SI2ZUOYD.js";
|
|
59
|
-
import "./chunk-
|
|
60
|
-
import "./chunk-
|
|
61
|
-
import "./chunk-
|
|
62
|
-
import "./chunk-
|
|
61
|
+
import "./chunk-MRQPJLPS.js";
|
|
62
|
+
import "./chunk-UIDRWZWX.js";
|
|
63
|
+
import "./chunk-LFRH4HBZ.js";
|
|
64
|
+
import "./chunk-JSYQ3JQS.js";
|
|
63
65
|
import "./chunk-ZOC4GITL.js";
|
|
64
66
|
export {
|
|
65
67
|
ATTR_TX_RESOLUTION_KIND,
|
|
@@ -84,6 +86,7 @@ export {
|
|
|
84
86
|
TX_NO_PROGRESS_MS,
|
|
85
87
|
TX_TIMEOUT_MS,
|
|
86
88
|
TX_WALL_CLOCK_CEILING_MS,
|
|
89
|
+
VERIFY_EFFECT_CHAIN_SECONDS,
|
|
87
90
|
WS_HEARTBEAT_TIMEOUT_MS,
|
|
88
91
|
__formatContractDryRunFailureForTest,
|
|
89
92
|
bufferedWeiToNative,
|
|
@@ -112,6 +115,7 @@ export {
|
|
|
112
115
|
popStatusName,
|
|
113
116
|
registerDepositWei,
|
|
114
117
|
sanitizeDomainLabel,
|
|
118
|
+
shouldRegateBeforeResign,
|
|
115
119
|
shouldRetryTxAttempt,
|
|
116
120
|
stripTrailingDigits,
|
|
117
121
|
validateDomainLabel,
|
package/dist/environments.d.ts
CHANGED
|
@@ -29,6 +29,7 @@ interface Environment {
|
|
|
29
29
|
registerStorageDeposit?: number;
|
|
30
30
|
contracts?: Record<string, string>;
|
|
31
31
|
popSelfServe?: PopSelfServeConfig;
|
|
32
|
+
bulletinAutoAuthorize?: boolean;
|
|
32
33
|
}
|
|
33
34
|
interface ChainEndpoint {
|
|
34
35
|
wss: string | string[];
|
|
@@ -66,6 +67,7 @@ interface ResolvedEndpoints {
|
|
|
66
67
|
contracts: Record<string, string>;
|
|
67
68
|
nativeToEthRatio: bigint;
|
|
68
69
|
registerStorageDeposit?: bigint;
|
|
70
|
+
bulletinAutoAuthorize: boolean;
|
|
69
71
|
}
|
|
70
72
|
declare function defaultBundledPath(): string;
|
|
71
73
|
/**
|
package/dist/environments.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-362JEZKM.js";
|
|
5
5
|
import {
|
|
6
6
|
publishManifest
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-UJLQBL7C.js";
|
|
8
8
|
import {
|
|
9
9
|
DEFAULT_TEXT_RECORD_BUDGET_BYTES,
|
|
10
10
|
PLACEHOLDER_CID,
|
|
@@ -24,8 +24,8 @@ import {
|
|
|
24
24
|
deploy,
|
|
25
25
|
merkleizeJS,
|
|
26
26
|
merkleizeWithStableOrder
|
|
27
|
-
} from "./chunk-
|
|
28
|
-
import "./chunk-
|
|
27
|
+
} from "./chunk-BIJICTV4.js";
|
|
28
|
+
import "./chunk-M6OQTMDB.js";
|
|
29
29
|
import "./chunk-GRPLHUYC.js";
|
|
30
30
|
import "./chunk-HOTQDYHD.js";
|
|
31
31
|
import {
|
|
@@ -49,24 +49,24 @@ import {
|
|
|
49
49
|
isVolatilePath,
|
|
50
50
|
parseManifest
|
|
51
51
|
} from "./chunk-S7EM5VMW.js";
|
|
52
|
-
import "./chunk-
|
|
53
|
-
import "./chunk-
|
|
52
|
+
import "./chunk-PECJ5FDA.js";
|
|
53
|
+
import "./chunk-NEQRG3AY.js";
|
|
54
54
|
import {
|
|
55
55
|
probeChunks
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-RU7Z5Y7Z.js";
|
|
57
57
|
import "./chunk-C2TS5MER.js";
|
|
58
|
-
import "./chunk-
|
|
58
|
+
import "./chunk-OZEJEDHM.js";
|
|
59
59
|
import "./chunk-JQKKMUCT.js";
|
|
60
60
|
import "./chunk-5FLTDWWP.js";
|
|
61
61
|
import "./chunk-RIRDBSBG.js";
|
|
62
|
-
import "./chunk-
|
|
62
|
+
import "./chunk-KBKS3V2V.js";
|
|
63
63
|
import "./chunk-TSPERKUS.js";
|
|
64
64
|
import {
|
|
65
65
|
DEFAULT_MNEMONIC,
|
|
66
66
|
DotNS,
|
|
67
67
|
parseDomainName,
|
|
68
68
|
sanitizeDomainLabel
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-ITXKADHO.js";
|
|
70
70
|
import "./chunk-SI2ZUOYD.js";
|
|
71
71
|
import {
|
|
72
72
|
bootstrapPool,
|
|
@@ -74,8 +74,8 @@ import {
|
|
|
74
74
|
ensureAuthorized,
|
|
75
75
|
fetchPoolAuthorizations,
|
|
76
76
|
selectAccount
|
|
77
|
-
} from "./chunk-
|
|
78
|
-
import "./chunk-
|
|
77
|
+
} from "./chunk-MRQPJLPS.js";
|
|
78
|
+
import "./chunk-UIDRWZWX.js";
|
|
79
79
|
import {
|
|
80
80
|
VERSION,
|
|
81
81
|
loadRunState,
|
|
@@ -85,7 +85,7 @@ import {
|
|
|
85
85
|
shouldSkipStaleWarning,
|
|
86
86
|
stateFilePath,
|
|
87
87
|
writeRunState
|
|
88
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-LFRH4HBZ.js";
|
|
89
89
|
import {
|
|
90
90
|
DEFAULT_ENV_ID,
|
|
91
91
|
deepMergeEnvironments,
|
|
@@ -96,7 +96,7 @@ import {
|
|
|
96
96
|
loadEnvironments,
|
|
97
97
|
resolveEndpoints,
|
|
98
98
|
validateContractAddresses
|
|
99
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-JSYQ3JQS.js";
|
|
100
100
|
import "./chunk-ZOC4GITL.js";
|
|
101
101
|
export {
|
|
102
102
|
DEFAULT_ENV_ID,
|
package/dist/manifest/publish.js
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import {
|
|
2
2
|
publishManifest
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-UJLQBL7C.js";
|
|
4
4
|
import "../chunk-WIMRJK32.js";
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
5
|
+
import "../chunk-BIJICTV4.js";
|
|
6
|
+
import "../chunk-M6OQTMDB.js";
|
|
7
7
|
import "../chunk-GRPLHUYC.js";
|
|
8
8
|
import "../chunk-HOTQDYHD.js";
|
|
9
9
|
import "../chunk-IW3X2MJF.js";
|
|
10
10
|
import "../chunk-KOSF5FDO.js";
|
|
11
11
|
import "../chunk-J3NIXHZZ.js";
|
|
12
12
|
import "../chunk-S7EM5VMW.js";
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-PECJ5FDA.js";
|
|
14
|
+
import "../chunk-NEQRG3AY.js";
|
|
15
|
+
import "../chunk-RU7Z5Y7Z.js";
|
|
16
16
|
import "../chunk-C2TS5MER.js";
|
|
17
|
-
import "../chunk-
|
|
17
|
+
import "../chunk-OZEJEDHM.js";
|
|
18
18
|
import "../chunk-JQKKMUCT.js";
|
|
19
19
|
import "../chunk-5FLTDWWP.js";
|
|
20
20
|
import "../chunk-RIRDBSBG.js";
|
|
21
|
-
import "../chunk-
|
|
21
|
+
import "../chunk-KBKS3V2V.js";
|
|
22
22
|
import "../chunk-TSPERKUS.js";
|
|
23
|
-
import "../chunk-
|
|
23
|
+
import "../chunk-ITXKADHO.js";
|
|
24
24
|
import "../chunk-SI2ZUOYD.js";
|
|
25
|
-
import "../chunk-
|
|
26
|
-
import "../chunk-
|
|
27
|
-
import "../chunk-
|
|
28
|
-
import "../chunk-
|
|
25
|
+
import "../chunk-MRQPJLPS.js";
|
|
26
|
+
import "../chunk-UIDRWZWX.js";
|
|
27
|
+
import "../chunk-LFRH4HBZ.js";
|
|
28
|
+
import "../chunk-JSYQ3JQS.js";
|
|
29
29
|
import "../chunk-ZOC4GITL.js";
|
|
30
30
|
export {
|
|
31
31
|
publishManifest
|
package/dist/memory-report.js
CHANGED
package/dist/merkle.js
CHANGED
|
@@ -6,30 +6,30 @@ import {
|
|
|
6
6
|
merkleizeKuboBackend,
|
|
7
7
|
merkleizeWithStableOrder,
|
|
8
8
|
rebuildOrderedCarFromBytes
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-BIJICTV4.js";
|
|
10
|
+
import "./chunk-M6OQTMDB.js";
|
|
11
11
|
import "./chunk-GRPLHUYC.js";
|
|
12
12
|
import "./chunk-HOTQDYHD.js";
|
|
13
13
|
import "./chunk-IW3X2MJF.js";
|
|
14
14
|
import "./chunk-KOSF5FDO.js";
|
|
15
15
|
import "./chunk-J3NIXHZZ.js";
|
|
16
16
|
import "./chunk-S7EM5VMW.js";
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-PECJ5FDA.js";
|
|
18
|
+
import "./chunk-NEQRG3AY.js";
|
|
19
|
+
import "./chunk-RU7Z5Y7Z.js";
|
|
20
20
|
import "./chunk-C2TS5MER.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-OZEJEDHM.js";
|
|
22
22
|
import "./chunk-JQKKMUCT.js";
|
|
23
23
|
import "./chunk-5FLTDWWP.js";
|
|
24
24
|
import "./chunk-RIRDBSBG.js";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-KBKS3V2V.js";
|
|
26
26
|
import "./chunk-TSPERKUS.js";
|
|
27
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-ITXKADHO.js";
|
|
28
28
|
import "./chunk-SI2ZUOYD.js";
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-MRQPJLPS.js";
|
|
30
|
+
import "./chunk-UIDRWZWX.js";
|
|
31
|
+
import "./chunk-LFRH4HBZ.js";
|
|
32
|
+
import "./chunk-JSYQ3JQS.js";
|
|
33
33
|
import "./chunk-ZOC4GITL.js";
|
|
34
34
|
export {
|
|
35
35
|
buildOrderedCar,
|