Skip to content

Commit

Permalink
Merge pull request #1180 from aeither/update-env-plugin-goat
Browse files Browse the repository at this point in the history
chore: update env for plugin-goat
  • Loading branch information
monilpat authored Dec 24, 2024
2 parents 8b23c3a + 6878314 commit d4c5419
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 deletions agent/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ export async function createAgent(
}

let goatPlugin: any | undefined;
if (getSecret(character, "ALCHEMY_API_KEY")) {
if (getSecret(character, "EVM_PROVIDER_URL")) {
goatPlugin = await createGoatPlugin((secret) =>
getSecret(character, secret)
);
Expand Down Expand Up @@ -561,7 +561,7 @@ export async function createAgent(
getSecret(character, "COINBASE_NOTIFICATION_URI")
? webhookPlugin
: null,
getSecret(character, "ALCHEMY_API_KEY") ? goatPlugin : null,
getSecret(character, "EVM_PROVIDER_URL") ? goatPlugin : null,
getSecret(character, "FLOW_ADDRESS") &&
getSecret(character, "FLOW_PRIVATE_KEY")
? flowPlugin
Expand Down
7 changes: 7 additions & 0 deletions packages/plugin-goat/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,13 @@ const tools = getOnChainActions({
})
```

## Environment Variables Setup

To set up your environment variables, you will need to provide the following information:

* `EVM_PRIVATE_KEY`: Your EVM wallet private key.
* `EVM_PROVIDER_URL`: Your RPC provider URL (e.g. Infura, Alchemy, etc.).

## Wallets
GOAT supports many different wallets from key pairs to [Crossmint Smart Wallets](https://docs.crossmint.com/wallets/smart-wallets/overview) and Coinbase.

Expand Down

0 comments on commit d4c5419

Please sign in to comment.