UNPKG

@fairmint/canton-node-sdk

Version:
95 lines 4.17 kB
/** * @description Submit a batch of reassignment commands and wait for the reassignment response * @example * ```typescript * const result = await client.submitAndWaitForReassignment({ * reassignmentCommands: { * commandId: 'unique-command-id', * submitter: 'party1', * commands: [assignCommand, unassignCommand] * } * }); * ``` * @param reassignmentCommands - Reassignment commands to submit * @param eventFormat - Event format (optional) */ export declare const SubmitAndWaitForReassignment: { new (client: import("../../../../../core").BaseClient): { execute(params: { reassignmentCommands: { commandId: string; submitter: string; commands: any[]; workflowId?: string | undefined; userId?: string | undefined; submissionId?: string | undefined; }; eventFormat?: any; }): Promise<{ reassignment: { updateId: string; offset: number; events: ({ JsAssignmentEvent: { source: string; target: string; reassignmentId: string; submitter: string; reassignmentCounter: number; createdEvent: { offset: number; nodeId: number; contractId: string; templateId: string; contractKey: string | null; createArgument: Record<string, string | number | boolean | any[] | Record<string, any> | null>; createdEventBlob: string; interfaceViews: string[]; witnessParties: string[]; signatories: string[]; observers: string[]; createdAt: string; packageName: string; implementedInterfaces?: string[] | undefined; }; }; } | { JsUnassignedEvent: { value: { offset: number; nodeId: number; contractId: string; templateId: string; source: string; target: string; reassignmentId: string; submitter: string; reassignmentCounter: number; packageName: string; }; }; })[]; recordTime: string; commandId?: string | undefined; workflowId?: string | undefined; traceContext?: { traceId?: string | undefined; spanId?: string | undefined; parentSpanId?: string | undefined; metadata?: Record<string, string> | undefined; } | undefined; }; }>; client: import("../../../../../core").BaseClient; validateParams<T>(params: T, schema: import("zod").ZodType<T>): T; makeGetRequest<T>(url: string, config?: import("../../../../../core").RequestConfig): Promise<T>; makePostRequest<T>(url: string, data: unknown, config?: import("../../../../../core").RequestConfig): Promise<T>; makeDeleteRequest<T>(url: string, config?: import("../../../../../core").RequestConfig): Promise<T>; makePatchRequest<T>(url: string, data: unknown, config?: import("../../../../../core").RequestConfig): Promise<T>; getManagedParties(): string[]; getPartyId(): string | undefined; getApiUrl(): string; buildPartyList(additionalParties?: string[]): string[]; }; }; //# sourceMappingURL=submit-and-wait-for-reassignment.d.ts.map