UNPKG

@glowlabs-org/events-sdk

Version:

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

17 lines (16 loc) 901 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.fractionRefundedV2AlphaPayloadZ = void 0; const zod_1 = require("zod"); const patterns_1 = require("../patterns"); exports.fractionRefundedV2AlphaPayloadZ = zod_1.z.object({ fractionId: zod_1.z.string().regex(/^0x[0-9a-fA-F]+$/, "hex string"), creator: zod_1.z.string().regex(patterns_1.ethAddress, "Ethereum address"), user: zod_1.z.string().regex(patterns_1.ethAddress, "Ethereum address"), refundTo: zod_1.z.string().regex(patterns_1.ethAddress, "Ethereum address"), amount: zod_1.z.string().regex(patterns_1.uint256, "uint256 (decimal)"), timestamp: zod_1.z.number().int(), blockNumber: zod_1.z.string().regex(patterns_1.uint256, "uint256 (decimal)"), transactionHash: zod_1.z.string().regex(patterns_1.hexBytes32, "bytes32 hex string"), logIndex: zod_1.z.number().int(), });