@glowlabs-org/events-sdk
Version:
Typed event SDK for Glow, powered by RabbitMQ and Zod.
18 lines (17 loc) • 809 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.applicationPriceQuoteV2AlphaPayloadZ = void 0;
const zod_1 = require("zod");
const patterns_1 = require("../patterns");
exports.applicationPriceQuoteV2AlphaPayloadZ = zod_1.z.object({
applicationId: zod_1.z.string().uuid("UUID string"),
createdAt: zod_1.z.string().datetime(),
prices: zod_1.z.object({
GCTL: zod_1.z.string().regex(patterns_1.uint256),
GLW: zod_1.z.string().regex(patterns_1.uint256),
USDC: zod_1.z.string().regex(patterns_1.uint256),
USDG: zod_1.z.string().regex(patterns_1.uint256),
}),
signature: zod_1.z.string().regex(patterns_1.hexBytes32, "bytes32 hex string"),
gcaAddress: zod_1.z.string().regex(patterns_1.ethAddress, "Ethereum address"),
});