@b3dotfun/anyspend-sdk
Version:
React Hooks and UI Components for AnySpend by B3
17 lines (14 loc) • 401 B
text/typescript
import z from "zod";
import { zToken } from "./token";
export const zCustomPayload = z.object({
data: z.string(),
to: z.string(),
amount: z.string()
});
export type CustomPayload = z.infer<typeof zCustomPayload>;
export const zCustomMetadata = z.object({
srcToken: zToken,
dstToken: zToken,
action: z.string().optional()
});
export type CustomMetadata = z.infer<typeof zCustomMetadata>;