@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.
- package/dist/agent/catalog.cjs +11 -8
- package/dist/agent/catalog.cjs.map +1 -1
- package/dist/agent/catalog.js +11 -8
- package/dist/agent/catalog.js.map +1 -1
- package/dist/agent/skills/continuum-dao/SKILL.md +1 -1
- package/dist/protocols/evm/continuum-dao/index.cjs +10 -4
- package/dist/protocols/evm/continuum-dao/index.cjs.map +1 -1
- package/dist/protocols/evm/continuum-dao/index.d.ts +1 -1
- package/dist/protocols/evm/continuum-dao/index.js +10 -4
- package/dist/protocols/evm/continuum-dao/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -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
|
|
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
|
|
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 && !
|
|
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
|
|
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
|
}
|