Skip to content

Commit 43af362

Browse files
committed
(feat) Conditionalise zilliqa plugin
(fix) Add action to example (feat) Document zilliqa enable secret
1 parent ab228c3 commit 43af362

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
@@ -880,7 +880,9 @@ export async function createAgent(
880880
? webhookPlugin
881881
: null,
882882
goatPlugin,
883-
zilliqaPlugin,
883+
getSecret(character, "ENABLE_ZILLIQA")
884+
? zilliqaPlugin
885+
: null,
884886
getSecret(character, "COINGECKO_API_KEY") ||
885887
getSecret(character, "COINGECKO_PRO_API_KEY")
886888
? 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)