@parity/product-deploy 0.11.0 → 0.12.0-rc.2
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-bootstrap +23 -1
- package/dist/auth-config.js +3 -3
- package/dist/bug-report.js +4 -4
- package/dist/{chunk-SES7CGNY.js → chunk-DDC6NKE3.js} +1 -1
- package/dist/{chunk-TE2YKRYY.js → chunk-F4O42MUQ.js} +2 -2
- package/dist/{chunk-HLXRVFKL.js → chunk-FGCBIUMT.js} +38 -1
- package/dist/{chunk-HTZGBUZA.js → chunk-IR5BHZ2S.js} +3 -3
- package/dist/{chunk-7RYEYWYO.js → chunk-JGS6QR5X.js} +1 -1
- package/dist/{chunk-53BU4X2R.js → chunk-LRJTODL2.js} +12 -2
- package/dist/{chunk-UUJFLJKY.js → chunk-N7KXNIH4.js} +158 -61
- package/dist/{chunk-JWMHCW74.js → chunk-NRSIBGBP.js} +1 -1
- package/dist/{chunk-O4I37F5K.js → chunk-S62H6TWE.js} +55 -12
- package/dist/{chunk-7E33R3OQ.js → chunk-UPA5PEQA.js} +1 -1
- package/dist/{chunk-QDHLTSEO.js → chunk-WVVRMGKN.js} +2 -2
- package/dist/{chunk-MRQPJLPS.js → chunk-XVQICFTB.js} +22 -1
- package/dist/chunk-probe.d.ts +43 -1
- package/dist/chunk-probe.js +11 -5
- package/dist/commands/login.js +11 -11
- package/dist/commands/logout.js +4 -4
- package/dist/commands/transfer.js +4 -4
- package/dist/commands/whoami.js +3 -3
- package/dist/deploy-actors.js +6 -6
- package/dist/deploy.d.ts +45 -1
- package/dist/deploy.js +17 -11
- package/dist/dotns.d.ts +33 -1
- package/dist/dotns.js +14 -4
- package/dist/index.d.ts +1 -1
- package/dist/index.js +18 -12
- package/dist/manifest/publish.js +12 -12
- package/dist/memory-report.js +2 -2
- package/dist/merkle.js +11 -11
- package/dist/personhood/bootstrap.js +4 -4
- package/dist/personhood/people-client.js +4 -4
- package/dist/personhood/reprove.js +19 -2
- package/dist/pool.d.ts +11 -1
- package/dist/pool.js +9 -1
- package/dist/run-state.js +1 -1
- package/dist/sss-allowance-cache.js +4 -4
- package/dist/storage-signer.d.ts +28 -3
- package/dist/storage-signer.js +13 -11
- package/dist/telemetry.js +2 -2
- package/dist/version-check.js +3 -3
- package/package.json +1 -1
- package/tools/release-retry-wrapper.mjs +6 -0
package/dist/dotns.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BootstrapResult } from './personhood/bootstrap.js';
|
|
2
2
|
import { PopSelfServeConfig } from './environments.js';
|
|
3
|
+
import { NonRetryableError } from './errors.js';
|
|
3
4
|
import { PolkadotSigner } from 'polkadot-api';
|
|
4
5
|
import './personhood/bind-personal-id.js';
|
|
5
6
|
import './personhood/claim-pgas.js';
|
|
@@ -148,8 +149,39 @@ declare const TX_WALL_CLOCK_CEILING_MS: number;
|
|
|
148
149
|
declare const TX_NO_PROGRESS_MS: number;
|
|
149
150
|
declare const WS_HEARTBEAT_TIMEOUT_MS: number;
|
|
150
151
|
declare const DOTNS_TX_MAX_ATTEMPTS: number;
|
|
152
|
+
/**
|
|
153
|
+
* Thrown by signAndSubmitExtrinsic when the transaction watcher goes silent
|
|
154
|
+
* with NO prior event — i.e. the chain never received a "signed" / "broadcasted"
|
|
155
|
+
* event before the silence deadline. On the phone/session-signer path this
|
|
156
|
+
* typically means the user hasn't approved the request on their phone yet.
|
|
157
|
+
* Typed separately from a plain Error so signAndSubmitWithRetry can apply a
|
|
158
|
+
* different policy (fast-fail, #990) instead of the default retry — backported
|
|
159
|
+
* from polkadot-app-deploy, which already carried this fast-fail.
|
|
160
|
+
*/
|
|
161
|
+
declare class WatcherSilentNoEventError extends Error {
|
|
162
|
+
constructor(silentMs: number);
|
|
163
|
+
}
|
|
151
164
|
declare const VERIFY_EFFECT_CHAIN_SECONDS: number;
|
|
165
|
+
declare const NONCE_ADVANCE_VERIFY_RETRIES: number;
|
|
166
|
+
declare const NONCE_ADVANCE_VERIFY_RETRY_INTERVAL_MS: number;
|
|
167
|
+
declare function verifyEffectWithGrace(verifyEffect: () => Promise<boolean>, { retries, intervalMs }?: {
|
|
168
|
+
retries?: number;
|
|
169
|
+
intervalMs?: number;
|
|
170
|
+
}): Promise<boolean>;
|
|
152
171
|
declare function classifyTxRetryDecision(err: unknown): "retry" | "abort";
|
|
172
|
+
/**
|
|
173
|
+
* Phone-signer no-event fast-fail (#990, backported from polkadot-app-deploy).
|
|
174
|
+
* WatcherSilentNoEventError means the watcher never saw a single prior event —
|
|
175
|
+
* the phone never approved the request — which is a materially different
|
|
176
|
+
* situation from a WS stall after signing. For a phone signer, retrying pays
|
|
177
|
+
* another ~90s of silence for no better odds (the phone still won't have
|
|
178
|
+
* approved); fail immediately with a clear, actionable message instead.
|
|
179
|
+
* Non-phone signers, or a WatcherSilentNoEventError instance not present (e.g.
|
|
180
|
+
* a plain "watcher silent" Error where a prior event DID arrive), fall through
|
|
181
|
+
* to the default classifyTxRetryDecision/retry path unchanged. Pure so the
|
|
182
|
+
* decision is unit-testable without driving a real retry loop.
|
|
183
|
+
*/
|
|
184
|
+
declare function classifyWatcherSilentFastFail(err: unknown, isPhoneSigner: boolean | undefined): NonRetryableError | null;
|
|
153
185
|
declare function dotnsRetryBackoffMs(attempt: number, rand?: () => number): number;
|
|
154
186
|
/**
|
|
155
187
|
* Whether a failed attempt should be retried: only when the error is
|
|
@@ -673,4 +705,4 @@ declare class DotNS {
|
|
|
673
705
|
}
|
|
674
706
|
declare const dotns: DotNS;
|
|
675
707
|
|
|
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 };
|
|
708
|
+
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, NONCE_ADVANCE_VERIFY_RETRIES, NONCE_ADVANCE_VERIFY_RETRY_INTERVAL_MS, 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, WatcherSilentNoEventError, __formatContractDryRunFailureForTest, bufferedWeiToNative, canRegister, classifyAliasAccountRow, classifyDotnsLabel, classifyTxRetryDecision, classifyWatcherSilentFastFail, 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, verifyEffectWithGrace, verifyNonceAdvanced, weiToNative };
|
package/dist/dotns.js
CHANGED
|
@@ -10,6 +10,8 @@ import {
|
|
|
10
10
|
DotNS,
|
|
11
11
|
MINIMUM_REGISTER_STORAGE_DEPOSIT,
|
|
12
12
|
NATIVE_TO_ETH_RATIO,
|
|
13
|
+
NONCE_ADVANCE_VERIFY_RETRIES,
|
|
14
|
+
NONCE_ADVANCE_VERIFY_RETRY_INTERVAL_MS,
|
|
13
15
|
OPERATION_TIMEOUT_MS,
|
|
14
16
|
PUBLISHER_ABI,
|
|
15
17
|
ProofOfPersonhoodStatus,
|
|
@@ -23,12 +25,14 @@ import {
|
|
|
23
25
|
TX_WALL_CLOCK_CEILING_MS,
|
|
24
26
|
VERIFY_EFFECT_CHAIN_SECONDS,
|
|
25
27
|
WS_HEARTBEAT_TIMEOUT_MS,
|
|
28
|
+
WatcherSilentNoEventError,
|
|
26
29
|
__formatContractDryRunFailureForTest,
|
|
27
30
|
bufferedWeiToNative,
|
|
28
31
|
canRegister,
|
|
29
32
|
classifyAliasAccountRow,
|
|
30
33
|
classifyDotnsLabel,
|
|
31
34
|
classifyTxRetryDecision,
|
|
35
|
+
classifyWatcherSilentFastFail,
|
|
32
36
|
computeDomainTokenId,
|
|
33
37
|
convertToHexString,
|
|
34
38
|
convertWeiToNative,
|
|
@@ -54,13 +58,14 @@ import {
|
|
|
54
58
|
shouldRetryTxAttempt,
|
|
55
59
|
stripTrailingDigits,
|
|
56
60
|
validateDomainLabel,
|
|
61
|
+
verifyEffectWithGrace,
|
|
57
62
|
verifyNonceAdvanced,
|
|
58
63
|
weiToNative
|
|
59
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-S62H6TWE.js";
|
|
60
65
|
import "./chunk-SI2ZUOYD.js";
|
|
61
|
-
import "./chunk-
|
|
62
|
-
import "./chunk-
|
|
63
|
-
import "./chunk-
|
|
66
|
+
import "./chunk-XVQICFTB.js";
|
|
67
|
+
import "./chunk-LRJTODL2.js";
|
|
68
|
+
import "./chunk-DDC6NKE3.js";
|
|
64
69
|
import "./chunk-JSYQ3JQS.js";
|
|
65
70
|
import "./chunk-ZOC4GITL.js";
|
|
66
71
|
export {
|
|
@@ -75,6 +80,8 @@ export {
|
|
|
75
80
|
DotNS,
|
|
76
81
|
MINIMUM_REGISTER_STORAGE_DEPOSIT,
|
|
77
82
|
NATIVE_TO_ETH_RATIO,
|
|
83
|
+
NONCE_ADVANCE_VERIFY_RETRIES,
|
|
84
|
+
NONCE_ADVANCE_VERIFY_RETRY_INTERVAL_MS,
|
|
78
85
|
OPERATION_TIMEOUT_MS,
|
|
79
86
|
PUBLISHER_ABI,
|
|
80
87
|
ProofOfPersonhoodStatus,
|
|
@@ -88,12 +95,14 @@ export {
|
|
|
88
95
|
TX_WALL_CLOCK_CEILING_MS,
|
|
89
96
|
VERIFY_EFFECT_CHAIN_SECONDS,
|
|
90
97
|
WS_HEARTBEAT_TIMEOUT_MS,
|
|
98
|
+
WatcherSilentNoEventError,
|
|
91
99
|
__formatContractDryRunFailureForTest,
|
|
92
100
|
bufferedWeiToNative,
|
|
93
101
|
canRegister,
|
|
94
102
|
classifyAliasAccountRow,
|
|
95
103
|
classifyDotnsLabel,
|
|
96
104
|
classifyTxRetryDecision,
|
|
105
|
+
classifyWatcherSilentFastFail,
|
|
97
106
|
computeDomainTokenId,
|
|
98
107
|
convertToHexString,
|
|
99
108
|
convertWeiToNative,
|
|
@@ -119,6 +128,7 @@ export {
|
|
|
119
128
|
shouldRetryTxAttempt,
|
|
120
129
|
stripTrailingDigits,
|
|
121
130
|
validateDomainLabel,
|
|
131
|
+
verifyEffectWithGrace,
|
|
122
132
|
verifyNonceAdvanced,
|
|
123
133
|
weiToNative
|
|
124
134
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { DeployContent, DeployOptions, DeployResult, deploy } from './deploy.js';
|
|
2
|
-
export { PoolAccount, PoolAuthorization, bootstrapPool, derivePoolAccounts, ensureAuthorized, fetchPoolAuthorizations, selectAccount } from './pool.js';
|
|
2
|
+
export { AutoReauthorizeEnv, BULLETIN_BLOCKS_PER_DAY, BootstrapPoolOptions, PoolAccount, PoolAuthorization, accountsNeedingReauthorization, bootstrapPool, derivePoolAccounts, ensureAuthorized, fetchPoolAuthorizations, isAutoReauthorizeAllowed, selectAccount } from './pool.js';
|
|
3
3
|
export { DEFAULT_MNEMONIC, DotNS, DotNSConnectOptions, OwnershipResult, ParsedDomainName, PriceValidationResult, parseDomainName, sanitizeDomainLabel } from './dotns.js';
|
|
4
4
|
export { MerkleizeResult, MerkleizeStableResult, merkleizeJS, merkleizeWithStableOrder } from './merkle.js';
|
|
5
5
|
export { EmbeddedManifest, FileType, MANIFEST_DIR, MANIFEST_FILENAME, MANIFEST_PATH, MANIFEST_VERSION, ManifestFileEntry, ParseResult, classifyFile, isVolatilePath, parseManifest } from './manifest.js';
|
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-F4O42MUQ.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-N7KXNIH4.js";
|
|
28
|
+
import "./chunk-JGS6QR5X.js";
|
|
29
29
|
import "./chunk-GRPLHUYC.js";
|
|
30
30
|
import "./chunk-HOTQDYHD.js";
|
|
31
31
|
import {
|
|
@@ -49,33 +49,36 @@ import {
|
|
|
49
49
|
isVolatilePath,
|
|
50
50
|
parseManifest
|
|
51
51
|
} from "./chunk-S7EM5VMW.js";
|
|
52
|
-
import "./chunk-
|
|
53
|
-
import "./chunk-
|
|
52
|
+
import "./chunk-IR5BHZ2S.js";
|
|
53
|
+
import "./chunk-UPA5PEQA.js";
|
|
54
54
|
import {
|
|
55
55
|
probeChunks
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-FGCBIUMT.js";
|
|
57
57
|
import "./chunk-C2TS5MER.js";
|
|
58
|
-
import "./chunk-
|
|
58
|
+
import "./chunk-WVVRMGKN.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-NRSIBGBP.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-S62H6TWE.js";
|
|
70
70
|
import "./chunk-SI2ZUOYD.js";
|
|
71
71
|
import {
|
|
72
|
+
BULLETIN_BLOCKS_PER_DAY,
|
|
73
|
+
accountsNeedingReauthorization,
|
|
72
74
|
bootstrapPool,
|
|
73
75
|
derivePoolAccounts,
|
|
74
76
|
ensureAuthorized,
|
|
75
77
|
fetchPoolAuthorizations,
|
|
78
|
+
isAutoReauthorizeAllowed,
|
|
76
79
|
selectAccount
|
|
77
|
-
} from "./chunk-
|
|
78
|
-
import "./chunk-
|
|
80
|
+
} from "./chunk-XVQICFTB.js";
|
|
81
|
+
import "./chunk-LRJTODL2.js";
|
|
79
82
|
import {
|
|
80
83
|
VERSION,
|
|
81
84
|
loadRunState,
|
|
@@ -85,7 +88,7 @@ import {
|
|
|
85
88
|
shouldSkipStaleWarning,
|
|
86
89
|
stateFilePath,
|
|
87
90
|
writeRunState
|
|
88
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-DDC6NKE3.js";
|
|
89
92
|
import {
|
|
90
93
|
DEFAULT_ENV_ID,
|
|
91
94
|
deepMergeEnvironments,
|
|
@@ -99,6 +102,7 @@ import {
|
|
|
99
102
|
} from "./chunk-JSYQ3JQS.js";
|
|
100
103
|
import "./chunk-ZOC4GITL.js";
|
|
101
104
|
export {
|
|
105
|
+
BULLETIN_BLOCKS_PER_DAY,
|
|
102
106
|
DEFAULT_ENV_ID,
|
|
103
107
|
DEFAULT_MNEMONIC,
|
|
104
108
|
DEFAULT_TEXT_RECORD_BUDGET_BYTES,
|
|
@@ -109,6 +113,7 @@ export {
|
|
|
109
113
|
MANIFEST_VERSION,
|
|
110
114
|
PLACEHOLDER_CID,
|
|
111
115
|
VERSION,
|
|
116
|
+
accountsNeedingReauthorization,
|
|
112
117
|
assertWithinBudget,
|
|
113
118
|
bootstrapPool,
|
|
114
119
|
classifyFile,
|
|
@@ -124,6 +129,7 @@ export {
|
|
|
124
129
|
finaliseEmbeddedManifest,
|
|
125
130
|
formatEnvironmentTable,
|
|
126
131
|
getTextRecordBudgetBytes,
|
|
132
|
+
isAutoReauthorizeAllowed,
|
|
127
133
|
isValidContractAddress,
|
|
128
134
|
isVolatilePath,
|
|
129
135
|
listEnvironments,
|
package/dist/manifest/publish.js
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
2
|
publishManifest
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-F4O42MUQ.js";
|
|
4
4
|
import "../chunk-WIMRJK32.js";
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
5
|
+
import "../chunk-N7KXNIH4.js";
|
|
6
|
+
import "../chunk-JGS6QR5X.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-IR5BHZ2S.js";
|
|
14
|
+
import "../chunk-UPA5PEQA.js";
|
|
15
|
+
import "../chunk-FGCBIUMT.js";
|
|
16
16
|
import "../chunk-C2TS5MER.js";
|
|
17
|
-
import "../chunk-
|
|
17
|
+
import "../chunk-WVVRMGKN.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-NRSIBGBP.js";
|
|
22
22
|
import "../chunk-TSPERKUS.js";
|
|
23
|
-
import "../chunk-
|
|
23
|
+
import "../chunk-S62H6TWE.js";
|
|
24
24
|
import "../chunk-SI2ZUOYD.js";
|
|
25
|
-
import "../chunk-
|
|
26
|
-
import "../chunk-
|
|
27
|
-
import "../chunk-
|
|
25
|
+
import "../chunk-XVQICFTB.js";
|
|
26
|
+
import "../chunk-LRJTODL2.js";
|
|
27
|
+
import "../chunk-DDC6NKE3.js";
|
|
28
28
|
import "../chunk-JSYQ3JQS.js";
|
|
29
29
|
import "../chunk-ZOC4GITL.js";
|
|
30
30
|
export {
|
package/dist/memory-report.js
CHANGED
package/dist/merkle.js
CHANGED
|
@@ -6,29 +6,29 @@ import {
|
|
|
6
6
|
merkleizeKuboBackend,
|
|
7
7
|
merkleizeWithStableOrder,
|
|
8
8
|
rebuildOrderedCarFromBytes
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-N7KXNIH4.js";
|
|
10
|
+
import "./chunk-JGS6QR5X.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-IR5BHZ2S.js";
|
|
18
|
+
import "./chunk-UPA5PEQA.js";
|
|
19
|
+
import "./chunk-FGCBIUMT.js";
|
|
20
20
|
import "./chunk-C2TS5MER.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-WVVRMGKN.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-NRSIBGBP.js";
|
|
26
26
|
import "./chunk-TSPERKUS.js";
|
|
27
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-S62H6TWE.js";
|
|
28
28
|
import "./chunk-SI2ZUOYD.js";
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-XVQICFTB.js";
|
|
30
|
+
import "./chunk-LRJTODL2.js";
|
|
31
|
+
import "./chunk-DDC6NKE3.js";
|
|
32
32
|
import "./chunk-JSYQ3JQS.js";
|
|
33
33
|
import "./chunk-ZOC4GITL.js";
|
|
34
34
|
export {
|
|
@@ -21,15 +21,15 @@ import {
|
|
|
21
21
|
} from "../chunk-ZYVGHDMU.js";
|
|
22
22
|
import {
|
|
23
23
|
WS_HEARTBEAT_TIMEOUT_MS
|
|
24
|
-
} from "../chunk-
|
|
24
|
+
} from "../chunk-S62H6TWE.js";
|
|
25
25
|
import {
|
|
26
26
|
DOTNS_CONTEXT_BYTES,
|
|
27
27
|
PEOPLE_MEMBER_IDENTIFIER_HEX,
|
|
28
28
|
PGAS_ASSET_ID
|
|
29
29
|
} from "../chunk-SI2ZUOYD.js";
|
|
30
|
-
import "../chunk-
|
|
31
|
-
import "../chunk-
|
|
32
|
-
import "../chunk-
|
|
30
|
+
import "../chunk-XVQICFTB.js";
|
|
31
|
+
import "../chunk-LRJTODL2.js";
|
|
32
|
+
import "../chunk-DDC6NKE3.js";
|
|
33
33
|
import {
|
|
34
34
|
loadEnvironments
|
|
35
35
|
} from "../chunk-JSYQ3JQS.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WS_HEARTBEAT_TIMEOUT_MS
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-S62H6TWE.js";
|
|
4
4
|
import "../chunk-SI2ZUOYD.js";
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
5
|
+
import "../chunk-XVQICFTB.js";
|
|
6
|
+
import "../chunk-LRJTODL2.js";
|
|
7
|
+
import "../chunk-DDC6NKE3.js";
|
|
8
8
|
import {
|
|
9
9
|
loadEnvironments
|
|
10
10
|
} from "../chunk-JSYQ3JQS.js";
|
|
@@ -164,7 +164,11 @@ var reproveAliasToAccount = async ({
|
|
|
164
164
|
if (ev.ok === false) {
|
|
165
165
|
fail(
|
|
166
166
|
new ReproveAliasError(
|
|
167
|
-
|
|
167
|
+
// Issue #1057: this used to be a bare, unqualified string —
|
|
168
|
+
// the real ModuleError (pallet + variant) was captured on
|
|
169
|
+
// `dispatchError` but never rendered, so a preview-specific
|
|
170
|
+
// revert looked identical to every other in-block failure.
|
|
171
|
+
`reprove_alias_account dispatched but failed in-block: ${formatDispatchError(ev.dispatchError)}`,
|
|
168
172
|
{
|
|
169
173
|
kind: narrowDispatchError(ev.dispatchError),
|
|
170
174
|
dispatchError: ev.dispatchError
|
|
@@ -180,7 +184,7 @@ var reproveAliasToAccount = async ({
|
|
|
180
184
|
if (ev.ok === false) {
|
|
181
185
|
fail(
|
|
182
186
|
new ReproveAliasError(
|
|
183
|
-
|
|
187
|
+
`reprove_alias_account failed at finalization: ${formatDispatchError(ev.dispatchError)}`,
|
|
184
188
|
{
|
|
185
189
|
kind: narrowDispatchError(ev.dispatchError),
|
|
186
190
|
dispatchError: ev.dispatchError
|
|
@@ -204,6 +208,19 @@ var reproveAliasToAccount = async ({
|
|
|
204
208
|
});
|
|
205
209
|
return { blockHash, oldRevision: storedRevision, newRevision };
|
|
206
210
|
};
|
|
211
|
+
var formatDispatchError = (dispatchError) => {
|
|
212
|
+
if (dispatchError === void 0 || dispatchError === null) return "dispatch error";
|
|
213
|
+
if (typeof dispatchError === "string") return dispatchError;
|
|
214
|
+
try {
|
|
215
|
+
const out = JSON.stringify(
|
|
216
|
+
dispatchError,
|
|
217
|
+
(_k, v) => typeof v === "bigint" ? v.toString() : v
|
|
218
|
+
);
|
|
219
|
+
return typeof out === "string" ? out : "dispatch error";
|
|
220
|
+
} catch {
|
|
221
|
+
return String(dispatchError);
|
|
222
|
+
}
|
|
223
|
+
};
|
|
207
224
|
var narrowDispatchError = (dispatchError) => {
|
|
208
225
|
if (typeof dispatchError === "object" && dispatchError !== null && "type" in dispatchError) {
|
|
209
226
|
const d = dispatchError;
|
package/dist/pool.d.ts
CHANGED
|
@@ -16,6 +16,14 @@ interface PoolAuthorization extends PoolAccount {
|
|
|
16
16
|
declare function derivePoolAccounts(poolSize?: number, mnemonic?: string): PoolAccount[];
|
|
17
17
|
declare function isAuthorizationSufficient(auth: any, currentBlock: number): boolean;
|
|
18
18
|
declare function accountsNeedingAuthorization(auths: PoolAuthorization[], currentBlock: number): PoolAuthorization[];
|
|
19
|
+
declare const BULLETIN_BLOCK_TIME_SECS = 6;
|
|
20
|
+
declare const BULLETIN_BLOCKS_PER_DAY: number;
|
|
21
|
+
declare function accountsNeedingReauthorization(auths: PoolAuthorization[], currentBlock: number, bufferBlocks?: number): PoolAuthorization[];
|
|
22
|
+
interface AutoReauthorizeEnv {
|
|
23
|
+
network?: string;
|
|
24
|
+
bulletinAutoAuthorize?: boolean;
|
|
25
|
+
}
|
|
26
|
+
declare function isAutoReauthorizeAllowed(env: AutoReauthorizeEnv | null | undefined): boolean;
|
|
19
27
|
interface SelectionResult {
|
|
20
28
|
account: PoolAuthorization;
|
|
21
29
|
eligibleCount: number;
|
|
@@ -31,7 +39,9 @@ declare function ensureAuthorized(api: any, address: string, label?: string, opt
|
|
|
31
39
|
interface BootstrapPoolOptions {
|
|
32
40
|
authorizerMnemonic?: string;
|
|
33
41
|
bulletinAuthorizeV2?: boolean;
|
|
42
|
+
reauthBufferBlocks?: number;
|
|
43
|
+
allowAutoReauthorize?: boolean;
|
|
34
44
|
}
|
|
35
45
|
declare function bootstrapPool(bulletinRpc: string, poolSize?: number, mnemonic?: string, opts?: BootstrapPoolOptions): Promise<void>;
|
|
36
46
|
|
|
37
|
-
export { type BootstrapPoolOptions, type PoolAccount, type PoolAuthorization, type SelectionResult, _resetTestnetCacheForTests, accountsNeedingAuthorization, bootstrapPool, derivePoolAccounts, detectTestnet, ensureAuthorized, fetchPoolAuthorizations, formatPasBalance, isAuthorizationSufficient, isTestnetSpecName, selectAccount };
|
|
47
|
+
export { type AutoReauthorizeEnv, BULLETIN_BLOCKS_PER_DAY, BULLETIN_BLOCK_TIME_SECS, type BootstrapPoolOptions, type PoolAccount, type PoolAuthorization, type SelectionResult, _resetTestnetCacheForTests, accountsNeedingAuthorization, accountsNeedingReauthorization, bootstrapPool, derivePoolAccounts, detectTestnet, ensureAuthorized, fetchPoolAuthorizations, formatPasBalance, isAuthorizationSufficient, isAutoReauthorizeAllowed, isTestnetSpecName, selectAccount };
|
package/dist/pool.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
|
+
BULLETIN_BLOCKS_PER_DAY,
|
|
3
|
+
BULLETIN_BLOCK_TIME_SECS,
|
|
2
4
|
_resetTestnetCacheForTests,
|
|
3
5
|
accountsNeedingAuthorization,
|
|
6
|
+
accountsNeedingReauthorization,
|
|
4
7
|
bootstrapPool,
|
|
5
8
|
derivePoolAccounts,
|
|
6
9
|
detectTestnet,
|
|
@@ -8,12 +11,16 @@ import {
|
|
|
8
11
|
fetchPoolAuthorizations,
|
|
9
12
|
formatPasBalance,
|
|
10
13
|
isAuthorizationSufficient,
|
|
14
|
+
isAutoReauthorizeAllowed,
|
|
11
15
|
isTestnetSpecName,
|
|
12
16
|
selectAccount
|
|
13
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-XVQICFTB.js";
|
|
14
18
|
export {
|
|
19
|
+
BULLETIN_BLOCKS_PER_DAY,
|
|
20
|
+
BULLETIN_BLOCK_TIME_SECS,
|
|
15
21
|
_resetTestnetCacheForTests,
|
|
16
22
|
accountsNeedingAuthorization,
|
|
23
|
+
accountsNeedingReauthorization,
|
|
17
24
|
bootstrapPool,
|
|
18
25
|
derivePoolAccounts,
|
|
19
26
|
detectTestnet,
|
|
@@ -21,6 +28,7 @@ export {
|
|
|
21
28
|
fetchPoolAuthorizations,
|
|
22
29
|
formatPasBalance,
|
|
23
30
|
isAuthorizationSufficient,
|
|
31
|
+
isAutoReauthorizeAllowed,
|
|
24
32
|
isTestnetSpecName,
|
|
25
33
|
selectAccount
|
|
26
34
|
};
|
package/dist/run-state.js
CHANGED
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
preflightSssAllowance,
|
|
5
5
|
sssPeriodEndSec,
|
|
6
6
|
writeSssAllowanceCache
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-JGS6QR5X.js";
|
|
8
8
|
import "./chunk-GRPLHUYC.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-NRSIBGBP.js";
|
|
10
10
|
import "./chunk-TSPERKUS.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-LRJTODL2.js";
|
|
12
|
+
import "./chunk-DDC6NKE3.js";
|
|
13
13
|
import "./chunk-JSYQ3JQS.js";
|
|
14
14
|
import "./chunk-ZOC4GITL.js";
|
|
15
15
|
export {
|
package/dist/storage-signer.d.ts
CHANGED
|
@@ -115,10 +115,35 @@ declare function waitForBulletinAuthorization(ss58: string, opts?: {
|
|
|
115
115
|
authorized: false;
|
|
116
116
|
reason: "timeout";
|
|
117
117
|
}>;
|
|
118
|
+
/**
|
|
119
|
+
* Generic retry wrapper for a single flaky step. Retries any thrown error
|
|
120
|
+
* EXCEPT `BulletinSlotAuthError` up to `retries` times (default 2, i.e. 3
|
|
121
|
+
* total attempts) with `delayMs` between attempts (default 1000ms).
|
|
122
|
+
*
|
|
123
|
+
* `BulletinSlotAuthError` ("missing" | "expired") is a definitive on-chain
|
|
124
|
+
* fact, not a network blip — retrying it would just re-read the same state
|
|
125
|
+
* and waste time, so it always propagates on the first attempt.
|
|
126
|
+
*
|
|
127
|
+
* Extracted for #1058: getSlotSignerProvider's connect + Authorizations
|
|
128
|
+
* probe is a single WS round-trip performed once per deploy; a transient
|
|
129
|
+
* WS/RPC hiccup on that one attempt used to permanently commit the whole
|
|
130
|
+
* upload to the pool-account fallback (selectStorageReconnect in
|
|
131
|
+
* src/deploy.ts never retries the slot path once it has failed once).
|
|
132
|
+
* Mirrors the existing "a flaky read is NOT unauthorized" tolerance already
|
|
133
|
+
* used by pollUntilBulletinAuthorized (login path), bounded to a much
|
|
134
|
+
* shorter budget appropriate for a synchronous deploy-time connect.
|
|
135
|
+
*/
|
|
136
|
+
declare function withTransientRetry<T>(attempt: () => Promise<T>, opts?: {
|
|
137
|
+
retries?: number;
|
|
138
|
+
delayMs?: number;
|
|
139
|
+
}): Promise<T>;
|
|
118
140
|
/**
|
|
119
141
|
* Create a Bulletin WS connection for the slot-account signer.
|
|
120
|
-
* Checks on-chain authorization
|
|
121
|
-
*
|
|
142
|
+
* Checks on-chain authorization. A transient connect/query error (WS blip,
|
|
143
|
+
* RPC timeout) is retried up to twice via withTransientRetry before giving
|
|
144
|
+
* up; a clean read that is definitively missing/expired throws
|
|
145
|
+
* BulletinSlotAuthError immediately (no retry — see withTransientRetry) so
|
|
146
|
+
* callers can distinguish and produce targeted messages.
|
|
122
147
|
*/
|
|
123
148
|
declare function getSlotSignerProvider(signer: PolkadotSigner, ss58: string): Promise<{
|
|
124
149
|
client: any;
|
|
@@ -127,4 +152,4 @@ declare function getSlotSignerProvider(signer: PolkadotSigner, ss58: string): Pr
|
|
|
127
152
|
ss58: string;
|
|
128
153
|
}>;
|
|
129
154
|
|
|
130
|
-
export { BulletinSlotAuthError, extractBulletinSlotKey, getSlotSignerProvider, isBulletinAuthActive, pollUntilBulletinAuthorized, readBulletinSlotSigner, waitForBulletinAuthorization, writeBulletinSlotKey };
|
|
155
|
+
export { BulletinSlotAuthError, extractBulletinSlotKey, getSlotSignerProvider, isBulletinAuthActive, pollUntilBulletinAuthorized, readBulletinSlotSigner, waitForBulletinAuthorization, withTransientRetry, writeBulletinSlotKey };
|
package/dist/storage-signer.js
CHANGED
|
@@ -6,30 +6,31 @@ import {
|
|
|
6
6
|
pollUntilBulletinAuthorized,
|
|
7
7
|
readBulletinSlotSigner,
|
|
8
8
|
waitForBulletinAuthorization,
|
|
9
|
+
withTransientRetry,
|
|
9
10
|
writeBulletinSlotKey
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-N7KXNIH4.js";
|
|
12
|
+
import "./chunk-JGS6QR5X.js";
|
|
12
13
|
import "./chunk-GRPLHUYC.js";
|
|
13
14
|
import "./chunk-HOTQDYHD.js";
|
|
14
15
|
import "./chunk-IW3X2MJF.js";
|
|
15
16
|
import "./chunk-KOSF5FDO.js";
|
|
16
17
|
import "./chunk-J3NIXHZZ.js";
|
|
17
18
|
import "./chunk-S7EM5VMW.js";
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-IR5BHZ2S.js";
|
|
20
|
+
import "./chunk-UPA5PEQA.js";
|
|
21
|
+
import "./chunk-FGCBIUMT.js";
|
|
21
22
|
import "./chunk-C2TS5MER.js";
|
|
22
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-WVVRMGKN.js";
|
|
23
24
|
import "./chunk-JQKKMUCT.js";
|
|
24
25
|
import "./chunk-5FLTDWWP.js";
|
|
25
26
|
import "./chunk-RIRDBSBG.js";
|
|
26
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-NRSIBGBP.js";
|
|
27
28
|
import "./chunk-TSPERKUS.js";
|
|
28
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-S62H6TWE.js";
|
|
29
30
|
import "./chunk-SI2ZUOYD.js";
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-XVQICFTB.js";
|
|
32
|
+
import "./chunk-LRJTODL2.js";
|
|
33
|
+
import "./chunk-DDC6NKE3.js";
|
|
33
34
|
import "./chunk-JSYQ3JQS.js";
|
|
34
35
|
import "./chunk-ZOC4GITL.js";
|
|
35
36
|
export {
|
|
@@ -40,5 +41,6 @@ export {
|
|
|
40
41
|
pollUntilBulletinAuthorized,
|
|
41
42
|
readBulletinSlotSigner,
|
|
42
43
|
waitForBulletinAuthorization,
|
|
44
|
+
withTransientRetry,
|
|
43
45
|
writeBulletinSlotKey
|
|
44
46
|
};
|
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-UPA5PEQA.js";
|
|
15
|
+
import "./chunk-LRJTODL2.js";
|
|
16
|
+
import "./chunk-DDC6NKE3.js";
|
|
17
17
|
export {
|
|
18
18
|
assessVersion,
|
|
19
19
|
checkNodeVersion,
|
package/package.json
CHANGED
|
@@ -30,6 +30,12 @@ const FLAKE_PATTERNS = [
|
|
|
30
30
|
"Account mapping did not take effect", // Revive mapping race
|
|
31
31
|
"requires Node.js >=22", // parity-default runner downgrade (Node v18) — infra flake
|
|
32
32
|
"received a shutdown signal", // runner process killed mid-job — CI infra flake
|
|
33
|
+
// Chain/block-inclusion timeouts — top transient error class on
|
|
34
|
+
// paseo-next-v2 during the 2026-07 finality-lag incidents (#1050).
|
|
35
|
+
"waiting for block confirmation",
|
|
36
|
+
"transaction watcher silent for",
|
|
37
|
+
"of chain progress (budget=",
|
|
38
|
+
"did not settle within",
|
|
33
39
|
];
|
|
34
40
|
|
|
35
41
|
// output: combined stdout+stderr text from the child. Any flake pattern
|