feat: Refactor actions to use tool functions for improved code clarity and maintainability

This commit is contained in:
Fahri Bilici
2024-12-28 16:24:57 +01:00
parent 9326da25b1
commit 378fea201d
30 changed files with 118 additions and 654 deletions

View File

@@ -2,6 +2,7 @@ import { PublicKey } from "@solana/web3.js";
import { Action } from "../types/action";
import { SolanaAgentKit } from "../agent";
import { z } from "zod";
import { deploy_collection } from "../tools";
interface CollectionOptions {
name: string;
@@ -64,7 +65,7 @@ const deployCollectionAction: Action = {
royaltyBasisPoints: input.royaltyBasisPoints
};
const result = await agent.deployCollection(options);
const result = await deploy_collection(agent, options);
return {
status: "success",