UNPKG

@energyweb/node-red-contrib-green-proof-worker

Version:
24 lines (23 loc) 735 B
import { z } from 'zod'; import type { Vote } from './types'; declare const CheckVotingResponse: z.ZodObject<{ data: z.ZodObject<{ votes: z.ZodArray<z.ZodObject<{ rawVotingRoundId: z.ZodString; }, z.core.$strip>>; votingRounds: z.ZodArray<z.ZodObject<{ votingRoundId: z.ZodString; expired: z.ZodBoolean; settled: z.ZodBoolean; }, z.core.$strip>>; }, z.core.$strip>; }, z.core.$strip>; export type CheckVotingResponse = z.infer<typeof CheckVotingResponse>; export declare const partitionToVote: (votings: Vote[], config: { indexerUrl: string; workerAddress: string; }) => Promise<{ toNotVote: Vote[]; toVote: Vote[]; }>; export {};