@continuumdao/ctm-mpc-defi 0.2.52 → 0.2.53

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.
@@ -119,7 +119,7 @@ declare const CONTINUUM_DAO_LINEA_GOVERNOR_LEGACY_ADDRESS: `0x${string}`;
119
119
  */
120
120
  declare const CONTINUUM_DAO_COMMITTEE_PROPOSERS: readonly [`0x${string}`, `0x${string}`, `0x${string}`];
121
121
  declare function isContinuumDaoCommitteeProposer(addr?: string | null): boolean;
122
- /** Placeholder deployments — fill NodeProperties / Rewards / governor after redeploy. */
122
+ /** Placeholder deployments — fill NodeProperties / Rewards after redeploy. */
123
123
  declare const CONTINUUM_DAO_DEPLOYMENTS: Readonly<Record<number, ContinuumDaoDeployment>>;
124
124
  /** Public ContinuumDAO governance API (same host continuumdao-app proxies). */
125
125
  declare const CONTINUUM_DAO_GOVERNANCE_API = "https://app-api.continuumdao.org";
@@ -185,7 +185,8 @@ var init_constants = __esm({
185
185
  [CONTINUUM_DAO_LINEA_CHAIN_ID]: {
186
186
  ...UNSET,
187
187
  ctm: CTM_TOKEN_ADDRESS,
188
- votingEscrow: VOTING_ESCROW_LINEA_ADDRESS
188
+ votingEscrow: VOTING_ESCROW_LINEA_ADDRESS,
189
+ governor: CONTINUUM_DAO_LINEA_GOVERNOR_ADDRESS
189
190
  },
190
191
  [CONTINUUM_DAO_LINEA_SEPOLIA_CHAIN_ID]: { ...UNSET },
191
192
  [CONTINUUM_DAO_ETHEREUM_CHAIN_ID]: {
@@ -944,14 +945,19 @@ async function continuumDaoForumSignInEligible(args) {
944
945
  function assertForumSignInUsernameChoice(args) {
945
946
  const nodeKey = args.nodeKey?.trim() || "";
946
947
  const username = args.username?.trim() || "";
948
+ if (!nodeKey) {
949
+ throw new Error(
950
+ "KeyGen forum sign-in requires nodeKey from this node, including when the operator chose a custom username. useNodeKeyUsername only selects the username."
951
+ );
952
+ }
947
953
  if (username && !FORUM_USERNAME_RE.test(username)) {
948
954
  throw new Error(
949
- "Ask the operator for a forum username of 2\u201316 letters, numbers, periods, underscores, or hyphens. If they want the node-key name, call again with useNodeKeyUsername true and nodeKey set."
955
+ "Ask the operator for a forum username of 2\u201316 letters, numbers, periods, underscores, or hyphens. If they want the node-key name, call again with useNodeKeyUsername true and the same nodeKey."
950
956
  );
951
957
  }
952
- if (!username && !(args.useNodeKeyUsername && nodeKey)) {
958
+ if (!username && !args.useNodeKeyUsername) {
953
959
  throw new Error(
954
- "Ask the operator for a custom forum username (2\u201316 letters, numbers, . _ -). If they want the default, call again with useNodeKeyUsername true and nodeKey set. The username will be the first 16 characters of the node key."
960
+ "Ask the operator for a custom forum username (2\u201316 letters, numbers, . _ -). If they decline, call again with useNodeKeyUsername true and the same nodeKey. The username will be the first 16 characters of the node key. Always pass nodeKey."
955
961
  );
956
962
  }
957
963
  }