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.
Files changed (49) hide show
  1. package/assets/environments.json +18 -16
  2. package/dist/auth-config.js +4 -4
  3. package/dist/bug-report.js +4 -4
  4. package/dist/chain-health.js +3 -3
  5. package/dist/{chunk-VH2HNQG2.js → chunk-4NYBEKOH.js} +4 -3
  6. package/dist/{chunk-DHIDLUMK.js → chunk-GA7YKNHY.js} +3 -2
  7. package/dist/{chunk-GEHOB4PE.js → chunk-H7KYK75H.js} +1 -1
  8. package/dist/{chunk-U2SZ3ZRI.js → chunk-HLQQIRO5.js} +1 -1
  9. package/dist/{chunk-HOTQDYHD.js → chunk-HSSM4EB6.js} +10 -5
  10. package/dist/{chunk-ZPWTXUA6.js → chunk-HVN4RAIP.js} +2 -2
  11. package/dist/{chunk-XQHRKK7M.js → chunk-KOYZF7DV.js} +19 -16
  12. package/dist/{chunk-RIQWW2BT.js → chunk-PGFLUWOJ.js} +12 -9
  13. package/dist/{chunk-UDJAYGYU.js → chunk-TA34CZF5.js} +1 -1
  14. package/dist/{chunk-37AN2MHU.js → chunk-VCR673AA.js} +2 -2
  15. package/dist/{chunk-7V4B775S.js → chunk-VP6CIGSH.js} +3 -3
  16. package/dist/{chunk-FMQLBYOR.js → chunk-VWZH66EP.js} +205 -59
  17. package/dist/{chunk-CRZSDUWV.js → chunk-WTHGKGHR.js} +1 -1
  18. package/dist/{chunk-T2S5M6OH.js → chunk-YDH3BU72.js} +1 -1
  19. package/dist/{chunk-REB37WWY.js → chunk-YV43J5HI.js} +2 -2
  20. package/dist/{chunk-6LD3Z2HM.js → chunk-ZHADHYW6.js} +54 -42
  21. package/dist/chunk-probe.js +3 -3
  22. package/dist/commands/login.js +13 -13
  23. package/dist/commands/logout.js +5 -5
  24. package/dist/commands/transfer.js +19 -12
  25. package/dist/commands/whoami.js +4 -4
  26. package/dist/deploy-actors.js +7 -7
  27. package/dist/deploy.d.ts +11 -20
  28. package/dist/deploy.js +13 -13
  29. package/dist/dotns.d.ts +102 -3
  30. package/dist/dotns.js +17 -5
  31. package/dist/environments.d.ts +9 -0
  32. package/dist/environments.js +1 -1
  33. package/dist/gh-pages-mirror.d.ts +3 -1
  34. package/dist/gh-pages-mirror.js +9 -1
  35. package/dist/index.js +16 -16
  36. package/dist/manifest/config-load.js +2 -2
  37. package/dist/manifest/publish.js +14 -14
  38. package/dist/manifest/schema.js +1 -1
  39. package/dist/memory-report.js +2 -2
  40. package/dist/merkle.js +13 -13
  41. package/dist/personhood/bootstrap.js +5 -5
  42. package/dist/personhood/people-client.js +5 -5
  43. package/dist/run-state.js +1 -1
  44. package/dist/sss-allowance-cache.js +5 -5
  45. package/dist/storage-signer.js +13 -13
  46. package/dist/telemetry.js +2 -2
  47. package/dist/version-check.js +3 -3
  48. package/docs/e2e-bootstrap.md +7 -1
  49. package/package.json +2 -2
