Skip to content

Commit

Permalink
Add coingecko to eleven labs example
Browse files Browse the repository at this point in the history
  • Loading branch information
0xaguspunk committed Dec 6, 2024
1 parent 8d49602 commit 2711dd8
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 6 deletions.
4 changes: 4 additions & 0 deletions goat.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@
"name": "[Plugin] 🎰 polymarket",
"path": "./typescript/packages/plugins/polymarket"
},
{
"name": "[Plugin] 💰 coingecko",
"path": "./typescript/packages/plugins/coingecko"
},
{
"name": "[Wallet] 🍀 crossmint",
"path": "./typescript/packages/wallets/crossmint"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
NEXT_PUBLIC_ELEVEN_LABS_AGENT_ID=
NEXT_PUBLIC_SEPOLIA_RPC_URL=
NEXT_PUBLIC_COINGECKO_API_KEY=
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"@goat-sdk/adapter-eleven-labs": "0.1.2",
"@goat-sdk/core": "0.3.10",
"@goat-sdk/wallet-viem": "0.1.3",
"@goat-sdk/plugin-coingecko": "workspace:*",
"@tanstack/react-query": "^5.62.2",
"connectkit": "^1.8.2",
"next": "15.0.3",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { viem } from "@goat-sdk/wallet-viem";
import { ConnectKitButton } from "connectkit";
import { useAccount, useWalletClient } from "wagmi";
import { sendETH } from "../../../../../../packages/core/dist/plugins/send-eth";
import { coingecko } from "@goat-sdk/plugin-coingecko";

export function Conversation() {
const { isConnected } = useAccount();
Expand All @@ -32,7 +33,12 @@ export function Conversation() {
// const wallet = viem Client
const tools = await getOnChainTools({
wallet: viem(wallet),
plugins: [sendETH()],
plugins: [
sendETH(),
coingecko({
apiKey: process.env.NEXT_PUBLIC_COINGECKO_API_KEY ?? "",
}),
],
options: {
logTools: true,
},
Expand Down
2 changes: 1 addition & 1 deletion typescript/packages/plugins/coingecko/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@goat-sdk/plugin-coingecko",
"version": "0.1.7",
"version": "0.1.0",
"files": ["dist/**/*", "README.md", "package.json"],
"scripts": {
"build": "tsup",
Expand Down
15 changes: 11 additions & 4 deletions typescript/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2711dd8

Please sign in to comment.