mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-04-06 21:18:12 +03:00
13 lines
354 B
TypeScript
13 lines
354 B
TypeScript
import { z } from 'zod';
|
|
import { hexStringSchema } from './util-schemas.js';
|
|
|
|
const infoSchema = z.object({
|
|
blockNumber: z.number().int().nonnegative(),
|
|
blockHash: hexStringSchema,
|
|
timeRequest: z.number().int().nonnegative(),
|
|
timeAnswer: z.number().int().nonnegative(),
|
|
changes: z.number().int().nonnegative(),
|
|
});
|
|
|
|
export default infoSchema;
|