@fairmint/canton-node-sdk
Version:
Canton Node SDK
280 lines • 14.5 kB
TypeScript
import { z } from 'zod';
export declare const TransactionTreeSchema: z.ZodObject<{
updateId: z.ZodString;
commandId: z.ZodOptional<z.ZodString>;
workflowId: z.ZodOptional<z.ZodString>;
effectiveAt: z.ZodString;
offset: z.ZodNumber;
eventsById: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
CreatedTreeEvent: z.ZodObject<{
value: z.ZodObject<{
offset: z.ZodNumber;
nodeId: z.ZodNumber;
contractId: z.ZodString;
templateId: z.ZodString;
contractKey: z.ZodNullable<z.ZodString>;
createArgument: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodAny>]>>;
createdEventBlob: z.ZodString;
interfaceViews: z.ZodArray<z.ZodString>;
witnessParties: z.ZodArray<z.ZodString>;
signatories: z.ZodArray<z.ZodString>;
observers: z.ZodArray<z.ZodString>;
createdAt: z.ZodString;
packageName: z.ZodString;
implementedInterfaces: z.ZodOptional<z.ZodArray<z.ZodString>>;
}, z.core.$strict>;
}, z.core.$strict>;
}, z.core.$strict>, z.ZodObject<{
ExercisedTreeEvent: z.ZodObject<{
value: z.ZodObject<{
offset: z.ZodNumber;
nodeId: z.ZodNumber;
contractId: z.ZodString;
templateId: z.ZodString;
interfaceId: z.ZodNullable<z.ZodString>;
choice: z.ZodString;
choiceArgument: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodAny>]>>;
actingParties: z.ZodArray<z.ZodString>;
witnessParties: z.ZodArray<z.ZodString>;
exerciseResult: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodAny>]>>;
packageName: z.ZodString;
consuming: z.ZodBoolean;
lastDescendantNodeId: z.ZodOptional<z.ZodNumber>;
implementedInterfaces: z.ZodOptional<z.ZodArray<z.ZodString>>;
}, z.core.$strict>;
}, z.core.$strict>;
}, z.core.$strict>, z.ZodObject<{
ArchivedTreeEvent: z.ZodObject<{
value: z.ZodObject<{
offset: z.ZodNumber;
nodeId: z.ZodNumber;
contractId: z.ZodString;
templateId: z.ZodString;
witnessParties: z.ZodArray<z.ZodString>;
packageName: z.ZodString;
implementedInterfaces: z.ZodOptional<z.ZodArray<z.ZodString>>;
}, z.core.$strict>;
}, z.core.$strict>;
}, z.core.$strict>]>>;
recordTime: z.ZodString;
synchronizerId: z.ZodString;
traceContext: z.ZodOptional<z.ZodObject<{
traceparent: z.ZodString;
tracestate: z.ZodNullable<z.ZodString>;
}, z.core.$strip>>;
}, z.core.$strict>;
export declare const CommandResponseSchema: z.ZodObject<{
transactionTree: z.ZodObject<{
updateId: z.ZodString;
commandId: z.ZodOptional<z.ZodString>;
workflowId: z.ZodOptional<z.ZodString>;
effectiveAt: z.ZodString;
offset: z.ZodNumber;
eventsById: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
CreatedTreeEvent: z.ZodObject<{
value: z.ZodObject<{
offset: z.ZodNumber;
nodeId: z.ZodNumber;
contractId: z.ZodString;
templateId: z.ZodString;
contractKey: z.ZodNullable<z.ZodString>;
createArgument: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodAny>]>>;
createdEventBlob: z.ZodString;
interfaceViews: z.ZodArray<z.ZodString>;
witnessParties: z.ZodArray<z.ZodString>;
signatories: z.ZodArray<z.ZodString>;
observers: z.ZodArray<z.ZodString>;
createdAt: z.ZodString;
packageName: z.ZodString;
implementedInterfaces: z.ZodOptional<z.ZodArray<z.ZodString>>;
}, z.core.$strict>;
}, z.core.$strict>;
}, z.core.$strict>, z.ZodObject<{
ExercisedTreeEvent: z.ZodObject<{
value: z.ZodObject<{
offset: z.ZodNumber;
nodeId: z.ZodNumber;
contractId: z.ZodString;
templateId: z.ZodString;
interfaceId: z.ZodNullable<z.ZodString>;
choice: z.ZodString;
choiceArgument: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodAny>]>>;
actingParties: z.ZodArray<z.ZodString>;
witnessParties: z.ZodArray<z.ZodString>;
exerciseResult: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodAny>]>>;
packageName: z.ZodString;
consuming: z.ZodBoolean;
lastDescendantNodeId: z.ZodOptional<z.ZodNumber>;
implementedInterfaces: z.ZodOptional<z.ZodArray<z.ZodString>>;
}, z.core.$strict>;
}, z.core.$strict>;
}, z.core.$strict>, z.ZodObject<{
ArchivedTreeEvent: z.ZodObject<{
value: z.ZodObject<{
offset: z.ZodNumber;
nodeId: z.ZodNumber;
contractId: z.ZodString;
templateId: z.ZodString;
witnessParties: z.ZodArray<z.ZodString>;
packageName: z.ZodString;
implementedInterfaces: z.ZodOptional<z.ZodArray<z.ZodString>>;
}, z.core.$strict>;
}, z.core.$strict>;
}, z.core.$strict>]>>;
recordTime: z.ZodString;
synchronizerId: z.ZodString;
traceContext: z.ZodOptional<z.ZodObject<{
traceparent: z.ZodString;
tracestate: z.ZodNullable<z.ZodString>;
}, z.core.$strip>>;
}, z.core.$strict>;
}, z.core.$strict>;
export declare const CreateContractResponseSchema: z.ZodObject<{
contractId: z.ZodString;
updateId: z.ZodString;
}, z.core.$strict>;
export declare const UpdateByIdRequestSchema: z.ZodObject<{
updateId: z.ZodString;
requestingParties: z.ZodArray<z.ZodString>;
updateFormat: z.ZodString;
includeTransactions: z.ZodBoolean;
}, z.core.$strict>;
export declare const UpdateByIdResponseSchema: z.ZodObject<{
update: z.ZodObject<{
updateId: z.ZodString;
commandId: z.ZodOptional<z.ZodString>;
workflowId: z.ZodOptional<z.ZodString>;
effectiveAt: z.ZodString;
offset: z.ZodNumber;
eventsById: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
CreatedTreeEvent: z.ZodObject<{
value: z.ZodObject<{
offset: z.ZodNumber;
nodeId: z.ZodNumber;
contractId: z.ZodString;
templateId: z.ZodString;
contractKey: z.ZodNullable<z.ZodString>;
createArgument: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodAny>]>>;
createdEventBlob: z.ZodString;
interfaceViews: z.ZodArray<z.ZodString>;
witnessParties: z.ZodArray<z.ZodString>;
signatories: z.ZodArray<z.ZodString>;
observers: z.ZodArray<z.ZodString>;
createdAt: z.ZodString;
packageName: z.ZodString;
implementedInterfaces: z.ZodOptional<z.ZodArray<z.ZodString>>;
}, z.core.$strict>;
}, z.core.$strict>;
}, z.core.$strict>, z.ZodObject<{
ExercisedTreeEvent: z.ZodObject<{
value: z.ZodObject<{
offset: z.ZodNumber;
nodeId: z.ZodNumber;
contractId: z.ZodString;
templateId: z.ZodString;
interfaceId: z.ZodNullable<z.ZodString>;
choice: z.ZodString;
choiceArgument: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodAny>]>>;
actingParties: z.ZodArray<z.ZodString>;
witnessParties: z.ZodArray<z.ZodString>;
exerciseResult: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodAny>]>>;
packageName: z.ZodString;
consuming: z.ZodBoolean;
lastDescendantNodeId: z.ZodOptional<z.ZodNumber>;
implementedInterfaces: z.ZodOptional<z.ZodArray<z.ZodString>>;
}, z.core.$strict>;
}, z.core.$strict>;
}, z.core.$strict>, z.ZodObject<{
ArchivedTreeEvent: z.ZodObject<{
value: z.ZodObject<{
offset: z.ZodNumber;
nodeId: z.ZodNumber;
contractId: z.ZodString;
templateId: z.ZodString;
witnessParties: z.ZodArray<z.ZodString>;
packageName: z.ZodString;
implementedInterfaces: z.ZodOptional<z.ZodArray<z.ZodString>>;
}, z.core.$strict>;
}, z.core.$strict>;
}, z.core.$strict>]>>;
recordTime: z.ZodString;
synchronizerId: z.ZodString;
traceContext: z.ZodOptional<z.ZodObject<{
traceparent: z.ZodString;
tracestate: z.ZodNullable<z.ZodString>;
}, z.core.$strip>>;
}, z.core.$strict>;
}, z.core.$strict>;
export declare const TransactionTreeByOffsetResponseSchema: z.ZodObject<{
transaction: z.ZodObject<{
updateId: z.ZodString;
commandId: z.ZodOptional<z.ZodString>;
workflowId: z.ZodOptional<z.ZodString>;
effectiveAt: z.ZodString;
offset: z.ZodNumber;
eventsById: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
CreatedTreeEvent: z.ZodObject<{
value: z.ZodObject<{
offset: z.ZodNumber;
nodeId: z.ZodNumber;
contractId: z.ZodString;
templateId: z.ZodString;
contractKey: z.ZodNullable<z.ZodString>;
createArgument: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodAny>]>>;
createdEventBlob: z.ZodString;
interfaceViews: z.ZodArray<z.ZodString>;
witnessParties: z.ZodArray<z.ZodString>;
signatories: z.ZodArray<z.ZodString>;
observers: z.ZodArray<z.ZodString>;
createdAt: z.ZodString;
packageName: z.ZodString;
implementedInterfaces: z.ZodOptional<z.ZodArray<z.ZodString>>;
}, z.core.$strict>;
}, z.core.$strict>;
}, z.core.$strict>, z.ZodObject<{
ExercisedTreeEvent: z.ZodObject<{
value: z.ZodObject<{
offset: z.ZodNumber;
nodeId: z.ZodNumber;
contractId: z.ZodString;
templateId: z.ZodString;
interfaceId: z.ZodNullable<z.ZodString>;
choice: z.ZodString;
choiceArgument: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodAny>]>>;
actingParties: z.ZodArray<z.ZodString>;
witnessParties: z.ZodArray<z.ZodString>;
exerciseResult: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodAny>]>>;
packageName: z.ZodString;
consuming: z.ZodBoolean;
lastDescendantNodeId: z.ZodOptional<z.ZodNumber>;
implementedInterfaces: z.ZodOptional<z.ZodArray<z.ZodString>>;
}, z.core.$strict>;
}, z.core.$strict>;
}, z.core.$strict>, z.ZodObject<{
ArchivedTreeEvent: z.ZodObject<{
value: z.ZodObject<{
offset: z.ZodNumber;
nodeId: z.ZodNumber;
contractId: z.ZodString;
templateId: z.ZodString;
witnessParties: z.ZodArray<z.ZodString>;
packageName: z.ZodString;
implementedInterfaces: z.ZodOptional<z.ZodArray<z.ZodString>>;
}, z.core.$strict>;
}, z.core.$strict>;
}, z.core.$strict>]>>;
recordTime: z.ZodString;
synchronizerId: z.ZodString;
traceContext: z.ZodOptional<z.ZodObject<{
traceparent: z.ZodString;
tracestate: z.ZodNullable<z.ZodString>;
}, z.core.$strip>>;
}, z.core.$strict>;
}, z.core.$strict>;
export type TransactionTree = z.infer<typeof TransactionTreeSchema>;
export type CommandResponse = z.infer<typeof CommandResponseSchema>;
export type CreateContractResponse = z.infer<typeof CreateContractResponseSchema>;
export type UpdateByIdRequest = z.infer<typeof UpdateByIdRequestSchema>;
export type UpdateByIdResponse = z.infer<typeof UpdateByIdResponseSchema>;
export type TransactionTreeByOffsetResponse = z.infer<typeof TransactionTreeByOffsetResponseSchema>;
//# sourceMappingURL=transactions.d.ts.map