@moly-mcp/lido 1.1.8 → 1.1.9

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/bin.js CHANGED
@@ -352,7 +352,7 @@ async function main() {
352
352
  case "setup": {
353
353
  const { cfg, terminalMode } = await runWizard();
354
354
  if (terminalMode) {
355
- const { startChatSession } = await import("./session-APNAIZ7W.js");
355
+ const { startChatSession } = await import("./session-PHGJFQSX.js");
356
356
  await startChatSession(cfg);
357
357
  } else {
358
358
  await startServer();
@@ -601,14 +601,14 @@ async function main() {
601
601
  if (!configExists()) {
602
602
  const { cfg, terminalMode } = await runWizard();
603
603
  if (terminalMode) {
604
- const { startChatSession } = await import("./session-APNAIZ7W.js");
604
+ const { startChatSession } = await import("./session-PHGJFQSX.js");
605
605
  await startChatSession(cfg);
606
606
  } else {
607
607
  await startServer();
608
608
  }
609
609
  } else {
610
610
  const cfg = loadConfig();
611
- const { startChatSession } = await import("./session-APNAIZ7W.js");
611
+ const { startChatSession } = await import("./session-PHGJFQSX.js");
612
612
  await startChatSession(cfg);
613
613
  }
614
614
  break;
@@ -680,7 +680,7 @@ Commands:
680
680
  if (!configExists()) {
681
681
  const { cfg, terminalMode } = await runWizard();
682
682
  if (terminalMode) {
683
- const { startChatSession } = await import("./session-APNAIZ7W.js");
683
+ const { startChatSession } = await import("./session-PHGJFQSX.js");
684
684
  await startChatSession(cfg);
685
685
  } else {
686
686
  await startServer();
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-P6VFMSPM.js";
10
10
 
11
11
  // src/tools/stake.ts
12
- import { parseEther, formatEther } from "viem";
12
+ import { parseEther } from "viem";
13
13
  var SUBMIT_ABI = [
14
14
  {
15
15
  name: "submit",
@@ -50,22 +50,24 @@ async function stakeEth(amountEth, dryRun) {
50
50
  note: "stETH rebases daily \u2014 your balance grows automatically after staking."
51
51
  };
52
52
  }
53
- const account = rt.getAddress();
54
- const tx = await rt.sdk.stake.stakeEth({
55
- value,
56
- account: { address: account },
57
- callback: () => {
58
- }
53
+ const wallet = rt.getWallet();
54
+ const hash = await wallet.writeContract({
55
+ address: lidoAddress,
56
+ abi: SUBMIT_ABI,
57
+ functionName: "submit",
58
+ args: [REFERRAL],
59
+ value
59
60
  });
61
+ const receipt = await rt.publicClient.waitForTransactionReceipt({ hash });
60
62
  return {
61
63
  simulated: false,
62
64
  mode: rt.config.mode,
63
65
  network: rt.chainAddresses.name,
64
66
  action: "stake",
65
67
  amountEth,
66
- txHash: tx.hash,
67
- stethReceived: formatEther(tx.result?.stethReceived ?? 0n),
68
- sharesReceived: formatEther(tx.result?.sharesReceived ?? 0n)
68
+ txHash: hash,
69
+ status: receipt.status,
70
+ gasUsed: receipt.gasUsed.toString()
69
71
  };
70
72
  }
71
73
 
@@ -3,7 +3,7 @@ import {
3
3
  getSettings,
4
4
  stakeEth,
5
5
  updateSettings
6
- } from "../chunk-L5CW67AP.js";
6
+ } from "../chunk-S4ONJBCI.js";
7
7
  import {
8
8
  castVote,
9
9
  claimWithdrawals,
@@ -3,7 +3,7 @@ import {
3
3
  getSettings,
4
4
  stakeEth,
5
5
  updateSettings
6
- } from "./chunk-L5CW67AP.js";
6
+ } from "./chunk-S4ONJBCI.js";
7
7
  import {
8
8
  castVote,
9
9
  claimWithdrawals,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moly-mcp/lido",
3
- "version": "1.1.8",
3
+ "version": "1.1.9",
4
4
  "description": "Lido MCP Server — stake, unstake, wrap, govern. Works with Claude Desktop, Cursor, Windsurf, and any MCP client.",
5
5
  "license": "MIT",
6
6
  "type": "module",