@t2000/cli 0.17.17 → 0.17.18
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/index.js
CHANGED
|
@@ -774,7 +774,7 @@ function registerPositions(program2) {
|
|
|
774
774
|
printKeyValue("Total", formatUsd8(totalSaved));
|
|
775
775
|
}
|
|
776
776
|
if (hasRewards) {
|
|
777
|
-
printLine(` ${pc6.dim("Run claim-rewards to collect
|
|
777
|
+
printLine(` ${pc6.dim("Run claim-rewards to collect and convert to USDC")}`);
|
|
778
778
|
}
|
|
779
779
|
printBlank();
|
|
780
780
|
}
|
|
@@ -1890,7 +1890,7 @@ function registerMcp(program2) {
|
|
|
1890
1890
|
mcp.command("start", { isDefault: true }).description("Start MCP server (stdio transport)").option("--key <path>", "Key file path").action(async (opts) => {
|
|
1891
1891
|
let mod;
|
|
1892
1892
|
try {
|
|
1893
|
-
mod = await import("./dist-
|
|
1893
|
+
mod = await import("./dist-F6YRISIO.js");
|
|
1894
1894
|
} catch {
|
|
1895
1895
|
console.error(
|
|
1896
1896
|
"MCP server not installed. Run:\n npm install -g @t2000/mcp"
|
|
@@ -2626,7 +2626,7 @@ function registerPortfolio(program2) {
|
|
|
2626
2626
|
|
|
2627
2627
|
// src/commands/claimRewards.ts
|
|
2628
2628
|
import pc15 from "picocolors";
|
|
2629
|
-
import { T2000 as T200026 } from "@t2000/sdk";
|
|
2629
|
+
import { T2000 as T200026, formatUsd as formatUsd17 } from "@t2000/sdk";
|
|
2630
2630
|
function registerClaimRewards(program2) {
|
|
2631
2631
|
program2.command("claim-rewards").description("Claim pending protocol rewards").option("--key <path>", "Key file path").action(async (opts) => {
|
|
2632
2632
|
try {
|
|
@@ -2644,8 +2644,12 @@ function registerClaimRewards(program2) {
|
|
|
2644
2644
|
return;
|
|
2645
2645
|
}
|
|
2646
2646
|
const protocols = [...new Set(result.rewards.map((r) => r.protocol))];
|
|
2647
|
-
printLine(` ${pc15.green("\u2713")} Claimed rewards
|
|
2647
|
+
printLine(` ${pc15.green("\u2713")} Claimed and converted rewards to USDC`);
|
|
2648
2648
|
printSeparator();
|
|
2649
|
+
if (result.usdcReceived > 0) {
|
|
2650
|
+
printKeyValue("Received", `${pc15.green(formatUsd17(result.usdcReceived))} USDC`);
|
|
2651
|
+
}
|
|
2652
|
+
printKeyValue("Source", protocols.join(", "));
|
|
2649
2653
|
if (result.tx) {
|
|
2650
2654
|
printKeyValue("Tx", `https://suiscan.xyz/mainnet/tx/${result.tx}`);
|
|
2651
2655
|
}
|