Skip to content

Commit 0bab4d5

Browse files
authored
override ethers (#2783)
1 parent 6c0d395 commit 0bab4d5

File tree

4 files changed

+63
-3
lines changed

4 files changed

+63
-3
lines changed

packages/plugin-mind-network/src/actions/checkRewardAction.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { Action } from "@elizaos/core";
22
import { type ActionExample, type HandlerCallback, type IAgentRuntime, type Memory, type State, elizaLogger } from "@elizaos/core";
33
import { checkColdWalletReward } from "mind-randgen-sdk";
4-
import { isAddress, formatEther } from "ethers";
4+
import { isAddress, formatEther } from "viem";
55

66
export const checkRewardAction: Action = {
77
name: "MIND_CHECK_VOTING_REWARD",

packages/plugin-mind-network/src/actions/registerAction.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { Action } from "@elizaos/core";
22
import { type ActionExample, type HandlerCallback, type IAgentRuntime, type Memory, type State, elizaLogger } from "@elizaos/core";
33
import { registerVoter } from "mind-randgen-sdk";
4-
import { isAddress } from "ethers";
4+
import { isAddress } from "viem";
55

66
export const registerAction: Action = {
77
name: "MIND_REGISTER_VOTER",

packages/plugin-mind-network/tsup.config.ts

+7
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,12 @@ export default defineConfig({
99
external: [
1010
"dotenv", // Externalize dotenv to prevent bundling
1111
"fs", // Externalize fs to use Node.js built-in module
12+
"path", // Externalize other built-ins if necessary
13+
"@reflink/reflink",
14+
"@node-llama-cpp",
15+
"https",
16+
"http",
17+
"agentkeepalive",
18+
// Add other modules you want to externalize
1219
],
1320
});

pnpm-lock.yaml

+54-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)