Skip to content

Commit

Permalink
Merge branch 'develop' into feat/sol-agent-kit
Browse files Browse the repository at this point in the history
  • Loading branch information
renlulu authored Dec 24, 2024
2 parents 47eef3a + d4c5419 commit e7f9411
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 @@ -491,7 +491,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 @@ -565,7 +565,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 e7f9411

Please sign in to comment.