Skip to content

Commit

Permalink
Fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
0xaguspunk committed Jan 21, 2025
1 parent 0783193 commit c74991f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 12 deletions.
6 changes: 6 additions & 0 deletions typescript/.changeset/eight-islands-march.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"goat-examples-vercel-ai-viem": patch
"@goat-sdk/plugin-0x": patch
---

Release 0x plugin
12 changes: 4 additions & 8 deletions typescript/examples/vercel-ai/viem/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ import { base } from "viem/chains";
import { getOnChainTools } from "@goat-sdk/adapter-vercel-ai";
import { PEPE, USDC, erc20 } from "@goat-sdk/plugin-erc20";

import { zeroEx } from "@goat-sdk/plugin-0x";
//import { uniswap } from "@goat-sdk/plugin-uniswap";
import { uniswap } from "@goat-sdk/plugin-uniswap";
import { sendETH } from "@goat-sdk/wallet-evm";
import { viem } from "@goat-sdk/wallet-viem";

Expand All @@ -32,12 +31,9 @@ const walletClient = createWalletClient({
plugins: [
sendETH(),
erc20({ tokens: [USDC, PEPE] }),
// uniswap({
// baseUrl: process.env.UNISWAP_BASE_URL as string,
// apiKey: process.env.UNISWAP_API_KEY as string,
// }),
zeroEx({
apiKey: process.env.ZEROEX_API_KEY as string,
uniswap({
baseUrl: process.env.UNISWAP_BASE_URL as string,
apiKey: process.env.UNISWAP_API_KEY as string,
}),
],
});
Expand Down
1 change: 0 additions & 1 deletion typescript/examples/vercel-ai/viem/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
"@goat-sdk/core": "workspace:*",
"@goat-sdk/plugin-erc20": "workspace:*",
"@goat-sdk/plugin-uniswap": "workspace:*",
"@goat-sdk/plugin-0x": "workspace:*",
"@goat-sdk/wallet-evm": "workspace:*",
"@goat-sdk/wallet-viem": "workspace:*",
"ai": "catalog:",
Expand Down
3 changes: 0 additions & 3 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 c74991f

Please sign in to comment.