Skip to content

Commit 12a1acc

Browse files
authored
Merge branch 'develop' into tcm-trimTokens
2 parents 70d90ab + b54fc68 commit 12a1acc

File tree

5 files changed

+11
-15
lines changed

5 files changed

+11
-15
lines changed

.env.example

-3
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,6 @@ TOGETHER_API_KEY=
212212
# Server Configuration
213213
SERVER_PORT=3000
214214

215-
# Web Search Config
216-
ENABLE_WEBSEARCH=false # boolean value, defaults to false
217-
218215
# Abstract Configuration
219216
ABSTRACT_ADDRESS=
220217
ABSTRACT_PRIVATE_KEY=

agent/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"@elizaos/plugin-coinbase": "workspace:*",
3939
"@elizaos/plugin-conflux": "workspace:*",
4040
"@elizaos/plugin-evm": "workspace:*",
41+
"@elizaos/plugin-echochambers": "workspace:*",
4142
"@elizaos/plugin-flow": "workspace:*",
4243
"@elizaos/plugin-gitbook": "workspace:*",
4344
"@elizaos/plugin-story": "workspace:*",

agent/src/index.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import { LensAgentClient } from "@elizaos/client-lens";
77
import { SlackClientInterface } from "@elizaos/client-slack";
88
import { TelegramClientInterface } from "@elizaos/client-telegram";
99
import { TwitterClientInterface } from "@elizaos/client-twitter";
10-
import { webSearchPlugin } from "@elizaos/plugin-web-search";
1110
import {
1211
AgentRuntime,
1312
CacheManager,
@@ -64,6 +63,7 @@ import { cronosZkEVMPlugin } from "@elizaos/plugin-cronoszkevm";
6463
import { abstractPlugin } from "@elizaos/plugin-abstract";
6564
import { avalanchePlugin } from "@elizaos/plugin-avalanche";
6665
import { webSearchPlugin } from "@elizaos/plugin-web-search";
66+
import { echoChamberPlugin } from "@elizaos/plugin-echochambers";
6767
import Database from "better-sqlite3";
6868
import fs from "fs";
6969
import path from "path";
@@ -525,10 +525,6 @@ export async function createAgent(
525525
// character.plugins are handled when clients are added
526526
plugins: [
527527
bootstrapPlugin,
528-
parseBooleanFromText(getSecret(character, "ENABLE_WEBSEARCH")) ===
529-
true
530-
? webSearchPlugin
531-
: null,
532528
getSecret(character, "CONFLUX_CORE_PRIVATE_KEY")
533529
? confluxPlugin
534530
: null,
@@ -609,6 +605,10 @@ export async function createAgent(
609605
getSecret(character, "AVALANCHE_PRIVATE_KEY")
610606
? avalanchePlugin
611607
: null,
608+
getSecret(character, "ECHOCHAMBERS_API_URL") &&
609+
getSecret(character, "ECHOCHAMBERS_API_KEY")
610+
? echoChamberPlugin
611+
: null,
612612
].filter(Boolean),
613613
providers: [],
614614
actions: [],

packages/plugin-zksync-era/src/actions/transfer.ts

+2-7
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,7 @@ import {
1414
import { validateZKsyncConfig } from "../enviroment";
1515

1616
import { Web3 } from "web3";
17-
import {
18-
ZKsyncPlugin,
19-
ZKsyncWallet,
20-
types,
21-
Web3ZKsyncL2,
22-
} from "web3-plugin-zksync";
17+
import { ZKsyncPlugin, types, Web3ZKsyncL2 } from "web3-plugin-zksync";
2318

2419
export interface TransferContent extends Content {
2520
tokenAddress: string;
@@ -89,7 +84,7 @@ export default {
8984
"PAY_ON_ZKSYNC",
9085
"PAY_ON_ERA",
9186
],
92-
validate: async (runtime: IAgentRuntime, message: Memory) => {
87+
validate: async (runtime: IAgentRuntime, _message: Memory) => {
9388
await validateZKsyncConfig(runtime);
9489
return true;
9590
},

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)