@parity/product-deploy 0.12.0-rc.1 → 0.12.0-rc.3
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 -4
- package/dist/auth-config.js +3 -3
- package/dist/bug-report.js +4 -4
- package/dist/{chunk-XVQICFTB.js → chunk-4AEFFDHP.js} +64 -0
- package/dist/{chunk-BH7DJ5IW.js → chunk-C4RMQ34G.js} +1 -1
- package/dist/{chunk-W2OSH4GD.js → chunk-CPP3FL6Z.js} +3 -3
- package/dist/{chunk-OOGXTHVQ.js → chunk-FSXZ42KV.js} +8 -8
- package/dist/{chunk-GGXK4DDN.js → chunk-HEY7W4SS.js} +2 -2
- package/dist/{chunk-FVPRBTHT.js → chunk-JDDF46W5.js} +1 -1
- package/dist/{chunk-VIZ6GBQE.js → chunk-JLUOB475.js} +1 -1
- package/dist/{chunk-5BE5PQH6.js → chunk-MJ57II6O.js} +2 -2
- package/dist/{chunk-2NF6QIDF.js → chunk-OVUGO2XL.js} +1 -1
- package/dist/{chunk-52F2ETEG.js → chunk-TT52RW4Z.js} +1 -1
- package/dist/{chunk-PXEFWMJP.js → chunk-WSYCX7G7.js} +2 -2
- package/dist/{chunk-BXW5MBBY.js → chunk-X5S4VWTZ.js} +1 -1
- package/dist/chunk-probe.js +3 -3
- 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.js +11 -11
- package/dist/dotns.js +4 -4
- package/dist/index.d.ts +1 -1
- package/dist/index.js +20 -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/pool.d.ts +12 -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.js +11 -11
- package/dist/telemetry.js +2 -2
- package/dist/version-check.js +3 -3
- package/package.json +1 -1
package/bin/bulletin-bootstrap
CHANGED
|
@@ -4,7 +4,7 @@ import * as fs from "node:fs/promises";
|
|
|
4
4
|
import * as path from "node:path";
|
|
5
5
|
import { fileURLToPath } from "node:url";
|
|
6
6
|
import { DEFAULT_BULLETIN_RPC, DEFAULT_POOL_SIZE } from "../dist/deploy.js";
|
|
7
|
-
import { bootstrapPool, BULLETIN_BLOCKS_PER_DAY, isAutoReauthorizeAllowed } from "../dist/pool.js";
|
|
7
|
+
import { bootstrapPool, BULLETIN_BLOCKS_PER_DAY, isAutoReauthorizeAllowed, ensurePoolAccountsFundedOnAssetHub } from "../dist/pool.js";
|
|
8
8
|
import { VERSION } from "../dist/telemetry.js";
|
|
9
9
|
|
|
10
10
|
const args = process.argv.slice(2);
|
|
@@ -54,8 +54,12 @@ Options:
|
|
|
54
54
|
--env <id> Load environment by id from environments.json
|
|
55
55
|
--pool-size N Number of pool accounts to check/initialize (default: 10)
|
|
56
56
|
--pre-check E2E pre-flight mode (#1059): renew any account expiring
|
|
57
|
-
within 24h, not just already-expired ones.
|
|
58
|
-
|
|
57
|
+
within 24h, not just already-expired ones. Also
|
|
58
|
+
pre-funds each pool account on the env's Asset Hub
|
|
59
|
+
(#1054) so it can pay its own DotNS fees as domain
|
|
60
|
+
owner, transferring serially from Alice ROOT before
|
|
61
|
+
the concurrent E2E matrix runs. Requires --env, and
|
|
62
|
+
is hard-gated to environments where
|
|
59
63
|
environments.json has network != "mainnet" and
|
|
60
64
|
bulletinAutoAuthorize: true — refuses to write
|
|
61
65
|
otherwise, even with --authorizer supplied.
|
|
@@ -74,6 +78,8 @@ const poolSize = flags.poolSize ?? parseInt(process.env.BULLETIN_POOL_SIZE ?? St
|
|
|
74
78
|
const mnemonic = flags.mnemonic ?? process.env.BULLETIN_POOL_MNEMONIC ?? process.env.MNEMONIC;
|
|
75
79
|
|
|
76
80
|
const bootstrapOpts = {};
|
|
81
|
+
let assetHubRpc;
|
|
82
|
+
let envEntry;
|
|
77
83
|
|
|
78
84
|
if (flags.authorizer) {
|
|
79
85
|
bootstrapOpts.authorizerMnemonic = flags.authorizer;
|
|
@@ -90,7 +96,7 @@ if (flags.env) {
|
|
|
90
96
|
process.exit(1);
|
|
91
97
|
}
|
|
92
98
|
|
|
93
|
-
|
|
99
|
+
envEntry = envDoc.environments.find(e => e.id === flags.env);
|
|
94
100
|
if (!envEntry) {
|
|
95
101
|
const valid = envDoc.environments.map(e => e.id).join(", ");
|
|
96
102
|
console.error(`Error: unknown environment '${flags.env}'. Valid: ${valid}.`);
|
|
@@ -105,6 +111,10 @@ if (flags.env) {
|
|
|
105
111
|
}
|
|
106
112
|
}
|
|
107
113
|
|
|
114
|
+
const ahChain = envDoc.chains.find(c => c.id === "asset-hub");
|
|
115
|
+
const ahEp = ahChain?.endpoints?.[flags.env];
|
|
116
|
+
assetHubRpc = Array.isArray(ahEp?.wss) ? ahEp.wss[0] : ahEp?.wss;
|
|
117
|
+
|
|
108
118
|
bootstrapOpts.bulletinAuthorizeV2 = envEntry.bulletinAuthorizeV2 ?? false;
|
|
109
119
|
|
|
110
120
|
if (flags.preCheck) {
|
|
@@ -119,3 +129,12 @@ if (flags.env) {
|
|
|
119
129
|
}
|
|
120
130
|
|
|
121
131
|
await bootstrapPool(rpc, poolSize, mnemonic, bootstrapOpts);
|
|
132
|
+
|
|
133
|
+
if (flags.preCheck && assetHubRpc) {
|
|
134
|
+
// #1054: each pool leg pays its own DotNS fees on Asset Hub now that it's
|
|
135
|
+
// the domain owner — top them up FROM Alice ROOT serially, before the
|
|
136
|
+
// concurrent E2E matrix runs. ensurePoolAccountsFundedOnAssetHub's own
|
|
137
|
+
// isAutoReauthorizeAllowed(envEntry) gate makes this a safe no-op on any
|
|
138
|
+
// non-cleared env.
|
|
139
|
+
await ensurePoolAccountsFundedOnAssetHub(assetHubRpc, poolSize, mnemonic, { envEntry });
|
|
140
|
+
}
|
package/dist/auth-config.js
CHANGED
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
getPeopleChainEndpoints,
|
|
10
10
|
hasPersistedSession,
|
|
11
11
|
resolveBulletinEndpoints
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-OVUGO2XL.js";
|
|
13
13
|
import "./chunk-TSPERKUS.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-TT52RW4Z.js";
|
|
15
|
+
import "./chunk-X5S4VWTZ.js";
|
|
16
16
|
import "./chunk-JSYQ3JQS.js";
|
|
17
17
|
import "./chunk-ZOC4GITL.js";
|
|
18
18
|
export {
|
package/dist/bug-report.js
CHANGED
|
@@ -10,10 +10,10 @@ import {
|
|
|
10
10
|
offerBugReport,
|
|
11
11
|
scrubSecrets,
|
|
12
12
|
setDeployContext
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-CPP3FL6Z.js";
|
|
14
|
+
import "./chunk-JLUOB475.js";
|
|
15
|
+
import "./chunk-TT52RW4Z.js";
|
|
16
|
+
import "./chunk-X5S4VWTZ.js";
|
|
17
17
|
export {
|
|
18
18
|
buildCliFlagsSummary,
|
|
19
19
|
buildLabels,
|
|
@@ -11,6 +11,14 @@ function formatPasBalance(plancks) {
|
|
|
11
11
|
return (Number(plancks) / PAS_DECIMALS_DIVISOR).toFixed(4);
|
|
12
12
|
}
|
|
13
13
|
var DEPLOY_PATH_PREFIX = "//deploy";
|
|
14
|
+
function poolAccountDerivationPath(index) {
|
|
15
|
+
return `${DEPLOY_PATH_PREFIX}/${index}`;
|
|
16
|
+
}
|
|
17
|
+
function assetHubTopUpAmount(balanceRaw, thresholdRaw, targetRaw) {
|
|
18
|
+
if (balanceRaw >= thresholdRaw) return 0n;
|
|
19
|
+
const amount = targetRaw - balanceRaw;
|
|
20
|
+
return amount > 0n ? amount : 0n;
|
|
21
|
+
}
|
|
14
22
|
var TOPUP_TRANSACTIONS = 1e3;
|
|
15
23
|
var TOPUP_BYTES = 100000000n;
|
|
16
24
|
var WS_HEARTBEAT_TIMEOUT_MS = 3e5;
|
|
@@ -147,6 +155,58 @@ async function ensureAuthorized(api, address, label, opts = {}) {
|
|
|
147
155
|
`Bulletin storage account ${who} is not authorized to store. On production the storage account must already carry its own authorization/allowance \u2014 bulletin-deploy cannot grant it.`
|
|
148
156
|
);
|
|
149
157
|
}
|
|
158
|
+
var DEFAULT_ASSET_HUB_TOPUP_THRESHOLD = 1n * BigInt(PAS_DECIMALS_DIVISOR);
|
|
159
|
+
var DEFAULT_ASSET_HUB_TOPUP_TARGET = 2n * BigInt(PAS_DECIMALS_DIVISOR);
|
|
160
|
+
async function ensurePoolAccountsFundedOnAssetHub(assetHubRpc, poolSize, poolMnemonic, opts) {
|
|
161
|
+
if (!isAutoReauthorizeAllowed(opts.envEntry)) {
|
|
162
|
+
console.log(
|
|
163
|
+
`Asset Hub pre-fund skipped: ${opts.envEntry?.network ?? "this environment"} not cleared (testnet-only).`
|
|
164
|
+
);
|
|
165
|
+
return;
|
|
166
|
+
}
|
|
167
|
+
const thresholdRaw = opts.thresholdRaw ?? DEFAULT_ASSET_HUB_TOPUP_THRESHOLD;
|
|
168
|
+
const targetRaw = opts.targetRaw ?? DEFAULT_ASSET_HUB_TOPUP_TARGET;
|
|
169
|
+
await cryptoWaitReady();
|
|
170
|
+
const accounts = derivePoolAccounts(poolSize, poolMnemonic);
|
|
171
|
+
const entropy = mnemonicToEntropy(opts.funderMnemonic ?? DEV_PHRASE);
|
|
172
|
+
const miniSecret = entropyToMiniSecret(entropy);
|
|
173
|
+
const derive = sr25519CreateDerive(miniSecret);
|
|
174
|
+
const funderKeyPair = derive(opts.funderDerivationPath ?? "");
|
|
175
|
+
const funderSigner = getPolkadotSigner(funderKeyPair.publicKey, "Sr25519", funderKeyPair.sign);
|
|
176
|
+
console.log(`Pre-funding ${accounts.length} pool account(s) on Asset Hub (${assetHubRpc})...
|
|
177
|
+
`);
|
|
178
|
+
const client = createClient(getWsProvider(
|
|
179
|
+
assetHubRpc,
|
|
180
|
+
{ heartbeatTimeout: WS_HEARTBEAT_TIMEOUT_MS }
|
|
181
|
+
));
|
|
182
|
+
const api = client.getUnsafeApi();
|
|
183
|
+
try {
|
|
184
|
+
let fundedCount = 0;
|
|
185
|
+
for (const acct of accounts) {
|
|
186
|
+
const info = await api.query.System.Account.getValue(acct.address);
|
|
187
|
+
const free = BigInt(info?.data?.free ?? 0n);
|
|
188
|
+
const topUp = assetHubTopUpAmount(free, thresholdRaw, targetRaw);
|
|
189
|
+
if (topUp === 0n) {
|
|
190
|
+
console.log(` [${acct.index}] ${acct.address} OK (${formatPasBalance(free)} PAS)`);
|
|
191
|
+
continue;
|
|
192
|
+
}
|
|
193
|
+
const tx = api.tx.Balances.transfer_allow_death({
|
|
194
|
+
dest: Enum("Id", acct.address),
|
|
195
|
+
value: topUp
|
|
196
|
+
});
|
|
197
|
+
const result = await tx.signAndSubmit(funderSigner);
|
|
198
|
+
if (!result?.ok) {
|
|
199
|
+
throw new Error(`Asset Hub pre-fund transfer to ${acct.address} failed: dispatch was rejected.`);
|
|
200
|
+
}
|
|
201
|
+
fundedCount++;
|
|
202
|
+
console.log(` [${acct.index}] ${acct.address} funded +${formatPasBalance(topUp)} PAS`);
|
|
203
|
+
}
|
|
204
|
+
console.log(`
|
|
205
|
+
Asset Hub pre-fund complete: ${fundedCount}/${accounts.length} account(s) topped up.`);
|
|
206
|
+
} finally {
|
|
207
|
+
client.destroy();
|
|
208
|
+
}
|
|
209
|
+
}
|
|
150
210
|
function printAuthStatus(a, currentBlock) {
|
|
151
211
|
if (isAuthorizationSufficient(a, currentBlock)) {
|
|
152
212
|
const mb = (Number(a.bytes) / 1e6).toFixed(1);
|
|
@@ -242,6 +302,9 @@ ${details}`
|
|
|
242
302
|
|
|
243
303
|
export {
|
|
244
304
|
formatPasBalance,
|
|
305
|
+
DEPLOY_PATH_PREFIX,
|
|
306
|
+
poolAccountDerivationPath,
|
|
307
|
+
assetHubTopUpAmount,
|
|
245
308
|
derivePoolAccounts,
|
|
246
309
|
isAuthorizationSufficient,
|
|
247
310
|
accountsNeedingAuthorization,
|
|
@@ -255,5 +318,6 @@ export {
|
|
|
255
318
|
detectTestnet,
|
|
256
319
|
_resetTestnetCacheForTests,
|
|
257
320
|
ensureAuthorized,
|
|
321
|
+
ensurePoolAccountsFundedOnAssetHub,
|
|
258
322
|
bootstrapPool
|
|
259
323
|
};
|
|
@@ -2,15 +2,15 @@ import {
|
|
|
2
2
|
classifyErrorArea,
|
|
3
3
|
isInteractive,
|
|
4
4
|
promptYesNo
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-JLUOB475.js";
|
|
6
6
|
import {
|
|
7
7
|
VERSION,
|
|
8
8
|
getCurrentSentryTraceId,
|
|
9
9
|
resolveIssueRepoSlug
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-TT52RW4Z.js";
|
|
11
11
|
import {
|
|
12
12
|
package_default
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-X5S4VWTZ.js";
|
|
14
14
|
|
|
15
15
|
// src/bug-report.ts
|
|
16
16
|
import { execSync, execFileSync } from "child_process";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
preflightSssAllowance
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-C4RMQ34G.js";
|
|
4
4
|
import {
|
|
5
5
|
statementSigningAccount
|
|
6
6
|
} from "./chunk-GRPLHUYC.js";
|
|
@@ -31,18 +31,18 @@ import {
|
|
|
31
31
|
} from "./chunk-S7EM5VMW.js";
|
|
32
32
|
import {
|
|
33
33
|
setDeployContext
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-CPP3FL6Z.js";
|
|
35
35
|
import {
|
|
36
36
|
getBestBlockNumber,
|
|
37
37
|
probeChunks,
|
|
38
38
|
probeFinalityGap
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-JDDF46W5.js";
|
|
40
40
|
import {
|
|
41
41
|
packSection
|
|
42
42
|
} from "./chunk-C2TS5MER.js";
|
|
43
43
|
import {
|
|
44
44
|
resolveStorageSigner
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-WSYCX7G7.js";
|
|
46
46
|
import {
|
|
47
47
|
createSlotAccountSigner,
|
|
48
48
|
requestResourceAllocation
|
|
@@ -51,7 +51,7 @@ import {
|
|
|
51
51
|
STALE_SESSION_MESSAGE,
|
|
52
52
|
getPeopleChainEndpoints,
|
|
53
53
|
hasPersistedSession
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-OVUGO2XL.js";
|
|
55
55
|
import {
|
|
56
56
|
CLI_NAME
|
|
57
57
|
} from "./chunk-TSPERKUS.js";
|
|
@@ -64,7 +64,7 @@ import {
|
|
|
64
64
|
parseDomainName,
|
|
65
65
|
popStatusName,
|
|
66
66
|
verifyNonceAdvanced
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-MJ57II6O.js";
|
|
68
68
|
import {
|
|
69
69
|
derivePoolAccounts,
|
|
70
70
|
detectTestnet,
|
|
@@ -72,7 +72,7 @@ import {
|
|
|
72
72
|
fetchPoolAuthorizations,
|
|
73
73
|
isAuthorizationSufficient,
|
|
74
74
|
selectAccount
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-4AEFFDHP.js";
|
|
76
76
|
import {
|
|
77
77
|
VERSION,
|
|
78
78
|
captureWarning,
|
|
@@ -86,7 +86,7 @@ import {
|
|
|
86
86
|
truncateAddress,
|
|
87
87
|
withDeploySpan,
|
|
88
88
|
withSpan
|
|
89
|
-
} from "./chunk-
|
|
89
|
+
} from "./chunk-TT52RW4Z.js";
|
|
90
90
|
import {
|
|
91
91
|
DEFAULT_ENV_ID,
|
|
92
92
|
getPopSelfServeConfig,
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
resolveDotnsConnectOptions,
|
|
8
8
|
storeDirectory,
|
|
9
9
|
storeFile
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-FSXZ42KV.js";
|
|
11
11
|
import {
|
|
12
12
|
DotNS
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-MJ57II6O.js";
|
|
14
14
|
import {
|
|
15
15
|
getPopSelfServeConfig,
|
|
16
16
|
loadEnvironments,
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-SI2ZUOYD.js";
|
|
4
4
|
import {
|
|
5
5
|
isTestnetSpecName
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-4AEFFDHP.js";
|
|
7
7
|
import {
|
|
8
8
|
captureWarning,
|
|
9
9
|
markCodePath,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
setDeploySentryTag,
|
|
12
12
|
truncateAddress,
|
|
13
13
|
withSpan
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-TT52RW4Z.js";
|
|
15
15
|
import {
|
|
16
16
|
validateContractAddresses
|
|
17
17
|
} from "./chunk-JSYQ3JQS.js";
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
} from "./chunk-5FLTDWWP.js";
|
|
5
5
|
import {
|
|
6
6
|
DOT_PRODUCT_ID
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-OVUGO2XL.js";
|
|
8
8
|
import {
|
|
9
9
|
DEFAULT_MNEMONIC
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-MJ57II6O.js";
|
|
11
11
|
|
|
12
12
|
// src/deploy-actors.ts
|
|
13
13
|
var DEFAULT_WORKER_SURI = DEFAULT_MNEMONIC;
|
package/dist/chunk-probe.js
CHANGED
|
@@ -8,9 +8,9 @@ import {
|
|
|
8
8
|
getBestBlockNumber,
|
|
9
9
|
probeChunks,
|
|
10
10
|
probeFinalityGap
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-JDDF46W5.js";
|
|
12
|
+
import "./chunk-TT52RW4Z.js";
|
|
13
|
+
import "./chunk-X5S4VWTZ.js";
|
|
14
14
|
export {
|
|
15
15
|
ChainProbeCrossValidationError,
|
|
16
16
|
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-FSXZ42KV.js";
|
|
7
7
|
import {
|
|
8
8
|
preflightSssAllowance
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-C4RMQ34G.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-CPP3FL6Z.js";
|
|
19
|
+
import "../chunk-JLUOB475.js";
|
|
20
|
+
import "../chunk-JDDF46W5.js";
|
|
21
21
|
import "../chunk-C2TS5MER.js";
|
|
22
|
-
import "../chunk-
|
|
22
|
+
import "../chunk-WSYCX7G7.js";
|
|
23
23
|
import "../chunk-JQKKMUCT.js";
|
|
24
24
|
import {
|
|
25
25
|
BULLETIN_RESOURCE,
|
|
@@ -36,15 +36,15 @@ import {
|
|
|
36
36
|
getAuthClient,
|
|
37
37
|
getPeopleChainEndpoints,
|
|
38
38
|
resolveBulletinEndpoints
|
|
39
|
-
} from "../chunk-
|
|
39
|
+
} from "../chunk-OVUGO2XL.js";
|
|
40
40
|
import {
|
|
41
41
|
CLI_NAME
|
|
42
42
|
} from "../chunk-TSPERKUS.js";
|
|
43
|
-
import "../chunk-
|
|
43
|
+
import "../chunk-MJ57II6O.js";
|
|
44
44
|
import "../chunk-SI2ZUOYD.js";
|
|
45
|
-
import "../chunk-
|
|
46
|
-
import "../chunk-
|
|
47
|
-
import "../chunk-
|
|
45
|
+
import "../chunk-4AEFFDHP.js";
|
|
46
|
+
import "../chunk-TT52RW4Z.js";
|
|
47
|
+
import "../chunk-X5S4VWTZ.js";
|
|
48
48
|
import {
|
|
49
49
|
loadEnvironments
|
|
50
50
|
} from "../chunk-JSYQ3JQS.js";
|
package/dist/commands/logout.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
clearSssAllowanceCache
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-C4RMQ34G.js";
|
|
4
4
|
import "../chunk-GRPLHUYC.js";
|
|
5
5
|
import "../chunk-JQKKMUCT.js";
|
|
6
6
|
import "../chunk-5FLTDWWP.js";
|
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
} from "../chunk-RIRDBSBG.js";
|
|
10
10
|
import {
|
|
11
11
|
getAuthClient
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-OVUGO2XL.js";
|
|
13
13
|
import "../chunk-TSPERKUS.js";
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
14
|
+
import "../chunk-TT52RW4Z.js";
|
|
15
|
+
import "../chunk-X5S4VWTZ.js";
|
|
16
16
|
import "../chunk-JSYQ3JQS.js";
|
|
17
17
|
import "../chunk-ZOC4GITL.js";
|
|
18
18
|
|
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
DEFAULT_MNEMONIC,
|
|
6
6
|
DotNS
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-MJ57II6O.js";
|
|
8
8
|
import "../chunk-SI2ZUOYD.js";
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-4AEFFDHP.js";
|
|
10
|
+
import "../chunk-TT52RW4Z.js";
|
|
11
|
+
import "../chunk-X5S4VWTZ.js";
|
|
12
12
|
import {
|
|
13
13
|
getPopSelfServeConfig,
|
|
14
14
|
loadEnvironments,
|
package/dist/commands/whoami.js
CHANGED
|
@@ -2,12 +2,12 @@ import {
|
|
|
2
2
|
STALE_SESSION_MESSAGE,
|
|
3
3
|
getAuthClient,
|
|
4
4
|
hasPersistedSession
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-OVUGO2XL.js";
|
|
6
6
|
import {
|
|
7
7
|
CLI_NAME
|
|
8
8
|
} from "../chunk-TSPERKUS.js";
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-TT52RW4Z.js";
|
|
10
|
+
import "../chunk-X5S4VWTZ.js";
|
|
11
11
|
import "../chunk-JSYQ3JQS.js";
|
|
12
12
|
import "../chunk-ZOC4GITL.js";
|
|
13
13
|
|
package/dist/deploy-actors.js
CHANGED
|
@@ -2,17 +2,17 @@ import {
|
|
|
2
2
|
MainnetDefaultWorkerError,
|
|
3
3
|
resolveDeployActors,
|
|
4
4
|
resolveStorageSigner
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-WSYCX7G7.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-OVUGO2XL.js";
|
|
10
10
|
import "./chunk-TSPERKUS.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-MJ57II6O.js";
|
|
12
12
|
import "./chunk-SI2ZUOYD.js";
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-4AEFFDHP.js";
|
|
14
|
+
import "./chunk-TT52RW4Z.js";
|
|
15
|
+
import "./chunk-X5S4VWTZ.js";
|
|
16
16
|
import "./chunk-JSYQ3JQS.js";
|
|
17
17
|
import "./chunk-ZOC4GITL.js";
|
|
18
18
|
export {
|
package/dist/deploy.js
CHANGED
|
@@ -55,29 +55,29 @@ import {
|
|
|
55
55
|
storeDirectoryV2,
|
|
56
56
|
storeFile,
|
|
57
57
|
unpublish
|
|
58
|
-
} from "./chunk-
|
|
59
|
-
import "./chunk-
|
|
58
|
+
} from "./chunk-FSXZ42KV.js";
|
|
59
|
+
import "./chunk-C4RMQ34G.js";
|
|
60
60
|
import "./chunk-GRPLHUYC.js";
|
|
61
61
|
import "./chunk-HOTQDYHD.js";
|
|
62
62
|
import "./chunk-IW3X2MJF.js";
|
|
63
63
|
import "./chunk-KOSF5FDO.js";
|
|
64
64
|
import "./chunk-J3NIXHZZ.js";
|
|
65
65
|
import "./chunk-S7EM5VMW.js";
|
|
66
|
-
import "./chunk-
|
|
67
|
-
import "./chunk-
|
|
68
|
-
import "./chunk-
|
|
66
|
+
import "./chunk-CPP3FL6Z.js";
|
|
67
|
+
import "./chunk-JLUOB475.js";
|
|
68
|
+
import "./chunk-JDDF46W5.js";
|
|
69
69
|
import "./chunk-C2TS5MER.js";
|
|
70
|
-
import "./chunk-
|
|
70
|
+
import "./chunk-WSYCX7G7.js";
|
|
71
71
|
import "./chunk-JQKKMUCT.js";
|
|
72
72
|
import "./chunk-5FLTDWWP.js";
|
|
73
73
|
import "./chunk-RIRDBSBG.js";
|
|
74
|
-
import "./chunk-
|
|
74
|
+
import "./chunk-OVUGO2XL.js";
|
|
75
75
|
import "./chunk-TSPERKUS.js";
|
|
76
|
-
import "./chunk-
|
|
76
|
+
import "./chunk-MJ57II6O.js";
|
|
77
77
|
import "./chunk-SI2ZUOYD.js";
|
|
78
|
-
import "./chunk-
|
|
79
|
-
import "./chunk-
|
|
80
|
-
import "./chunk-
|
|
78
|
+
import "./chunk-4AEFFDHP.js";
|
|
79
|
+
import "./chunk-TT52RW4Z.js";
|
|
80
|
+
import "./chunk-X5S4VWTZ.js";
|
|
81
81
|
import "./chunk-JSYQ3JQS.js";
|
|
82
82
|
import {
|
|
83
83
|
EXIT_CODE_NO_RETRY,
|
package/dist/dotns.js
CHANGED
|
@@ -61,11 +61,11 @@ import {
|
|
|
61
61
|
verifyEffectWithGrace,
|
|
62
62
|
verifyNonceAdvanced,
|
|
63
63
|
weiToNative
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-MJ57II6O.js";
|
|
65
65
|
import "./chunk-SI2ZUOYD.js";
|
|
66
|
-
import "./chunk-
|
|
67
|
-
import "./chunk-
|
|
68
|
-
import "./chunk-
|
|
66
|
+
import "./chunk-4AEFFDHP.js";
|
|
67
|
+
import "./chunk-TT52RW4Z.js";
|
|
68
|
+
import "./chunk-X5S4VWTZ.js";
|
|
69
69
|
import "./chunk-JSYQ3JQS.js";
|
|
70
70
|
import "./chunk-ZOC4GITL.js";
|
|
71
71
|
export {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { DeployContent, DeployOptions, DeployResult, deploy } from './deploy.js';
|
|
2
|
-
export { AutoReauthorizeEnv, BULLETIN_BLOCKS_PER_DAY, BootstrapPoolOptions, PoolAccount, PoolAuthorization, accountsNeedingReauthorization, bootstrapPool, derivePoolAccounts, ensureAuthorized, fetchPoolAuthorizations, isAutoReauthorizeAllowed, selectAccount } from './pool.js';
|
|
2
|
+
export { AutoReauthorizeEnv, BULLETIN_BLOCKS_PER_DAY, BootstrapPoolOptions, DEPLOY_PATH_PREFIX, EnsurePoolFundedOptions, PoolAccount, PoolAuthorization, accountsNeedingReauthorization, assetHubTopUpAmount, bootstrapPool, derivePoolAccounts, ensureAuthorized, ensurePoolAccountsFundedOnAssetHub, fetchPoolAuthorizations, isAutoReauthorizeAllowed, poolAccountDerivationPath, 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-HEY7W4SS.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-FSXZ42KV.js";
|
|
28
|
+
import "./chunk-C4RMQ34G.js";
|
|
29
29
|
import "./chunk-GRPLHUYC.js";
|
|
30
30
|
import "./chunk-HOTQDYHD.js";
|
|
31
31
|
import {
|
|
@@ -49,36 +49,40 @@ import {
|
|
|
49
49
|
isVolatilePath,
|
|
50
50
|
parseManifest
|
|
51
51
|
} from "./chunk-S7EM5VMW.js";
|
|
52
|
-
import "./chunk-
|
|
53
|
-
import "./chunk-
|
|
52
|
+
import "./chunk-CPP3FL6Z.js";
|
|
53
|
+
import "./chunk-JLUOB475.js";
|
|
54
54
|
import {
|
|
55
55
|
probeChunks
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-JDDF46W5.js";
|
|
57
57
|
import "./chunk-C2TS5MER.js";
|
|
58
|
-
import "./chunk-
|
|
58
|
+
import "./chunk-WSYCX7G7.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-OVUGO2XL.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-MJ57II6O.js";
|
|
70
70
|
import "./chunk-SI2ZUOYD.js";
|
|
71
71
|
import {
|
|
72
72
|
BULLETIN_BLOCKS_PER_DAY,
|
|
73
|
+
DEPLOY_PATH_PREFIX,
|
|
73
74
|
accountsNeedingReauthorization,
|
|
75
|
+
assetHubTopUpAmount,
|
|
74
76
|
bootstrapPool,
|
|
75
77
|
derivePoolAccounts,
|
|
76
78
|
ensureAuthorized,
|
|
79
|
+
ensurePoolAccountsFundedOnAssetHub,
|
|
77
80
|
fetchPoolAuthorizations,
|
|
78
81
|
isAutoReauthorizeAllowed,
|
|
82
|
+
poolAccountDerivationPath,
|
|
79
83
|
selectAccount
|
|
80
|
-
} from "./chunk-
|
|
81
|
-
import "./chunk-
|
|
84
|
+
} from "./chunk-4AEFFDHP.js";
|
|
85
|
+
import "./chunk-TT52RW4Z.js";
|
|
82
86
|
import {
|
|
83
87
|
VERSION,
|
|
84
88
|
loadRunState,
|
|
@@ -88,7 +92,7 @@ import {
|
|
|
88
92
|
shouldSkipStaleWarning,
|
|
89
93
|
stateFilePath,
|
|
90
94
|
writeRunState
|
|
91
|
-
} from "./chunk-
|
|
95
|
+
} from "./chunk-X5S4VWTZ.js";
|
|
92
96
|
import {
|
|
93
97
|
DEFAULT_ENV_ID,
|
|
94
98
|
deepMergeEnvironments,
|
|
@@ -106,6 +110,7 @@ export {
|
|
|
106
110
|
DEFAULT_ENV_ID,
|
|
107
111
|
DEFAULT_MNEMONIC,
|
|
108
112
|
DEFAULT_TEXT_RECORD_BUDGET_BYTES,
|
|
113
|
+
DEPLOY_PATH_PREFIX,
|
|
109
114
|
DotNS,
|
|
110
115
|
MANIFEST_DIR,
|
|
111
116
|
MANIFEST_FILENAME,
|
|
@@ -115,6 +120,7 @@ export {
|
|
|
115
120
|
VERSION,
|
|
116
121
|
accountsNeedingReauthorization,
|
|
117
122
|
assertWithinBudget,
|
|
123
|
+
assetHubTopUpAmount,
|
|
118
124
|
bootstrapPool,
|
|
119
125
|
classifyFile,
|
|
120
126
|
computeStats,
|
|
@@ -124,6 +130,7 @@ export {
|
|
|
124
130
|
deploy,
|
|
125
131
|
derivePoolAccounts,
|
|
126
132
|
ensureAuthorized,
|
|
133
|
+
ensurePoolAccountsFundedOnAssetHub,
|
|
127
134
|
fetchPoolAuthorizations,
|
|
128
135
|
fetchPreviousManifest,
|
|
129
136
|
finaliseEmbeddedManifest,
|
|
@@ -141,6 +148,7 @@ export {
|
|
|
141
148
|
parseDomainName,
|
|
142
149
|
parseManifest,
|
|
143
150
|
pessimisticSizePreflight,
|
|
151
|
+
poolAccountDerivationPath,
|
|
144
152
|
probablyOomRssMb,
|
|
145
153
|
probeChunks,
|
|
146
154
|
publishManifest,
|
package/dist/manifest/publish.js
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
2
|
publishManifest
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-HEY7W4SS.js";
|
|
4
4
|
import "../chunk-WIMRJK32.js";
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
5
|
+
import "../chunk-FSXZ42KV.js";
|
|
6
|
+
import "../chunk-C4RMQ34G.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-CPP3FL6Z.js";
|
|
14
|
+
import "../chunk-JLUOB475.js";
|
|
15
|
+
import "../chunk-JDDF46W5.js";
|
|
16
16
|
import "../chunk-C2TS5MER.js";
|
|
17
|
-
import "../chunk-
|
|
17
|
+
import "../chunk-WSYCX7G7.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-OVUGO2XL.js";
|
|
22
22
|
import "../chunk-TSPERKUS.js";
|
|
23
|
-
import "../chunk-
|
|
23
|
+
import "../chunk-MJ57II6O.js";
|
|
24
24
|
import "../chunk-SI2ZUOYD.js";
|
|
25
|
-
import "../chunk-
|
|
26
|
-
import "../chunk-
|
|
27
|
-
import "../chunk-
|
|
25
|
+
import "../chunk-4AEFFDHP.js";
|
|
26
|
+
import "../chunk-TT52RW4Z.js";
|
|
27
|
+
import "../chunk-X5S4VWTZ.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-FSXZ42KV.js";
|
|
10
|
+
import "./chunk-C4RMQ34G.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-CPP3FL6Z.js";
|
|
18
|
+
import "./chunk-JLUOB475.js";
|
|
19
|
+
import "./chunk-JDDF46W5.js";
|
|
20
20
|
import "./chunk-C2TS5MER.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-WSYCX7G7.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-OVUGO2XL.js";
|
|
26
26
|
import "./chunk-TSPERKUS.js";
|
|
27
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-MJ57II6O.js";
|
|
28
28
|
import "./chunk-SI2ZUOYD.js";
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-4AEFFDHP.js";
|
|
30
|
+
import "./chunk-TT52RW4Z.js";
|
|
31
|
+
import "./chunk-X5S4VWTZ.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-MJ57II6O.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-4AEFFDHP.js";
|
|
31
|
+
import "../chunk-TT52RW4Z.js";
|
|
32
|
+
import "../chunk-X5S4VWTZ.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-MJ57II6O.js";
|
|
4
4
|
import "../chunk-SI2ZUOYD.js";
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
5
|
+
import "../chunk-4AEFFDHP.js";
|
|
6
|
+
import "../chunk-TT52RW4Z.js";
|
|
7
|
+
import "../chunk-X5S4VWTZ.js";
|
|
8
8
|
import {
|
|
9
9
|
loadEnvironments
|
|
10
10
|
} from "../chunk-JSYQ3JQS.js";
|
package/dist/pool.d.ts
CHANGED
|
@@ -13,6 +13,9 @@ interface PoolAuthorization extends PoolAccount {
|
|
|
13
13
|
bytes: bigint;
|
|
14
14
|
expiration: number;
|
|
15
15
|
}
|
|
16
|
+
declare const DEPLOY_PATH_PREFIX = "//deploy";
|
|
17
|
+
declare function poolAccountDerivationPath(index: number): string;
|
|
18
|
+
declare function assetHubTopUpAmount(balanceRaw: bigint, thresholdRaw: bigint, targetRaw: bigint): bigint;
|
|
16
19
|
declare function derivePoolAccounts(poolSize?: number, mnemonic?: string): PoolAccount[];
|
|
17
20
|
declare function isAuthorizationSufficient(auth: any, currentBlock: number): boolean;
|
|
18
21
|
declare function accountsNeedingAuthorization(auths: PoolAuthorization[], currentBlock: number): PoolAuthorization[];
|
|
@@ -36,6 +39,14 @@ declare function _resetTestnetCacheForTests(): void;
|
|
|
36
39
|
declare function ensureAuthorized(api: any, address: string, label?: string, opts?: {
|
|
37
40
|
autoAuthorize?: boolean;
|
|
38
41
|
}): Promise<void>;
|
|
42
|
+
interface EnsurePoolFundedOptions {
|
|
43
|
+
envEntry: AutoReauthorizeEnv | null | undefined;
|
|
44
|
+
thresholdRaw?: bigint;
|
|
45
|
+
targetRaw?: bigint;
|
|
46
|
+
funderMnemonic?: string;
|
|
47
|
+
funderDerivationPath?: string;
|
|
48
|
+
}
|
|
49
|
+
declare function ensurePoolAccountsFundedOnAssetHub(assetHubRpc: string, poolSize: number, poolMnemonic: string | undefined, opts: EnsurePoolFundedOptions): Promise<void>;
|
|
39
50
|
interface BootstrapPoolOptions {
|
|
40
51
|
authorizerMnemonic?: string;
|
|
41
52
|
bulletinAuthorizeV2?: boolean;
|
|
@@ -44,4 +55,4 @@ interface BootstrapPoolOptions {
|
|
|
44
55
|
}
|
|
45
56
|
declare function bootstrapPool(bulletinRpc: string, poolSize?: number, mnemonic?: string, opts?: BootstrapPoolOptions): Promise<void>;
|
|
46
57
|
|
|
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 };
|
|
58
|
+
export { type AutoReauthorizeEnv, BULLETIN_BLOCKS_PER_DAY, BULLETIN_BLOCK_TIME_SECS, type BootstrapPoolOptions, DEPLOY_PATH_PREFIX, type EnsurePoolFundedOptions, type PoolAccount, type PoolAuthorization, type SelectionResult, _resetTestnetCacheForTests, accountsNeedingAuthorization, accountsNeedingReauthorization, assetHubTopUpAmount, bootstrapPool, derivePoolAccounts, detectTestnet, ensureAuthorized, ensurePoolAccountsFundedOnAssetHub, fetchPoolAuthorizations, formatPasBalance, isAuthorizationSufficient, isAutoReauthorizeAllowed, isTestnetSpecName, poolAccountDerivationPath, selectAccount };
|
package/dist/pool.js
CHANGED
|
@@ -1,34 +1,42 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BULLETIN_BLOCKS_PER_DAY,
|
|
3
3
|
BULLETIN_BLOCK_TIME_SECS,
|
|
4
|
+
DEPLOY_PATH_PREFIX,
|
|
4
5
|
_resetTestnetCacheForTests,
|
|
5
6
|
accountsNeedingAuthorization,
|
|
6
7
|
accountsNeedingReauthorization,
|
|
8
|
+
assetHubTopUpAmount,
|
|
7
9
|
bootstrapPool,
|
|
8
10
|
derivePoolAccounts,
|
|
9
11
|
detectTestnet,
|
|
10
12
|
ensureAuthorized,
|
|
13
|
+
ensurePoolAccountsFundedOnAssetHub,
|
|
11
14
|
fetchPoolAuthorizations,
|
|
12
15
|
formatPasBalance,
|
|
13
16
|
isAuthorizationSufficient,
|
|
14
17
|
isAutoReauthorizeAllowed,
|
|
15
18
|
isTestnetSpecName,
|
|
19
|
+
poolAccountDerivationPath,
|
|
16
20
|
selectAccount
|
|
17
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-4AEFFDHP.js";
|
|
18
22
|
export {
|
|
19
23
|
BULLETIN_BLOCKS_PER_DAY,
|
|
20
24
|
BULLETIN_BLOCK_TIME_SECS,
|
|
25
|
+
DEPLOY_PATH_PREFIX,
|
|
21
26
|
_resetTestnetCacheForTests,
|
|
22
27
|
accountsNeedingAuthorization,
|
|
23
28
|
accountsNeedingReauthorization,
|
|
29
|
+
assetHubTopUpAmount,
|
|
24
30
|
bootstrapPool,
|
|
25
31
|
derivePoolAccounts,
|
|
26
32
|
detectTestnet,
|
|
27
33
|
ensureAuthorized,
|
|
34
|
+
ensurePoolAccountsFundedOnAssetHub,
|
|
28
35
|
fetchPoolAuthorizations,
|
|
29
36
|
formatPasBalance,
|
|
30
37
|
isAuthorizationSufficient,
|
|
31
38
|
isAutoReauthorizeAllowed,
|
|
32
39
|
isTestnetSpecName,
|
|
40
|
+
poolAccountDerivationPath,
|
|
33
41
|
selectAccount
|
|
34
42
|
};
|
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-C4RMQ34G.js";
|
|
8
8
|
import "./chunk-GRPLHUYC.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-OVUGO2XL.js";
|
|
10
10
|
import "./chunk-TSPERKUS.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-TT52RW4Z.js";
|
|
12
|
+
import "./chunk-X5S4VWTZ.js";
|
|
13
13
|
import "./chunk-JSYQ3JQS.js";
|
|
14
14
|
import "./chunk-ZOC4GITL.js";
|
|
15
15
|
export {
|
package/dist/storage-signer.js
CHANGED
|
@@ -8,29 +8,29 @@ import {
|
|
|
8
8
|
waitForBulletinAuthorization,
|
|
9
9
|
withTransientRetry,
|
|
10
10
|
writeBulletinSlotKey
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-FSXZ42KV.js";
|
|
12
|
+
import "./chunk-C4RMQ34G.js";
|
|
13
13
|
import "./chunk-GRPLHUYC.js";
|
|
14
14
|
import "./chunk-HOTQDYHD.js";
|
|
15
15
|
import "./chunk-IW3X2MJF.js";
|
|
16
16
|
import "./chunk-KOSF5FDO.js";
|
|
17
17
|
import "./chunk-J3NIXHZZ.js";
|
|
18
18
|
import "./chunk-S7EM5VMW.js";
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-CPP3FL6Z.js";
|
|
20
|
+
import "./chunk-JLUOB475.js";
|
|
21
|
+
import "./chunk-JDDF46W5.js";
|
|
22
22
|
import "./chunk-C2TS5MER.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-WSYCX7G7.js";
|
|
24
24
|
import "./chunk-JQKKMUCT.js";
|
|
25
25
|
import "./chunk-5FLTDWWP.js";
|
|
26
26
|
import "./chunk-RIRDBSBG.js";
|
|
27
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-OVUGO2XL.js";
|
|
28
28
|
import "./chunk-TSPERKUS.js";
|
|
29
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-MJ57II6O.js";
|
|
30
30
|
import "./chunk-SI2ZUOYD.js";
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-4AEFFDHP.js";
|
|
32
|
+
import "./chunk-TT52RW4Z.js";
|
|
33
|
+
import "./chunk-X5S4VWTZ.js";
|
|
34
34
|
import "./chunk-JSYQ3JQS.js";
|
|
35
35
|
import "./chunk-ZOC4GITL.js";
|
|
36
36
|
export {
|
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-JLUOB475.js";
|
|
15
|
+
import "./chunk-TT52RW4Z.js";
|
|
16
|
+
import "./chunk-X5S4VWTZ.js";
|
|
17
17
|
export {
|
|
18
18
|
assessVersion,
|
|
19
19
|
checkNodeVersion,
|