bulletin-deploy 0.14.2 → 0.15.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/environments.json +18 -16
- package/dist/auth-config.js +4 -4
- package/dist/bug-report.js +4 -4
- package/dist/chain-health.js +3 -3
- package/dist/{chunk-VH2HNQG2.js → chunk-4NYBEKOH.js} +4 -3
- package/dist/{chunk-DHIDLUMK.js → chunk-GA7YKNHY.js} +3 -2
- package/dist/{chunk-GEHOB4PE.js → chunk-H7KYK75H.js} +1 -1
- package/dist/{chunk-U2SZ3ZRI.js → chunk-HLQQIRO5.js} +1 -1
- package/dist/{chunk-HOTQDYHD.js → chunk-HSSM4EB6.js} +10 -5
- package/dist/{chunk-ZPWTXUA6.js → chunk-HVN4RAIP.js} +2 -2
- package/dist/{chunk-XQHRKK7M.js → chunk-KOYZF7DV.js} +19 -16
- package/dist/{chunk-RIQWW2BT.js → chunk-PGFLUWOJ.js} +12 -9
- package/dist/{chunk-UDJAYGYU.js → chunk-TA34CZF5.js} +1 -1
- package/dist/{chunk-37AN2MHU.js → chunk-VCR673AA.js} +2 -2
- package/dist/{chunk-7V4B775S.js → chunk-VP6CIGSH.js} +3 -3
- package/dist/{chunk-FMQLBYOR.js → chunk-VWZH66EP.js} +205 -59
- package/dist/{chunk-CRZSDUWV.js → chunk-WTHGKGHR.js} +1 -1
- package/dist/{chunk-T2S5M6OH.js → chunk-YDH3BU72.js} +1 -1
- package/dist/{chunk-REB37WWY.js → chunk-YV43J5HI.js} +2 -2
- package/dist/{chunk-6LD3Z2HM.js → chunk-ZHADHYW6.js} +54 -42
- package/dist/chunk-probe.js +3 -3
- package/dist/commands/login.js +13 -13
- package/dist/commands/logout.js +5 -5
- package/dist/commands/transfer.js +19 -12
- package/dist/commands/whoami.js +4 -4
- package/dist/deploy-actors.js +7 -7
- package/dist/deploy.d.ts +11 -20
- package/dist/deploy.js +13 -13
- package/dist/dotns.d.ts +102 -3
- package/dist/dotns.js +17 -5
- package/dist/environments.d.ts +9 -0
- package/dist/environments.js +1 -1
- package/dist/gh-pages-mirror.d.ts +3 -1
- package/dist/gh-pages-mirror.js +9 -1
- package/dist/index.js +16 -16
- package/dist/manifest/config-load.js +2 -2
- package/dist/manifest/publish.js +14 -14
- package/dist/manifest/schema.js +1 -1
- package/dist/memory-report.js +2 -2
- package/dist/merkle.js +13 -13
- package/dist/personhood/bootstrap.js +5 -5
- package/dist/personhood/people-client.js +5 -5
- package/dist/run-state.js +1 -1
- package/dist/sss-allowance-cache.js +5 -5
- package/dist/storage-signer.js +13 -13
- package/dist/telemetry.js +2 -2
- package/dist/version-check.js +3 -3
- package/docs/e2e-bootstrap.md +7 -1
- package/package.json +2 -2
package/assets/environments.json
CHANGED
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
"backend": "https://polkadot-app-stg.parity.io/",
|
|
12
12
|
"ipfs": "https://previewnet.substrate.dev",
|
|
13
13
|
"webGateway": "testnet.li",
|
|
14
|
+
"tld": "dot",
|
|
14
15
|
"autoAccountMapping": true,
|
|
15
16
|
"nativeToEthRatio": 100000000,
|
|
16
17
|
"registerStorageDeposit": 2000000000000,
|
|
@@ -106,6 +107,7 @@
|
|
|
106
107
|
"backend": "https://identity-backend-next.parity-testnet.parity.io",
|
|
107
108
|
"ipfs": "https://paseo-bulletin-next-ipfs.polkadot.io",
|
|
108
109
|
"webGateway": "paseo.li",
|
|
110
|
+
"tld": "paseo",
|
|
109
111
|
"autoAccountMapping": true,
|
|
110
112
|
"nativeToEthRatio": 100000000,
|
|
111
113
|
"registerStorageDeposit": 2000000000000,
|
|
@@ -117,22 +119,22 @@
|
|
|
117
119
|
"stateAwareGuidance": true
|
|
118
120
|
},
|
|
119
121
|
"contracts": {
|
|
120
|
-
"DOTNS_PROTOCOL_REGISTRY": "
|
|
121
|
-
"DOTNS_REGISTRAR": "
|
|
122
|
-
"DOTNS_REGISTRAR_CONTROLLER": "
|
|
123
|
-
"DOTNS_REGISTRY": "
|
|
124
|
-
"DOTNS_POP_CONTROLLER": "
|
|
125
|
-
"ROOT_GATEWAY_DISPATCHER": "
|
|
126
|
-
"DOTNS_RESOLVER": "
|
|
127
|
-
"DOTNS_CONTENT_RESOLVER": "
|
|
128
|
-
"DOTNS_REVERSE_RESOLVER": "
|
|
129
|
-
"DOTNS_POP_RESOLVER": "
|
|
130
|
-
"DOTNS_NAME_ESCROW": "
|
|
131
|
-
"POP_RULES": "
|
|
132
|
-
"STORE_FACTORY": "
|
|
133
|
-
"LABEL_STORE_BEACON": "
|
|
134
|
-
"USER_STORE_BEACON": "
|
|
135
|
-
"
|
|
122
|
+
"DOTNS_PROTOCOL_REGISTRY": "0xD19e3D0C97CF501125a04A97405e3e6592fa846E",
|
|
123
|
+
"DOTNS_REGISTRAR": "0x4f06E818Ba3d987704fd91cf3d868E4b019106Ab",
|
|
124
|
+
"DOTNS_REGISTRAR_CONTROLLER": "0xBdaA01bD1bA67d709F2b1fF286Da0d854977EA30",
|
|
125
|
+
"DOTNS_REGISTRY": "0xf34054fd76BbF85f216cf9908226D5f0A72E50CA",
|
|
126
|
+
"DOTNS_POP_CONTROLLER": "0xCC932348606cc1f3318cADeC5A5Cd2CA447f8a4b",
|
|
127
|
+
"ROOT_GATEWAY_DISPATCHER": "0xa889CCA3Fb4B07b98a11cc54C10f13dDA20bc3db",
|
|
128
|
+
"DOTNS_RESOLVER": "0xbd1165E549DF96F083c0A16f61590927bC187009",
|
|
129
|
+
"DOTNS_CONTENT_RESOLVER": "0x7F74D7CD50f5a834270E2ad395a01b01891AB37d",
|
|
130
|
+
"DOTNS_REVERSE_RESOLVER": "0xee3883d7eB60Ee9BCD7F3bcD8f2f05302A9Cc035",
|
|
131
|
+
"DOTNS_POP_RESOLVER": "0xDaC984884EcA8Fc44011f1D6C49B27828390A72B",
|
|
132
|
+
"DOTNS_NAME_ESCROW": "0x4881Afb78e7C908cAe818168B926229D93376520",
|
|
133
|
+
"POP_RULES": "0x747B456bE03aec0b42bd85C51513730FBD45DA31",
|
|
134
|
+
"STORE_FACTORY": "0x709A027F446a9e2a4BB9cb9a9c754435b19e32B7",
|
|
135
|
+
"LABEL_STORE_BEACON": "0xb57Ebc2e7085616d4906D1fE49af1cE13f7dffeF",
|
|
136
|
+
"USER_STORE_BEACON": "0xb7C995601679840d36F37E86DB2d7dF30797eC5C",
|
|
137
|
+
"MULTICALL3": "0xB4468000abD87D3c56cbFBd153161223D7b109e5"
|
|
136
138
|
}
|
|
137
139
|
},
|
|
138
140
|
{
|
package/dist/auth-config.js
CHANGED
|
@@ -9,12 +9,12 @@ import {
|
|
|
9
9
|
getPeopleChainEndpoints,
|
|
10
10
|
hasPersistedSession,
|
|
11
11
|
resolveBulletinEndpoints
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-YV43J5HI.js";
|
|
13
13
|
import "./chunk-TSPERKUS.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-KOYZF7DV.js";
|
|
15
15
|
import "./chunk-ZOC4GITL.js";
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-4NYBEKOH.js";
|
|
17
|
+
import "./chunk-HVN4RAIP.js";
|
|
18
18
|
export {
|
|
19
19
|
DOT_DAPP_ID,
|
|
20
20
|
DOT_DERIVATION_INDEX,
|
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-VP6CIGSH.js";
|
|
14
|
+
import "./chunk-H7KYK75H.js";
|
|
15
|
+
import "./chunk-4NYBEKOH.js";
|
|
16
|
+
import "./chunk-HVN4RAIP.js";
|
|
17
17
|
export {
|
|
18
18
|
buildCliFlagsSummary,
|
|
19
19
|
buildLabels,
|
package/dist/chain-health.js
CHANGED
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
DEFAULT_WINDOW_BLOCKS,
|
|
4
4
|
MAX_SPANS_PER_SAMPLER,
|
|
5
5
|
endpointHost
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-TA34CZF5.js";
|
|
7
|
+
import "./chunk-4NYBEKOH.js";
|
|
8
|
+
import "./chunk-HVN4RAIP.js";
|
|
9
9
|
export {
|
|
10
10
|
ChainHealthSampler,
|
|
11
11
|
DEFAULT_WINDOW_BLOCKS,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
package_default,
|
|
3
3
|
writeRunState
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-HVN4RAIP.js";
|
|
5
5
|
|
|
6
6
|
// src/memory-report.ts
|
|
7
7
|
import * as fs2 from "fs";
|
|
@@ -333,6 +333,7 @@ function computeDeployOutcome(errorCategory, isSad, sadReason) {
|
|
|
333
333
|
if (isSad) return `sad_${sadReason}`;
|
|
334
334
|
return "clean";
|
|
335
335
|
}
|
|
336
|
+
var TLD_FRAGMENT = "[a-z]{2,}";
|
|
336
337
|
var ERROR_KIND_RULES = [
|
|
337
338
|
[/Contract reverted|Contract execution would revert|revert(?:ed|ing)?\s*\(flags=[0-9]+\)|"type"\s*:\s*"ContractReverted"/i, "contract-revert"],
|
|
338
339
|
[/timed out after \d+s waiting for block|Transaction not included after \d+s|Transaction did not settle within/i, "chain-timeout"],
|
|
@@ -347,7 +348,7 @@ var ERROR_KIND_RULES = [
|
|
|
347
348
|
// it the same way instead of letting it fall into 'unknown'.
|
|
348
349
|
[/No contract deployed at .+ returned empty success data/i, "naming.contract_unavailable"],
|
|
349
350
|
[/Contract call returned empty data — contract=/i, "naming.contract_unavailable"],
|
|
350
|
-
[
|
|
351
|
+
[new RegExp(`Domain\\s+\\S+\\.${TLD_FRAGMENT}\\s+is already owned by\\s+0x[a-fA-F0-9]+`, "i"), "naming.already_owned"],
|
|
351
352
|
// #1185: formatUnregistrableReason's distinctive phrase — present in both
|
|
352
353
|
// the unregistered ("...is not registered, and bulletin-deploy cannot
|
|
353
354
|
// register it: ...") and owned-by-another-account ("...is owned by
|
|
@@ -357,7 +358,7 @@ var ERROR_KIND_RULES = [
|
|
|
357
358
|
// naming.already_owned (whose "already owned by 0x..." phrasing this rule
|
|
358
359
|
// never produces, so there's no overlap either way).
|
|
359
360
|
[/cannot register it/i, "naming.governance_reserved"],
|
|
360
|
-
[
|
|
361
|
+
[new RegExp(`Cannot deploy\\s+[\\w.-]+\\.${TLD_FRAGMENT}:\\s*parent\\s+[\\w.-]+\\.${TLD_FRAGMENT}\\s+is owned by`, "i"), "naming.subdomain_orphan"],
|
|
361
362
|
[/Post-deploy verification failed for .+: on-chain contenthash is /i, "verify.contenthash_mismatch"],
|
|
362
363
|
[/Deploy verification failed:\s*DAG-PB root.+not finalised/i, "verify.dagpb_not_finalised"],
|
|
363
364
|
[/Retry budget exhausted:.*recovery attempts/i, "network.recovery_exhausted"],
|
|
@@ -5,7 +5,8 @@ var KIND_WIDGET = "widget";
|
|
|
5
5
|
var KIND_WORKER = "worker";
|
|
6
6
|
var EXECUTABLE_KINDS = [KIND_APP, KIND_WIDGET, KIND_WORKER];
|
|
7
7
|
var LABEL = String.raw`(?!-)[a-z0-9-]{1,63}(?<!-)`;
|
|
8
|
-
var
|
|
8
|
+
var KNOWN_TLDS = ["dot", "paseo"];
|
|
9
|
+
var DOMAIN_RE = new RegExp(`^${LABEL}(\\.${LABEL})*\\.(?:${KNOWN_TLDS.join("|")})$`, "i");
|
|
9
10
|
function isPlainObject(value) {
|
|
10
11
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
11
12
|
}
|
|
@@ -103,7 +104,7 @@ function validateProductConfig(input) {
|
|
|
103
104
|
return { ok: false, errors: ["product config must be an object (did you forget `export default`?)"] };
|
|
104
105
|
}
|
|
105
106
|
if (!isNonEmptyString(input.domain) || !DOMAIN_RE.test(input.domain)) {
|
|
106
|
-
errors.push(
|
|
107
|
+
errors.push(`product config domain must be a non-empty dotNS name ending in one of: ${KNOWN_TLDS.map((t) => `.${t}`).join(", ")}`);
|
|
107
108
|
}
|
|
108
109
|
if (!isNonEmptyString(input.displayName)) errors.push("product config displayName must be a non-empty string");
|
|
109
110
|
if (typeof input.description !== "string") errors.push("product config description must be a string");
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DEFAULT_TLD
|
|
3
|
+
} from "./chunk-VWZH66EP.js";
|
|
4
|
+
|
|
1
5
|
// src/gh-pages-mirror.ts
|
|
2
6
|
import { execSync } from "child_process";
|
|
3
7
|
import * as fs from "fs";
|
|
@@ -78,19 +82,20 @@ function resolveSourceCommit(repoPath) {
|
|
|
78
82
|
return void 0;
|
|
79
83
|
}
|
|
80
84
|
}
|
|
81
|
-
function normalizeDomainFilename(domain) {
|
|
82
|
-
const
|
|
85
|
+
function normalizeDomainFilename(domain, tld = DEFAULT_TLD) {
|
|
86
|
+
const suffix = `.${tld}`;
|
|
87
|
+
const label = domain.endsWith(suffix) ? domain.slice(0, -suffix.length) : domain;
|
|
83
88
|
if (!/^[a-z0-9-]+$/.test(label)) {
|
|
84
89
|
throw new Error(`Invalid domain label for mirror filename: ${JSON.stringify(domain)}`);
|
|
85
90
|
}
|
|
86
|
-
return `${label}
|
|
91
|
+
return `${label}.${tld}`;
|
|
87
92
|
}
|
|
88
93
|
function mirrorUrl(owner, repo, domainFilename) {
|
|
89
94
|
return `https://${owner}.github.io/${repo}/${GH_PAGES_MIRROR_DIR}/${domainFilename}.car`;
|
|
90
95
|
}
|
|
91
96
|
function buildManifest(input) {
|
|
92
97
|
return {
|
|
93
|
-
domain: normalizeDomainFilename(input.domain),
|
|
98
|
+
domain: normalizeDomainFilename(input.domain, input.tld),
|
|
94
99
|
cid: input.cid,
|
|
95
100
|
toolVersion: input.toolVersion,
|
|
96
101
|
deployedAt: input.deployedAt ?? (/* @__PURE__ */ new Date()).toISOString(),
|
|
@@ -130,7 +135,7 @@ async function mirrorToGitHubPages(input) {
|
|
|
130
135
|
const mb = (input.carBytes.length / 1024 / 1024).toFixed(1);
|
|
131
136
|
throw new MirrorSkipped(`CAR is ${mb} MB, exceeds GitHub's 100 MB single-file soft limit. Pages can't host this CAR \u2014 the on-chain deploy still succeeds and hosts will fall back to Bulletin.`);
|
|
132
137
|
}
|
|
133
|
-
const domainFilename = normalizeDomainFilename(input.domain);
|
|
138
|
+
const domainFilename = normalizeDomainFilename(input.domain, input.tld);
|
|
134
139
|
const { owner, repo } = ownerRepo;
|
|
135
140
|
const sourceCommit = input.sourceCommit ?? resolveSourceCommit(repoPath);
|
|
136
141
|
const sourceRepo = input.sourceRepo ?? `${owner}/${repo}`;
|
|
@@ -6,7 +6,7 @@ import * as path from "path";
|
|
|
6
6
|
// package.json
|
|
7
7
|
var package_default = {
|
|
8
8
|
name: "bulletin-deploy",
|
|
9
|
-
version: "0.
|
|
9
|
+
version: "0.15.0-rc.1",
|
|
10
10
|
private: false,
|
|
11
11
|
repository: {
|
|
12
12
|
type: "git",
|
|
@@ -56,7 +56,7 @@ var package_default = {
|
|
|
56
56
|
"refresh-environments": "node scripts/refresh-environments.mjs",
|
|
57
57
|
postinstall: "patch-package || true",
|
|
58
58
|
prepare: "npm run build",
|
|
59
|
-
test: "npm run build && node --test test/test.js test/cli-help.test.js test/helpers/e2e-helpers.test.js test/environments.test.js test/refresh-environments.test.js test/chunk-sharing-report.test.js test/product-manifest.test.js test/cache-savings-totals.test.js test/error-pattern-signature.test.js test/exit-codes.test.js test/probe-env-health.test.js test/e2e-chain-calls.test.js test/auth-config.test.js test/whoami.test.js test/login.test.js test/logout.test.js test/auth-resolve.test.js test/storage-signer.test.js test/spinner.test.js test/sss-allowance.test.js test/sss-allowance-cache.test.js test/dotns-transfer.test.js test/deploy-actors.test.js test/transfer-command.test.js test/dotns-register-fee.test.js test/deploy-label-ordering.test.js test/benign-teardown.test.js test/verify-baked-dsn.test.js test/test-release-retry-wrapper.js && npm run test:vendor",
|
|
59
|
+
test: "npm run build && node --test test/test.js test/cli-help.test.js test/helpers/e2e-helpers.test.js test/environments.test.js test/refresh-environments.test.js test/chunk-sharing-report.test.js test/dotns-deployments-parser.test.js test/product-manifest.test.js test/cache-savings-totals.test.js test/error-pattern-signature.test.js test/exit-codes.test.js test/probe-env-health.test.js test/e2e-chain-calls.test.js test/auth-config.test.js test/whoami.test.js test/login.test.js test/logout.test.js test/auth-resolve.test.js test/storage-signer.test.js test/spinner.test.js test/sss-allowance.test.js test/sss-allowance-cache.test.js test/dotns-transfer.test.js test/deploy-actors.test.js test/transfer-command.test.js test/dotns-register-fee.test.js test/deploy-label-ordering.test.js test/benign-teardown.test.js test/verify-baked-dsn.test.js test/test-release-retry-wrapper.js && npm run test:vendor",
|
|
60
60
|
"test:e2e": "npm run build && node --test test/e2e.test.js",
|
|
61
61
|
"test:e2e:smoke": "bash scripts/e2e-pass.sh smoke",
|
|
62
62
|
"test:e2e:pr": "bash scripts/e2e-pass.sh pr",
|
|
@@ -20,6 +20,7 @@ var environments_default = {
|
|
|
20
20
|
backend: "https://polkadot-app-stg.parity.io/",
|
|
21
21
|
ipfs: "https://previewnet.substrate.dev",
|
|
22
22
|
webGateway: "testnet.li",
|
|
23
|
+
tld: "dot",
|
|
23
24
|
autoAccountMapping: true,
|
|
24
25
|
nativeToEthRatio: 1e8,
|
|
25
26
|
registerStorageDeposit: 2e12,
|
|
@@ -115,6 +116,7 @@ var environments_default = {
|
|
|
115
116
|
backend: "https://identity-backend-next.parity-testnet.parity.io",
|
|
116
117
|
ipfs: "https://paseo-bulletin-next-ipfs.polkadot.io",
|
|
117
118
|
webGateway: "paseo.li",
|
|
119
|
+
tld: "paseo",
|
|
118
120
|
autoAccountMapping: true,
|
|
119
121
|
nativeToEthRatio: 1e8,
|
|
120
122
|
registerStorageDeposit: 2e12,
|
|
@@ -126,22 +128,22 @@ var environments_default = {
|
|
|
126
128
|
stateAwareGuidance: true
|
|
127
129
|
},
|
|
128
130
|
contracts: {
|
|
129
|
-
DOTNS_PROTOCOL_REGISTRY: "
|
|
130
|
-
DOTNS_REGISTRAR: "
|
|
131
|
-
DOTNS_REGISTRAR_CONTROLLER: "
|
|
132
|
-
DOTNS_REGISTRY: "
|
|
133
|
-
DOTNS_POP_CONTROLLER: "
|
|
134
|
-
ROOT_GATEWAY_DISPATCHER: "
|
|
135
|
-
DOTNS_RESOLVER: "
|
|
136
|
-
DOTNS_CONTENT_RESOLVER: "
|
|
137
|
-
DOTNS_REVERSE_RESOLVER: "
|
|
138
|
-
DOTNS_POP_RESOLVER: "
|
|
139
|
-
DOTNS_NAME_ESCROW: "
|
|
140
|
-
POP_RULES: "
|
|
141
|
-
STORE_FACTORY: "
|
|
142
|
-
LABEL_STORE_BEACON: "
|
|
143
|
-
USER_STORE_BEACON: "
|
|
144
|
-
|
|
131
|
+
DOTNS_PROTOCOL_REGISTRY: "0xD19e3D0C97CF501125a04A97405e3e6592fa846E",
|
|
132
|
+
DOTNS_REGISTRAR: "0x4f06E818Ba3d987704fd91cf3d868E4b019106Ab",
|
|
133
|
+
DOTNS_REGISTRAR_CONTROLLER: "0xBdaA01bD1bA67d709F2b1fF286Da0d854977EA30",
|
|
134
|
+
DOTNS_REGISTRY: "0xf34054fd76BbF85f216cf9908226D5f0A72E50CA",
|
|
135
|
+
DOTNS_POP_CONTROLLER: "0xCC932348606cc1f3318cADeC5A5Cd2CA447f8a4b",
|
|
136
|
+
ROOT_GATEWAY_DISPATCHER: "0xa889CCA3Fb4B07b98a11cc54C10f13dDA20bc3db",
|
|
137
|
+
DOTNS_RESOLVER: "0xbd1165E549DF96F083c0A16f61590927bC187009",
|
|
138
|
+
DOTNS_CONTENT_RESOLVER: "0x7F74D7CD50f5a834270E2ad395a01b01891AB37d",
|
|
139
|
+
DOTNS_REVERSE_RESOLVER: "0xee3883d7eB60Ee9BCD7F3bcD8f2f05302A9Cc035",
|
|
140
|
+
DOTNS_POP_RESOLVER: "0xDaC984884EcA8Fc44011f1D6C49B27828390A72B",
|
|
141
|
+
DOTNS_NAME_ESCROW: "0x4881Afb78e7C908cAe818168B926229D93376520",
|
|
142
|
+
POP_RULES: "0x747B456bE03aec0b42bd85C51513730FBD45DA31",
|
|
143
|
+
STORE_FACTORY: "0x709A027F446a9e2a4BB9cb9a9c754435b19e32B7",
|
|
144
|
+
LABEL_STORE_BEACON: "0xb57Ebc2e7085616d4906D1fE49af1cE13f7dffeF",
|
|
145
|
+
USER_STORE_BEACON: "0xb7C995601679840d36F37E86DB2d7dF30797eC5C",
|
|
146
|
+
MULTICALL3: "0xB4468000abD87D3c56cbFBd153161223D7b109e5"
|
|
145
147
|
}
|
|
146
148
|
},
|
|
147
149
|
{
|
|
@@ -676,6 +678,7 @@ function resolveEndpoints(doc, envId) {
|
|
|
676
678
|
envName: env.name,
|
|
677
679
|
ipfs: env.ipfs,
|
|
678
680
|
webGateway: env.webGateway,
|
|
681
|
+
tld: env.tld,
|
|
679
682
|
autoAccountMapping: env.autoAccountMapping ?? false,
|
|
680
683
|
contracts: env.contracts ?? {},
|
|
681
684
|
nativeToEthRatio: BigInt(env.nativeToEthRatio ?? 1e6),
|
|
@@ -9,17 +9,19 @@ import {
|
|
|
9
9
|
setBulletinEndpoints,
|
|
10
10
|
storeDirectory,
|
|
11
11
|
storeFile
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-ZHADHYW6.js";
|
|
13
13
|
import {
|
|
14
|
+
DEFAULT_TLD,
|
|
14
15
|
DotNS,
|
|
15
|
-
TX_KIND_SKIPPED
|
|
16
|
-
|
|
16
|
+
TX_KIND_SKIPPED,
|
|
17
|
+
stripTldSuffix
|
|
18
|
+
} from "./chunk-VWZH66EP.js";
|
|
17
19
|
import {
|
|
18
20
|
DEFAULT_ENV_ID,
|
|
19
21
|
getPopSelfServeConfig,
|
|
20
22
|
loadEnvironments,
|
|
21
23
|
resolveEndpoints
|
|
22
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-KOYZF7DV.js";
|
|
23
25
|
import {
|
|
24
26
|
NonRetryableError
|
|
25
27
|
} from "./chunk-ZOC4GITL.js";
|
|
@@ -27,7 +29,7 @@ import {
|
|
|
27
29
|
setDeployAttribute,
|
|
28
30
|
withManifestSpan,
|
|
29
31
|
withSpan
|
|
30
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-4NYBEKOH.js";
|
|
31
33
|
|
|
32
34
|
// src/manifest/publish.ts
|
|
33
35
|
import * as fs from "fs/promises";
|
|
@@ -85,7 +87,7 @@ Manifest publish \u2014 ${config.domain}`);
|
|
|
85
87
|
}
|
|
86
88
|
const dotns = await connectDotNS(opts, resolved, popSelfServe, envId);
|
|
87
89
|
try {
|
|
88
|
-
const baseLabel = stripDotSuffix(config.domain);
|
|
90
|
+
const baseLabel = stripDotSuffix(config.domain, resolved.tld ?? DEFAULT_TLD);
|
|
89
91
|
await dotns.ensureContentResolver(baseLabel);
|
|
90
92
|
const rootManifest = composeRoot(config, iconCid);
|
|
91
93
|
const rootJson = JSON.stringify(rootManifest);
|
|
@@ -165,7 +167,8 @@ async function connectDotNS(opts, resolved, popSelfServe, envId) {
|
|
|
165
167
|
resolved.nativeToEthRatio,
|
|
166
168
|
envId,
|
|
167
169
|
popSelfServe,
|
|
168
|
-
resolved.registerStorageDeposit
|
|
170
|
+
resolved.registerStorageDeposit,
|
|
171
|
+
resolved.tld
|
|
169
172
|
);
|
|
170
173
|
const dotns = new DotNS();
|
|
171
174
|
await dotns.connect(connectOpts);
|
|
@@ -200,8 +203,8 @@ function composeExecutable(exec) {
|
|
|
200
203
|
includes: exec.includes
|
|
201
204
|
};
|
|
202
205
|
}
|
|
203
|
-
function stripDotSuffix(domain) {
|
|
204
|
-
return domain
|
|
206
|
+
function stripDotSuffix(domain, tld) {
|
|
207
|
+
return stripTldSuffix(domain, tld);
|
|
205
208
|
}
|
|
206
209
|
|
|
207
210
|
export {
|
|
@@ -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-YV43J5HI.js";
|
|
8
8
|
import {
|
|
9
9
|
DEFAULT_MNEMONIC
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-VWZH66EP.js";
|
|
11
11
|
|
|
12
12
|
// src/deploy-actors.ts
|
|
13
13
|
var DEFAULT_WORKER_SURI = DEFAULT_MNEMONIC;
|
|
@@ -2,15 +2,15 @@ import {
|
|
|
2
2
|
classifyErrorArea,
|
|
3
3
|
isInteractive,
|
|
4
4
|
promptYesNo
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-H7KYK75H.js";
|
|
6
6
|
import {
|
|
7
7
|
VERSION,
|
|
8
8
|
getCurrentSentryTraceId,
|
|
9
9
|
resolveIssueRepoSlug
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-4NYBEKOH.js";
|
|
11
11
|
import {
|
|
12
12
|
package_default
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-HVN4RAIP.js";
|
|
14
14
|
|
|
15
15
|
// src/bug-report.ts
|
|
16
16
|
import { execSync, execFileSync } from "child_process";
|