@coinbase/agentkit
Version:
Coinbase AgentKit core primitives
29 lines (28 loc) • 1.04 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.SwapSchema = exports.RequestFaucetFundsV2Schema = void 0;
const zod_1 = require("zod");
/**
* Input schema for request faucet funds action.
*/
exports.RequestFaucetFundsV2Schema = zod_1.z
.object({
assetId: zod_1.z.string().optional().describe("The optional asset ID to request from faucet"),
})
.strip()
.describe("Instructions for requesting faucet funds");
/**
* Input schema for swap tokens action.
*/
exports.SwapSchema = zod_1.z
.object({
fromAssetId: zod_1.z.string().describe("The asset ID to swap from (e.g., 'eth', 'usdc')"),
toAssetId: zod_1.z.string().describe("The asset ID to swap to (e.g., 'eth', 'usdc')"),
amount: zod_1.z.string().describe("The amount to swap (in the from asset's units)"),
network: zod_1.z
.string()
.optional()
.describe("The network to perform the swap on (defaults to wallet's network)"),
})
.strip()
.describe("Instructions for swapping tokens");