UNPKG

@coinbase/agentkit

Version:

Coinbase AgentKit core primitives

47 lines (46 loc) 1.63 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CheckDepositStatusSchema = exports.BridgeTokenSchema = void 0; const zod_1 = require("zod"); /** * Input schema for bridge token action. */ exports.BridgeTokenSchema = zod_1.z .object({ destinationChainId: zod_1.z .string() .describe("The chain ID of the destination chain (e.g. 11155111 for ethereum-sepolia)"), inputTokenSymbol: zod_1.z .string() .describe("The symbol of the token to bridge (e.g., 'ETH', 'WETH', 'USDC')") .default("ETH"), amount: zod_1.z .string() .describe("The amount of tokens to bridge in whole units (e.g. 1.5 WETH, 10 USDC)"), recipient: zod_1.z .string() .optional() .describe("The recipient address on the destination chain (defaults to sender)"), maxSplippage: zod_1.z .number() .optional() .describe("The maximum slippage percentage (e.g. 10 for 10%)") .default(1.5), }) .strip() .describe("Instructions for bridging tokens across chains using Across Protocol"); /** * Input schema for check deposit status action. */ exports.CheckDepositStatusSchema = zod_1.z .object({ originChainId: zod_1.z .string() .optional() .describe("The chain ID of the origin chain (defaults to the current chain)"), depositId: zod_1.z .string() .describe("The ID of the deposit to check (returned by the bridge deposit transaction)"), }) .strip() .describe("Instructions for checking the status of a deposit on Across Protocol");