Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
biccsdev committed Jan 7, 2025
1 parent 4a86c2a commit b3555eb
Show file tree
Hide file tree
Showing 6 changed files with 78 additions and 10 deletions.
5 changes: 0 additions & 5 deletions .env.example

This file was deleted.

2 changes: 1 addition & 1 deletion examples/agent-kit-langgraph/src/utils/solanaAgent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { SolanaAgentKit, createSolanaTools } from "solana-agent-kit";
export const agentKit = new SolanaAgentKit(
process.env.SOLANA_PRIVATE_KEY!,
process.env.RPC_URL!,
process.env.OPENAI_API_KEY!,
{ OPENAI_API_KEY: process.env.OPENAI_API_KEY! },
);

export const solanaTools = createSolanaTools(agentKit);
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
"form-data": "^4.0.1",
"langchain": "^0.3.8",
"openai": "^4.77.0",
"solana-agent-kit": "^1.3.6",
"typedoc": "^0.27.6",
"zod": "^3.24.1"
},
Expand Down
75 changes: 73 additions & 2 deletions pnpm-lock.yaml

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

2 changes: 1 addition & 1 deletion test/tools/3land.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { SolanaAgentKit, createSolanaTools } from "../../src";
const agent = new SolanaAgentKit(
process.env.SOLANA_PRIVATE_KEY!,
process.env.RPC_URL!,
process.env.OPENAI_API_KEY!,
{ OPENAI_API_KEY: process.env.OPENAI_API_KEY! },
);

const optionsWithBase58: StoreInitOptions = {
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"skipLibCheck": true,
"resolveJsonModule": true
"resolveJsonModule": true,
"allowSyntheticDefaultImports": true,
},
"include": ["src/**/*"],
"exclude": ["node_modules", "dist", "**/*.test.ts"]
Expand Down

0 comments on commit b3555eb

Please sign in to comment.