import type { Filter } from 'interfaces'; import type { Node } from 'services/nodes/types'; import type { ENV } from 'types'; export interface Validation { id: string; status: string; node: Node; accountId: string; errorMessage: string; response: any; balance: string; lastValidation: number; firstActivation: number; rewards: string; slot: number; validationProgress: ValidationProgress; countResponses: number; } export interface ValidationProgress { validated: number; sent: number; accepted: number; } export interface GetValidationsResponse { getValidations: Validation[]; } export interface GetValidationsArguments extends Filter { env?: ENV; filter: FilterValidations; } export interface FilterValidations { createdAt: number; accountId: string; status: string; } export interface GetValidationDetailsArguments { validationId: string; env?: ENV; } export interface GetValidationDetailsResponse { readValidation: Validation; } export interface ValidateArguments { token: string; env?: ENV; } export interface ValidateResponse { validate: boolean; } export interface GetValidationsSlotsArguments { token: string; env?: ENV; } export interface GetValidationsSlotsResponse { getValidationsSlots: Validation[]; } export interface TrackValidationsArguments { status: string; accountId: string; createdAt: number; onMessage: (response: TrackValidationsResponse) => void; onError: (error: any) => void; } export interface TrackValidationsResponse { trackValidations: Validation; }