@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.
@@ -5145,7 +5145,7 @@ var MCP_PROTOCOL_TOOL_DEFINITIONS = [
5145
5145
  actionId: "gmx.gmDeposit",
5146
5146
  protocolId: "gmx",
5147
5147
  chainCategory: "evm",
5148
- description: "Create and submit mpc-auth multiSignRequest for GMX GM pool deposit (ExchangeRouter multicall). Keeper executes asynchronously.",
5148
+ description: "Create and submit mpc-auth multiSignRequest for GMX v2.2c GM pool deposit (approve SyntheticsRouter, ExchangeRouter multicall). Keeper executes asynchronously.",
5149
5149
  prerequisites: ["keyGen", "executorAddress", "marketSymbol", "collateral token"],
5150
5150
  handler: { importPath: "protocols/evm/gmx", exportName: "buildEvmMultisignBodyGmxGmDepositBatch" },
5151
5151
  inputZod: mcpGmxGmDepositInputSchema
@@ -5155,7 +5155,7 @@ var MCP_PROTOCOL_TOOL_DEFINITIONS = [
5155
5155
  actionId: "gmx.gmWithdraw",
5156
5156
  protocolId: "gmx",
5157
5157
  chainCategory: "evm",
5158
- description: "Create and submit mpc-auth multiSignRequest for GMX GM pool withdrawal (ExchangeRouter multicall). Keeper executes asynchronously.",
5158
+ description: "Create and submit mpc-auth multiSignRequest for GMX v2.2c GM pool withdrawal (approve SyntheticsRouter, ExchangeRouter multicall). Keeper executes asynchronously.",
5159
5159
  prerequisites: ["keyGen", "executorAddress", "GM market token balance"],
5160
5160
  handler: { importPath: "protocols/evm/gmx", exportName: "buildEvmMultisignBodyGmxGmWithdrawBatch" },
5161
5161
  inputZod: mcpGmxGmWithdrawInputSchema
@@ -5476,7 +5476,7 @@ var MCP_PROTOCOL_TOOL_DEFINITIONS = [
5476
5476
  actionId: "continuum-dao.increase-unlock-time",
5477
5477
  protocolId: "continuum-dao",
5478
5478
  chainCategory: "evm",
5479
- 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.",
5479
+ 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.",
5480
5480
  prerequisites: ["keyGen", "tokenId", "unexpired lock", "Linea RPC"],
5481
5481
  handler: { importPath: "protocols/evm/continuum-dao", exportName: "buildEvmMultisignBodyContinuumDaoIncreaseUnlockTime" },
5482
5482
  inputZod: mcpContinuumDaoIncreaseUnlockTimeInputSchema
@@ -8457,7 +8457,14 @@ function gmxResolvedApiBaseUrls(chainId) {
8457
8457
  if (!primary) {
8458
8458
  throw new Error(`GMX API URLs are not configured for chain ${chainId}.`);
8459
8459
  }
8460
- return [primary, ...getApiFallbackUrls(chainId)];
8460
+ const urls = [primary, ...getApiFallbackUrls(chainId)].map((url) => url.replace(/\/$/, ""));
8461
+ const peer = gmxApiPeerFallback(urls[0]);
8462
+ if (peer && !urls.includes(peer)) urls.push(peer);
8463
+ return urls;
8464
+ }
8465
+ function gmxApiPeerFallback(primary) {
8466
+ if (primary.includes(".gmxapi.io")) return primary.replace(".gmxapi.io", ".gmxapi.ai");
8467
+ return void 0;
8461
8468
  }
8462
8469
  function buildGmxUrl(baseUrl, path, query) {
8463
8470
  const base = baseUrl.replace(/\/$/, "");
@@ -8626,7 +8633,7 @@ var gmxProtocolModule = {
8626
8633
  id: "gmx.gmDeposit",
8627
8634
  protocolId: GMX_PROTOCOL_ID,
8628
8635
  chainCategory: "evm",
8629
- description: "Deposit collateral into a GMX GM liquidity pool (ExchangeRouter multicall)",
8636
+ description: "Deposit collateral into a GMX v2.2c GM liquidity pool (ExchangeRouter multicall)",
8630
8637
  commonParams: ["keyGen", "purposeText", "useCustomGas"],
8631
8638
  params: {
8632
8639
  marketSymbol: { type: "string", required: true, description: "GM market symbol e.g. ETH/USD [WETH-USDC]" },
@@ -8638,7 +8645,7 @@ var gmxProtocolModule = {
8638
8645
  id: "gmx.gmWithdraw",
8639
8646
  protocolId: GMX_PROTOCOL_ID,
8640
8647
  chainCategory: "evm",
8641
- description: "Withdraw GM market tokens from a GMX liquidity pool",
8648
+ description: "Withdraw GM market tokens from a GMX v2.2c liquidity pool",
8642
8649
  commonParams: ["keyGen", "purposeText", "useCustomGas"],
8643
8650
  params: {
8644
8651
  marketSymbol: { type: "string", required: true, description: "GM market symbol" },