Skip to content

Commit 2714213

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

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
@@ -1051,7 +1051,9 @@ export async function createAgent(
10511051
? webhookPlugin
10521052
: null,
10531053
goatPlugin,
1054-
zilliqaPlugin,
1054+
getSecret(character, "ENABLE_ZILLIQA")
1055+
? zilliqaPlugin
1056+
: null,
10551057
getSecret(character, "COINGECKO_API_KEY") ||
10561058
getSecret(character, "COINGECKO_PRO_API_KEY")
10571059
? 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)