@@ -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": "0x8F28419f4E32Bb0aA02e156A0543Ff253f126D7D",
121
- "DOTNS_REGISTRAR": "0xf7Ad3F44F316C73E4a2b46b1ed48d376bCc9E639",
122
- "DOTNS_REGISTRAR_CONTROLLER": "0x674b705268DAE369F0a7BE9cbaCDb928b8BA38C2",
123
- "DOTNS_REGISTRY": "0xa1b2b939E82b2ecE55Bd8a0E283818BfC1CA6CDc",
124
- "DOTNS_POP_CONTROLLER": "0x1c858C31497a7715C0D56A11208feB6b74FaB2aB",
125
- "ROOT_GATEWAY_DISPATCHER": "0xd3F059FA65dA566B294b5d755a06054d4bE7ce7C",
126
- "DOTNS_RESOLVER": "0xA8988eA083174ea94Ed1D686f0F073a10f65598D",
127
- "DOTNS_CONTENT_RESOLVER": "0x8A26480b0B5Df3d4D9b95adc24a5Ecb33A5b8F64",
128
- "DOTNS_REVERSE_RESOLVER": "0x259B9D8199c29d2EF132264ad05f8F74F3115A2E",
129
- "DOTNS_POP_RESOLVER": "0xC9D511Eb80fD8B745DC5Be59aCF5d700271bC01e",
130
- "DOTNS_NAME_ESCROW": "0x2Cb9899d91Ee575E8917958723F5E941b1BcC6A1",
131
- "POP_RULES": "0x4909bFb3f4Fd86244abD6430fDfA0Ce5C91aD0c4",
132
- "STORE_FACTORY": "0x692047C1477a017F287488E1c85F96Ca28C23fD8",
133
- "LABEL_STORE_BEACON": "0x86ff9CE56C86bC3DfcaA7E316FB0Dd816e9fA2df",
134
- "USER_STORE_BEACON": "0x6a7a938f72D39f949ee484a78c4C500514E2cb69",
135
- "PUBLISHER": "0xa616254fd98724c7a3d295c98ca393a486096b68"
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
  {
@@ -9,12 +9,12 @@ import {
9
9
  getPeopleChainEndpoints,
10
10
  hasPersistedSession,
11
11
  resolveBulletinEndpoints
12
- } from "./chunk-REB37WWY.js";
12
+ } from "./chunk-YV43J5HI.js";
13
13
  import "./chunk-TSPERKUS.js";
14
- import "./chunk-XQHRKK7M.js";
14
+ import "./chunk-KOYZF7DV.js";
15
15
  import "./chunk-ZOC4GITL.js";
16
- import "./chunk-VH2HNQG2.js";
17
- import "./chunk-ZPWTXUA6.js";
16
+ import "./chunk-4NYBEKOH.js";
17
+ import "./chunk-HVN4RAIP.js";
18
18
  export {
19
19
  DOT_DAPP_ID,
20
20
  DOT_DERIVATION_INDEX,
@@ -10,10 +10,10 @@ import {
10
10
  offerBugReport,
11
11
  scrubSecrets,
12
12
  setDeployContext
13
- } from "./chunk-7V4B775S.js";
14
- import "./chunk-GEHOB4PE.js";
15
- import "./chunk-VH2HNQG2.js";
16
- import "./chunk-ZPWTXUA6.js";
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,
@@ -3,9 +3,9 @@ import {
3
3
  DEFAULT_WINDOW_BLOCKS,
4
4
  MAX_SPANS_PER_SAMPLER,
5
5
  endpointHost
6
- } from "./chunk-UDJAYGYU.js";
7
- import "./chunk-VH2HNQG2.js";
8
- import "./chunk-ZPWTXUA6.js";
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-ZPWTXUA6.js";
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
- [/Domain\s+\S+\.dot\s+is already owned by\s+0x[a-fA-F0-9]+/i, "naming.already_owned"],
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
- [/Cannot deploy\s+[\w.-]+\.dot:\s*parent\s+[\w.-]+\.dot\s+is owned by/i, "naming.subdomain_orphan"],
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 DOMAIN_RE = new RegExp(`^${LABEL}(\\.${LABEL})*\\.dot$`, "i");
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("product config domain must be a non-empty dotNS name ending in .dot");
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,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-VH2HNQG2.js";
3
+ } from "./chunk-4NYBEKOH.js";
4
4
 
5
5
  // src/version-check.ts
6
6
  import { execSync, execFileSync } from "child_process";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  validateProductConfig
3
- } from "./chunk-DHIDLUMK.js";
3
+ } from "./chunk-GA7YKNHY.js";
4
4
  import {
5
5
  NonRetryableError
6
6
  } from "./chunk-ZOC4GITL.js";
