wowok_agent
Version:
Making It Easy for AI Agents to Communicate, Collaborate, Trade, and Trust.
18 lines (17 loc) • 1.03 kB
JavaScript
import { z } from "zod";
import { PaymentInfoSchema } from "../query/index.js";
import { CoinParamSchema, CallEnvSchema, TypeNamedObjectSchema } from "./base.js";
import { AccountOrMark_AddressSchema } from "../common/index.js";
export const RevenueSchema = z.object({
recipient: AccountOrMark_AddressSchema,
amount: CoinParamSchema
}).strict().describe("Payment recipient and amount");
export const CallPayment_DataSchema = z.object({
object: TypeNamedObjectSchema,
revenue: z.array(RevenueSchema).describe("Array of payment recipients and amounts"),
info: PaymentInfoSchema
}).strict().describe("On-chain Payment creation. USAGE: Set 'object' field with {name, type, ...} to create a named Payment. NOTE: 'name' goes INSIDE 'object', NOT at the data root level. Payment is an immutable object - it can only be created, not modified. The 'object' field is CRITICAL and REQUIRED.");
export const CallPayment_InputSchema = z.object({
data: CallPayment_DataSchema,
env: CallEnvSchema.optional(),
}).strict();