Skip to content

Commit 1f8c435

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

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
@@ -1001,7 +1001,9 @@ export async function createAgent(
10011001
? webhookPlugin
10021002
: null,
10031003
goatPlugin,
1004-
zilliqaPlugin,
1004+
getSecret(character, "ENABLE_ZILLIQA")
1005+
? zilliqaPlugin
1006+
: null,
10051007
getSecret(character, "COINGECKO_API_KEY") ||
10061008
getSecret(character, "COINGECKO_PRO_API_KEY")
10071009
? 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)