@glowlabs-org/events-sdk
Version:
Typed event SDK for Glow, powered by RabbitMQ and Zod.
14 lines (13 loc) • 583 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.auditPushedV1PayloadZ = void 0;
const zod_1 = require("zod");
const patterns_1 = require("../patterns");
exports.auditPushedV1PayloadZ = zod_1.z.object({
farmId: zod_1.z.string().uuid(),
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"),
});