@parity/product-deploy 0.9.0-rc.6 → 0.10.0-rc.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/bin/bulletin-deploy +44 -11
- package/dist/auth-config.js +3 -3
- package/dist/bug-report.js +4 -4
- package/dist/{chunk-ZL7KBV52.js → chunk-2BTYPNYW.js} +1 -1
- package/dist/{chunk-NRDXKYWQ.js → chunk-DY7RVMM5.js} +63 -21
- package/dist/{chunk-NEWDQKA3.js → chunk-G676QAN4.js} +2 -2
- package/dist/{chunk-6GGRUTTC.js → chunk-GJTVPP7E.js} +1 -1
- package/dist/{chunk-SHQZFLPN.js → chunk-HUT626G6.js} +1 -1
- package/dist/{chunk-LIAEGW76.js → chunk-MI5B3UCM.js} +1 -1
- package/dist/{chunk-HGEYWE2P.js → chunk-PKQOUCPD.js} +1 -1
- package/dist/{chunk-2XBLLNDK.js → chunk-Q3RIJ7PU.js} +2 -2
- package/dist/{chunk-T4WUEPAS.js → chunk-VR3LF62E.js} +105 -23
- package/dist/{chunk-ELX3YZQG.js → chunk-ZJCTG7HF.js} +3 -3
- package/dist/chunk-probe.js +3 -3
- package/dist/commands/login.js +12 -12
- package/dist/commands/logout.js +4 -4
- package/dist/commands/transfer.d.ts +14 -0
- package/dist/commands/transfer.js +66 -0
- package/dist/commands/whoami.js +3 -3
- package/dist/deploy-actors.d.ts +23 -0
- package/dist/deploy-actors.js +43 -0
- package/dist/deploy.d.ts +7 -0
- package/dist/deploy.js +9 -9
- package/dist/dotns.d.ts +32 -3
- package/dist/dotns.js +13 -5
- package/dist/index.js +14 -14
- package/dist/manifest/publish.js +10 -10
- package/dist/memory-report.js +2 -2
- package/dist/merkle.js +9 -9
- package/dist/personhood/bootstrap.js +9 -9
- package/dist/personhood/people-client.js +3 -3
- package/dist/run-state.js +1 -1
- package/dist/sss-allowance-cache.js +4 -4
- package/dist/storage-signer.js +9 -9
- package/dist/telemetry.js +2 -2
- package/dist/version-check.js +3 -3
- package/package.json +3 -3
package/dist/commands/login.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
+
import {
|
|
2
|
+
startSpinner
|
|
3
|
+
} from "../chunk-J7CYVTAW.js";
|
|
1
4
|
import "../chunk-JQKKMUCT.js";
|
|
2
5
|
import "../chunk-DHY2ZXVZ.js";
|
|
3
6
|
import {
|
|
4
7
|
renderLoginStatus
|
|
5
8
|
} from "../chunk-RIRDBSBG.js";
|
|
6
|
-
import {
|
|
7
|
-
startSpinner
|
|
8
|
-
} from "../chunk-J7CYVTAW.js";
|
|
9
9
|
import {
|
|
10
10
|
waitForBulletinAuthorization
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-DY7RVMM5.js";
|
|
12
12
|
import {
|
|
13
13
|
preflightSssAllowance
|
|
14
|
-
} from "../chunk-
|
|
14
|
+
} from "../chunk-GJTVPP7E.js";
|
|
15
15
|
import {
|
|
16
16
|
statementSigningAccount
|
|
17
17
|
} from "../chunk-GRPLHUYC.js";
|
|
@@ -25,15 +25,15 @@ import {
|
|
|
25
25
|
getAuthClient,
|
|
26
26
|
getPeopleChainEndpoints,
|
|
27
27
|
resolveBulletinEndpoints
|
|
28
|
-
} from "../chunk-
|
|
29
|
-
import "../chunk-
|
|
30
|
-
import "../chunk-
|
|
31
|
-
import "../chunk-
|
|
28
|
+
} from "../chunk-PKQOUCPD.js";
|
|
29
|
+
import "../chunk-G676QAN4.js";
|
|
30
|
+
import "../chunk-MI5B3UCM.js";
|
|
31
|
+
import "../chunk-HUT626G6.js";
|
|
32
32
|
import "../chunk-C2TS5MER.js";
|
|
33
|
-
import "../chunk-
|
|
33
|
+
import "../chunk-VR3LF62E.js";
|
|
34
34
|
import "../chunk-4PVJ2JBZ.js";
|
|
35
|
-
import "../chunk-
|
|
36
|
-
import "../chunk-
|
|
35
|
+
import "../chunk-2BTYPNYW.js";
|
|
36
|
+
import "../chunk-ZJCTG7HF.js";
|
|
37
37
|
import {
|
|
38
38
|
loadEnvironments
|
|
39
39
|
} from "../chunk-GL3U7K2B.js";
|
package/dist/commands/logout.js
CHANGED
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
} from "../chunk-RIRDBSBG.js";
|
|
6
6
|
import {
|
|
7
7
|
clearSssAllowanceCache
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-GJTVPP7E.js";
|
|
9
9
|
import "../chunk-GRPLHUYC.js";
|
|
10
10
|
import {
|
|
11
11
|
getAuthClient
|
|
12
|
-
} from "../chunk-
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
12
|
+
} from "../chunk-PKQOUCPD.js";
|
|
13
|
+
import "../chunk-2BTYPNYW.js";
|
|
14
|
+
import "../chunk-ZJCTG7HF.js";
|
|
15
15
|
import "../chunk-GL3U7K2B.js";
|
|
16
16
|
import "../chunk-ZOC4GITL.js";
|
|
17
17
|
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
interface TransferRecipientContext {
|
|
2
|
+
sessionH160?: string;
|
|
3
|
+
}
|
|
4
|
+
/** Pure: pick the recipient H160 from --to (0x) or the signed-in session.
|
|
5
|
+
* Label/SS58 recipient resolution is intentionally out of scope for the
|
|
6
|
+
* recovery command — it takes an explicit 0x address or the live session. */
|
|
7
|
+
declare function resolveTransferRecipient(to: string | undefined, ctx: TransferRecipientContext): Promise<string>;
|
|
8
|
+
declare function runTransfer(envId: string, opts: {
|
|
9
|
+
label?: string;
|
|
10
|
+
to?: string;
|
|
11
|
+
mnemonic?: string;
|
|
12
|
+
}): Promise<void>;
|
|
13
|
+
|
|
14
|
+
export { type TransferRecipientContext, resolveTransferRecipient, runTransfer };
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DEFAULT_MNEMONIC,
|
|
3
|
+
DotNS
|
|
4
|
+
} from "../chunk-VR3LF62E.js";
|
|
5
|
+
import "../chunk-4PVJ2JBZ.js";
|
|
6
|
+
import "../chunk-2BTYPNYW.js";
|
|
7
|
+
import "../chunk-ZJCTG7HF.js";
|
|
8
|
+
import {
|
|
9
|
+
getPopSelfServeConfig,
|
|
10
|
+
loadEnvironments,
|
|
11
|
+
resolveEndpoints
|
|
12
|
+
} from "../chunk-GL3U7K2B.js";
|
|
13
|
+
import "../chunk-ZOC4GITL.js";
|
|
14
|
+
|
|
15
|
+
// src/commands/transfer.ts
|
|
16
|
+
async function resolveTransferRecipient(to, ctx) {
|
|
17
|
+
if (to && to.startsWith("0x") && to.length === 42) return to;
|
|
18
|
+
if (to) throw new Error(`--to must be a 0x H160 address (got "${to}").`);
|
|
19
|
+
if (ctx.sessionH160) return ctx.sessionH160;
|
|
20
|
+
throw new Error("No recipient: pass --to <0xH160> or sign in first (no session found).");
|
|
21
|
+
}
|
|
22
|
+
async function runTransfer(envId, opts) {
|
|
23
|
+
const label = (opts.label ?? "").replace(/\.dot$/, "");
|
|
24
|
+
if (!label) {
|
|
25
|
+
throw new Error("Usage: bulletin-deploy transfer <label> [--to <0xH160>] [--mnemonic <key>]");
|
|
26
|
+
}
|
|
27
|
+
let sessionH160;
|
|
28
|
+
if (!opts.to) {
|
|
29
|
+
const { getAuthClient } = await import("../auth-config.js");
|
|
30
|
+
const authClient = await getAuthClient(envId);
|
|
31
|
+
const handle = await authClient.getSessionSigner();
|
|
32
|
+
if (handle) {
|
|
33
|
+
sessionH160 = handle.addresses.productH160;
|
|
34
|
+
handle.destroy();
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
const recipient = await resolveTransferRecipient(opts.to, { sessionH160 });
|
|
38
|
+
const { doc } = await loadEnvironments();
|
|
39
|
+
const resolved = resolveEndpoints(doc, envId);
|
|
40
|
+
const dotns = new DotNS();
|
|
41
|
+
await dotns.connect({
|
|
42
|
+
mnemonic: opts.mnemonic ?? DEFAULT_MNEMONIC,
|
|
43
|
+
rpc: resolved.assetHub[0],
|
|
44
|
+
assetHubEndpoints: resolved.assetHub,
|
|
45
|
+
autoAccountMapping: resolved.autoAccountMapping,
|
|
46
|
+
environmentId: envId,
|
|
47
|
+
contracts: Object.keys(resolved.contracts).length > 0 ? resolved.contracts : void 0,
|
|
48
|
+
nativeToEthRatio: resolved.nativeToEthRatio,
|
|
49
|
+
popSelfServe: getPopSelfServeConfig(doc, envId),
|
|
50
|
+
registerStorageDeposit: resolved.registerStorageDeposit
|
|
51
|
+
});
|
|
52
|
+
try {
|
|
53
|
+
const result = await dotns.transferName(label, recipient, (s) => console.log(` ${s}`));
|
|
54
|
+
if (result.status === "skipped-already-owned") {
|
|
55
|
+
console.log(`\u2713 ${label}.dot is already owned by ${recipient}. Nothing to do.`);
|
|
56
|
+
} else {
|
|
57
|
+
console.log(`\u2713 Transferred ${label}.dot to ${recipient}${result.txHash ? ` (tx ${result.txHash})` : ""}.`);
|
|
58
|
+
}
|
|
59
|
+
} finally {
|
|
60
|
+
dotns.disconnect();
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
export {
|
|
64
|
+
resolveTransferRecipient,
|
|
65
|
+
runTransfer
|
|
66
|
+
};
|
package/dist/commands/whoami.js
CHANGED
|
@@ -2,9 +2,9 @@ import {
|
|
|
2
2
|
STALE_SESSION_MESSAGE,
|
|
3
3
|
getAuthClient,
|
|
4
4
|
hasPersistedSession
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-PKQOUCPD.js";
|
|
6
|
+
import "../chunk-2BTYPNYW.js";
|
|
7
|
+
import "../chunk-ZJCTG7HF.js";
|
|
8
8
|
import "../chunk-GL3U7K2B.js";
|
|
9
9
|
import "../chunk-ZOC4GITL.js";
|
|
10
10
|
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { c as AuthClient } from './auth-C-Pel0AT.js';
|
|
2
|
+
import { R as ResolvedSigner } from './signer-vR6KKC7V.js';
|
|
3
|
+
import '@parity/product-sdk-terminal';
|
|
4
|
+
import 'polkadot-api';
|
|
5
|
+
import '@parity/product-sdk-tx';
|
|
6
|
+
|
|
7
|
+
declare class MainnetDefaultWorkerError extends Error {
|
|
8
|
+
constructor();
|
|
9
|
+
}
|
|
10
|
+
interface DeployActors {
|
|
11
|
+
worker: ResolvedSigner;
|
|
12
|
+
/** Set ⇔ transfer-mode is active (signed in && transfer enabled). */
|
|
13
|
+
recipientH160?: string;
|
|
14
|
+
}
|
|
15
|
+
interface ResolveDeployActorsOptions {
|
|
16
|
+
suri?: string;
|
|
17
|
+
transferEnabled: boolean;
|
|
18
|
+
isTestnet: boolean;
|
|
19
|
+
sessionPresent: boolean;
|
|
20
|
+
}
|
|
21
|
+
declare function resolveDeployActors(authClient: AuthClient, { suri, transferEnabled, isTestnet, sessionPresent }: ResolveDeployActorsOptions): Promise<DeployActors>;
|
|
22
|
+
|
|
23
|
+
export { type DeployActors, MainnetDefaultWorkerError, type ResolveDeployActorsOptions, resolveDeployActors };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import "./chunk-JQKKMUCT.js";
|
|
2
|
+
import {
|
|
3
|
+
resolveSigner
|
|
4
|
+
} from "./chunk-DHY2ZXVZ.js";
|
|
5
|
+
import "./chunk-RIRDBSBG.js";
|
|
6
|
+
import {
|
|
7
|
+
DEFAULT_MNEMONIC
|
|
8
|
+
} from "./chunk-VR3LF62E.js";
|
|
9
|
+
import "./chunk-4PVJ2JBZ.js";
|
|
10
|
+
import "./chunk-2BTYPNYW.js";
|
|
11
|
+
import "./chunk-ZJCTG7HF.js";
|
|
12
|
+
import "./chunk-GL3U7K2B.js";
|
|
13
|
+
import "./chunk-ZOC4GITL.js";
|
|
14
|
+
|
|
15
|
+
// src/deploy-actors.ts
|
|
16
|
+
var DEFAULT_WORKER_SURI = DEFAULT_MNEMONIC;
|
|
17
|
+
var MainnetDefaultWorkerError = class extends Error {
|
|
18
|
+
constructor() {
|
|
19
|
+
super(
|
|
20
|
+
"Refusing to default the deploy worker to Alice on a non-testnet environment. Pass --mnemonic <a funded, sufficiently-verified key> to do the transfer flow, or --no-transfer-to-signedin-user to sign directly with your mobile session."
|
|
21
|
+
);
|
|
22
|
+
this.name = "MainnetDefaultWorkerError";
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
async function resolveDeployActors(authClient, { suri, transferEnabled, isTestnet, sessionPresent }) {
|
|
26
|
+
if (sessionPresent && transferEnabled) {
|
|
27
|
+
if (!suri && !isTestnet) throw new MainnetDefaultWorkerError();
|
|
28
|
+
const worker2 = await resolveSigner(authClient, { suri: suri ?? DEFAULT_WORKER_SURI });
|
|
29
|
+
const handle = await authClient.getSessionSigner();
|
|
30
|
+
if (!handle) throw new Error("transfer mode active but no session resolved; pass --no-transfer-to-signedin-user.");
|
|
31
|
+
try {
|
|
32
|
+
return { worker: worker2, recipientH160: handle.addresses.productH160 };
|
|
33
|
+
} finally {
|
|
34
|
+
handle.destroy();
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
const worker = await resolveSigner(authClient, { suri });
|
|
38
|
+
return { worker };
|
|
39
|
+
}
|
|
40
|
+
export {
|
|
41
|
+
MainnetDefaultWorkerError,
|
|
42
|
+
resolveDeployActors
|
|
43
|
+
};
|
package/dist/deploy.d.ts
CHANGED
|
@@ -231,6 +231,13 @@ interface DeployOptions {
|
|
|
231
231
|
storageSignerAddress?: string;
|
|
232
232
|
/** Secret URI for dev signers (e.g. "//Alice" or a BIP-39 mnemonic). Passed to resolveSigner. */
|
|
233
233
|
suri?: string;
|
|
234
|
+
/** When signed in, deploy with a local worker signer and transfer the finished
|
|
235
|
+
* name to the signed-in account (zero mobile signatures). Default true.
|
|
236
|
+
* CLI: --no-transfer-to-signedin-user sets this false. */
|
|
237
|
+
transferToSignedInUser?: boolean;
|
|
238
|
+
/** Internal: recipient H160 for the post-deploy handover. Set by the resolve
|
|
239
|
+
* branch; callers normally let it be derived. */
|
|
240
|
+
transferTo?: string;
|
|
234
241
|
rpc?: string;
|
|
235
242
|
poolSize?: number;
|
|
236
243
|
password?: string;
|
package/dist/deploy.js
CHANGED
|
@@ -45,23 +45,23 @@ import {
|
|
|
45
45
|
storeDirectoryV2,
|
|
46
46
|
storeFile,
|
|
47
47
|
unpublish
|
|
48
|
-
} from "./chunk-
|
|
49
|
-
import "./chunk-
|
|
48
|
+
} from "./chunk-DY7RVMM5.js";
|
|
49
|
+
import "./chunk-GJTVPP7E.js";
|
|
50
50
|
import "./chunk-GRPLHUYC.js";
|
|
51
51
|
import "./chunk-HOTQDYHD.js";
|
|
52
52
|
import "./chunk-IW3X2MJF.js";
|
|
53
53
|
import "./chunk-KOSF5FDO.js";
|
|
54
54
|
import "./chunk-J3NIXHZZ.js";
|
|
55
55
|
import "./chunk-S7EM5VMW.js";
|
|
56
|
-
import "./chunk-
|
|
57
|
-
import "./chunk-
|
|
58
|
-
import "./chunk-
|
|
59
|
-
import "./chunk-
|
|
56
|
+
import "./chunk-PKQOUCPD.js";
|
|
57
|
+
import "./chunk-G676QAN4.js";
|
|
58
|
+
import "./chunk-MI5B3UCM.js";
|
|
59
|
+
import "./chunk-HUT626G6.js";
|
|
60
60
|
import "./chunk-C2TS5MER.js";
|
|
61
|
-
import "./chunk-
|
|
61
|
+
import "./chunk-VR3LF62E.js";
|
|
62
62
|
import "./chunk-4PVJ2JBZ.js";
|
|
63
|
-
import "./chunk-
|
|
64
|
-
import "./chunk-
|
|
63
|
+
import "./chunk-2BTYPNYW.js";
|
|
64
|
+
import "./chunk-ZJCTG7HF.js";
|
|
65
65
|
import "./chunk-GL3U7K2B.js";
|
|
66
66
|
import {
|
|
67
67
|
EXIT_CODE_NO_RETRY,
|
package/dist/dotns.d.ts
CHANGED
|
@@ -98,9 +98,12 @@ interface DotnsPreflightResult {
|
|
|
98
98
|
};
|
|
99
99
|
}
|
|
100
100
|
declare const MINIMUM_REGISTER_STORAGE_DEPOSIT = 2000000000000n;
|
|
101
|
+
declare function registerDepositWei(userStatus: number, startingPriceWei: bigint): bigint;
|
|
102
|
+
declare function bufferedWeiToNative(weiValue: bigint, nativeToEthRatio: bigint): bigint;
|
|
103
|
+
declare function weiToNative(feeWei: bigint, nativeToEthRatio: bigint): bigint;
|
|
101
104
|
declare function fmtPas(plancks: bigint): string;
|
|
102
105
|
type DotnsSuccessAction = Exclude<DotnsPreflightResult["plannedAction"], "abort">;
|
|
103
|
-
declare function feeFloorFor(plannedAction: DotnsSuccessAction, storageDeposit?: bigint, rentPriceNative?: bigint): bigint;
|
|
106
|
+
declare function feeFloorFor(plannedAction: DotnsSuccessAction, storageDeposit?: bigint, rentPriceNative?: bigint, transferFeeNative?: bigint): bigint;
|
|
104
107
|
declare const RPC_ENDPOINTS: string[];
|
|
105
108
|
declare const CONTRACTS: {
|
|
106
109
|
readonly DOTNS_REGISTRAR: "0x329aAA5b6bEa94E750b2dacBa74Bf41291E6c2BD";
|
|
@@ -124,6 +127,15 @@ declare const WS_HEARTBEAT_TIMEOUT_MS: number;
|
|
|
124
127
|
declare const DOTNS_TX_MAX_ATTEMPTS: number;
|
|
125
128
|
declare function classifyTxRetryDecision(err: unknown): "retry" | "abort";
|
|
126
129
|
declare function dotnsRetryBackoffMs(attempt: number, rand?: () => number): number;
|
|
130
|
+
/**
|
|
131
|
+
* Whether a failed attempt should be retried: only when the error is
|
|
132
|
+
* retry-eligible AND there's a later attempt left in the budget. Extracted so
|
|
133
|
+
* the loop logs EVERY failed attempt consistently (`attempt N/MAX failed`) and
|
|
134
|
+
* the final/aborted attempt is announced rather than breaking silently — the
|
|
135
|
+
* old loop only printed the line when a retry followed, so the last attempt was
|
|
136
|
+
* invisible and the count appeared to stop one short.
|
|
137
|
+
*/
|
|
138
|
+
declare function shouldRetryTxAttempt(attempt: number, maxAttempts: number, decision: "retry" | "abort"): boolean;
|
|
127
139
|
/** Wraps `sink` so that "failed" status events are buffered and only forwarded
|
|
128
140
|
* when `flush()` is called (i.e. on final abort). All other statuses pass
|
|
129
141
|
* through immediately. Call `reset()` at the top of each retry attempt to
|
|
@@ -458,6 +470,21 @@ declare class DotNS {
|
|
|
458
470
|
verifyEffect?: () => Promise<boolean>;
|
|
459
471
|
}): Promise<TxResolution>;
|
|
460
472
|
checkOwnership(label: string, ownerAddress?: string | null): Promise<OwnershipResult>;
|
|
473
|
+
/** Live transfer-fee quote. transferFloor is a pure PopRules view — it
|
|
474
|
+
* classifies the label and reads both tiers, so it works BEFORE the name is
|
|
475
|
+
* registered (unlike quoteTransferFee, which reverts on an unregistered token). */
|
|
476
|
+
quoteTransferFloorNative(label: string, fromH160: string, toH160: string): Promise<{
|
|
477
|
+
feeWei: bigint;
|
|
478
|
+
feeNative: bigint;
|
|
479
|
+
}>;
|
|
480
|
+
/** Hand `label`.dot from the connected signer (the worker, current owner) to
|
|
481
|
+
* `toH160`, paying the transferFloor friction fee. Idempotent: a no-op if the
|
|
482
|
+
* recipient already owns it; errors if a third party does. */
|
|
483
|
+
transferName(label: string, toH160: string, statusCallback?: (status: string) => void): Promise<{
|
|
484
|
+
status: "ok" | "skipped-already-owned";
|
|
485
|
+
txHash?: string;
|
|
486
|
+
feeWei?: bigint;
|
|
487
|
+
}>;
|
|
461
488
|
getUserPopStatus(ownerAddress?: string | null): Promise<number>;
|
|
462
489
|
checkSubdomainOwnership(sublabel: string, parentLabel: string): Promise<OwnershipResult>;
|
|
463
490
|
registerSubdomain(sublabel: string, parentLabel: string): Promise<{
|
|
@@ -531,7 +558,9 @@ declare class DotNS {
|
|
|
531
558
|
getPriceAndValidate(label: string): Promise<PriceValidationResult>;
|
|
532
559
|
finalizeRegistration(registration: any, priceWei: bigint): Promise<void>;
|
|
533
560
|
verifyOwnership(label: string): Promise<void>;
|
|
534
|
-
preflight(label: string
|
|
561
|
+
preflight(label: string, opts?: {
|
|
562
|
+
transferRecipientH160?: string;
|
|
563
|
+
}): Promise<DotnsPreflightResult>;
|
|
535
564
|
private _preflightInternal;
|
|
536
565
|
private gateOnFeeBalance;
|
|
537
566
|
register(label: string, options?: DotNSConnectOptions & {
|
|
@@ -567,4 +596,4 @@ declare class DotNS {
|
|
|
567
596
|
}
|
|
568
597
|
declare const dotns: DotNS;
|
|
569
598
|
|
|
570
|
-
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 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, canRegister, classifyAliasAccountRow, classifyDotnsLabel, classifyTxRetryDecision, computeDomainTokenId, convertToHexString, convertWeiToNative, countTrailingDigits, decodePublisherRevert, dotns, dotnsRetryBackoffMs, feeFloorFor, fetchNonce, fmtPas, formatDispatchError, formatPersonhoodRemediation, formatPopShortfallReason, isCommitmentMature, isCommitmentTimingBarerevert, makeRetryStatusFilter, parseDomainName, parseProofOfPersonhoodStatus, popStatusName, sanitizeDomainLabel, stripTrailingDigits, validateDomainLabel, verifyNonceAdvanced };
|
|
599
|
+
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 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 };
|
package/dist/dotns.js
CHANGED
|
@@ -23,6 +23,7 @@ import {
|
|
|
23
23
|
TX_WALL_CLOCK_CEILING_MS,
|
|
24
24
|
WS_HEARTBEAT_TIMEOUT_MS,
|
|
25
25
|
__formatContractDryRunFailureForTest,
|
|
26
|
+
bufferedWeiToNative,
|
|
26
27
|
canRegister,
|
|
27
28
|
classifyAliasAccountRow,
|
|
28
29
|
classifyDotnsLabel,
|
|
@@ -46,14 +47,17 @@ import {
|
|
|
46
47
|
parseDomainName,
|
|
47
48
|
parseProofOfPersonhoodStatus,
|
|
48
49
|
popStatusName,
|
|
50
|
+
registerDepositWei,
|
|
49
51
|
sanitizeDomainLabel,
|
|
52
|
+
shouldRetryTxAttempt,
|
|
50
53
|
stripTrailingDigits,
|
|
51
54
|
validateDomainLabel,
|
|
52
|
-
verifyNonceAdvanced
|
|
53
|
-
|
|
55
|
+
verifyNonceAdvanced,
|
|
56
|
+
weiToNative
|
|
57
|
+
} from "./chunk-VR3LF62E.js";
|
|
54
58
|
import "./chunk-4PVJ2JBZ.js";
|
|
55
|
-
import "./chunk-
|
|
56
|
-
import "./chunk-
|
|
59
|
+
import "./chunk-2BTYPNYW.js";
|
|
60
|
+
import "./chunk-ZJCTG7HF.js";
|
|
57
61
|
import "./chunk-GL3U7K2B.js";
|
|
58
62
|
import "./chunk-ZOC4GITL.js";
|
|
59
63
|
export {
|
|
@@ -81,6 +85,7 @@ export {
|
|
|
81
85
|
TX_WALL_CLOCK_CEILING_MS,
|
|
82
86
|
WS_HEARTBEAT_TIMEOUT_MS,
|
|
83
87
|
__formatContractDryRunFailureForTest,
|
|
88
|
+
bufferedWeiToNative,
|
|
84
89
|
canRegister,
|
|
85
90
|
classifyAliasAccountRow,
|
|
86
91
|
classifyDotnsLabel,
|
|
@@ -104,8 +109,11 @@ export {
|
|
|
104
109
|
parseDomainName,
|
|
105
110
|
parseProofOfPersonhoodStatus,
|
|
106
111
|
popStatusName,
|
|
112
|
+
registerDepositWei,
|
|
107
113
|
sanitizeDomainLabel,
|
|
114
|
+
shouldRetryTxAttempt,
|
|
108
115
|
stripTrailingDigits,
|
|
109
116
|
validateDomainLabel,
|
|
110
|
-
verifyNonceAdvanced
|
|
117
|
+
verifyNonceAdvanced,
|
|
118
|
+
weiToNative
|
|
111
119
|
};
|
package/dist/index.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
defineConfig
|
|
3
|
-
} from "./chunk-GZD2UFLR.js";
|
|
4
1
|
import {
|
|
5
2
|
loadProductConfig,
|
|
6
3
|
tryLoadProductConfig
|
|
7
4
|
} from "./chunk-MMAZFJDG.js";
|
|
5
|
+
import {
|
|
6
|
+
publishManifest
|
|
7
|
+
} from "./chunk-Q3RIJ7PU.js";
|
|
8
8
|
import {
|
|
9
9
|
validateExecutableManifest,
|
|
10
10
|
validateProductConfig,
|
|
11
11
|
validateRootManifest
|
|
12
12
|
} from "./chunk-LZJMVPYW.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./chunk-
|
|
14
|
+
defineConfig
|
|
15
|
+
} from "./chunk-GZD2UFLR.js";
|
|
16
16
|
import {
|
|
17
17
|
DEFAULT_TEXT_RECORD_BUDGET_BYTES,
|
|
18
18
|
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-DY7RVMM5.js";
|
|
28
|
+
import "./chunk-GJTVPP7E.js";
|
|
29
29
|
import "./chunk-GRPLHUYC.js";
|
|
30
30
|
import "./chunk-HOTQDYHD.js";
|
|
31
31
|
import {
|
|
@@ -49,19 +49,19 @@ import {
|
|
|
49
49
|
isVolatilePath,
|
|
50
50
|
parseManifest
|
|
51
51
|
} from "./chunk-S7EM5VMW.js";
|
|
52
|
-
import "./chunk-
|
|
53
|
-
import "./chunk-
|
|
54
|
-
import "./chunk-
|
|
52
|
+
import "./chunk-PKQOUCPD.js";
|
|
53
|
+
import "./chunk-G676QAN4.js";
|
|
54
|
+
import "./chunk-MI5B3UCM.js";
|
|
55
55
|
import {
|
|
56
56
|
probeChunks
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-HUT626G6.js";
|
|
58
58
|
import "./chunk-C2TS5MER.js";
|
|
59
59
|
import {
|
|
60
60
|
DEFAULT_MNEMONIC,
|
|
61
61
|
DotNS,
|
|
62
62
|
parseDomainName,
|
|
63
63
|
sanitizeDomainLabel
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-VR3LF62E.js";
|
|
65
65
|
import {
|
|
66
66
|
bootstrapPool,
|
|
67
67
|
derivePoolAccounts,
|
|
@@ -69,7 +69,7 @@ import {
|
|
|
69
69
|
fetchPoolAuthorizations,
|
|
70
70
|
selectAccount
|
|
71
71
|
} from "./chunk-4PVJ2JBZ.js";
|
|
72
|
-
import "./chunk-
|
|
72
|
+
import "./chunk-2BTYPNYW.js";
|
|
73
73
|
import {
|
|
74
74
|
VERSION,
|
|
75
75
|
loadRunState,
|
|
@@ -79,7 +79,7 @@ import {
|
|
|
79
79
|
shouldSkipStaleWarning,
|
|
80
80
|
stateFilePath,
|
|
81
81
|
writeRunState
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-ZJCTG7HF.js";
|
|
83
83
|
import {
|
|
84
84
|
DEFAULT_ENV_ID,
|
|
85
85
|
deepMergeEnvironments,
|
package/dist/manifest/publish.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
publishManifest
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-Q3RIJ7PU.js";
|
|
4
4
|
import "../chunk-RI3ZLNPN.js";
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
5
|
+
import "../chunk-DY7RVMM5.js";
|
|
6
|
+
import "../chunk-GJTVPP7E.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-
|
|
16
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-PKQOUCPD.js";
|
|
14
|
+
import "../chunk-G676QAN4.js";
|
|
15
|
+
import "../chunk-MI5B3UCM.js";
|
|
16
|
+
import "../chunk-HUT626G6.js";
|
|
17
17
|
import "../chunk-C2TS5MER.js";
|
|
18
|
-
import "../chunk-
|
|
18
|
+
import "../chunk-VR3LF62E.js";
|
|
19
19
|
import "../chunk-4PVJ2JBZ.js";
|
|
20
|
-
import "../chunk-
|
|
21
|
-
import "../chunk-
|
|
20
|
+
import "../chunk-2BTYPNYW.js";
|
|
21
|
+
import "../chunk-ZJCTG7HF.js";
|
|
22
22
|
import "../chunk-GL3U7K2B.js";
|
|
23
23
|
import "../chunk-ZOC4GITL.js";
|
|
24
24
|
export {
|
package/dist/memory-report.js
CHANGED
package/dist/merkle.js
CHANGED
|
@@ -6,23 +6,23 @@ import {
|
|
|
6
6
|
merkleizeKuboBackend,
|
|
7
7
|
merkleizeWithStableOrder,
|
|
8
8
|
rebuildOrderedCarFromBytes
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-DY7RVMM5.js";
|
|
10
|
+
import "./chunk-GJTVPP7E.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-
|
|
20
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-PKQOUCPD.js";
|
|
18
|
+
import "./chunk-G676QAN4.js";
|
|
19
|
+
import "./chunk-MI5B3UCM.js";
|
|
20
|
+
import "./chunk-HUT626G6.js";
|
|
21
21
|
import "./chunk-C2TS5MER.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-VR3LF62E.js";
|
|
23
23
|
import "./chunk-4PVJ2JBZ.js";
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-2BTYPNYW.js";
|
|
25
|
+
import "./chunk-ZJCTG7HF.js";
|
|
26
26
|
import "./chunk-GL3U7K2B.js";
|
|
27
27
|
import "./chunk-ZOC4GITL.js";
|
|
28
28
|
export {
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import {
|
|
2
|
+
claimPgas
|
|
3
|
+
} from "../chunk-EATOPQFR.js";
|
|
1
4
|
import {
|
|
2
5
|
deriveMemberEntropy,
|
|
3
6
|
deriveMemberKey
|
|
@@ -10,15 +13,12 @@ import "../chunk-EJI3MX4G.js";
|
|
|
10
13
|
import {
|
|
11
14
|
bindPersonalIdToAccount
|
|
12
15
|
} from "../chunk-7URNKK6J.js";
|
|
13
|
-
import {
|
|
14
|
-
runChainPrereqProbes
|
|
15
|
-
} from "../chunk-XAB7WM3S.js";
|
|
16
|
-
import {
|
|
17
|
-
claimPgas
|
|
18
|
-
} from "../chunk-EATOPQFR.js";
|
|
19
16
|
import {
|
|
20
17
|
bytesToHex
|
|
21
18
|
} from "../chunk-ZYVGHDMU.js";
|
|
19
|
+
import {
|
|
20
|
+
runChainPrereqProbes
|
|
21
|
+
} from "../chunk-XAB7WM3S.js";
|
|
22
22
|
import {
|
|
23
23
|
DOTNS_CONTEXT_BYTES,
|
|
24
24
|
PEOPLE_MEMBER_IDENTIFIER_HEX,
|
|
@@ -26,10 +26,10 @@ import {
|
|
|
26
26
|
} from "../chunk-SI2ZUOYD.js";
|
|
27
27
|
import {
|
|
28
28
|
WS_HEARTBEAT_TIMEOUT_MS
|
|
29
|
-
} from "../chunk-
|
|
29
|
+
} from "../chunk-VR3LF62E.js";
|
|
30
30
|
import "../chunk-4PVJ2JBZ.js";
|
|
31
|
-
import "../chunk-
|
|
32
|
-
import "../chunk-
|
|
31
|
+
import "../chunk-2BTYPNYW.js";
|
|
32
|
+
import "../chunk-ZJCTG7HF.js";
|
|
33
33
|
import {
|
|
34
34
|
loadEnvironments
|
|
35
35
|
} from "../chunk-GL3U7K2B.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WS_HEARTBEAT_TIMEOUT_MS
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-VR3LF62E.js";
|
|
4
4
|
import "../chunk-4PVJ2JBZ.js";
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
5
|
+
import "../chunk-2BTYPNYW.js";
|
|
6
|
+
import "../chunk-ZJCTG7HF.js";
|
|
7
7
|
import {
|
|
8
8
|
loadEnvironments
|
|
9
9
|
} from "../chunk-GL3U7K2B.js";
|
package/dist/run-state.js
CHANGED
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
preflightSssAllowance,
|
|
5
5
|
sssPeriodEndSec,
|
|
6
6
|
writeSssAllowanceCache
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-GJTVPP7E.js";
|
|
8
8
|
import "./chunk-GRPLHUYC.js";
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-PKQOUCPD.js";
|
|
10
|
+
import "./chunk-2BTYPNYW.js";
|
|
11
|
+
import "./chunk-ZJCTG7HF.js";
|
|
12
12
|
import "./chunk-GL3U7K2B.js";
|
|
13
13
|
import "./chunk-ZOC4GITL.js";
|
|
14
14
|
export {
|