UNPKG

@fairmint/canton-node-sdk

Version:
74 lines 2.34 kB
import { z } from 'zod'; /** * Balance information for the transfer agent */ export declare const BalanceSchema: z.ZodObject<{ currency: z.ZodString; total_cc: z.ZodNumber; }, z.core.$strip>; export type Balance = z.infer<typeof BalanceSchema>; /** * Traffic status information for the transfer agent */ export declare const TrafficStatusSchema: z.ZodObject<{ total_consumed: z.ZodNumber; total_limit: z.ZodNumber; total_purchased: z.ZodNumber; usage_percent: z.ZodNumber; last_updated: z.ZodString; }, z.core.$strip>; export type TrafficStatus = z.infer<typeof TrafficStatusSchema>; /** * Validator information for the transfer agent */ export declare const ValidatorSchema: z.ZodObject<{ id: z.ZodString; sponsor: z.ZodString; dso: z.ZodString; last_active_at: z.ZodString; first_round: z.ZodNumber; last_round: z.ZodNumber; miss_round: z.ZodNumber; version: z.ZodString; contact: z.ZodString; metadata_last_update: z.ZodString; created_at: z.ZodString; template_id: z.ZodString; contract_id: z.ZodString; updated_at: z.ZodString; }, z.core.$strip>; export type Validator = z.infer<typeof ValidatorSchema>; /** * Complete response from the Lighthouse API getTransferAgent endpoint */ export declare const GetTransferAgentResponseSchema: z.ZodObject<{ balance: z.ZodObject<{ currency: z.ZodString; total_cc: z.ZodNumber; }, z.core.$strip>; traffic_status: z.ZodObject<{ total_consumed: z.ZodNumber; total_limit: z.ZodNumber; total_purchased: z.ZodNumber; usage_percent: z.ZodNumber; last_updated: z.ZodString; }, z.core.$strip>; validator: z.ZodObject<{ id: z.ZodString; sponsor: z.ZodString; dso: z.ZodString; last_active_at: z.ZodString; first_round: z.ZodNumber; last_round: z.ZodNumber; miss_round: z.ZodNumber; version: z.ZodString; contact: z.ZodString; metadata_last_update: z.ZodString; created_at: z.ZodString; template_id: z.ZodString; contract_id: z.ZodString; updated_at: z.ZodString; }, z.core.$strip>; }, z.core.$strip>; export type GetTransferAgentResponse = z.infer<typeof GetTransferAgentResponseSchema>; //# sourceMappingURL=types.d.ts.map