sei-agent-kit
Version:
A package for building AI agents on the SEI blockchain
23 lines • 863 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.SeiCitrexDepositTool = void 0;
const tools_1 = require("langchain/tools");
const zod_1 = require("zod");
const CitrexDepositInputSchema = zod_1.z.object({
amount: zod_1.z.string().min(1),
});
class SeiCitrexDepositTool extends tools_1.StructuredTool {
constructor(seiKit) {
super();
this.seiKit = seiKit;
this.name = "citrex_deposit";
this.description = "Deposits USDC tokens into the Citrex Protocol. Returns a success flag and transaction hash if the deposit was successful.";
this.schema = CitrexDepositInputSchema;
}
async _call(input) {
const { amount } = input;
return this.seiKit.citrexDeposit(amount);
}
}
exports.SeiCitrexDepositTool = SeiCitrexDepositTool;
//# sourceMappingURL=deposit.js.map