@gluneau/hive-mcp-server
Version:
An MCP server that enables AI assistants to interact with the Hive blockchain
26 lines • 1.05 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.sendTokenSchema = exports.voteOnPostSchema = void 0;
// Transaction schemas
const zod_1 = require("zod");
// Schema for vote_on_post tool
exports.voteOnPostSchema = zod_1.z.object({
author: zod_1.z.string().describe('Author of the post to vote on'),
permlink: zod_1.z.string().describe('Permlink of the post to vote on'),
weight: zod_1.z
.number()
.min(-10000)
.max(10000)
.describe('Vote weight from -10000 (100% downvote) to 10000 (100% upvote)'),
});
// Schema for send_token tool
exports.sendTokenSchema = zod_1.z.object({
to: zod_1.z.string().describe('Recipient Hive username'),
amount: zod_1.z.number().positive().describe('Amount of tokens to send'),
currency: zod_1.z.enum(['HIVE', 'HBD']).describe('Currency to send: HIVE or HBD'),
memo: zod_1.z
.string()
.optional()
.describe('Optional memo to include with the transaction'),
});
//# sourceMappingURL=transaction.js.map