UNPKG

@glowlabs-org/events-sdk

Version:

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

15 lines (14 loc) 698 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.fractionClosedV2AlphaPayloadZ = void 0; const zod_1 = require("zod"); const patterns_1 = require("../patterns"); exports.fractionClosedV2AlphaPayloadZ = zod_1.z.object({ fractionId: zod_1.z.string(), transactionHash: zod_1.z.string().regex(patterns_1.hexBytes32, "bytes32 hex string"), blockNumber: zod_1.z.string().regex(patterns_1.uint256, "uint256 (decimal)"), logIndex: zod_1.z.number().int(), token: zod_1.z.string().regex(patterns_1.ethAddress, "Ethereum address"), owner: zod_1.z.string().regex(patterns_1.ethAddress, "Ethereum address"), timestamp: zod_1.z.number().int(), });