Skip to content

Commit dfc8747

Browse files
committedJan 17, 2025
(feat) Conditionalise zilliqa plugin
(fix) Add action to example (feat) Document zilliqa enable secret
1 parent 1ee0be4 commit dfc8747

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed
 

‎agent/src/index.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -944,7 +944,9 @@ export async function createAgent(
944944
? webhookPlugin
945945
: null,
946946
goatPlugin,
947-
zilliqaPlugin,
947+
getSecret(character, "ENABLE_ZILLIQA")
948+
? zilliqaPlugin
949+
: null,
948950
getSecret(character, "COINGECKO_API_KEY") ||
949951
getSecret(character, "COINGECKO_PRO_API_KEY")
950952
? coingeckoPlugin

‎packages/plugin-zilliqa/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ pnpm install @elizaos/plugin-goat
2424
```typescript
2525
EVM_PRIVATE_KEY=<Your EVM wallet private key>
2626
EVM_PROVIDER_URL=<Your RPC provider URL (e.g., Infura, Alchemy)>
27+
ENABLE_ZILLIQA=1
2728
```
2829

2930
## Common Issues & Troubleshooting

‎packages/plugin-zilliqa/src/actions.ts

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ export async function getOnChainActions(
3434
user: "{{user1}}",
3535
content: {
3636
text: "Tell me the balance of account 0xf0cb24ac66ba7375bf9b9c4fa91e208d9eaabd2e",
37+
action: "GET_BALANCE",
3738
},
3839
},
3940
{

0 commit comments

Comments
 (0)