@@ -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 label = domain.endsWith(".dot") ? domain.slice(0, -4) : domain;
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}.dot`;
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.14.2",
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: "0x8F28419f4E32Bb0aA02e156A0543Ff253f126D7D",
130
- DOTNS_REGISTRAR: "0xf7Ad3F44F316C73E4a2b46b1ed48d376bCc9E639",
131
- DOTNS_REGISTRAR_CONTROLLER: "0x674b705268DAE369F0a7BE9cbaCDb928b8BA38C2",
132
- DOTNS_REGISTRY: "0xa1b2b939E82b2ecE55Bd8a0E283818BfC1CA6CDc",
133
- DOTNS_POP_CONTROLLER: "0x1c858C31497a7715C0D56A11208feB6b74FaB2aB",
134
- ROOT_GATEWAY_DISPATCHER: "0xd3F059FA65dA566B294b5d755a06054d4bE7ce7C",
135
- DOTNS_RESOLVER: "0xA8988eA083174ea94Ed1D686f0F073a10f65598D",
136
- DOTNS_CONTENT_RESOLVER: "0x8A26480b0B5Df3d4D9b95adc24a5Ecb33A5b8F64",
137
- DOTNS_REVERSE_RESOLVER: "0x259B9D8199c29d2EF132264ad05f8F74F3115A2E",
138
- DOTNS_POP_RESOLVER: "0xC9D511Eb80fD8B745DC5Be59aCF5d700271bC01e",
139
- DOTNS_NAME_ESCROW: "0x2Cb9899d91Ee575E8917958723F5E941b1BcC6A1",
140
- POP_RULES: "0x4909bFb3f4Fd86244abD6430fDfA0Ce5C91aD0c4",
141
- STORE_FACTORY: "0x692047C1477a017F287488E1c85F96Ca28C23fD8",
142
- LABEL_STORE_BEACON: "0x86ff9CE56C86bC3DfcaA7E316FB0Dd816e9fA2df",
143
- USER_STORE_BEACON: "0x6a7a938f72D39f949ee484a78c4C500514E2cb69",
144
- PUBLISHER: "0xa616254fd98724c7a3d295c98ca393a486096b68"
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-6LD3Z2HM.js";
12
+ } from "./chunk-ZHADHYW6.js";
13
13
  import {
14
+ DEFAULT_TLD,
14
15
  DotNS,
15
- TX_KIND_SKIPPED
16
- } from "./chunk-FMQLBYOR.js";
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-XQHRKK7M.js";
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-VH2HNQG2.js";
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.replace(/\.dot$/i, "");
206
+ function stripDotSuffix(domain, tld) {
207
+ return stripTldSuffix(domain, tld);
205
208
  }
206
209
 
207
210
  export {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  emitIntervalSpan,
3
3
  setDeployAttribute
4
- } from "./chunk-VH2HNQG2.js";
4
+ } from "./chunk-4NYBEKOH.js";
5
5
 
6
6
  // src/chain-health.ts
7
7
  var DEFAULT_WINDOW_BLOCKS = 10;
@@ -4,10 +4,10 @@ import {
4
4
  } from "./chunk-5FLTDWWP.js";
5
5
  import {
6
6
  DOT_PRODUCT_ID
7
- } from "./chunk-REB37WWY.js";
7
+ } from "./chunk-YV43J5HI.js";
8
8
  import {
9
9
  DEFAULT_MNEMONIC
10
- } from "./chunk-FMQLBYOR.js";
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-GEHOB4PE.js";
5
+ } from "./chunk-H7KYK75H.js";
6
6
  import {
7
7
  VERSION,
8
8
  getCurrentSentryTraceId,
9
9
  resolveIssueRepoSlug
10
- } from "./chunk-VH2HNQG2.js";
10
+ } from "./chunk-4NYBEKOH.js";
11
11
  import {
12
12
  package_default
13
- } from "./chunk-ZPWTXUA6.js";
13
+ } from "./chunk-HVN4RAIP.js";
14
14
 
15
15
  // src/bug-report.ts
16
16
  import { execSync, execFileSync } from "child_process";