@fairmint/canton-node-sdk
Version:
Canton Node SDK
32 lines • 1.77 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.GetLatestPrunedOffsetsParamsSchema = exports.GetLedgerEndParamsSchema = exports.GetConnectedSynchronizersParamsSchema = exports.GetActiveContractsParamsSchema = void 0;
const zod_1 = require("zod");
const base_1 = require("./base");
/** Parameters for getting active contracts. */
exports.GetActiveContractsParamsSchema = zod_1.z.object({
/** The offset at which the snapshot of the active contracts will be computed. Defaults to ledger-end if not provided. */
activeAtOffset: zod_1.z.number().optional(),
/** Maximum number of elements to return (optional). */
limit: zod_1.z.number().optional(),
/** Timeout to complete and send result if no new elements are received (optional). */
streamIdleTimeoutMs: zod_1.z.number().optional(),
/** Parties to filter by (optional). */
parties: zod_1.z.array(zod_1.z.string()).optional(),
/** Template IDs to filter by (optional). If specified, only contracts of these templates will be returned. */
templateIds: zod_1.z.array(zod_1.z.string()).optional(),
/** Whether to include verbose information (optional). */
verbose: zod_1.z.boolean().optional(),
});
/** Parameters for getting connected synchronizers. */
exports.GetConnectedSynchronizersParamsSchema = zod_1.z.object({
/** Party to get synchronizers for. */
party: base_1.NonEmptyStringSchema,
/** Participant ID (optional). */
participantId: zod_1.z.string().optional(),
});
/** Parameters for getting ledger end. */
exports.GetLedgerEndParamsSchema = zod_1.z.object({});
/** Parameters for getting latest pruned offsets. */
exports.GetLatestPrunedOffsetsParamsSchema = zod_1.z.object({});
//# sourceMappingURL=state.js.map