UNPKG

@glowlabs-org/events-sdk

Version:

Typed event SDK for Glow, powered by RabbitMQ and Zod.

14 lines (13 loc) 627 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.auditPushedV2PayloadZ = void 0; const zod_1 = require("zod"); const patterns_1 = require("../patterns"); exports.auditPushedV2PayloadZ = zod_1.z.object({ farmId: zod_1.z.string().regex(patterns_1.hexBytes16, "bytes16 hex string"), protocolFeeUSDPrice_12Decimals: zod_1.z .string() .regex(patterns_1.uint256, "uint256 (decimal) − 12 implied decimals"), expectedProduction_12Decimals: zod_1.z.string().regex(patterns_1.uint256), txHash: zod_1.z.string().regex(patterns_1.hexBytes32, "bytes32 hex string"), });