@continuumdao/ctm-mpc-defi 0.2.38 → 0.2.40

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.
@@ -5148,7 +5148,7 @@ var MCP_PROTOCOL_TOOL_DEFINITIONS = [
5148
5148
  actionId: "gmx.gmDeposit",
5149
5149
  protocolId: "gmx",
5150
5150
  chainCategory: "evm",
5151
- description: "Create and submit mpc-auth multiSignRequest for GMX GM pool deposit (ExchangeRouter multicall). Keeper executes asynchronously.",
5151
+ description: "Create and submit mpc-auth multiSignRequest for GMX v2.2c GM pool deposit (approve SyntheticsRouter, ExchangeRouter multicall). Keeper executes asynchronously.",
5152
5152
  prerequisites: ["keyGen", "executorAddress", "marketSymbol", "collateral token"],
5153
5153
  handler: { importPath: "protocols/evm/gmx", exportName: "buildEvmMultisignBodyGmxGmDepositBatch" },
5154
5154
  inputZod: mcpGmxGmDepositInputSchema
@@ -5158,7 +5158,7 @@ var MCP_PROTOCOL_TOOL_DEFINITIONS = [
5158
5158
  actionId: "gmx.gmWithdraw",
5159
5159
  protocolId: "gmx",
5160
5160
  chainCategory: "evm",
5161
- description: "Create and submit mpc-auth multiSignRequest for GMX GM pool withdrawal (ExchangeRouter multicall). Keeper executes asynchronously.",
5161
+ description: "Create and submit mpc-auth multiSignRequest for GMX v2.2c GM pool withdrawal (approve SyntheticsRouter, ExchangeRouter multicall). Keeper executes asynchronously.",
5162
5162
  prerequisites: ["keyGen", "executorAddress", "GM market token balance"],
5163
5163
  handler: { importPath: "protocols/evm/gmx", exportName: "buildEvmMultisignBodyGmxGmWithdrawBatch" },
5164
5164
  inputZod: mcpGmxGmWithdrawInputSchema
@@ -5479,7 +5479,7 @@ var MCP_PROTOCOL_TOOL_DEFINITIONS = [
5479
5479
  actionId: "continuum-dao.increase-unlock-time",
5480
5480
  protocolId: "continuum-dao",
5481
5481
  chainCategory: "evm",
5482
- description: "Build increase_unlock_time. lockDurationSeconds is from the week boundary to the new unlock (1\u2013208 weeks) and must land after the current lock end.",
5482
+ description: "Build increase_unlock_time on Linea VotingEscrow. lockDurationSeconds is from the week boundary to the new unlock (1\u2013208 weeks) and must land after the current lock end. No billing legs \u2014 allowed on an unpaid KeyGen (does not increment globalNonce). To attach in the same request, extend first then attachVeCtm so attach sees the new voting power.",
5483
5483
  prerequisites: ["keyGen", "tokenId", "unexpired lock", "Linea RPC"],
5484
5484
  handler: { importPath: "protocols/evm/continuum-dao", exportName: "buildEvmMultisignBodyContinuumDaoIncreaseUnlockTime" },
5485
5485
  inputZod: mcpContinuumDaoIncreaseUnlockTimeInputSchema
@@ -8460,7 +8460,14 @@ function gmxResolvedApiBaseUrls(chainId) {
8460
8460
  if (!primary) {
8461
8461
  throw new Error(`GMX API URLs are not configured for chain ${chainId}.`);
8462
8462
  }
8463
- return [primary, ...getApiFallbackUrls(chainId)];
8463
+ const urls = [primary, ...getApiFallbackUrls(chainId)].map((url) => url.replace(/\/$/, ""));
8464
+ const peer = gmxApiPeerFallback(urls[0]);
8465
+ if (peer && !urls.includes(peer)) urls.push(peer);
8466
+ return urls;
8467
+ }
8468
+ function gmxApiPeerFallback(primary) {
8469
+ if (primary.includes(".gmxapi.io")) return primary.replace(".gmxapi.io", ".gmxapi.ai");
8470
+ return void 0;
8464
8471
  }
8465
8472
  function buildGmxUrl(baseUrl, path, query) {
8466
8473
  const base = baseUrl.replace(/\/$/, "");
@@ -8629,7 +8636,7 @@ var gmxProtocolModule = {
8629
8636
  id: "gmx.gmDeposit",
8630
8637
  protocolId: GMX_PROTOCOL_ID,
8631
8638
  chainCategory: "evm",
8632
- description: "Deposit collateral into a GMX GM liquidity pool (ExchangeRouter multicall)",
8639
+ description: "Deposit collateral into a GMX v2.2c GM liquidity pool (ExchangeRouter multicall)",
8633
8640
  commonParams: ["keyGen", "purposeText", "useCustomGas"],
8634
8641
  params: {
8635
8642
  marketSymbol: { type: "string", required: true, description: "GM market symbol e.g. ETH/USD [WETH-USDC]" },
@@ -8641,7 +8648,7 @@ var gmxProtocolModule = {
8641
8648
  id: "gmx.gmWithdraw",
8642
8649
  protocolId: GMX_PROTOCOL_ID,
8643
8650
  chainCategory: "evm",
8644
- description: "Withdraw GM market tokens from a GMX liquidity pool",
8651
+ description: "Withdraw GM market tokens from a GMX v2.2c liquidity pool",
8645
8652
  commonParams: ["keyGen", "purposeText", "useCustomGas"],
8646
8653
  params: {
8647
8654
  marketSymbol: { type: "string", required: true, description: "GM market symbol" },