@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-
|
|
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-
|
|
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-
|
|
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-
|
|
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
|
|
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
|
|
54
|
-
const
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
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:
|
|
67
|
-
|
|
68
|
-
|
|
68
|
+
txHash: hash,
|
|
69
|
+
status: receipt.status,
|
|
70
|
+
gasUsed: receipt.gasUsed.toString()
|
|
69
71
|
};
|
|
70
72
|
}
|
|
71
73
|
|
package/dist/server/index.js
CHANGED
package/package.json
CHANGED