Skip to content

Commit ab3a49e

Browse files
authored
Merge branch 'develop' into 1223-fix-todos
2 parents 820d558 + e14b4f8 commit ab3a49e

File tree

337 files changed

+5221
-3858
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

337 files changed

+5221
-3858
lines changed

.env.example

+4
Original file line numberDiff line numberDiff line change
@@ -340,3 +340,7 @@ STORY_PRIVATE_KEY= # Story private key
340340
STORY_API_BASE_URL= # Story API base URL
341341
STORY_API_KEY= # Story API key
342342
PINATA_JWT= # Pinata JWT for uploading files to IPFS
343+
344+
# Cronos zkEVM
345+
CRONOSZKEVM_ADDRESS=
346+
CRONOSZKEVM_PRIVATE_KEY=

agent/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
"@elizaos/plugin-multiversx": "workspace:*",
5353
"@elizaos/plugin-near": "workspace:*",
5454
"@elizaos/plugin-zksync-era": "workspace:*",
55+
"@elizaos/plugin-cronoszkevm": "workspace:*",
5556
"@elizaos/plugin-3d-generation": "workspace:*",
5657
"readline": "1.3.0",
5758
"ws": "8.18.0",

agent/src/index.ts

+7-5
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ import { suiPlugin } from "@elizaos/plugin-sui";
5656
import { TEEMode, teePlugin } from "@elizaos/plugin-tee";
5757
import { tonPlugin } from "@elizaos/plugin-ton";
5858
import { zksyncEraPlugin } from "@elizaos/plugin-zksync-era";
59+
import { cronosZkEVMPlugin } from "@elizaos/plugin-cronoszkevm";
5960
import { abstractPlugin } from "@elizaos/plugin-abstract";
6061
import Database from "better-sqlite3";
6162
import fs from "fs";
@@ -181,7 +182,7 @@ export async function loadCharacters(
181182

182183
// .id isn't really valid
183184
const characterId = character.id || character.name;
184-
const characterPrefix = `CHARACTER.${characterId.toUpperCase().replace(/ /g, '_')}.`;
185+
const characterPrefix = `CHARACTER.${characterId.toUpperCase().replace(/ /g, "_")}.`;
185186

186187
const characterSettings = Object.entries(process.env)
187188
.filter(([key]) => key.startsWith(characterPrefix))
@@ -194,7 +195,7 @@ export async function loadCharacters(
194195
character.settings = character.settings || {};
195196
character.settings.secrets = {
196197
...characterSettings,
197-
...character.settings.secrets
198+
...character.settings.secrets,
198199
};
199200
}
200201

@@ -536,9 +537,7 @@ export async function createAgent(
536537
getSecret(character, "HEURIST_API_KEY")
537538
? imageGenerationPlugin
538539
: null,
539-
getSecret(character, "FAL_API_KEY")
540-
? ThreeDGenerationPlugin
541-
: null,
540+
getSecret(character, "FAL_API_KEY") ? ThreeDGenerationPlugin : null,
542541
...(getSecret(character, "COINBASE_API_KEY") &&
543542
getSecret(character, "COINBASE_PRIVATE_KEY")
544543
? [
@@ -567,6 +566,9 @@ export async function createAgent(
567566
getSecret(character, "APTOS_PRIVATE_KEY") ? aptosPlugin : null,
568567
getSecret(character, "MVX_PRIVATE_KEY") ? multiversxPlugin : null,
569568
getSecret(character, "ZKSYNC_PRIVATE_KEY") ? zksyncEraPlugin : null,
569+
getSecret(character, "CRONOSZKEVM_PRIVATE_KEY")
570+
? cronosZkEVMPlugin
571+
: null,
570572
getSecret(character, "TON_PRIVATE_KEY") ? tonPlugin : null,
571573
getSecret(character, "SUI_PRIVATE_KEY") ? suiPlugin : null,
572574
getSecret(character, "STORY_PRIVATE_KEY") ? storyPlugin : null,

docs/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ You can run Grok models by setting the `XAI_MODEL` environment variable to `grok
6767

6868
### Run with OpenAI
6969

70-
You can run OpenAI models by setting the `XAI_MODEL` environment variable to `gpt-4o-mini` or `gpt-4o`
70+
You can run OpenAI models by setting the `XAI_MODEL` environment variable to `gpt-4-mini` or `gpt-4o`
7171

7272
## Additional Requirements
7373

0 commit comments

Comments
 (0)