@glowlabs-org/events-sdk
Version:
Typed event SDK for Glow, powered by RabbitMQ and Zod.
14 lines (13 loc) • 619 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.auditPfeesPaidV2PayloadZ = void 0;
const zod_1 = require("zod");
const patterns_1 = require("../patterns");
exports.auditPfeesPaidV2PayloadZ = zod_1.z.object({
farmId: zod_1.z.string().regex(patterns_1.hexBytes16, "bytes16 hex string"),
payer: zod_1.z.string().regex(patterns_1.ethAddress, "Ethereum address"),
amount_12Decimals: zod_1.z
.string()
.regex(patterns_1.uint256, "uint256 (decimal) − 12 implied decimals"),
txHash: zod_1.z.string().regex(patterns_1.hexBytes32, "bytes32 hex string"),
});